@everymatrix/casino-bonuses-controller 1.61.0 → 1.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Ed=Object.defineProperty,xd=Object.defineProperties;var Ad=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Ro=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable;var ei=(e,t,n)=>t in e?Ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))Ro.call(t,n)&&ei(e,n,t[n]);if(Yn)for(var n of Yn(t))zo.call(t,n)&&ei(e,n,t[n]);return e},un=(e,t)=>xd(e,Ad(t));var ti=(e,t)=>{var n={};for(var r in e)Ro.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yn)for(var r of Yn(e))t.indexOf(r)<0&&zo.call(e,r)&&(n[r]=e[r]);return n};var Ve=(e,t,n)=>(ei(e,typeof t!="symbol"?t+"":t,n),n);var Ue=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(u){i(u)}},s=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-image-CLghOqUz.cjs");function Se(){}function D(e,t){for(const n in t)e[n]=t[n];return e}function ol(e){return e()}function Uo(){return Object.create(null)}function Ye(e){e.forEach(ol)}function Fn(e){return typeof e=="function"}function Hn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let qn;function $o(e,t){return e===t?!0:(qn||(qn=document.createElement("a")),qn.href=t,e===qn.href)}function Td(e){return Object.keys(e).length===0}function sl(e,...t){if(e==null){for(const r of t)r(void 0);return Se}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function al(e,t,n){e.$$.on_destroy.push(sl(t,n))}function Rn(e,t,n,r){if(e){const i=ll(e,t,n,r);return e[0](i)}}function ll(e,t,n,r){return e[1]&&r?D(n.ctx.slice(),e[1](r(t))):n.ctx}function zn(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Un(e,t,n,r,i,o){if(i){const s=ll(t,n,r,o);e.p(s,i)}}function $n(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}function Pd(e){return e&&Fn(e.destroy)?e.destroy:Se}const Sd=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function Ar(e,t,n){const r=kd(e);if(!r.getElementById(t)){const i=E("style");i.id=t,i.textContent=n,Dd(r,i)}}function kd(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Dd(e,t){return p(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function bt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function B(e){return document.createTextNode(e)}function U(){return B(" ")}function Ze(){return B("")}function ke(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function m(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Bd=["width","height"];function S(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&Bd.indexOf(r)===-1?e[r]=t[r]:m(e,r,t[r])}function ul(e,t){for(const n in t)m(e,n,t[n])}function Pe(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:m(e,t,n)}function dl(e){return e===""?null:+e}function Md(e){return Array.from(e.childNodes)}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Od(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function te(e,t,n){~Sd.indexOf(n)?Od(e,t):fe(e,t)}function ur(e,t){e.value=t==null?"":t}function Wo(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function se(e,t,n){e.classList.toggle(t,!!n)}function Nd(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let An;function yn(e){An=e}function Id(){if(!An)throw new Error("Function called outside component initialization");return An}function Tr(e){Id().$$.on_mount.push(e)}const Ut=[],it=[];let Wt=[];const Vo=[],Ld=Promise.resolve();let Si=!1;function Fd(){Si||(Si=!0,Ld.then(de))}function ki(e){Wt.push(e)}const ni=new Set;let Ft=0;function de(){if(Ft!==0)return;const e=An;do{try{for(;Ft<Ut.length;){const t=Ut[Ft];Ft++,yn(t),Hd(t.$$)}}catch(t){throw Ut.length=0,Ft=0,t}for(yn(null),Ut.length=0,Ft=0;it.length;)it.pop()();for(let t=0;t<Wt.length;t+=1){const n=Wt[t];ni.has(n)||(ni.add(n),n())}Wt.length=0}while(Ut.length);for(;Vo.length;)Vo.pop()();Si=!1,ni.clear(),yn(e)}function Hd(e){if(e.fragment!==null){e.update(),Ye(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ki)}}function Rd(e){const t=[],n=[];Wt.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Wt=t}const nr=new Set;let Tt;function cl(){Tt={r:0,c:[],p:Tt}}function hl(){Tt.r||Ye(Tt.c),Tt=Tt.p}function Ge(e,t){e&&e.i&&(nr.delete(e),e.i(t))}function at(e,t,n,r){if(e&&e.o){if(nr.has(e))return;nr.add(e),Tt.c.push(()=>{nr.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Be(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(n[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in n||(n[s]=void 0);return n}function zd(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),ki(()=>{const o=e.$$.on_mount.map(ol).filter(Fn);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ye(o),e.$$.on_mount=[]}),i.forEach(ki)}function Ud(e,t){const n=e.$$;n.fragment!==null&&(Rd(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $d(e,t){e.$$.dirty[0]===-1&&(Ut.push(e),Fd(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pr(e,t,n,r,i,o,s=null,a=[-1]){const l=An;yn(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Se,not_equal:i,bound:Uo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Uo(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(e,t.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&$d(e,c)),h}):[],u.update(),d=!0,Ye(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const c=Md(t.target);u.fragment&&u.fragment.l(c),c.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&Ge(e.$$.fragment),zd(e,t.target,t.anchor),de()}yn(l)}let fl;typeof HTMLElement=="function"&&(fl=class extends HTMLElement{constructor(t,n,r){super();Ve(this,"$$ctor");Ve(this,"$$s");Ve(this,"$$c");Ve(this,"$$cn",!1);Ve(this,"$$d",{});Ve(this,"$$r",!1);Ve(this,"$$p_d",{});Ve(this,"$$l",{});Ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){I(u,s,d)},d:function(u){u&&N(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Nd(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=rr(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:un(Et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{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=rr(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(i),i();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(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rr(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function rr(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sr(e,t,n,r,i,o){let s=class extends fl{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=rr(a,l,t),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]}})}),e.element=s,s}class kr{constructor(){Ve(this,"$$");Ve(this,"$$set")}$destroy(){Ud(this,1),this.$destroy=Se}$on(t,n){if(!Fn(n))return Se;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Td(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Wd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wd);const Ht=[];function Vd(e,t){return{subscribe:Dr(e,t).subscribe}}function Dr(e,t=Se){let n;const r=new Set;function i(a){if(Hn(e,a)&&(e=a,n)){const l=!Ht.length;for(const u of r)u[1](),Ht.push(u,e);if(l){for(let u=0;u<Ht.length;u+=2)Ht[u][0](Ht[u+1]);Ht.length=0}}}function o(a){i(a(e))}function s(a,l=Se){const u=[a,l];return r.add(u),r.size===1&&(n=t(i,o)||Se),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function rn(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Vd(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Se;const h=()=>{if(d)return;c();const b=t(r?u[0]:u,s,a);o?s(b):c=Fn(b)?b:Se},f=i.map((b,_)=>sl(b,y=>{u[_]=y,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){Ye(f),c(),l=!1}})}function jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd=function(t){return Yd(t)&&!qd(t)};function Yd(e){return!!e&&typeof e=="object"}function qd(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Kd(e)}var Xd=typeof Symbol=="function"&&Symbol.for,Zd=Xd?Symbol.for("react.element"):60103;function Kd(e){return e.$$typeof===Zd}function Jd(e){return Array.isArray(e)?[]:{}}function Tn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xt(Jd(e),e,t):e}function Qd(e,t,n){return e.concat(t).map(function(r){return Tn(r,n)})}function ec(e,t){if(!t.customMerge)return Xt;var n=t.customMerge(e);return typeof n=="function"?n:Xt}function tc(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jo(e){return Object.keys(e).concat(tc(e))}function pl(e,t){try{return t in e}catch(n){return!1}}function nc(e,t){return pl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function rc(e,t,n){var r={};return n.isMergeableObject(e)&&jo(e).forEach(function(i){r[i]=Tn(e[i],n)}),jo(t).forEach(function(i){nc(e,i)||(pl(e,i)&&n.isMergeableObject(t[i])?r[i]=ec(i,n)(e[i],t[i],n):r[i]=Tn(t[i],n))}),r}function Xt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Qd,n.isMergeableObject=n.isMergeableObject||Gd,n.cloneUnlessOtherwiseSpecified=Tn;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):rc(e,t,n):Tn(t,n)}Xt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xt(r,i,n)},{})};var ic=Xt,oc=ic;const sc=jd(oc);/*! *****************************************************************************
1
+ "use strict";var Sd=Object.defineProperty,kd=Object.defineProperties;var Dd=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Wo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable;var ei=(e,t,n)=>t in e?Sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))Wo.call(t,n)&&ei(e,n,t[n]);if(Yn)for(var n of Yn(t))Vo.call(t,n)&&ei(e,n,t[n]);return e},un=(e,t)=>kd(e,Dd(t));var ti=(e,t)=>{var n={};for(var r in e)Wo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yn)for(var r of Yn(e))t.indexOf(r)<0&&Vo.call(e,r)&&(n[r]=e[r]);return n};var Ve=(e,t,n)=>(ei(e,typeof t!="symbol"?t+"":t,n),n);var Ue=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(u){i(u)}},s=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-image-z441BZiX.cjs");function Se(){}function D(e,t){for(const n in t)e[n]=t[n];return e}function ul(e){return e()}function jo(){return Object.create(null)}function Ye(e){e.forEach(ul)}function Fn(e){return typeof e=="function"}function Hn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let qn;function Go(e,t){return e===t?!0:(qn||(qn=document.createElement("a")),qn.href=t,e===qn.href)}function Bd(e){return Object.keys(e).length===0}function dl(e,...t){if(e==null){for(const r of t)r(void 0);return Se}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function cl(e,t,n){e.$$.on_destroy.push(dl(t,n))}function Rn(e,t,n,r){if(e){const i=hl(e,t,n,r);return e[0](i)}}function hl(e,t,n,r){return e[1]&&r?D(n.ctx.slice(),e[1](r(t))):n.ctx}function zn(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Un(e,t,n,r,i,o){if(i){const s=hl(t,n,r,o);e.p(s,i)}}function $n(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}function Md(e){return e&&Fn(e.destroy)?e.destroy:Se}const Od=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function Ar(e,t,n){const r=Nd(e);if(!r.getElementById(t)){const i=E("style");i.id=t,i.textContent=n,Id(r,i)}}function Nd(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Id(e,t){return p(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function bt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function B(e){return document.createTextNode(e)}function U(){return B(" ")}function Ze(){return B("")}function ke(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function m(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Ld=["width","height"];function S(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&Ld.indexOf(r)===-1?e[r]=t[r]:m(e,r,t[r])}function fl(e,t){for(const n in t)m(e,n,t[n])}function Pe(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:m(e,t,n)}function pl(e){return e===""?null:+e}function Fd(e){return Array.from(e.childNodes)}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Hd(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function te(e,t,n){~Od.indexOf(n)?Hd(e,t):fe(e,t)}function ur(e,t){e.value=t==null?"":t}function Yo(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function se(e,t,n){e.classList.toggle(t,!!n)}function Rd(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let An;function yn(e){An=e}function zd(){if(!An)throw new Error("Function called outside component initialization");return An}function Tr(e){zd().$$.on_mount.push(e)}const Ut=[],it=[];let Wt=[];const qo=[],Ud=Promise.resolve();let ki=!1;function $d(){ki||(ki=!0,Ud.then(de))}function Di(e){Wt.push(e)}const ni=new Set;let Ft=0;function de(){if(Ft!==0)return;const e=An;do{try{for(;Ft<Ut.length;){const t=Ut[Ft];Ft++,yn(t),Wd(t.$$)}}catch(t){throw Ut.length=0,Ft=0,t}for(yn(null),Ut.length=0,Ft=0;it.length;)it.pop()();for(let t=0;t<Wt.length;t+=1){const n=Wt[t];ni.has(n)||(ni.add(n),n())}Wt.length=0}while(Ut.length);for(;qo.length;)qo.pop()();ki=!1,ni.clear(),yn(e)}function Wd(e){if(e.fragment!==null){e.update(),Ye(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Di)}}function Vd(e){const t=[],n=[];Wt.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Wt=t}const nr=new Set;let Tt;function ml(){Tt={r:0,c:[],p:Tt}}function _l(){Tt.r||Ye(Tt.c),Tt=Tt.p}function Ge(e,t){e&&e.i&&(nr.delete(e),e.i(t))}function at(e,t,n,r){if(e&&e.o){if(nr.has(e))return;nr.add(e),Tt.c.push(()=>{nr.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Fe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Be(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(n[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in n||(n[s]=void 0);return n}function jd(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Di(()=>{const o=e.$$.on_mount.map(ul).filter(Fn);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ye(o),e.$$.on_mount=[]}),i.forEach(Di)}function Gd(e,t){const n=e.$$;n.fragment!==null&&(Vd(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Yd(e,t){e.$$.dirty[0]===-1&&(Ut.push(e),$d(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pr(e,t,n,r,i,o,s=null,a=[-1]){const l=An;yn(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Se,not_equal:i,bound:jo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:jo(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(e,t.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&Yd(e,c)),h}):[],u.update(),d=!0,Ye(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const c=Fd(t.target);u.fragment&&u.fragment.l(c),c.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&Ge(e.$$.fragment),jd(e,t.target,t.anchor),de()}yn(l)}let gl;typeof HTMLElement=="function"&&(gl=class extends HTMLElement{constructor(t,n,r){super();Ve(this,"$$ctor");Ve(this,"$$s");Ve(this,"$$c");Ve(this,"$$cn",!1);Ve(this,"$$d",{});Ve(this,"$$r",!1);Ve(this,"$$p_d",{});Ve(this,"$$l",{});Ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){I(u,s,d)},d:function(u){u&&N(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Rd(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=rr(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:un(Et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{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=rr(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(i),i();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(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rr(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function rr(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sr(e,t,n,r,i,o){let s=class extends gl{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=rr(a,l,t),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]}})}),e.element=s,s}class kr{constructor(){Ve(this,"$$");Ve(this,"$$set")}$destroy(){Gd(this,1),this.$destroy=Se}$on(t,n){if(!Fn(n))return Se;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Bd(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const qd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qd);const Ht=[];function Xd(e,t){return{subscribe:Dr(e,t).subscribe}}function Dr(e,t=Se){let n;const r=new Set;function i(a){if(Hn(e,a)&&(e=a,n)){const l=!Ht.length;for(const u of r)u[1](),Ht.push(u,e);if(l){for(let u=0;u<Ht.length;u+=2)Ht[u][0](Ht[u+1]);Ht.length=0}}}function o(a){i(a(e))}function s(a,l=Se){const u=[a,l];return r.add(u),r.size===1&&(n=t(i,o)||Se),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function rn(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Xd(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Se;const h=()=>{if(d)return;c();const b=t(r?u[0]:u,s,a);o?s(b):c=Fn(b)?b:Se},f=i.map((b,_)=>dl(b,y=>{u[_]=y,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){Ye(f),c(),l=!1}})}function Zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kd=function(t){return Jd(t)&&!Qd(t)};function Jd(e){return!!e&&typeof e=="object"}function Qd(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||nc(e)}var ec=typeof Symbol=="function"&&Symbol.for,tc=ec?Symbol.for("react.element"):60103;function nc(e){return e.$$typeof===tc}function rc(e){return Array.isArray(e)?[]:{}}function Tn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xt(rc(e),e,t):e}function ic(e,t,n){return e.concat(t).map(function(r){return Tn(r,n)})}function oc(e,t){if(!t.customMerge)return Xt;var n=t.customMerge(e);return typeof n=="function"?n:Xt}function sc(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Xo(e){return Object.keys(e).concat(sc(e))}function bl(e,t){try{return t in e}catch(n){return!1}}function ac(e,t){return bl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lc(e,t,n){var r={};return n.isMergeableObject(e)&&Xo(e).forEach(function(i){r[i]=Tn(e[i],n)}),Xo(t).forEach(function(i){ac(e,i)||(bl(e,i)&&n.isMergeableObject(t[i])?r[i]=oc(i,n)(e[i],t[i],n):r[i]=Tn(t[i],n))}),r}function Xt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ic,n.isMergeableObject=n.isMergeableObject||Kd,n.cloneUnlessOtherwiseSpecified=Tn;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):lc(e,t,n):Tn(t,n)}Xt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xt(r,i,n)},{})};var uc=Xt,dc=uc;const cc=Zd(dc);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,55 +11,55 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var Di=function(e,t){return Di=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Di(e,t)};function ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Di(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ge.apply(this,arguments)};function ac(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Bi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Vt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function ri(e,t){var n=t&&t.cache?t.cache:pc,r=t&&t.serializer?t.serializer:hc,i=t&&t.strategy?t.strategy:dc;return i(e,{cache:n,serializer:r})}function lc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function uc(e,t,n,r){var i=lc(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function ml(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function _l(e,t,n,r,i){return n.bind(t,e,r,i)}function dc(e,t){var n=e.length===1?uc:ml;return _l(e,this,n,t.cache.create(),t.serializer)}function cc(e,t){return _l(e,this,ml,t.cache.create(),t.serializer)}var hc=function(){return JSON.stringify(arguments)},fc=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),pc={create:function(){return new fc}},ii={variadic:cc},ce;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var xe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(xe||(xe={}));var Zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zt||(Zt={}));function Go(e){return e.type===xe.literal}function mc(e){return e.type===xe.argument}function gl(e){return e.type===xe.number}function bl(e){return e.type===xe.date}function vl(e){return e.type===xe.time}function yl(e){return e.type===xe.select}function wl(e){return e.type===xe.plural}function _c(e){return e.type===xe.pound}function Cl(e){return e.type===xe.tag}function El(e){return!!(e&&typeof e=="object"&&e.type===Zt.number)}function Oi(e){return!!(e&&typeof e=="object"&&e.type===Zt.dateTime)}var xl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gc=/(?:[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 bc(e){var t={};return e.replace(gc,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var vc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function yc(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(vc).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[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,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function wc(e){return e.replace(/^(.*?)-/,"")}var Yo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Al=/^(@+)?(\+|#+)?[rs]?$/g,Cc=/(\*)(0+)|(#+)(0+)|(0+)/g,Tl=/^(0+)$/;function qo(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Al,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Pl(e){switch(e){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 Ec(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Tl.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Xo(e){var t={},n=Pl(e);return n||t}function xc(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=wc(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ge(ge(ge({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return ge(ge({},l),Xo(u))},{}));continue;case"engineering":t=ge(ge(ge({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return ge(ge({},l),Xo(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Cc,function(l,u,d,c,h,f){if(u)t.minimumIntegerDigits=d.length;else{if(c&&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(Tl.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Yo.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Yo,function(l,u,d,c,h,f){return d==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=ge(ge({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ge(ge({},t),qo(o)));continue}if(Al.test(i.stem)){t=ge(ge({},t),qo(i.stem));continue}var s=Pl(i.stem);s&&(t=ge(ge({},t),s));var a=Ec(i.stem);a&&(t=ge(ge({},t),a))}return t}var Xn={"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 Ac(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Tc(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Tc(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return i[0]}var oi,Pc=new RegExp("^".concat(xl.source,"*")),Sc=new RegExp("".concat(xl.source,"*$"));function he(e,t){return{start:e,end:t}}var kc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Dc=!!String.fromCodePoint,Bc=!!Object.fromEntries,Mc=!!String.prototype.codePointAt,Oc=!!String.prototype.trimStart,Nc=!!String.prototype.trimEnd,Ic=!!Number.isSafeInteger,Lc=Ic?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ni=!0;try{var Fc=kl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ni=((oi=Fc.exec("a"))===null||oi===void 0?void 0:oi[0])==="a"}catch(e){Ni=!1}var Zo=kc?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Ii=Dc?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[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},Ko=Bc?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Sl=Mc?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Hc=Oc?function(t){return t.trimStart()}:function(t){return t.replace(Pc,"")},Rc=Nc?function(t){return t.trimEnd()}:function(t){return t.replace(Sc,"")};function kl(e,t){return new RegExp(e,t)}var Li;if(Ni){var Jo=kl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Li=function(t,n){var r;Jo.lastIndex=n;var i=Jo.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Li=function(t,n){for(var r=[];;){var i=Sl(t,n);if(i===void 0||Dl(i)||Wc(i))break;r.push(i),n+=i>=65536?2:1}return Ii.apply(void 0,r)};var zc=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:xe.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Fi(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:xe.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fi(this.char()))return this.error(ce.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:xe.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&$c(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=he(r,this.clonePosition());return{val:{type:xe.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Uc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Ii.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Ii(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:xe.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Li(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,he(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Rc(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=he(i,this.clonePosition());if(u&&Zo(u==null?void 0:u.style,"::",0)){var y=Hc(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,u.styleLocation);return c.err?c:{val:{type:xe.number,value:r,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var w=y;this.locale&&(w=Ac(y,this.locale));var h={type:Zt.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?bc(w):{}},g=a==="date"?xe.date:xe.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?xe.number:a==="date"?xe.date:xe.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,he(A,ge({},A)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),k=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),v=this.parseIdentifierIfPossible(),k=c.val}var x=this.tryParsePluralOrSelectOptions(t,a,n,v);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var L=he(i,this.clonePosition());return a==="select"?{val:{type:xe.select,value:r,options:Ko(x.val),location:L},err:null}:{val:{type:xe.plural,value:r,options:Ko(x.val),offset:k,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,he(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=yc(t)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,n)}return{val:{type:Zt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?xc(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,n,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:he(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=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=he(i,this.clonePosition());return o?(s*=r,Lc(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Sl(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Zo(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Dl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Fi(e){return e>=97&&e<=122||e>=65&&e<=90}function Uc(e){return Fi(e)||e===47}function $c(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Dl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Wc(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Hi(e){e.forEach(function(t){if(delete t.location,yl(t)||wl(t))for(var n in t.options)delete t.options[n].location,Hi(t.options[n].value);else gl(t)&&El(t.style)||(bl(t)||vl(t))&&Oi(t.style)?delete t.style.location:Cl(t)&&Hi(t.children)})}function Vc(e,t){t===void 0&&(t={}),t=ge({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new zc(e,t).parse();if(n.err){var r=SyntaxError(ce[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Hi(n.val),n.val}var Kt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Kt||(Kt={}));var Br=function(e){ut(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qo=function(e){ut(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Kt.INVALID_VALUE,o)||this}return t}(Br),jc=function(e){ut(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Kt.INVALID_VALUE,i)||this}return t}(Br),Gc=function(e){ut(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Kt.MISSING_VALUE,r)||this}return t}(Br),He;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(He||(He={}));function Yc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==He.literal||n.type!==He.literal?t.push(n):r.value+=n.value,t},[])}function qc(e){return typeof e=="function"}function ir(e,t,n,r,i,o,s){if(e.length===1&&Go(e[0]))return[{type:He.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(Go(d)){a.push({type:He.literal,value:d.value});continue}if(_c(d)){typeof o=="number"&&a.push({type:He.literal,value:n.getNumberFormat(t).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new Gc(c,s);var h=i[c];if(mc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?He.literal:He.object,value:h});continue}if(bl(d)){var f=typeof d.style=="string"?r.date[d.style]:Oi(d.style)?d.style.parsedOptions:void 0;a.push({type:He.literal,value:n.getDateTimeFormat(t,f).format(h)});continue}if(vl(d)){var f=typeof d.style=="string"?r.time[d.style]:Oi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:He.literal,value:n.getDateTimeFormat(t,f).format(h)});continue}if(gl(d)){var f=typeof d.style=="string"?r.number[d.style]:El(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:He.literal,value:n.getNumberFormat(t,f).format(h)});continue}if(Cl(d)){var b=d.children,_=d.value,y=i[_];if(!qc(y))throw new jc(_,"function",s);var w=ir(b,t,n,r,i,o),g=y(w.map(function(k){return k.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(k){return{type:typeof k=="string"?He.literal:He.object,value:k}}))}if(yl(d)){var A=d.options[h]||d.options.other;if(!A)throw new Qo(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,t,n,r,i));continue}if(wl(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Br(`Intl.PluralRules is not available in this environment.
14
+ ***************************************************************************** */var Bi=function(e,t){return Bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Bi(e,t)};function ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bi(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ge.apply(this,arguments)};function hc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Mi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Vt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function ri(e,t){var n=t&&t.cache?t.cache:bc,r=t&&t.serializer?t.serializer:gc,i=t&&t.strategy?t.strategy:pc;return i(e,{cache:n,serializer:r})}function fc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function vl(e,t,n,r){var i=fc(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function yl(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function po(e,t,n,r,i){return n.bind(t,e,r,i)}function pc(e,t){var n=e.length===1?vl:yl;return po(e,this,n,t.cache.create(),t.serializer)}function mc(e,t){return po(e,this,yl,t.cache.create(),t.serializer)}function _c(e,t){return po(e,this,vl,t.cache.create(),t.serializer)}var gc=function(){return JSON.stringify(arguments)};function mo(){this.cache=Object.create(null)}mo.prototype.get=function(e){return this.cache[e]};mo.prototype.set=function(e,t){this.cache[e]=t};var bc={create:function(){return new mo}},ii={variadic:mc,monadic:_c},ce;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var xe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(xe||(xe={}));var Zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zt||(Zt={}));function Zo(e){return e.type===xe.literal}function vc(e){return e.type===xe.argument}function wl(e){return e.type===xe.number}function Cl(e){return e.type===xe.date}function El(e){return e.type===xe.time}function xl(e){return e.type===xe.select}function Al(e){return e.type===xe.plural}function yc(e){return e.type===xe.pound}function Tl(e){return e.type===xe.tag}function Pl(e){return!!(e&&typeof e=="object"&&e.type===Zt.number)}function Ni(e){return!!(e&&typeof e=="object"&&e.type===Zt.dateTime)}var Sl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wc=/(?:[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 Cc(e){var t={};return e.replace(wc,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Ec=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function xc(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ec).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[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,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function Ac(e){return e.replace(/^(.*?)-/,"")}var Ko=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,kl=/^(@+)?(\+|#+)?[rs]?$/g,Tc=/(\*)(0+)|(#+)(0+)|(0+)/g,Dl=/^(0+)$/;function Jo(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(kl,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Bl(e){switch(e){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 Pc(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dl.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qo(e){var t={},n=Bl(e);return n||t}function Sc(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ac(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ge(ge(ge({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return ge(ge({},l),Qo(u))},{}));continue;case"engineering":t=ge(ge(ge({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return ge(ge({},l),Qo(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Tc,function(l,u,d,c,h,f){if(u)t.minimumIntegerDigits=d.length;else{if(c&&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(Dl.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ko.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ko,function(l,u,d,c,h,f){return d==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=ge(ge({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ge(ge({},t),Jo(o)));continue}if(kl.test(i.stem)){t=ge(ge({},t),Jo(i.stem));continue}var s=Bl(i.stem);s&&(t=ge(ge({},t),s));var a=Pc(i.stem);a&&(t=ge(ge({},t),a))}return t}var Xn={"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 kc(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Dc(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function Dc(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return i[0]}var oi,Bc=new RegExp("^".concat(Sl.source,"*")),Mc=new RegExp("".concat(Sl.source,"*$"));function he(e,t){return{start:e,end:t}}var Oc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Nc=!!String.fromCodePoint,Ic=!!Object.fromEntries,Lc=!!String.prototype.codePointAt,Fc=!!String.prototype.trimStart,Hc=!!String.prototype.trimEnd,Rc=!!Number.isSafeInteger,zc=Rc?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ii=!0;try{var Uc=Ol("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ii=((oi=Uc.exec("a"))===null||oi===void 0?void 0:oi[0])==="a"}catch(e){Ii=!1}var es=Oc?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Li=Nc?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[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},ts=Ic?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Ml=Lc?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},$c=Fc?function(t){return t.trimStart()}:function(t){return t.replace(Bc,"")},Wc=Hc?function(t){return t.trimEnd()}:function(t){return t.replace(Mc,"")};function Ol(e,t){return new RegExp(e,t)}var Fi;if(Ii){var ns=Ol("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fi=function(t,n){var r;ns.lastIndex=n;var i=ns.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Fi=function(t,n){for(var r=[];;){var i=Ml(t,n);if(i===void 0||Nl(i)||Yc(i))break;r.push(i),n+=i>=65536?2:1}return Li.apply(void 0,r)};var Vc=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:xe.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Hi(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:xe.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hi(this.char()))return this.error(ce.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:xe.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Gc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=he(r,this.clonePosition());return{val:{type:xe.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!jc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Li.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Li(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:xe.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Fi(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,he(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Wc(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=he(i,this.clonePosition());if(u&&es(u==null?void 0:u.style,"::",0)){var y=$c(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(y,u.styleLocation);return c.err?c:{val:{type:xe.number,value:r,location:_,style:c.val},err:null}}else{if(y.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var w=y;this.locale&&(w=kc(y,this.locale));var h={type:Zt.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Cc(w):{}},g=a==="date"?xe.date:xe.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?xe.number:a==="date"?xe.date:xe.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,he(A,ge({},A)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),k=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),v=this.parseIdentifierIfPossible(),k=c.val}var x=this.tryParsePluralOrSelectOptions(t,a,n,v);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var L=he(i,this.clonePosition());return a==="select"?{val:{type:xe.select,value:r,options:ts(x.val),location:L},err:null}:{val:{type:xe.plural,value:r,options:ts(x.val),offset:k,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,he(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=xc(t)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,n)}return{val:{type:Zt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Sc(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,n,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:he(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(n==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=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=he(i,this.clonePosition());return o?(s*=r,zc(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Ml(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(es(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Hi(e){return e>=97&&e<=122||e>=65&&e<=90}function jc(e){return Hi(e)||e===47}function Gc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Nl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Yc(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ri(e){e.forEach(function(t){if(delete t.location,xl(t)||Al(t))for(var n in t.options)delete t.options[n].location,Ri(t.options[n].value);else wl(t)&&Pl(t.style)||(Cl(t)||El(t))&&Ni(t.style)?delete t.style.location:Tl(t)&&Ri(t.children)})}function qc(e,t){t===void 0&&(t={}),t=ge({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Vc(e,t).parse();if(n.err){var r=SyntaxError(ce[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Ri(n.val),n.val}var Kt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Kt||(Kt={}));var Br=function(e){ut(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rs=function(e){ut(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Kt.INVALID_VALUE,o)||this}return t}(Br),Xc=function(e){ut(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Kt.INVALID_VALUE,i)||this}return t}(Br),Zc=function(e){ut(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Kt.MISSING_VALUE,r)||this}return t}(Br),He;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(He||(He={}));function Kc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==He.literal||n.type!==He.literal?t.push(n):r.value+=n.value,t},[])}function Jc(e){return typeof e=="function"}function ir(e,t,n,r,i,o,s){if(e.length===1&&Zo(e[0]))return[{type:He.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(Zo(d)){a.push({type:He.literal,value:d.value});continue}if(yc(d)){typeof o=="number"&&a.push({type:He.literal,value:n.getNumberFormat(t).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new Zc(c,s);var h=i[c];if(vc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?He.literal:He.object,value:h});continue}if(Cl(d)){var f=typeof d.style=="string"?r.date[d.style]:Ni(d.style)?d.style.parsedOptions:void 0;a.push({type:He.literal,value:n.getDateTimeFormat(t,f).format(h)});continue}if(El(d)){var f=typeof d.style=="string"?r.time[d.style]:Ni(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:He.literal,value:n.getDateTimeFormat(t,f).format(h)});continue}if(wl(d)){var f=typeof d.style=="string"?r.number[d.style]:Pl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:He.literal,value:n.getNumberFormat(t,f).format(h)});continue}if(Tl(d)){var b=d.children,_=d.value,y=i[_];if(!Jc(y))throw new Xc(_,"function",s);var w=ir(b,t,n,r,i,o),g=y(w.map(function(k){return k.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(k){return{type:typeof k=="string"?He.literal:He.object,value:k}}))}if(xl(d)){var A=d.options[h]||d.options.other;if(!A)throw new rs(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,t,n,r,i));continue}if(Al(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Br(`Intl.PluralRules is not available in this environment.
15
15
  Try polyfilling it using "@formatjs/intl-pluralrules"
16
- `,Kt.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[v]||d.options.other}if(!A)throw new Qo(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,t,n,r,i,h-(d.offset||0)));continue}}return Yc(a)}function Xc(e,t){return t?ge(ge(ge({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ge(ge({},e[r]),t[r]||{}),n},{})):e}function Zc(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Xc(e[r],t[r]),n},ge({},e)):e}function si(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Kc(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.number),strategy:ii.variadic}),getDateTimeFormat:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.dateTime),strategy:ii.variadic}),getPluralRules:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.pluralRules),strategy:ii.variadic})}}var Jc=function(){function e(t,n,r,i){n===void 0&&(n=e.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 d=u.reduce(function(c,h){return!c.length||h.type!==He.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return ir(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=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=ac(s,["formatters"]);this.ast=e.__parse(t,ge(ge({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Zc(e.formats,r),this.formatters=i&&i.formatters||Kc(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Vc,e.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"}}},e}();function Qc(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const mt={},eh=(e,t,n)=>n&&(t in mt||(mt[t]={}),e in mt[t]||(mt[t][e]=n),n),Bl=(e,t)=>{if(t==null)return;if(t in mt&&e in mt[t])return mt[t][e];const n=Mr(t);for(let r=0;r<n.length;r++){const i=n[r],o=nh(i,e);if(o)return eh(e,t,o)}};let fo;const Wn=Dr({});function th(e){return fo[e]||null}function Ml(e){return e in fo}function nh(e,t){if(!Ml(e))return null;const n=th(e);return Qc(n,t)}function rh(e){if(e==null)return;const t=Mr(e);for(let n=0;n<t.length;n++){const r=t[n];if(Ml(r))return r}}function Ol(e,...t){delete mt[e],Wn.update(n=>(n[e]=sc.all([n[e]||{},...t]),n))}rn([Wn],([e])=>Object.keys(e));Wn.subscribe(e=>fo=e);const or={};function ih(e,t){or[e].delete(t),or[e].size===0&&delete or[e]}function Nl(e){return or[e]}function oh(e){return Mr(e).map(t=>{const n=Nl(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ri(e){return e==null?!1:Mr(e).some(t=>{var n;return(n=Nl(t))==null?void 0:n.size})}function sh(e,t){return Promise.all(t.map(r=>(ih(e,r),r().then(i=>i.default||i)))).then(r=>Ol(e,...r))}const dn={};function Il(e){if(!Ri(e))return e in dn?dn[e]:Promise.resolve();const t=oh(e);return dn[e]=Promise.all(t.map(([n,r])=>sh(n,r))).then(()=>{if(Ri(e))return Il(e);delete dn[e]}),dn[e]}const ah={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"}}},lh={fallbackLocale:null,loadingDelay:200,formats:ah,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},uh=lh;function Jt(){return uh}const ai=Dr(!1);var dh=Object.defineProperty,ch=Object.defineProperties,hh=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,ts=(e,t,n)=>t in e?dh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mh=(e,t)=>{for(var n in t||(t={}))fh.call(t,n)&&ts(e,n,t[n]);if(es)for(var n of es(t))ph.call(t,n)&&ts(e,n,t[n]);return e},_h=(e,t)=>ch(e,hh(t));let zi;const dr=Dr(null);function ns(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Mr(e,t=Jt().fallbackLocale){const n=ns(e);return t?[...new Set([...n,...ns(t)])]:n}function Mt(){return zi!=null?zi:void 0}dr.subscribe(e=>{zi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const gh=e=>{if(e&&rh(e)&&Ri(e)){const{loadingDelay:t}=Jt();let n;return typeof window!="undefined"&&Mt()!=null&&t?n=window.setTimeout(()=>ai.set(!0),t):ai.set(!0),Il(e).then(()=>{dr.set(e)}).finally(()=>{clearTimeout(n),ai.set(!1)})}return dr.set(e)},on=_h(mh({},dr),{set:gh}),Or=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var bh=Object.defineProperty,cr=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,rs=(e,t,n)=>t in e?bh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,po=(e,t)=>{for(var n in t||(t={}))Ll.call(t,n)&&rs(e,n,t[n]);if(cr)for(var n of cr(t))Fl.call(t,n)&&rs(e,n,t[n]);return e},sn=(e,t)=>{var n={};for(var r in e)Ll.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cr)for(var r of cr(e))t.indexOf(r)<0&&Fl.call(e,r)&&(n[r]=e[r]);return n};const Pn=(e,t)=>{const{formats:n}=Jt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vh=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Pn("number",r)),new Intl.NumberFormat(n,i)}),yh=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Pn("date",r):Object.keys(i).length===0&&(i=Pn("date","short")),new Intl.DateTimeFormat(n,i)}),wh=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Pn("time",r):Object.keys(i).length===0&&(i=Pn("time","short")),new Intl.DateTimeFormat(n,i)}),Ch=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return vh(po({locale:n},r))},Eh=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return yh(po({locale:n},r))},xh=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return wh(po({locale:n},r))},Ah=Or((e,t=Mt())=>new Jc(e,t,Jt().formats,{ignoreTag:Jt().ignoreTag})),Th=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Mt(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Bl(e,l);if(!d)d=(o=(i=(r=(n=Jt()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Ah(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},Ph=(e,t)=>xh(t).format(e),Sh=(e,t)=>Eh(t).format(e),kh=(e,t)=>Ch(t).format(e),Dh=(e,t=Mt())=>Bl(e,t),Hl=rn([on,Wn],()=>Th);rn([on],()=>Ph);rn([on],()=>Sh);rn([on],()=>kh);rn([on,Wn],()=>Dh);function hr(e,t){Ol(e,t)}function Rl(e){on.set(e)}function ot(e){return typeof e=="function"}function zl(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var li=zl(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
16
+ `,Kt.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[v]||d.options.other}if(!A)throw new rs(d.value,h,Object.keys(d.options),s);a.push.apply(a,ir(A.value,t,n,r,i,h-(d.offset||0)));continue}}return Kc(a)}function Qc(e,t){return t?ge(ge(ge({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ge(ge({},e[r]),t[r]||{}),n},{})):e}function eh(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Qc(e[r],t[r]),n},ge({},e)):e}function si(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function th(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.number),strategy:ii.variadic}),getDateTimeFormat:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.dateTime),strategy:ii.variadic}),getPluralRules:ri(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Vt([void 0],n,!1)))},{cache:si(e.pluralRules),strategy:ii.variadic})}}var nh=function(){function e(t,n,r,i){n===void 0&&(n=e.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 d=u.reduce(function(c,h){return!c.length||h.type!==He.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return ir(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=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=hc(s,["formatters"]);this.ast=e.__parse(t,ge(ge({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=eh(e.formats,r),this.formatters=i&&i.formatters||th(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=qc,e.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"}}},e}();function rh(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const mt={},ih=(e,t,n)=>n&&(t in mt||(mt[t]={}),e in mt[t]||(mt[t][e]=n),n),Il=(e,t)=>{if(t==null)return;if(t in mt&&e in mt[t])return mt[t][e];const n=Mr(t);for(let r=0;r<n.length;r++){const i=n[r],o=sh(i,e);if(o)return ih(e,t,o)}};let _o;const Wn=Dr({});function oh(e){return _o[e]||null}function Ll(e){return e in _o}function sh(e,t){if(!Ll(e))return null;const n=oh(e);return rh(n,t)}function ah(e){if(e==null)return;const t=Mr(e);for(let n=0;n<t.length;n++){const r=t[n];if(Ll(r))return r}}function Fl(e,...t){delete mt[e],Wn.update(n=>(n[e]=cc.all([n[e]||{},...t]),n))}rn([Wn],([e])=>Object.keys(e));Wn.subscribe(e=>_o=e);const or={};function lh(e,t){or[e].delete(t),or[e].size===0&&delete or[e]}function Hl(e){return or[e]}function uh(e){return Mr(e).map(t=>{const n=Hl(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function zi(e){return e==null?!1:Mr(e).some(t=>{var n;return(n=Hl(t))==null?void 0:n.size})}function dh(e,t){return Promise.all(t.map(r=>(lh(e,r),r().then(i=>i.default||i)))).then(r=>Fl(e,...r))}const dn={};function Rl(e){if(!zi(e))return e in dn?dn[e]:Promise.resolve();const t=uh(e);return dn[e]=Promise.all(t.map(([n,r])=>dh(n,r))).then(()=>{if(zi(e))return Rl(e);delete dn[e]}),dn[e]}const ch={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"}}},hh={fallbackLocale:null,loadingDelay:200,formats:ch,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},fh=hh;function Jt(){return fh}const ai=Dr(!1);var ph=Object.defineProperty,mh=Object.defineProperties,_h=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,gh=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,os=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vh=(e,t)=>{for(var n in t||(t={}))gh.call(t,n)&&os(e,n,t[n]);if(is)for(var n of is(t))bh.call(t,n)&&os(e,n,t[n]);return e},yh=(e,t)=>mh(e,_h(t));let Ui;const dr=Dr(null);function ss(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Mr(e,t=Jt().fallbackLocale){const n=ss(e);return t?[...new Set([...n,...ss(t)])]:n}function Mt(){return Ui!=null?Ui:void 0}dr.subscribe(e=>{Ui=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const wh=e=>{if(e&&ah(e)&&zi(e)){const{loadingDelay:t}=Jt();let n;return typeof window!="undefined"&&Mt()!=null&&t?n=window.setTimeout(()=>ai.set(!0),t):ai.set(!0),Rl(e).then(()=>{dr.set(e)}).finally(()=>{clearTimeout(n),ai.set(!1)})}return dr.set(e)},on=yh(vh({},dr),{set:wh}),Or=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var Ch=Object.defineProperty,cr=Object.getOwnPropertySymbols,zl=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable,as=(e,t,n)=>t in e?Ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,go=(e,t)=>{for(var n in t||(t={}))zl.call(t,n)&&as(e,n,t[n]);if(cr)for(var n of cr(t))Ul.call(t,n)&&as(e,n,t[n]);return e},sn=(e,t)=>{var n={};for(var r in e)zl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cr)for(var r of cr(e))t.indexOf(r)<0&&Ul.call(e,r)&&(n[r]=e[r]);return n};const Pn=(e,t)=>{const{formats:n}=Jt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Eh=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Pn("number",r)),new Intl.NumberFormat(n,i)}),xh=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Pn("date",r):Object.keys(i).length===0&&(i=Pn("date","short")),new Intl.DateTimeFormat(n,i)}),Ah=Or(e=>{var t=e,{locale:n,format:r}=t,i=sn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Pn("time",r):Object.keys(i).length===0&&(i=Pn("time","short")),new Intl.DateTimeFormat(n,i)}),Th=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return Eh(go({locale:n},r))},Ph=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return xh(go({locale:n},r))},Sh=(e={})=>{var t=e,{locale:n=Mt()}=t,r=sn(t,["locale"]);return Ah(go({locale:n},r))},kh=Or((e,t=Mt())=>new nh(e,t,Jt().formats,{ignoreTag:Jt().ignoreTag})),Dh=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Mt(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Il(e,l);if(!d)d=(o=(i=(r=(n=Jt()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=kh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},Bh=(e,t)=>Sh(t).format(e),Mh=(e,t)=>Ph(t).format(e),Oh=(e,t)=>Th(t).format(e),Nh=(e,t=Mt())=>Il(e,t),$l=rn([on,Wn],()=>Dh);rn([on],()=>Bh);rn([on],()=>Mh);rn([on],()=>Oh);rn([on,Wn],()=>Nh);function hr(e,t){Fl(e,t)}function Wl(e){on.set(e)}function ot(e){return typeof e=="function"}function Vl(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var li=Vl(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
17
17
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Ui(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Nr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Bi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){t={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(ot(d))try{d()}catch(_){o=_ instanceof li?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Bi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{is(b)}catch(_){o=o!=null?o:[],_ instanceof li?o=Vt(Vt([],Mi(o)),Mi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new li(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)is(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ui(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ui(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ul=Nr.EMPTY;function $l(e){return e instanceof Nr||e&&"closed"in e&&ot(e.remove)&&ot(e.add)&&ot(e.unsubscribe)}function is(e){ot(e)?e():e.unsubscribe()}var Bh={Promise:void 0},Mh={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Vt([e,t],Mi(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Oh(e){Mh.setTimeout(function(){throw e})}function os(){}function sr(e){e()}var Wl=function(e){ut(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,$l(n)&&n.add(r)):r.destination=Lh,r}return t.create=function(n,r,i){return new $i(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Nr),Nh=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Zn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Zn(r)}else Zn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Zn(n)}},e}(),$i=function(e){ut(t,e);function t(n,r,i){var o=e.call(this)||this,s;return ot(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new Nh(s),o}return t}(Wl);function Zn(e){Oh(e)}function Ih(e){throw e}var Lh={closed:!0,next:os,error:Ih,complete:os},Fh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hh(e){return e}function Rh(e){return e.length===0?Hh:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var ss=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=Uh(t)?t:new $i(t,n,r);return sr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=as(n),new n(function(i,o){var s=new $i({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Fh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Rh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=as(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function as(e){var t;return(t=e!=null?e:Bh.Promise)!==null&&t!==void 0?t:Promise}function zh(e){return e&&ot(e.next)&&ot(e.error)&&ot(e.complete)}function Uh(e){return e&&e instanceof Wl||zh(e)&&$l(e)}var $h=zl(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vl=function(e){ut(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new ls(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new $h},t.prototype.next=function(n){var r=this;sr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Bi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;sr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;sr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Ul:(this.currentObservers=null,a.push(n),new Nr(function(){r.currentObservers=null,Ui(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new ss;return n.source=this,n},t.create=function(n,r){return new ls(n,r)},t}(ss),ls=function(e){ut(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Ul},t}(Vl),jl={now:function(){return(jl.delegate||Date).now()},delegate:void 0},Wh=function(e){ut(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=jl);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!n.closed;l+=o?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},t}(Vl);const us=[],ds={},Vh=(e,t=0)=>{if(us.indexOf(e)==-1){const n=new Wh(t);ds[e]=n,us.push(e)}return ds[e]};window.emWidgets={topic:Vh};const Gl=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),fr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement"}}};function Ir(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Lr(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Fr(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function lt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Le(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function qe(e){Le(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||pr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function jh(e,t){Le(2,arguments);var n=qe(e),r=lt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Gh(e,t){Le(2,arguments);var n=qe(e).getTime(),r=lt(t);return new Date(n+r)}var Yh={};function Hr(){return Yh}function qh(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xh(e){return Le(1,arguments),e instanceof Date||pr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zh(e){if(Le(1,arguments),!Xh(e)&&typeof e!="number")return!1;var t=qe(e);return!isNaN(Number(t))}function Kh(e,t){Le(2,arguments);var n=lt(t);return Gh(e,-n)}var Jh=864e5;function Qh(e){Le(1,arguments);var t=qe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Jh)+1}function mr(e){Le(1,arguments);var t=1,n=qe(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Yl(e){Le(1,arguments);var t=qe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=mr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=mr(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function ef(e){Le(1,arguments);var t=Yl(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=mr(n);return r}var tf=6048e5;function nf(e){Le(1,arguments);var t=qe(e),n=mr(t).getTime()-ef(t).getTime();return Math.round(n/tf)+1}function _r(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Hr(),c=lt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=qe(e),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function ql(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=qe(e),c=d.getUTCFullYear(),h=Hr(),f=lt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=_r(b,t),y=new Date(0);y.setUTCFullYear(c,0,f),y.setUTCHours(0,0,0,0);var w=_r(y,t);return d.getTime()>=_.getTime()?c+1:d.getTime()>=w.getTime()?c:c-1}function rf(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Hr(),c=lt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=ql(e,t),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=_r(f,t);return b}var of=6048e5;function sf(e,t){Le(1,arguments);var n=qe(e),r=_r(n,t).getTime()-rf(n,t).getTime();return Math.round(r/of)+1}function we(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ft={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return we(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):we(r+1,2)},d:function(t,n){return we(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return we(t.getUTCHours()%12||12,n.length)},H:function(t,n){return we(t.getUTCHours(),n.length)},m:function(t,n){return we(t.getUTCMinutes(),n.length)},s:function(t,n){return we(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return we(o,n.length)}},Rt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},af={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ft.y(t,n)},Y:function(t,n,r,i){var o=ql(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return we(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):we(s,n.length)},R:function(t,n){var r=Yl(t);return we(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return we(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return we(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return we(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return ft.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return we(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=sf(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):we(o,n.length)},I:function(t,n,r){var i=nf(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):we(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ft.d(t,n)},D:function(t,n,r){var i=Qh(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):we(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return we(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return we(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return we(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Rt.noon:i===0?o=Rt.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Rt.evening:i>=12?o=Rt.afternoon:i>=4?o=Rt.morning:o=Rt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ft.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ft.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ft.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ft.s(t,n)},S:function(t,n){return ft.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return hs(s);case"XXXX":case"XX":return At(s);case"XXXXX":case"XXX":default:return At(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return hs(s);case"xxxx":case"xx":return At(s);case"xxxxx":case"xxx":default:return At(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+cs(s,":");case"OOOO":default:return"GMT"+At(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+cs(s,":");case"zzzz":default:return"GMT"+At(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return we(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return we(s,n.length)}};function cs(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+we(o,2)}function hs(e,t){if(e%60===0){var n=e>0?"-":"+";return n+we(Math.abs(e)/60,2)}return At(e,t)}function At(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=we(Math.floor(i/60),2),s=we(i%60,2);return r+o+n+s}var fs=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Xl=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},lf=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return fs(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",fs(i,n)).replace("{{time}}",Xl(o,n))},uf={p:Xl,P:lf},df=["D","DD"],cf=["YY","YYYY"];function hf(e){return df.indexOf(e)!==-1}function ff(e){return cf.indexOf(e)!==-1}function ps(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var pf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mf=function(t,n,r){var i,o=pf[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ui(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var _f={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vf={date:ui({formats:_f,defaultWidth:"full"}),time:ui({formats:gf,defaultWidth:"full"}),dateTime:ui({formats:bf,defaultWidth:"full"})},yf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wf=function(t,n,r,i){return yf[t]};function cn(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Cf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ef={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Af={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Pf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Sf=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},kf={ordinalNumber:Sf,era:cn({values:Cf,defaultWidth:"wide"}),quarter:cn({values:Ef,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:cn({values:xf,defaultWidth:"wide"}),day:cn({values:Af,defaultWidth:"wide"}),dayPeriod:cn({values:Tf,defaultWidth:"wide",formattingValues:Pf,defaultFormattingWidth:"wide"})};function hn(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Bf(a,function(c){return c.test(s)}):Df(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Df(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Bf(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Mf(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Of=/^(\d+)(th|st|nd|rd)?/i,Nf=/\d+/i,If={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Lf={any:[/^b/i,/^(a|c)/i]},Ff={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hf={any:[/1/i,/2/i,/3/i,/4/i]},Rf={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Uf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$f={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Wf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Vf={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},jf={ordinalNumber:Mf({matchPattern:Of,parsePattern:Nf,valueCallback:function(t){return parseInt(t,10)}}),era:hn({matchPatterns:If,defaultMatchWidth:"wide",parsePatterns:Lf,defaultParseWidth:"any"}),quarter:hn({matchPatterns:Ff,defaultMatchWidth:"wide",parsePatterns:Hf,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:hn({matchPatterns:Rf,defaultMatchWidth:"wide",parsePatterns:zf,defaultParseWidth:"any"}),day:hn({matchPatterns:Uf,defaultMatchWidth:"wide",parsePatterns:$f,defaultParseWidth:"any"}),dayPeriod:hn({matchPatterns:Wf,defaultMatchWidth:"any",parsePatterns:Vf,defaultParseWidth:"any"})},Gf={code:"en-US",formatDistance:mf,formatLong:vf,formatRelative:wf,localize:kf,match:jf,options:{weekStartsOn:0,firstWeekContainsDate:1}},Yf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xf=/^'([^]*?)'?$/,Zf=/''/g,Kf=/[a-zA-Z]/;function wn(e,t,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,y;Le(2,arguments);var w=String(t),g=Hr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:Gf,v=lt((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=lt((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=qe(e);if(!Zh(x))throw new RangeError("Invalid time value");var L=qh(x),W=Kh(x,L),G={firstWeekContainsDate:v,weekStartsOn:k,locale:A,_originalDate:x},F=w.match(qf).map(function(M){var R=M[0];if(R==="p"||R==="P"){var K=uf[R];return K(M,A.formatLong)}return M}).join("").match(Yf).map(function(M){if(M==="''")return"'";var R=M[0];if(R==="'")return Jf(M);var K=af[R];if(K)return ff(M)&&ps(M,t,String(e)),hf(M)&&ps(M,t,String(e)),K(W,M,A.localize,G);if(R.match(Kf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return M}).join("");return F}function Jf(e){var t=e.match(Xf);return t?t[1].replace(Zf,"'"):e}function ms(e,t){Le(2,arguments);var n=lt(t);return jh(e,-n)}/**
18
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function $i(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Nr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Mi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){t={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(ot(d))try{d()}catch(_){o=_ instanceof li?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Mi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{ls(b)}catch(_){o=o!=null?o:[],_ instanceof li?o=Vt(Vt([],Oi(o)),Oi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new li(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ls(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&$i(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&$i(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),jl=Nr.EMPTY;function Gl(e){return e instanceof Nr||e&&"closed"in e&&ot(e.remove)&&ot(e.add)&&ot(e.unsubscribe)}function ls(e){ot(e)?e():e.unsubscribe()}var Yl={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ih={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Vt([e,t],Oi(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Lh(e){Ih.setTimeout(function(){throw e})}function us(){}function sr(e){e()}var ql=function(e){ut(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Gl(n)&&n.add(r)):r.destination=zh,r}return t.create=function(n,r,i){return new Wi(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Nr),Fh=Function.prototype.bind;function ui(e,t){return Fh.call(e,t)}var Hh=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Zn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Zn(r)}else Zn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Zn(n)}},e}(),Wi=function(e){ut(t,e);function t(n,r,i){var o=e.call(this)||this,s;if(ot(n)||!n)s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var a;o&&Yl.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&ui(n.next,a),error:n.error&&ui(n.error,a),complete:n.complete&&ui(n.complete,a)}):s=n}return o.destination=new Hh(s),o}return t}(ql);function Zn(e){Lh(e)}function Rh(e){throw e}var zh={closed:!0,next:us,error:Rh,complete:us},Uh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $h(e){return e}function Wh(e){return e.length===0?$h:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var ds=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=jh(t)?t:new Wi(t,n,r);return sr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=cs(n),new n(function(i,o){var s=new Wi({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Uh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=cs(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function cs(e){var t;return(t=e!=null?e:Yl.Promise)!==null&&t!==void 0?t:Promise}function Vh(e){return e&&ot(e.next)&&ot(e.error)&&ot(e.complete)}function jh(e){return e&&e instanceof ql||Vh(e)&&Gl(e)}var Gh=Vl(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xl=function(e){ut(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new hs(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Gh},t.prototype.next=function(n){var r=this;sr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Mi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;sr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;sr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?jl:(this.currentObservers=null,a.push(n),new Nr(function(){r.currentObservers=null,$i(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new ds;return n.source=this,n},t.create=function(n,r){return new hs(n,r)},t}(ds),hs=function(e){ut(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:jl},t}(Xl),Zl={now:function(){return(Zl.delegate||Date).now()},delegate:void 0},Yh=function(e){ut(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Zl);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!n.closed;l+=o?1:2)n.next(a[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},t}(Xl);const fs=[],ps={},qh=(e,t=0)=>{if(fs.indexOf(e)==-1){const n=new Yh(t);ps[e]=n,fs.push(e)}return ps[e]};window.emWidgets={topic:qh};const Kl=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),fr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement"}}};function Ir(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Lr(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Fr(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function lt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Le(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function qe(e){Le(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||pr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Xh(e,t){Le(2,arguments);var n=qe(e),r=lt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Zh(e,t){Le(2,arguments);var n=qe(e).getTime(),r=lt(t);return new Date(n+r)}var Kh={};function Hr(){return Kh}function Jh(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Qh(e){return Le(1,arguments),e instanceof Date||pr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ef(e){if(Le(1,arguments),!Qh(e)&&typeof e!="number")return!1;var t=qe(e);return!isNaN(Number(t))}function tf(e,t){Le(2,arguments);var n=lt(t);return Zh(e,-n)}var nf=864e5;function rf(e){Le(1,arguments);var t=qe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/nf)+1}function mr(e){Le(1,arguments);var t=1,n=qe(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Jl(e){Le(1,arguments);var t=qe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=mr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=mr(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function of(e){Le(1,arguments);var t=Jl(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=mr(n);return r}var sf=6048e5;function af(e){Le(1,arguments);var t=qe(e),n=mr(t).getTime()-of(t).getTime();return Math.round(n/sf)+1}function _r(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Hr(),c=lt((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=qe(e),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function Ql(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=qe(e),c=d.getUTCFullYear(),h=Hr(),f=lt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=_r(b,t),y=new Date(0);y.setUTCFullYear(c,0,f),y.setUTCHours(0,0,0,0);var w=_r(y,t);return d.getTime()>=_.getTime()?c+1:d.getTime()>=w.getTime()?c:c-1}function lf(e,t){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Hr(),c=lt((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Ql(e,t),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=_r(f,t);return b}var uf=6048e5;function df(e,t){Le(1,arguments);var n=qe(e),r=_r(n,t).getTime()-lf(n,t).getTime();return Math.round(r/uf)+1}function we(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ft={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return we(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):we(r+1,2)},d:function(t,n){return we(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return we(t.getUTCHours()%12||12,n.length)},H:function(t,n){return we(t.getUTCHours(),n.length)},m:function(t,n){return we(t.getUTCMinutes(),n.length)},s:function(t,n){return we(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return we(o,n.length)}},Rt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cf={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ft.y(t,n)},Y:function(t,n,r,i){var o=Ql(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return we(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):we(s,n.length)},R:function(t,n){var r=Jl(t);return we(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return we(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return we(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return we(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return ft.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return we(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=df(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):we(o,n.length)},I:function(t,n,r){var i=af(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):we(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ft.d(t,n)},D:function(t,n,r){var i=rf(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):we(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return we(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return we(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return we(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Rt.noon:i===0?o=Rt.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Rt.evening:i>=12?o=Rt.afternoon:i>=4?o=Rt.morning:o=Rt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ft.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ft.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ft.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ft.s(t,n)},S:function(t,n){return ft.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return _s(s);case"XXXX":case"XX":return At(s);case"XXXXX":case"XXX":default:return At(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return _s(s);case"xxxx":case"xx":return At(s);case"xxxxx":case"xxx":default:return At(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ms(s,":");case"OOOO":default:return"GMT"+At(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ms(s,":");case"zzzz":default:return"GMT"+At(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return we(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return we(s,n.length)}};function ms(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+we(o,2)}function _s(e,t){if(e%60===0){var n=e>0?"-":"+";return n+we(Math.abs(e)/60,2)}return At(e,t)}function At(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=we(Math.floor(i/60),2),s=we(i%60,2);return r+o+n+s}var gs=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},eu=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},hf=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return gs(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",gs(i,n)).replace("{{time}}",eu(o,n))},ff={p:eu,P:hf},pf=["D","DD"],mf=["YY","YYYY"];function _f(e){return pf.indexOf(e)!==-1}function gf(e){return mf.indexOf(e)!==-1}function bs(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var bf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vf=function(t,n,r){var i,o=bf[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function di(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var yf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ef={date:di({formats:yf,defaultWidth:"full"}),time:di({formats:wf,defaultWidth:"full"}),dateTime:di({formats:Cf,defaultWidth:"full"})},xf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Af=function(t,n,r,i){return xf[t]};function cn(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Tf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Sf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Df={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Bf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Mf=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Of={ordinalNumber:Mf,era:cn({values:Tf,defaultWidth:"wide"}),quarter:cn({values:Pf,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:cn({values:Sf,defaultWidth:"wide"}),day:cn({values:kf,defaultWidth:"wide"}),dayPeriod:cn({values:Df,defaultWidth:"wide",formattingValues:Bf,defaultFormattingWidth:"wide"})};function hn(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?If(a,function(c){return c.test(s)}):Nf(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Nf(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function If(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Lf(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Ff=/^(\d+)(th|st|nd|rd)?/i,Hf=/\d+/i,Rf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zf={any:[/^b/i,/^(a|c)/i]},Uf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$f={any:[/1/i,/2/i,/3/i,/4/i]},Wf={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qf={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xf={ordinalNumber:Lf({matchPattern:Ff,parsePattern:Hf,valueCallback:function(t){return parseInt(t,10)}}),era:hn({matchPatterns:Rf,defaultMatchWidth:"wide",parsePatterns:zf,defaultParseWidth:"any"}),quarter:hn({matchPatterns:Uf,defaultMatchWidth:"wide",parsePatterns:$f,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:hn({matchPatterns:Wf,defaultMatchWidth:"wide",parsePatterns:Vf,defaultParseWidth:"any"}),day:hn({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Gf,defaultParseWidth:"any"}),dayPeriod:hn({matchPatterns:Yf,defaultMatchWidth:"any",parsePatterns:qf,defaultParseWidth:"any"})},Zf={code:"en-US",formatDistance:vf,formatLong:Ef,formatRelative:Af,localize:Of,match:Xf,options:{weekStartsOn:0,firstWeekContainsDate:1}},Kf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qf=/^'([^]*?)'?$/,ep=/''/g,tp=/[a-zA-Z]/;function wn(e,t,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,y;Le(2,arguments);var w=String(t),g=Hr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:Zf,v=lt((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=lt((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=qe(e);if(!ef(x))throw new RangeError("Invalid time value");var L=Jh(x),W=tf(x,L),G={firstWeekContainsDate:v,weekStartsOn:k,locale:A,_originalDate:x},F=w.match(Jf).map(function(M){var R=M[0];if(R==="p"||R==="P"){var K=ff[R];return K(M,A.formatLong)}return M}).join("").match(Kf).map(function(M){if(M==="''")return"'";var R=M[0];if(R==="'")return np(M);var K=cf[R];if(K)return gf(M)&&bs(M,t,String(e)),_f(M)&&bs(M,t,String(e)),K(W,M,A.localize,G);if(R.match(tp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return M}).join("");return F}function np(e){var t=e.match(Qf);return t?t[1].replace(ep,"'"):e}function vs(e,t){Le(2,arguments);var n=lt(t);return Xh(e,-n)}/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
22
- */function Ke(e,t="24.5.12"){Object.defineProperty(e,"version",{get(){return t}});const n=customElements.get(e.is);if(!n)customElements.define(e.is,e);else{const r=n.version;r&&e.version&&r===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}}/**
22
+ */function Ke(e,t="24.5.10"){Object.defineProperty(e,"version",{get(){return t}});const n=customElements.get(e.is);if(!n)customElements.define(e.is,e);else{const r=n.version;r&&e.version&&r===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}}/**
23
23
  * @license
24
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
25
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
26
- */class Qf extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Ke(Qf);/**
26
+ */class rp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Ke(rp);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const ar=globalThis,mo=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_o=Symbol(),_s=new WeakMap;let go=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==_o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(mo&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=_s.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_s.set(n,t))}return t}toString(){return this.cssText}};const ep=e=>new go(typeof e=="string"?e:e+"",void 0,_o),pe=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((r,i,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.")})(i)+e[o+1],e[0]);return new go(n,e,_o)},Zl=(e,t)=>{if(mo)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=ar.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},gs=mo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ep(n)})(e):e;/**
30
+ */const ar=globalThis,bo=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vo=Symbol(),ys=new WeakMap;let yo=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==vo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(bo&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=ys.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ys.set(n,t))}return t}toString(){return this.cssText}};const ip=e=>new yo(typeof e=="string"?e:e+"",void 0,vo),pe=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((r,i,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.")})(i)+e[o+1],e[0]);return new yo(n,e,vo)},tu=(e,t)=>{if(bo)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=ar.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},ws=bo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ip(n)})(e):e;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:tp,defineProperty:np,getOwnPropertyDescriptor:rp,getOwnPropertyNames:ip,getOwnPropertySymbols:op,getPrototypeOf:sp}=Object,_t=globalThis,bs=_t.trustedTypes,ap=bs?bs.emptyScript:"",di=_t.reactiveElementPolyfillSupport,Cn=(e,t)=>e,Wi={toAttribute(e,t){switch(t){case Boolean:e=e?ap:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(r){n=null}}return n}},Kl=(e,t)=>!tp(e,t),vs={attribute:!0,type:String,converter:Wi,reflect:!1,hasChanged:Kl};var Qa,el;(Qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(el=_t.litPropertyMetadata)!=null||(_t.litPropertyMetadata=new WeakMap);class $t extends HTMLElement{static addInitializer(t){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=vs){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&np(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){var s;const{get:i,set:o}=(s=rp(this.prototype,t))!=null?s:{get(){return this[n]},set(a){this[n]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){const l=i==null?void 0:i.call(this);o.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var n;return(n=this.elementProperties.get(t))!=null?n:vs}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;const t=sp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){const n=this.properties,r=[...ip(n),...op(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(gs(i))}else t!==void 0&&n.push(gs(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n,r;((n=this._$EO)!=null?n:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var n;const t=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return Zl(t,this.constructor.elementStyles),t}connectedCallback(){var t,n;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Wi).toAttribute(n,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,n){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Wi;this._$Em=i,this[i]=a.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(t,n,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Kl)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){var i;this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}_$ET(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;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 t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(n)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}}var tl;$t.elementStyles=[],$t.shadowRootOptions={mode:"open"},$t[Cn("elementProperties")]=new Map,$t[Cn("finalized")]=new Map,di==null||di({ReactiveElement:$t}),((tl=_t.reactiveElementVersions)!=null?tl:_t.reactiveElementVersions=[]).push("2.0.4");/**
34
+ */const{is:op,defineProperty:sp,getOwnPropertyDescriptor:ap,getOwnPropertyNames:lp,getOwnPropertySymbols:up,getPrototypeOf:dp}=Object,_t=globalThis,Cs=_t.trustedTypes,cp=Cs?Cs.emptyScript:"",ci=_t.reactiveElementPolyfillSupport,Cn=(e,t)=>e,Vi={toAttribute(e,t){switch(t){case Boolean:e=e?cp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(r){n=null}}return n}},nu=(e,t)=>!op(e,t),Es={attribute:!0,type:String,converter:Vi,reflect:!1,hasChanged:nu};var rl,il;(rl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(il=_t.litPropertyMetadata)!=null||(_t.litPropertyMetadata=new WeakMap);class $t extends HTMLElement{static addInitializer(t){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=Es){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&sp(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){var s;const{get:i,set:o}=(s=ap(this.prototype,t))!=null?s:{get(){return this[n]},set(a){this[n]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){const l=i==null?void 0:i.call(this);o.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var n;return(n=this.elementProperties.get(t))!=null?n:Es}static _$Ei(){if(this.hasOwnProperty(Cn("elementProperties")))return;const t=dp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn("properties"))){const n=this.properties,r=[...lp(n),...up(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(ws(i))}else t!==void 0&&n.push(ws(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n,r;((n=this._$EO)!=null?n:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var n;const t=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return tu(t,this.constructor.elementStyles),t}connectedCallback(){var t,n;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Vi).toAttribute(n,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,n){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Vi;this._$Em=i,this[i]=a.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(t,n,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:nu)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){var i;this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}_$ET(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;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 t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(n)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}}var ol;$t.elementStyles=[],$t.shadowRootOptions={mode:"open"},$t[Cn("elementProperties")]=new Map,$t[Cn("finalized")]=new Map,ci==null||ci({ReactiveElement:$t}),((ol=_t.reactiveElementVersions)!=null?ol:_t.reactiveElementVersions=[]).push("2.0.4");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const En=globalThis,gr=En.trustedTypes,ys=gr?gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Jl="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ql="?"+pt,lp=`<${Ql}>`,Bt=document,Sn=()=>Bt.createComment(""),kn=e=>e===null||typeof e!="object"&&typeof e!="function",bo=Array.isArray,up=e=>bo(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",ci=`[
39
- \f\r]`,fn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ws=/-->/g,Cs=/>/g,xt=RegExp(`>|${ci}(?:([^\\s"'>=/]+)(${ci}*=${ci}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Es=/'/g,xs=/"/g,eu=/^(?:script|style|textarea|title)$/i,Qt=Symbol.for("lit-noChange"),Ne=Symbol.for("lit-nothing"),As=new WeakMap,Pt=Bt.createTreeWalker(Bt,129);function tu(e,t){if(!bo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(t):t}const dp=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",s=fn;for(let a=0;a<n;a++){const l=e[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===fn?d[1]==="!--"?s=ws:d[1]!==void 0?s=Cs:d[2]!==void 0?(eu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=xt):d[3]!==void 0&&(s=xt):s===xt?d[0]===">"?(s=i!=null?i:fn,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?xt:d[3]==='"'?xs:Es):s===xs||s===Es?s=xt:s===ws||s===Cs?s=fn:(s=xt,i=void 0);const f=s===xt&&e[a+1].startsWith("/>")?" ":"";o+=s===fn?l+lp:c>=0?(r.push(u),l.slice(0,c)+Jl+l.slice(c)+pt+f):l+pt+(c===-2?a:f)}return[tu(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class Dn{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,s=0;const a=t.length-1,l=this.parts,[u,d]=dp(t,n);if(this.el=Dn.createElement(u,r),Pt.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=Pt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(Jl)){const h=d[s++],f=i.getAttribute(c).split(pt),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?hp:b[1]==="?"?fp:b[1]==="@"?pp:Rr}),i.removeAttribute(c)}else c.startsWith(pt)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(eu.test(i.tagName)){const c=i.textContent.split(pt),h=c.length-1;if(h>0){i.textContent=gr?gr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Sn()),Pt.nextNode(),l.push({type:2,index:++o});i.append(c[h],Sn())}}}else if(i.nodeType===8)if(i.data===Ql)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(pt,c+1))!==-1;)l.push({type:7,index:o}),c+=pt.length-1}o++}}static createElement(t,n){const r=Bt.createElement("template");return r.innerHTML=t,r}}function en(e,t,n=e,r){var s,a,l;if(t===Qt)return t;let i=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const o=kn(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,n,r)),r!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[r]=i:n._$Cl=i),i!==void 0&&(t=en(e,i._$AS(e,t.values),i,r)),t}class cp{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:n},parts:r}=this._$AD,i=((u=t==null?void 0:t.creationScope)!=null?u:Bt).importNode(n,!0);Pt.currentNode=i;let o=Pt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Vn(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new mp(o,this,t)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=Pt.nextNode(),s++)}return Pt.currentNode=Bt,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}}class Vn{get _$AU(){var t,n;return(n=(t=this._$AM)==null?void 0:t._$AU)!=null?n:this._$Cv}constructor(t,n,r,i){var o;this.type=2,this._$AH=Ne,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=en(this,t,n),kn(t)?t===Ne||t==null||t===""?(this._$AH!==Ne&&this._$AR(),this._$AH=Ne):t!==this._$AH&&t!==Qt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):up(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ne&&kn(this._$AH)?this._$AA.nextSibling.data=t:this.T(Bt.createTextNode(t)),this._$AH=t}$(t){var o;const{values:n,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Dn.createElement(tu(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(n);else{const s=new cp(i,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(t){let n=As.get(t.strings);return n===void 0&&As.set(t.strings,n=new Dn(t)),n}k(t){bo(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new Vn(this.O(Sn()),this.O(Sn()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class Rr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=Ne,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ne}_$AI(t,n=this,r,i){const o=this.strings;let s=!1;if(o===void 0)t=en(this,t,n,0),s=!kn(t)||t!==this._$AH&&t!==Qt,s&&(this._$AH=t);else{const a=t;let l,u;for(t=o[0],l=0;l<o.length-1;l++)u=en(this,a[r+l],n,l),u===Qt&&(u=this._$AH[l]),s||(s=!kn(u)||u!==this._$AH[l]),u===Ne?t=Ne:t!==Ne&&(t+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class hp extends Rr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ne?void 0:t}}class fp extends Rr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ne)}}class pp extends Rr{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){var s;if((t=(s=en(this,t,n,0))!=null?s:Ne)===Qt)return;const r=this._$AH,i=t===Ne&&r!==Ne||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==Ne&&(r===Ne||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,r;typeof this._$AH=="function"?this._$AH.call((r=(n=this.options)==null?void 0:n.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}}class mp{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){en(this,t)}}const hi=En.litHtmlPolyfillSupport;var nl;hi==null||hi(Dn,Vn),((nl=En.litHtmlVersions)!=null?nl:En.litHtmlVersions=[]).push("3.2.1");const _p=(e,t,n)=>{var o,s;const r=(o=n==null?void 0:n.renderBefore)!=null?o:t;let i=r._$litPart$;if(i===void 0){const a=(s=n==null?void 0:n.renderBefore)!=null?s:null;r._$litPart$=i=new Vn(t.insertBefore(Sn(),a),a,void 0,n!=null?n:{})}return i._$AI(e),i};/**
38
+ */const En=globalThis,gr=En.trustedTypes,xs=gr?gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,ru="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,iu="?"+pt,hp=`<${iu}>`,Bt=document,Sn=()=>Bt.createComment(""),kn=e=>e===null||typeof e!="object"&&typeof e!="function",wo=Array.isArray,fp=e=>wo(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",hi=`[
39
+ \f\r]`,fn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,As=/-->/g,Ts=/>/g,xt=RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ps=/'/g,Ss=/"/g,ou=/^(?:script|style|textarea|title)$/i,Qt=Symbol.for("lit-noChange"),Ne=Symbol.for("lit-nothing"),ks=new WeakMap,Pt=Bt.createTreeWalker(Bt,129);function su(e,t){if(!wo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return xs!==void 0?xs.createHTML(t):t}const pp=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",s=fn;for(let a=0;a<n;a++){const l=e[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===fn?d[1]==="!--"?s=As:d[1]!==void 0?s=Ts:d[2]!==void 0?(ou.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=xt):d[3]!==void 0&&(s=xt):s===xt?d[0]===">"?(s=i!=null?i:fn,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?xt:d[3]==='"'?Ss:Ps):s===Ss||s===Ps?s=xt:s===As||s===Ts?s=fn:(s=xt,i=void 0);const f=s===xt&&e[a+1].startsWith("/>")?" ":"";o+=s===fn?l+hp:c>=0?(r.push(u),l.slice(0,c)+ru+l.slice(c)+pt+f):l+pt+(c===-2?a:f)}return[su(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class Dn{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,s=0;const a=t.length-1,l=this.parts,[u,d]=pp(t,n);if(this.el=Dn.createElement(u,r),Pt.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=Pt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(ru)){const h=d[s++],f=i.getAttribute(c).split(pt),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?_p:b[1]==="?"?gp:b[1]==="@"?bp:Rr}),i.removeAttribute(c)}else c.startsWith(pt)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(ou.test(i.tagName)){const c=i.textContent.split(pt),h=c.length-1;if(h>0){i.textContent=gr?gr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Sn()),Pt.nextNode(),l.push({type:2,index:++o});i.append(c[h],Sn())}}}else if(i.nodeType===8)if(i.data===iu)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(pt,c+1))!==-1;)l.push({type:7,index:o}),c+=pt.length-1}o++}}static createElement(t,n){const r=Bt.createElement("template");return r.innerHTML=t,r}}function en(e,t,n=e,r){var s,a,l;if(t===Qt)return t;let i=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const o=kn(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,n,r)),r!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[r]=i:n._$Cl=i),i!==void 0&&(t=en(e,i._$AS(e,t.values),i,r)),t}class mp{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:n},parts:r}=this._$AD,i=((u=t==null?void 0:t.creationScope)!=null?u:Bt).importNode(n,!0);Pt.currentNode=i;let o=Pt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Vn(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new vp(o,this,t)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=Pt.nextNode(),s++)}return Pt.currentNode=Bt,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}}class Vn{get _$AU(){var t,n;return(n=(t=this._$AM)==null?void 0:t._$AU)!=null?n:this._$Cv}constructor(t,n,r,i){var o;this.type=2,this._$AH=Ne,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=en(this,t,n),kn(t)?t===Ne||t==null||t===""?(this._$AH!==Ne&&this._$AR(),this._$AH=Ne):t!==this._$AH&&t!==Qt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fp(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ne&&kn(this._$AH)?this._$AA.nextSibling.data=t:this.T(Bt.createTextNode(t)),this._$AH=t}$(t){var o;const{values:n,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Dn.createElement(su(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(n);else{const s=new mp(i,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(t){let n=ks.get(t.strings);return n===void 0&&ks.set(t.strings,n=new Dn(t)),n}k(t){wo(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new Vn(this.O(Sn()),this.O(Sn()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class Rr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=Ne,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ne}_$AI(t,n=this,r,i){const o=this.strings;let s=!1;if(o===void 0)t=en(this,t,n,0),s=!kn(t)||t!==this._$AH&&t!==Qt,s&&(this._$AH=t);else{const a=t;let l,u;for(t=o[0],l=0;l<o.length-1;l++)u=en(this,a[r+l],n,l),u===Qt&&(u=this._$AH[l]),s||(s=!kn(u)||u!==this._$AH[l]),u===Ne?t=Ne:t!==Ne&&(t+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class _p extends Rr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ne?void 0:t}}class gp extends Rr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ne)}}class bp extends Rr{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){var s;if((t=(s=en(this,t,n,0))!=null?s:Ne)===Qt)return;const r=this._$AH,i=t===Ne&&r!==Ne||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==Ne&&(r===Ne||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,r;typeof this._$AH=="function"?this._$AH.call((r=(n=this.options)==null?void 0:n.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}}class vp{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){en(this,t)}}const fi=En.litHtmlPolyfillSupport;var sl;fi==null||fi(Dn,Vn),((sl=En.litHtmlVersions)!=null?sl:En.litHtmlVersions=[]).push("3.2.1");const yp=(e,t,n)=>{var o,s;const r=(o=n==null?void 0:n.renderBefore)!=null?o:t;let i=r._$litPart$;if(i===void 0){const a=(s=n==null?void 0:n.renderBefore)!=null?s:null;r._$litPart$=i=new Vn(t.insertBefore(Sn(),a),a,void 0,n!=null?n:{})}return i._$AI(e),i};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */let jt=class extends $t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,r;const t=super.createRenderRoot();return(r=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_p(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Qt}};var rl;jt._$litElement$=!0,jt.finalized=!0,(rl=globalThis.litElementHydrateSupport)==null||rl.call(globalThis,{LitElement:jt});const fi=globalThis.litElementPolyfillSupport;fi==null||fi({LitElement:jt});var il;((il=globalThis.litElementVersions)!=null?il:globalThis.litElementVersions=[]).push("4.1.1");/**
44
+ */let jt=class extends $t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,r;const t=super.createRenderRoot();return(r=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=yp(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Qt}};var al;jt._$litElement$=!0,jt.finalized=!0,(al=globalThis.litElementHydrateSupport)==null||al.call(globalThis,{LitElement:jt});const pi=globalThis.litElementPolyfillSupport;pi==null||pi({LitElement:jt});var ll;((ll=globalThis.litElementVersions)!=null?ll:globalThis.litElementVersions=[]).push("4.1.1");/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const gp=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(n,r,i){super.attributeChangedCallback(n,r,i),n==="theme"&&this._set_theme(i)}};/**
48
+ */const wp=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(n,r,i){super.attributeChangedCallback(n,r,i),n==="theme"&&this._set_theme(i)}};/**
49
49
  * @license
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
- */const nu=[],Vi=new Set,vo=new Set;function ru(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function bp(e){return ru(customElements.get(e))}function vp(e=[]){return[e].flat(1/0).filter(t=>t instanceof go?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function iu(e,t){return(e||"").split(" ").some(n=>new RegExp(`^${n.split("*").join(".*")}$`,"u").test(t))}function ou(e){return e.map(t=>t.cssText).join(`
53
- `)}const br="vaadin-themable-mixin-style";function yp(e,t){const n=document.createElement("style");n.id=br,n.textContent=ou(e),t.content.appendChild(n)}function wp(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof jt)[...e.shadowRoot.querySelectorAll("style")].forEach(n=>n.remove()),Zl(e.shadowRoot,t.elementStyles);else{const n=e.shadowRoot.getElementById(br),r=t.prototype._template;n.textContent=r.content.getElementById(br).textContent}}function Cp(e){Vi.forEach(t=>{const n=t.deref();n instanceof e?wp(n):n||Vi.delete(t)})}function su(e){if(e.prototype instanceof jt)e.elementStyles=e.finalizeStyles(e.styles);else{const t=e.prototype._template;t.content.getElementById(br).textContent=ou(e.getStylesForThis())}vo.forEach(t=>{const n=customElements.get(t);n!==e&&n.prototype instanceof e&&su(n)})}function Ep(e,t){const n=e.__themes;return!n||!t?!1:n.some(r=>r.styles.some(i=>t.some(o=>o.cssText===i.cssText)))}function De(e,t,n={}){t=vp(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,n):nu.push({themeFor:e,styles:t,include:n.include,moduleId:n.moduleId}),e&&vo.forEach(r=>{if(iu(e,r)&&bp(r)){const i=customElements.get(r);Ep(i,t)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),su(i),Cp(i)}})}function ji(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():nu}function xp(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function au(e){const t=[];return e.include&&[].concat(e.include).forEach(n=>{const r=ji().find(i=>i.moduleId===n);r?t.push(...au(r),...r.styles):console.warn(`Included moduleId ${n} not found in style registry`)},e.styles),t}function Ap(e){const t=`${e}-default-theme`,n=ji().filter(r=>r.moduleId!==t&&iu(r.themeFor,e)).map(r=>un(Et({},r),{styles:[...au(r),...r.styles],includePriority:xp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return n.length>0?n:ji().filter(r=>r.moduleId===t)}const Ot=e=>class extends gp(e){constructor(){super(),Vi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&vo.add(this.is),this.elementStyles)return;const n=this.prototype._template;!n||ru(this)||yp(this.getStylesForThis(),n)}static finalizeStyles(n){const r=this.getStylesForThis();return n?[...[n].flat(1/0),...r]:r}static getStylesForThis(){const n=e.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...n,...i,...Ap(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
52
+ */const au=[],ji=new Set,Co=new Set;function lu(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function Cp(e){return lu(customElements.get(e))}function Ep(e=[]){return[e].flat(1/0).filter(t=>t instanceof yo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function uu(e,t){return(e||"").split(" ").some(n=>new RegExp(`^${n.split("*").join(".*")}$`,"u").test(t))}function du(e){return e.map(t=>t.cssText).join(`
53
+ `)}const br="vaadin-themable-mixin-style";function xp(e,t){const n=document.createElement("style");n.id=br,n.textContent=du(e),t.content.appendChild(n)}function Ap(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof jt)[...e.shadowRoot.querySelectorAll("style")].forEach(n=>n.remove()),tu(e.shadowRoot,t.elementStyles);else{const n=e.shadowRoot.getElementById(br),r=t.prototype._template;n.textContent=r.content.getElementById(br).textContent}}function Tp(e){ji.forEach(t=>{const n=t.deref();n instanceof e?Ap(n):n||ji.delete(t)})}function cu(e){if(e.prototype instanceof jt)e.elementStyles=e.finalizeStyles(e.styles);else{const t=e.prototype._template;t.content.getElementById(br).textContent=du(e.getStylesForThis())}Co.forEach(t=>{const n=customElements.get(t);n!==e&&n.prototype instanceof e&&cu(n)})}function Pp(e,t){const n=e.__themes;return!n||!t?!1:n.some(r=>r.styles.some(i=>t.some(o=>o.cssText===i.cssText)))}function De(e,t,n={}){t=Ep(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,n):au.push({themeFor:e,styles:t,include:n.include,moduleId:n.moduleId}),e&&Co.forEach(r=>{if(uu(e,r)&&Cp(r)){const i=customElements.get(r);Pp(i,t)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),cu(i),Tp(i)}})}function Gi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():au}function Sp(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function hu(e){const t=[];return e.include&&[].concat(e.include).forEach(n=>{const r=Gi().find(i=>i.moduleId===n);r?t.push(...hu(r),...r.styles):console.warn(`Included moduleId ${n} not found in style registry`)},e.styles),t}function kp(e){const t=`${e}-default-theme`,n=Gi().filter(r=>r.moduleId!==t&&uu(r.themeFor,e)).map(r=>un(Et({},r),{styles:[...hu(r),...r.styles],includePriority:Sp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return n.length>0?n:Gi().filter(r=>r.moduleId===t)}const Ot=e=>class extends wp(e){constructor(){super(),ji.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Co.add(this.is),this.elementStyles)return;const n=this.prototype._template;!n||lu(this)||xp(this.getStylesForThis(),n)}static finalizeStyles(n){const r=this.getStylesForThis();return n?[...[n].flat(1/0),...r]:r}static getStylesForThis(){const n=e.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...n,...i,...kp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const Tp=(e,...t)=>{const n=document.createElement("style");n.id=e,n.textContent=t.map(r=>r.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",n)},an=(e,...t)=>{Tp(`lumo-${e}`,t)};/**
57
+ */const Dp=(e,...t)=>{const n=document.createElement("style");n.id=e,n.textContent=t.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",n)},an=(e,...t)=>{Dp(`lumo-${e}`,t)};/**
59
59
  * @license
60
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
61
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
62
- */const Pp=pe`
62
+ */const Bp=pe`
63
63
  :host {
64
64
  --lumo-size-xs: 1.625rem;
65
65
  --lumo-size-s: 1.875rem;
@@ -74,11 +74,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
74
74
  /* For backwards compatibility */
75
75
  --lumo-icon-size: var(--lumo-icon-size-m);
76
76
  }
77
- `;an("sizing-props",Pp);/**
77
+ `;an("sizing-props",Bp);/**
78
78
  * @license
79
79
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
80
80
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
81
- */const Sp=pe`
81
+ */const Mp=pe`
82
82
  :host {
83
83
  /* Square */
84
84
  --lumo-space-xs: 0.25rem;
@@ -101,11 +101,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
101
101
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
102
102
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
103
103
  }
104
- `;an("spacing-props",Sp);/**
104
+ `;an("spacing-props",Mp);/**
105
105
  * @license
106
106
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
107
107
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
108
- */const kp=pe`
108
+ */const Op=pe`
109
109
  :host {
110
110
  /* Border radius */
111
111
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -205,11 +205,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
205
205
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
206
206
  --vaadin-input-field-value-font-weight: 500;
207
207
  }
208
- `;an("style-props",kp);/**
208
+ `;an("style-props",Op);/**
209
209
  * @license
210
210
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
211
211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
212
- */const Dp=pe`
212
+ */const Np=pe`
213
213
  :host {
214
214
  /* Base (background) */
215
215
  --lumo-base-color: #fff;
@@ -294,7 +294,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
294
294
  --lumo-disabled-text-color: GrayText;
295
295
  }
296
296
  }
297
- `;an("color-props",Dp);const Bp=pe`
297
+ `;an("color-props",Np);const Ip=pe`
298
298
  [theme~='dark'] {
299
299
  /* Base (background) */
300
300
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -412,11 +412,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
412
412
  pre code {
413
413
  background: transparent;
414
414
  }
415
- `;De("",Bp,{moduleId:"lumo-color"});/**
415
+ `;De("",Ip,{moduleId:"lumo-color"});/**
416
416
  * @license
417
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
418
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
419
- */const Mp=pe`
419
+ */const Lp=pe`
420
420
  :host {
421
421
  /* prettier-ignore */
422
422
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -436,7 +436,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
436
436
  --lumo-line-height-s: 1.375;
437
437
  --lumo-line-height-m: 1.625;
438
438
  }
439
- `,Op=pe`
439
+ `,Fp=pe`
440
440
  body,
441
441
  :host {
442
442
  font-family: var(--lumo-font-family);
@@ -528,11 +528,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
528
528
  border-left: none;
529
529
  border-right: 2px solid var(--lumo-contrast-30pct);
530
530
  }
531
- `;De("",Op,{moduleId:"lumo-typography"});an("typography-props",Mp);/**
531
+ `;De("",Fp,{moduleId:"lumo-typography"});an("typography-props",Lp);/**
532
532
  * @license
533
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
534
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
535
- */const lu=pe`
535
+ */const fu=pe`
536
536
  :host {
537
537
  top: var(--lumo-space-m);
538
538
  right: var(--lumo-space-m);
@@ -597,11 +597,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
597
597
  opacity: 1;
598
598
  }
599
599
  }
600
- `;De("",lu,{moduleId:"lumo-overlay"});/**
600
+ `;De("",fu,{moduleId:"lumo-overlay"});/**
601
601
  * @license
602
602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
603
603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
604
- */const uu=pe`
604
+ */const pu=pe`
605
605
  :host([opening]),
606
606
  :host([closing]) {
607
607
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -631,7 +631,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
631
631
  opacity: 0;
632
632
  }
633
633
  }
634
- `;De("",uu,{moduleId:"lumo-menu-overlay-core"});const Np=pe`
634
+ `;De("",pu,{moduleId:"lumo-menu-overlay-core"});const Hp=pe`
635
635
  /* Small viewport (bottom sheet) styles */
636
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
637
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -693,7 +693,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
693
693
  transform: translateY(150%);
694
694
  }
695
695
  }
696
- `,du=[lu,uu,Np];De("",du,{moduleId:"lumo-menu-overlay"});const Ip=pe`
696
+ `,mu=[fu,pu,Hp];De("",mu,{moduleId:"lumo-menu-overlay"});const Rp=pe`
697
697
  [part='overlay'] {
698
698
  /*
699
699
  Width:
@@ -738,7 +738,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
738
738
  max-height: 70vh;
739
739
  }
740
740
  }
741
- `;De("vaadin-date-picker-overlay",[du,Ip],{moduleId:"lumo-date-picker-overlay"});const Lp=pe`
741
+ `;De("vaadin-date-picker-overlay",[mu,Rp],{moduleId:"lumo-date-picker-overlay"});const zp=pe`
742
742
  :host {
743
743
  /* Sizing */
744
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1014,7 +1014,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1014
1014
  margin-left: 0;
1015
1015
  margin-right: 0;
1016
1016
  }
1017
- `;De("vaadin-button",Lp,{moduleId:"lumo-button"});De("vaadin-date-picker-year",pe`
1017
+ `;De("vaadin-button",zp,{moduleId:"lumo-button"});De("vaadin-date-picker-year",pe`
1018
1018
  :host([current]) [part='year-number'] {
1019
1019
  color: var(--lumo-primary-text-color);
1020
1020
  }
@@ -1517,7 +1517,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1517
1517
  * @license
1518
1518
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1519
1519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1520
- */const Fp=pe`
1520
+ */const Up=pe`
1521
1521
  @font-face {
1522
1522
  font-family: 'lumo-icons';
1523
1523
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -1570,11 +1570,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1570
1570
  --lumo-icons-upload: '\\ea29';
1571
1571
  --lumo-icons-user: '\\ea2a';
1572
1572
  }
1573
- `;an("font-icons",Fp);/**
1573
+ `;an("font-icons",Up);/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
- */const cu=pe`
1577
+ */const _u=pe`
1578
1578
  [part$='button'] {
1579
1579
  flex: none;
1580
1580
  width: 1em;
@@ -1601,11 +1601,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1601
1601
  font-family: 'lumo-icons';
1602
1602
  display: block;
1603
1603
  }
1604
- `;De("",cu,{moduleId:"lumo-field-button"});/**
1604
+ `;De("",_u,{moduleId:"lumo-field-button"});/**
1605
1605
  * @license
1606
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1607
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1608
- */const Hp=pe`
1608
+ */const $p=pe`
1609
1609
  :host {
1610
1610
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1611
1611
  }
@@ -1665,7 +1665,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1665
1665
  * @license
1666
1666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1667
1667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1668
- */const hu=pe`
1668
+ */const gu=pe`
1669
1669
  [part='label'] {
1670
1670
  align-self: flex-start;
1671
1671
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1777,11 +1777,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1777
1777
  margin-left: 0;
1778
1778
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1779
1779
  }
1780
- `;De("",hu,{moduleId:"lumo-required-field"});/**
1780
+ `;De("",gu,{moduleId:"lumo-required-field"});/**
1781
1781
  * @license
1782
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1783
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1784
- */const Rp=pe`
1784
+ */const Wp=pe`
1785
1785
  :host {
1786
1786
  --lumo-text-field-size: var(--lumo-size-m);
1787
1787
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1912,7 +1912,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1912
1912
  [part='clear-button']::before {
1913
1913
  content: var(--lumo-icons-cross);
1914
1914
  }
1915
- `,fu=[hu,cu,Hp,Rp];De("",fu,{moduleId:"lumo-input-field-shared-styles"});const zp=pe`
1915
+ `,bu=[gu,_u,$p,Wp];De("",bu,{moduleId:"lumo-input-field-shared-styles"});const Vp=pe`
1916
1916
  [part='toggle-button']::before {
1917
1917
  content: var(--lumo-icons-calendar);
1918
1918
  }
@@ -1934,7 +1934,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1934
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1935
1935
  --_lumo-text-field-overflow-mask-image: none;
1936
1936
  }
1937
- `;De("vaadin-date-picker",[fu,zp],{moduleId:"lumo-date-picker"});/**
1937
+ `;De("vaadin-date-picker",[bu,Vp],{moduleId:"lumo-date-picker"});/**
1938
1938
  @license
1939
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1940
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1950,7 +1950,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1950
1950
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1951
1951
  Code distributed by Google as part of the polymer project is also
1952
1952
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1953
- */let Up=/(url\()([^)]*)(\))/g,$p=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Kn,$e;function xn(e,t){if(e&&$p.test(e)||e==="//")return e;if(Kn===void 0){Kn=!1;try{const n=new URL("b","http://a");n.pathname="c%20d",Kn=n.href==="http://a/c%20d"}catch(n){}}if(t||(t=document.baseURI||window.location.href),Kn)try{return new URL(e,t).href}catch(n){return e}return $e||($e=document.implementation.createHTMLDocument("temp"),$e.base=$e.createElement("base"),$e.head.appendChild($e.base),$e.anchor=$e.createElement("a"),$e.body.appendChild($e.anchor)),$e.base.href=t,$e.anchor.href=e,$e.anchor.href||e}function yo(e,t){return e.replace(Up,function(n,r,i,o){return r+"'"+xn(i.replace(/["']/g,""),t)+"'"+o})}function wo(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
1953
+ */let jp=/(url\()([^)]*)(\))/g,Gp=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Kn,$e;function xn(e,t){if(e&&Gp.test(e)||e==="//")return e;if(Kn===void 0){Kn=!1;try{const n=new URL("b","http://a");n.pathname="c%20d",Kn=n.href==="http://a/c%20d"}catch(n){}}if(t||(t=document.baseURI||window.location.href),Kn)try{return new URL(e,t).href}catch(n){return e}return $e||($e=document.implementation.createHTMLDocument("temp"),$e.base=$e.createElement("base"),$e.head.appendChild($e.base),$e.anchor=$e.createElement("a"),$e.body.appendChild($e.anchor)),$e.base.href=t,$e.anchor.href=e,$e.anchor.href||e}function Eo(e,t){return e.replace(jp,function(n,r,i,o){return r+"'"+xn(i.replace(/["']/g,""),t)+"'"+o})}function xo(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
1954
1954
  @license
1955
1955
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1956
1956
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1958,7 +1958,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1958
1958
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1959
1959
  Code distributed by Google as part of the polymer project is also
1960
1960
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1961
- */const pu=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Wp=pu&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let Vp=window.Polymer&&window.Polymer.rootPath||wo(document.baseURI||window.location.href),vr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jp=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,mu=window.Polymer&&window.Polymer.legacyOptimizations||!1,_u=window.Polymer&&window.Polymer.legacyWarnings||!1,Gp=window.Polymer&&window.Polymer.syncInitialRender||!1,Gi=window.Polymer&&window.Polymer.legacyUndefined||!1,Yp=window.Polymer&&window.Polymer.orderedComputed||!1,Ts=window.Polymer&&window.Polymer.removeNestedTemplates||!1,qp=window.Polymer&&window.Polymer.fastDomIf||!1,Ps=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Xp=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1961
+ */const vu=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Yp=vu&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let qp=window.Polymer&&window.Polymer.rootPath||xo(document.baseURI||window.location.href),vr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Xp=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,yu=window.Polymer&&window.Polymer.legacyOptimizations||!1,wu=window.Polymer&&window.Polymer.legacyWarnings||!1,Zp=window.Polymer&&window.Polymer.syncInitialRender||!1,Yi=window.Polymer&&window.Polymer.legacyUndefined||!1,Kp=window.Polymer&&window.Polymer.orderedComputed||!1,Ds=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Jp=window.Polymer&&window.Polymer.fastDomIf||!1,Bs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Qp=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1962
1962
  @license
1963
1963
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1964
1964
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1966,7 +1966,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1966
1966
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1967
1967
  Code distributed by Google as part of the polymer project is also
1968
1968
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1969
- */let Zp=0;const Me=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let n=Zp++;function r(i){let o=i.__mixinSet;if(o&&o[n])return i;let s=t,a=s.get(i);if(!a){a=e(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[n]=!0,a.__mixinSet=l}return a}return r};/**
1969
+ */let em=0;const Me=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let n=em++;function r(i){let o=i.__mixinSet;if(o&&o[n])return i;let s=t,a=s.get(i);if(!a){a=e(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[n]=!0,a.__mixinSet=l}return a}return r};/**
1970
1970
  @license
1971
1971
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1972
1972
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1974,7 +1974,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1974
1974
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1975
1975
  Code distributed by Google as part of the polymer project is also
1976
1976
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1977
- */let Co={},gu={};function Ss(e,t){Co[e]=gu[e.toLowerCase()]=t}function ks(e){return Co[e]||gu[e.toLowerCase()]}function Kp(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Bn extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let r=ks(t);return r&&n?r.querySelector(n):r}return null}attributeChangedCallback(t,n,r,i){n!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,n=xn(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=wo(n)}return this.__assetpath}register(t){if(t=t||this.id,t){if(yr&&ks(t)!==void 0)throw Ss(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ss(t,this),Kp(this)}}}Bn.prototype.modules=Co;customElements.define("dom-module",Bn);/**
1977
+ */let Ao={},Cu={};function Ms(e,t){Ao[e]=Cu[e.toLowerCase()]=t}function Os(e){return Ao[e]||Cu[e.toLowerCase()]}function tm(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Bn extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let r=Os(t);return r&&n?r.querySelector(n):r}return null}attributeChangedCallback(t,n,r,i){n!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,n=xn(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=xo(n)}return this.__assetpath}register(t){if(t=t||this.id,t){if(yr&&Os(t)!==void 0)throw Ms(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ms(t,this),tm(this)}}}Bn.prototype.modules=Ao;customElements.define("dom-module",Bn);/**
1978
1978
  @license
1979
1979
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1980
1980
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1982,7 +1982,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1982
1982
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1983
1983
  Code distributed by Google as part of the polymer project is also
1984
1984
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1985
- */const Jp="link[rel=import][type~=css]",Qp="include",Ds="shady-unscoped";function bu(e){return Bn.import(e)}function Bs(e){let t=e.body?e.body:e;const n=yo(t.textContent,e.baseURI),r=document.createElement("style");return r.textContent=n,r}function em(e){const t=e.trim().split(/\s+/),n=[];for(let r=0;r<t.length;r++)n.push(...tm(t[r]));return n}function tm(e){const t=bu(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const n=[];n.push(...yu(t));const r=t.querySelector("template");r&&n.push(...vu(r,t.assetpath)),t._styles=n}return t._styles}function vu(e,t){if(!e._styles){const n=[],r=e.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(Qp);s&&n.push(...em(s).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(o.textContent=yo(o.textContent,t)),n.push(o)}e._styles=n}return e._styles}function nm(e){let t=bu(e);return t?yu(t):[]}function yu(e){const t=[],n=e.querySelectorAll(Jp);for(let r=0;r<n.length;r++){let i=n[r];if(i.import){const o=i.import,s=i.hasAttribute(Ds);if(s&&!o._unscopedStyle){const a=Bs(o);a.setAttribute(Ds,""),o._unscopedStyle=a}else o._style||(o._style=Bs(o));t.push(s?o._unscopedStyle:o._style)}}return t}/**
1985
+ */const nm="link[rel=import][type~=css]",rm="include",Ns="shady-unscoped";function Eu(e){return Bn.import(e)}function Is(e){let t=e.body?e.body:e;const n=Eo(t.textContent,e.baseURI),r=document.createElement("style");return r.textContent=n,r}function im(e){const t=e.trim().split(/\s+/),n=[];for(let r=0;r<t.length;r++)n.push(...om(t[r]));return n}function om(e){const t=Eu(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const n=[];n.push(...Au(t));const r=t.querySelector("template");r&&n.push(...xu(r,t.assetpath)),t._styles=n}return t._styles}function xu(e,t){if(!e._styles){const n=[],r=e.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(rm);s&&n.push(...im(s).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(o.textContent=Eo(o.textContent,t)),n.push(o)}e._styles=n}return e._styles}function sm(e){let t=Eu(e);return t?Au(t):[]}function Au(e){const t=[],n=e.querySelectorAll(nm);for(let r=0;r<n.length;r++){let i=n[r];if(i.import){const o=i.import,s=i.hasAttribute(Ns);if(s&&!o._unscopedStyle){const a=Is(o);a.setAttribute(Ns,""),o._unscopedStyle=a}else o._style||(o._style=Is(o));t.push(s?o._unscopedStyle:o._style)}}return t}/**
1986
1986
  @license
1987
1987
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1988
1988
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1998,7 +1998,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1998
1998
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1999
1999
  Code distributed by Google as part of the polymer project is also
2000
2000
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2001
- */function Yi(e){return e.indexOf(".")>=0}function Nt(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function wu(e,t){return e.indexOf(t+".")===0}function Mn(e,t){return t.indexOf(e+".")===0}function On(e,t,n){return t+n.slice(e.length)}function rm(e,t){return e===t||wu(e,t)||Mn(e,t)}function bn(e){if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=e[n].toString().split(".");for(let i=0;i<r.length;i++)t.push(r[i])}return t.join(".")}else return e}function Cu(e){return Array.isArray(e)?bn(e).split("."):e.toString().split(".")}function Re(e,t,n){let r=e,i=Cu(t);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return n&&(n.path=i.join(".")),r}function Ms(e,t,n){let r=e,i=Cu(t),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=n}else r[t]=n;return i.join(".")}/**
2001
+ */function qi(e){return e.indexOf(".")>=0}function Nt(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function Tu(e,t){return e.indexOf(t+".")===0}function Mn(e,t){return t.indexOf(e+".")===0}function On(e,t,n){return t+n.slice(e.length)}function am(e,t){return e===t||Tu(e,t)||Mn(e,t)}function bn(e){if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=e[n].toString().split(".");for(let i=0;i<r.length;i++)t.push(r[i])}return t.join(".")}else return e}function Pu(e){return Array.isArray(e)?bn(e).split("."):e.toString().split(".")}function Re(e,t,n){let r=e,i=Pu(t);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return n&&(n.path=i.join(".")),r}function Ls(e,t,n){let r=e,i=Pu(t),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=n}else r[t]=n;return i.join(".")}/**
2002
2002
  @license
2003
2003
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2004
2004
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2006,7 +2006,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2006
2006
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2007
2007
  Code distributed by Google as part of the polymer project is also
2008
2008
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2009
- */const wr={},im=/-[a-z]/g,om=/([A-Z])/g;function Eu(e){return wr[e]||(wr[e]=e.indexOf("-")<0?e:e.replace(im,t=>t[1].toUpperCase()))}function zr(e){return wr[e]||(wr[e]=e.replace(om,"-$1").toLowerCase())}/**
2009
+ */const wr={},lm=/-[a-z]/g,um=/([A-Z])/g;function Su(e){return wr[e]||(wr[e]=e.indexOf("-")<0?e:e.replace(lm,t=>t[1].toUpperCase()))}function zr(e){return wr[e]||(wr[e]=e.replace(um,"-$1").toLowerCase())}/**
2010
2010
  @license
2011
2011
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2012
2012
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2014,7 +2014,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2014
2014
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2015
2015
  Code distributed by Google as part of the polymer project is also
2016
2016
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2017
- */let sm=0,xu=0,Gt=[],am=0,qi=!1,Au=document.createTextNode("");new window.MutationObserver(lm).observe(Au,{characterData:!0});function lm(){qi=!1;const e=Gt.length;for(let t=0;t<e;t++){let n=Gt[t];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}Gt.splice(0,e),xu+=e}const um={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Tu={run(e){return qi||(qi=!0,Au.textContent=am++),Gt.push(e),sm++},cancel(e){const t=e-xu;if(t>=0){if(!Gt[t])throw new Error("invalid async handle: "+e);Gt[t]=null}}};/**
2017
+ */let dm=0,ku=0,Gt=[],cm=0,Xi=!1,Du=document.createTextNode("");new window.MutationObserver(hm).observe(Du,{characterData:!0});function hm(){Xi=!1;const e=Gt.length;for(let t=0;t<e;t++){let n=Gt[t];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}Gt.splice(0,e),ku+=e}const fm={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Bu={run(e){return Xi||(Xi=!0,Du.textContent=cm++),Gt.push(e),dm++},cancel(e){const t=e-ku;if(t>=0){if(!Gt[t])throw new Error("invalid async handle: "+e);Gt[t]=null}}};/**
2018
2018
  @license
2019
2019
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2020
2020
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2022,7 +2022,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2022
2022
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2023
2023
  Code distributed by Google as part of the polymer project is also
2024
2024
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2025
- */const dm=Tu,Pu=Me(e=>{class t extends e{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){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,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?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,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,dm.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,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Ie(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,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
2025
+ */const pm=Bu,Mu=Me(e=>{class t extends e{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){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,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?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,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,pm.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Ie(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,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
2026
2026
  @license
2027
2027
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2028
2028
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2030,7 +2030,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2030
2030
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2031
2031
  Code distributed by Google as part of the polymer project is also
2032
2032
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2033
- */const Su={};let Jn=HTMLElement.prototype;for(;Jn;){let e=Object.getOwnPropertyNames(Jn);for(let t=0;t<e.length;t++)Su[e[t]]=!0;Jn=Object.getPrototypeOf(Jn)}const cm=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function hm(e,t){if(!Su[t]){let n=e[t];n!==void 0&&(e.__data?e._setPendingProperty(t,n):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=n))}}const fm=Me(e=>{const t=Pu(e);class n extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Eu(i[o]))}static attributeNameForProperty(i){return zr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(cm(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){hm(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return n});/**
2033
+ */const Ou={};let Jn=HTMLElement.prototype;for(;Jn;){let e=Object.getOwnPropertyNames(Jn);for(let t=0;t<e.length;t++)Ou[e[t]]=!0;Jn=Object.getPrototypeOf(Jn)}const mm=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function _m(e,t){if(!Ou[t]){let n=e[t];n!==void 0&&(e.__data?e._setPendingProperty(t,n):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=n))}}const gm=Me(e=>{const t=Mu(e);class n extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Su(i[o]))}static attributeNameForProperty(i){return zr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(mm(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){_m(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return n});/**
2034
2034
  @license
2035
2035
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2036
2036
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2038,7 +2038,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2038
2038
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2039
2039
  Code distributed by Google as part of the polymer project is also
2040
2040
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2041
- */const pm={"dom-if":!0,"dom-repeat":!0};let Os=!1,Ns=!1;function mm(){if(!Os){Os=!0;const e=document.createElement("textarea");e.placeholder="a",Ns=e.placeholder===e.textContent}return Ns}function _m(e){mm()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const gm=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,n,r)=>{const i=n.getAttribute(r);if(e&&r.startsWith("on-")){t.setAttribute(r,e.createScript(i,r));return}t.setAttribute(r,i)}})();function bm(e){let t=e.getAttribute("is");if(t&&pm[t]){let n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const{name:r}=n.attributes[0];gm(e,n,r),n.removeAttribute(r)}}return e}function ku(e,t){let n=t.parentInfo&&ku(e,t.parentInfo);if(n){for(let r=n.firstChild,i=0;r;r=r.nextSibling)if(t.parentIndex===i++)return r}else return e}function vm(e,t,n,r){r.id&&(t[r.id]=n)}function ym(e,t,n){if(n.events&&n.events.length)for(let r=0,i=n.events,o;r<i.length&&(o=i[r]);r++)e._addMethodEventListenerToNode(t,o.name,o.value,e)}function wm(e,t,n,r){n.templateInfo&&(t._templateInfo=n.templateInfo,t._parentTemplateInfo=r)}function Cm(e,t,n){return e=e._methodHost||e,function(i){e[n]?e[n](i,i.detail):console.warn("listener method `"+n+"` not defined")}}const Em=Me(e=>{class t extends e{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),_m(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=bm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,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 i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=ku(a,c);vm(this,a.$,h,c),wm(this,h,c,i),ym(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Cm(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return t});/**
2041
+ */const bm={"dom-if":!0,"dom-repeat":!0};let Fs=!1,Hs=!1;function vm(){if(!Fs){Fs=!0;const e=document.createElement("textarea");e.placeholder="a",Hs=e.placeholder===e.textContent}return Hs}function ym(e){vm()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const wm=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,n,r)=>{const i=n.getAttribute(r);if(e&&r.startsWith("on-")){t.setAttribute(r,e.createScript(i,r));return}t.setAttribute(r,i)}})();function Cm(e){let t=e.getAttribute("is");if(t&&bm[t]){let n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const{name:r}=n.attributes[0];wm(e,n,r),n.removeAttribute(r)}}return e}function Nu(e,t){let n=t.parentInfo&&Nu(e,t.parentInfo);if(n){for(let r=n.firstChild,i=0;r;r=r.nextSibling)if(t.parentIndex===i++)return r}else return e}function Em(e,t,n,r){r.id&&(t[r.id]=n)}function xm(e,t,n){if(n.events&&n.events.length)for(let r=0,i=n.events,o;r<i.length&&(o=i[r]);r++)e._addMethodEventListenerToNode(t,o.name,o.value,e)}function Am(e,t,n,r){n.templateInfo&&(t._templateInfo=n.templateInfo,t._parentTemplateInfo=r)}function Tm(e,t,n){return e=e._methodHost||e,function(i){e[n]?e[n](i,i.detail):console.warn("listener method `"+n+"` not defined")}}const Pm=Me(e=>{class t extends e{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),ym(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Cm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,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 i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=Nu(a,c);Em(this,a.$,h,c),Am(this,h,c,i),xm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Tm(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return t});/**
2042
2042
  * @fileoverview
2043
2043
  * @suppress {checkPrototypalTypes}
2044
2044
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2049
2049
  * Google as part of the polymer project is also subject to an additional IP
2050
2050
  * rights grant found at http://polymer.github.io/PATENTS.txt
2051
- */let Nn=0;const In=[],_e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Du="__computeInfo",xm=/[A-Z]/;function pi(e,t,n){let r=e[t];if(!r)r=e[t]={};else if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function vn(e,t,n,r,i,o){if(t){let s=!1;const a=Nn++;for(let l in n){let u=i?Nt(l):l,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||Eo(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,n,r,f.info,i,o),s=!0)}return s}return!1}function Am(e,t,n,r,i,o,s,a){let l=!1,u=s?Nt(r):r,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==n)&&(!s||Eo(r,f.trigger))&&(f.info&&(f.info.lastRun=n),f.fn(e,r,i,o,f.info,s,a),l=!0);return l}function Eo(e,t){if(t){let n=t.name;return n==e||!!(t.structured&&wu(n,e))||!!(t.wildcard&&Mn(n,e))}else return!0}function Is(e,t,n,r,i){let o=typeof i.method=="string"?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Tm(e,t,n,r,i){let o=e[_e.NOTIFY],s,a=Nn++;for(let u in t)t[u]&&(o&&Am(e,o,a,u,n,r,i)||i&&Pm(e,u,n))&&(s=!0);let l;s&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Pm(e,t,n){let r=Nt(t);if(r!==t){let i=zr(r)+"-changed";return Bu(e,i,n[t],t),!0}return!1}function Bu(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Ie(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Sm(e,t,n,r,i,o){let a=(o?Nt(t):t)!=t?t:null,l=a?Re(e,a):e.__data[t];a&&l===void 0&&(l=n[t]),Bu(e,i.eventName,l,a)}function km(e,t,n,r,i){let o,s=e.detail,a=s&&s.path;a?(r=On(n,r,a),o=s&&s.value):o=e.currentTarget[n],o=i?!o:o,(!t[_e.READ_ONLY]||!t[_e.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&t._invalidateProperties()}function Dm(e,t,n,r,i){let o=e.__data[t];vr&&(o=vr(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}function Bm(e,t,n,r){let i=e[_e.COMPUTE];if(i)if(Yp){Nn++;const o=Om(e),s=[];for(let l in t)Ls(l,i,s,o,r);let a;for(;a=s.shift();)Mu(e,"",t,n,a)&&Ls(a.methodInfo,i,s,o,r);Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let o=t;for(;vn(e,i,o,n,r);)Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),o=e.__dataPending,e.__dataPending=null}}const Mm=(e,t,n)=>{let r=0,i=t.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=n.get(t[s].methodInfo)-n.get(e.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),t.splice(o,0,e)},Ls=(e,t,n,r,i)=>{const o=i?Nt(e):e,s=t[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Nn&&(!i||Eo(e,l.trigger))&&(l.info.lastRun=Nn,Mm(l.info,n,r))}};function Om(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const n=e[_e.COMPUTE];let{counts:r,ready:i,total:o}=Nm(e),s;for(;s=i.shift();){t.set(s,t.size);const a=n[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Nm(e){const t=e[Du],n={},r=e[_e.COMPUTE],i=[];let o=0;for(let s in t){const a=t[s];o+=n[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)t[s]||i.push(s);return{counts:n,ready:i,total:o}}function Mu(e,t,n,r,i){let o=Xi(e,t,n,r,i);if(o===In)return!1;let s=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[s]?e._setPendingProperty(s,o,!0):(e[s]=o,!1)}function Im(e,t,n){let r=e.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Mn(o,t)?(i=On(o,s,t),e._setPendingPropertyOrPath(i,n,!0,!0)):Mn(s,t)&&(i=On(s,o,t),e._setPendingPropertyOrPath(i,n,!0,!0))}}}function mi(e,t,n,r,i,o,s){n.bindings=n.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(n.bindings.push(a),zm(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||zr(i)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,Lm(e,t,a,d,l)}}function Lm(e,t,n,r,i){if(!r.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:n,part:r,evaluator:e};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Nu(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Fm,info:s,trigger:l})}}}function Fm(e,t,n,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=n[t];t=On(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(e,u,t,n,r,o);d!==In&&Hm(e,a,l,u,d)}}function Hm(e,t,n,r,i){if(i=Rm(t,i,n,r),vr&&(i=vr(i,n.target,n.kind,t)),n.kind=="attribute")e._valueToNodeAttribute(t,i,n.target);else{let o=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[_e.READ_ONLY]||!t[_e.READ_ONLY][o])&&t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}function Rm(e,t,n,r){if(n.isCompound){let i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}return n.kind!=="attribute"&&(n.target==="textContent"||n.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function zm(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function Um(e,t){let{nodeList:n,nodeInfoList:r}=t;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=n[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];$m(s,u),Wm(s,e,u)}s.__dataHost=e}}function $m(e,t){if(t.isCompound){let n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=t.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=t.target;n[o]=i,t.literal&&t.kind=="property"&&(o==="className"&&(e=Ie(e)),e[o]=t.literal)}}function Wm(e,t,n){if(n.listenerEvent){let r=n.parts[0];e.addEventListener(n.listenerEvent,function(i){km(i,t,n.target,r.source,r.negate)})}}function Fs(e,t,n,r,i,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let s={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,n,{fn:r,info:s,trigger:l});return o&&e._addPropertyEffect(t.methodName,n,{fn:r,info:s}),s}function Xi(e,t,n,r,i){let o=e._methodHost||e,s=o[i.methodName];if(s){let a=e._marshalArgs(i.args,t,n);return a===In?In:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Vm=[],Ou="(?:[a-zA-Z_$][\\w.:$\\-*]*)",jm="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Gm="(?:'(?:[^'\\\\]|\\\\.)*')",Ym='(?:"(?:[^"\\\\]|\\\\.)*")',qm="(?:"+Gm+"|"+Ym+")",Hs="(?:("+Ou+"|"+jm+"|"+qm+")\\s*)",Xm="(?:"+Hs+"(?:,\\s*"+Hs+")*)",Zm="(?:\\(\\s*(?:"+Xm+"?)\\)\\s*)",Km="("+Ou+"\\s*"+Zm+"?)",Jm="(\\[\\[|{{)\\s*",Qm="(?:]]|}})",e_="(?:(!)\\s*)?",t_=Jm+e_+Km+Qm,Rs=new RegExp(t_,"g");function zs(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].literal;t+=r||""}return t}function _i(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:Vm};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return n_(i,r)}else return r}return null}function n_(e,t){return t.args=e.map(function(n){let r=Nu(n);return r.literal||(t.static=!1),r},this),t}function Nu(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0;break}return n.literal||(n.rootProperty=Nt(t),n.structured=Yi(t),n.structured&&(n.wildcard=t.slice(-2)==".*",n.wildcard&&(n.name=t.slice(0,-2)))),n}function Us(e,t,n){let r=Re(e,n);return r===void 0&&(r=t[n]),r}function Iu(e,t,n,r){const i={indexSplices:r};Gi&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),Gi&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function pn(e,t,n,r,i,o){Iu(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}function r_(e){return e[0].toUpperCase()+e.substring(1)}const xo=Me(e=>{const t=Em(fm(e));class n extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _e}_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(mn.length){let i=mn[mn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[_e.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==_e.READ_ONLY);let a=pi(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=pi(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,_e.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,_e.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,_e.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,_e.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Nt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=Re(this,i);if(i=Ms(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return Im(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Ie(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&Yi(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[_e.NOTIFY]&&this[_e.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[_e.READ_ONLY]||!this[_e.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Bm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),vn(this,this[_e.REFLECT],o,s,a),vn(this,this[_e.OBSERVE],o,s,a),l&&Tm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[_e.PROPAGATE]&&vn(this,this[_e.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{vn(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=bn(i),o=bn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=bn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=Re(this,i,s);Iu(this,a,s.path,o)}get(i,o){return Re(o||this,i)}set(i,o,s){s?Ms(s,i,o):(!this[_e.READ_ONLY]||!this[_e.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=Re(this,i,s),l=a.length,u=a.push(...o);return o.length&&pn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=Re(this,i,o),a=!!s.length,l=s.pop();return a&&pn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=Re(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&pn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=Re(this,i,o),a=!!s.length,l=s.shift();return a&&pn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=Re(this,i,s),l=a.unshift(...o);return o.length&&pn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=Re(this,i,a),s=a.path}else Array.isArray(i)?s=bn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,_e.READ_ONLY),o&&(this["_set"+r_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,_e.OBSERVE,{fn:Is,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,_e.OBSERVE,{fn:Is,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=_i(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Fs(this,s,_e.OBSERVE,Xi,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,_e.NOTIFY,{fn:Sm,info:{eventName:zr(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" 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(i,_e.REFLECT,{fn:Dm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=_i(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Fs(this,a,_e.COMPUTE,Mu,i,s);pi(this,Du)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:_}=i[u];if(!_)if(f){const y=Mn(c,o),w=Us(a,s,y?o:c);b={path:y?o:c,value:w,base:y?Re(a,c):w}}else b=h?Us(a,s,c):a[c];if(Gi&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return In;l[u]=b}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),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=i._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(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),mn.push(this);let s=super._stampTemplate(i,o);if(mn.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,Um(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.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 d=0;d<u.length;d++){let c=u[d];Ie(Ie(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=t._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=zs(l)||" ",mi(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";xm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=zs(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Eu(a)),mi(this,o,s,c,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=t._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Ts&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(qp&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Ts||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];mi(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Rs.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let _=_i(c),y=[];if(_){let{args:w,methodName:g}=_;for(let v=0;v<w.length;v++){let k=w[v];k.literal||y.push(k)}let A=o.dynamicFns;(A&&A[g]||_.static)&&(y.push(g),_.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:y,event:f}),a=Rs.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=Xi(i,s,a,l,o.signature):s!=o.source?d=Re(i,o.source):u&&Yi(s)?d=Re(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return n}),mn=[];/**
2051
+ */let Nn=0;const In=[],_e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Iu="__computeInfo",Sm=/[A-Z]/;function mi(e,t,n){let r=e[t];if(!r)r=e[t]={};else if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function vn(e,t,n,r,i,o){if(t){let s=!1;const a=Nn++;for(let l in n){let u=i?Nt(l):l,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||To(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,n,r,f.info,i,o),s=!0)}return s}return!1}function km(e,t,n,r,i,o,s,a){let l=!1,u=s?Nt(r):r,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==n)&&(!s||To(r,f.trigger))&&(f.info&&(f.info.lastRun=n),f.fn(e,r,i,o,f.info,s,a),l=!0);return l}function To(e,t){if(t){let n=t.name;return n==e||!!(t.structured&&Tu(n,e))||!!(t.wildcard&&Mn(n,e))}else return!0}function Rs(e,t,n,r,i){let o=typeof i.method=="string"?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Dm(e,t,n,r,i){let o=e[_e.NOTIFY],s,a=Nn++;for(let u in t)t[u]&&(o&&km(e,o,a,u,n,r,i)||i&&Bm(e,u,n))&&(s=!0);let l;s&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Bm(e,t,n){let r=Nt(t);if(r!==t){let i=zr(r)+"-changed";return Lu(e,i,n[t],t),!0}return!1}function Lu(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Ie(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Mm(e,t,n,r,i,o){let a=(o?Nt(t):t)!=t?t:null,l=a?Re(e,a):e.__data[t];a&&l===void 0&&(l=n[t]),Lu(e,i.eventName,l,a)}function Om(e,t,n,r,i){let o,s=e.detail,a=s&&s.path;a?(r=On(n,r,a),o=s&&s.value):o=e.currentTarget[n],o=i?!o:o,(!t[_e.READ_ONLY]||!t[_e.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&t._invalidateProperties()}function Nm(e,t,n,r,i){let o=e.__data[t];vr&&(o=vr(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}function Im(e,t,n,r){let i=e[_e.COMPUTE];if(i)if(Kp){Nn++;const o=Fm(e),s=[];for(let l in t)zs(l,i,s,o,r);let a;for(;a=s.shift();)Fu(e,"",t,n,a)&&zs(a.methodInfo,i,s,o,r);Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let o=t;for(;vn(e,i,o,n,r);)Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),o=e.__dataPending,e.__dataPending=null}}const Lm=(e,t,n)=>{let r=0,i=t.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=n.get(t[s].methodInfo)-n.get(e.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),t.splice(o,0,e)},zs=(e,t,n,r,i)=>{const o=i?Nt(e):e,s=t[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Nn&&(!i||To(e,l.trigger))&&(l.info.lastRun=Nn,Lm(l.info,n,r))}};function Fm(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const n=e[_e.COMPUTE];let{counts:r,ready:i,total:o}=Hm(e),s;for(;s=i.shift();){t.set(s,t.size);const a=n[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Hm(e){const t=e[Iu],n={},r=e[_e.COMPUTE],i=[];let o=0;for(let s in t){const a=t[s];o+=n[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)t[s]||i.push(s);return{counts:n,ready:i,total:o}}function Fu(e,t,n,r,i){let o=Zi(e,t,n,r,i);if(o===In)return!1;let s=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[s]?e._setPendingProperty(s,o,!0):(e[s]=o,!1)}function Rm(e,t,n){let r=e.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Mn(o,t)?(i=On(o,s,t),e._setPendingPropertyOrPath(i,n,!0,!0)):Mn(s,t)&&(i=On(s,o,t),e._setPendingPropertyOrPath(i,n,!0,!0))}}}function _i(e,t,n,r,i,o,s){n.bindings=n.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(n.bindings.push(a),Vm(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||zr(i)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,zm(e,t,a,d,l)}}function zm(e,t,n,r,i){if(!r.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:n,part:r,evaluator:e};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Ru(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Um,info:s,trigger:l})}}}function Um(e,t,n,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=n[t];t=On(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(e,u,t,n,r,o);d!==In&&$m(e,a,l,u,d)}}function $m(e,t,n,r,i){if(i=Wm(t,i,n,r),vr&&(i=vr(i,n.target,n.kind,t)),n.kind=="attribute")e._valueToNodeAttribute(t,i,n.target);else{let o=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[_e.READ_ONLY]||!t[_e.READ_ONLY][o])&&t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}function Wm(e,t,n,r){if(n.isCompound){let i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}return n.kind!=="attribute"&&(n.target==="textContent"||n.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function Vm(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function jm(e,t){let{nodeList:n,nodeInfoList:r}=t;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=n[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Gm(s,u),Ym(s,e,u)}s.__dataHost=e}}function Gm(e,t){if(t.isCompound){let n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=t.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=t.target;n[o]=i,t.literal&&t.kind=="property"&&(o==="className"&&(e=Ie(e)),e[o]=t.literal)}}function Ym(e,t,n){if(n.listenerEvent){let r=n.parts[0];e.addEventListener(n.listenerEvent,function(i){Om(i,t,n.target,r.source,r.negate)})}}function Us(e,t,n,r,i,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let s={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,n,{fn:r,info:s,trigger:l});return o&&e._addPropertyEffect(t.methodName,n,{fn:r,info:s}),s}function Zi(e,t,n,r,i){let o=e._methodHost||e,s=o[i.methodName];if(s){let a=e._marshalArgs(i.args,t,n);return a===In?In:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const qm=[],Hu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Xm="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Zm="(?:'(?:[^'\\\\]|\\\\.)*')",Km='(?:"(?:[^"\\\\]|\\\\.)*")',Jm="(?:"+Zm+"|"+Km+")",$s="(?:("+Hu+"|"+Xm+"|"+Jm+")\\s*)",Qm="(?:"+$s+"(?:,\\s*"+$s+")*)",e_="(?:\\(\\s*(?:"+Qm+"?)\\)\\s*)",t_="("+Hu+"\\s*"+e_+"?)",n_="(\\[\\[|{{)\\s*",r_="(?:]]|}})",i_="(?:(!)\\s*)?",o_=n_+i_+t_+r_,Ws=new RegExp(o_,"g");function Vs(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].literal;t+=r||""}return t}function gi(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:qm};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return s_(i,r)}else return r}return null}function s_(e,t){return t.args=e.map(function(n){let r=Ru(n);return r.literal||(t.static=!1),r},this),t}function Ru(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0;break}return n.literal||(n.rootProperty=Nt(t),n.structured=qi(t),n.structured&&(n.wildcard=t.slice(-2)==".*",n.wildcard&&(n.name=t.slice(0,-2)))),n}function js(e,t,n){let r=Re(e,n);return r===void 0&&(r=t[n]),r}function zu(e,t,n,r){const i={indexSplices:r};Yi&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),Yi&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function pn(e,t,n,r,i,o){zu(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}function a_(e){return e[0].toUpperCase()+e.substring(1)}const Po=Me(e=>{const t=Pm(gm(e));class n extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return _e}_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(mn.length){let i=mn[mn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[_e.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==_e.READ_ONLY);let a=mi(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=mi(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,_e.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,_e.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,_e.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,_e.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Nt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=Re(this,i);if(i=Ls(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return Rm(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Ie(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&qi(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[_e.NOTIFY]&&this[_e.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[_e.READ_ONLY]||!this[_e.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Im(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),vn(this,this[_e.REFLECT],o,s,a),vn(this,this[_e.OBSERVE],o,s,a),l&&Dm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[_e.PROPAGATE]&&vn(this,this[_e.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{vn(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=bn(i),o=bn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=bn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=Re(this,i,s);zu(this,a,s.path,o)}get(i,o){return Re(o||this,i)}set(i,o,s){s?Ls(s,i,o):(!this[_e.READ_ONLY]||!this[_e.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=Re(this,i,s),l=a.length,u=a.push(...o);return o.length&&pn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=Re(this,i,o),a=!!s.length,l=s.pop();return a&&pn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=Re(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&pn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=Re(this,i,o),a=!!s.length,l=s.shift();return a&&pn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=Re(this,i,s),l=a.unshift(...o);return o.length&&pn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=Re(this,i,a),s=a.path}else Array.isArray(i)?s=bn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,_e.READ_ONLY),o&&(this["_set"+a_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,_e.OBSERVE,{fn:Rs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,_e.OBSERVE,{fn:Rs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=gi(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Us(this,s,_e.OBSERVE,Zi,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,_e.NOTIFY,{fn:Mm,info:{eventName:zr(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" 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(i,_e.REFLECT,{fn:Nm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=gi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Us(this,a,_e.COMPUTE,Fu,i,s);mi(this,Iu)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:_}=i[u];if(!_)if(f){const y=Mn(c,o),w=js(a,s,y?o:c);b={path:y?o:c,value:w,base:y?Re(a,c):w}}else b=h?js(a,s,c):a[c];if(Yi&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return In;l[u]=b}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),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=i._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(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),mn.push(this);let s=super._stampTemplate(i,o);if(mn.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,jm(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.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 d=0;d<u.length;d++){let c=u[d];Ie(Ie(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=t._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=Vs(l)||" ",_i(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";Sm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Vs(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Su(a)),_i(this,o,s,c,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=t._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Ds&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(Jp&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Ds||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];_i(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Ws.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let _=gi(c),y=[];if(_){let{args:w,methodName:g}=_;for(let v=0;v<w.length;v++){let k=w[v];k.literal||y.push(k)}let A=o.dynamicFns;(A&&A[g]||_.static)&&(y.push(g),_.dynamicFn=!0)}else y.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:y,event:f}),a=Ws.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=Zi(i,s,a,l,o.signature):s!=o.source?d=Re(i,o.source):u&&qi(s)?d=Re(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return n}),mn=[];/**
2052
2052
  @license
2053
2053
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2054
2054
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2064,7 +2064,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2064
2064
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2065
2065
  Code distributed by Google as part of the polymer project is also
2066
2066
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2067
- */function i_(e){const t={};for(let n in e){const r=e[n];t[n]=typeof r=="function"?{type:r}:r}return t}const o_=Me(e=>{const t=Pu(e);function n(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?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=i_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends t{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=n(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=n(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 i});/**
2067
+ */function l_(e){const t={};for(let n in e){const r=e[n];t[n]=typeof r=="function"?{type:r}:r}return t}const u_=Me(e=>{const t=Mu(e);function n(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?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=l_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends t{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=n(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=n(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 i});/**
2068
2068
  * @fileoverview
2069
2069
  * @suppress {checkPrototypalTypes}
2070
2070
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2075
2075
  * Google as part of the polymer project is also subject to an additional IP
2076
2076
  * rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */const s_="3.5.2",$s=window.ShadyCSS&&window.ShadyCSS.cssBuild,a_=Me(e=>{const t=o_(xo(e));function n(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!$s){const h=u.content.querySelectorAll("style"),f=vu(u),b=nm(d),_=u.content.firstElementChild;for(let w=0;w<b.length;w++){let g=b[w];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let y=0;for(let w=0;w<f.length;w++){let g=f[w],A=h[y];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):y++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),Xp&&$s&&Wp){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!yr||jp)&&(u=Bn.import(l,"template"),yr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return s_}static _finalizeClass(){t._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):mu||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}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=wo(u.url);else{const d=Bn.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Vp,this.importPath=this.constructor.importPath;let u=n(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return yo(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?xn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=Ie(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Gp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=xn(this.importPath)),xn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return _u&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2077
+ */const d_="3.5.2",Gs=window.ShadyCSS&&window.ShadyCSS.cssBuild,c_=Me(e=>{const t=u_(Po(e));function n(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!Gs){const h=u.content.querySelectorAll("style"),f=xu(u),b=sm(d),_=u.content.firstElementChild;for(let w=0;w<b.length;w++){let g=b[w];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let y=0;for(let w=0;w<f.length;w++){let g=f[w],A=h[y];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):y++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),Qp&&Gs&&Yp){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!yr||Xp)&&(u=Bn.import(l,"template"),yr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return d_}static _finalizeClass(){t._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):yu||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}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=xo(u.url);else{const d=Bn.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=qp,this.importPath=this.constructor.importPath;let u=n(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Eo(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?xn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=Ie(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Zp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=xn(this.importPath)),xn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return wu&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,7 +2082,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const Ws=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Lu{constructor(t,n){Hu(t,n);const r=n.reduce((i,o,s)=>i+Fu(o)+t[s+1],t[0]);this.value=r.toString()}toString(){return this.value}}function Fu(e){if(e instanceof Lu)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function l_(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Lu)return Fu(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const It=function(t,...n){Hu(t,n);const r=document.createElement("template");let i=n.reduce((o,s,a)=>o+l_(s)+t[a+1],t[0]);return Ws&&(i=Ws.createHTML(i)),r.innerHTML=i,r},Hu=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2085
+ */const Ys=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Uu{constructor(t,n){Wu(t,n);const r=n.reduce((i,o,s)=>i+$u(o)+t[s+1],t[0]);this.value=r.toString()}toString(){return this.value}}function $u(e){if(e instanceof Uu)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function h_(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Uu)return $u(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const It=function(t,...n){Wu(t,n);const r=document.createElement("template");let i=n.reduce((o,s,a)=>o+h_(s)+t[a+1],t[0]);return Ys&&(i=Ys.createHTML(i)),r.innerHTML=i,r},Wu=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2086
2086
  @license
2087
2087
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2088
2088
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2090,19 +2090,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2090
2090
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2091
2091
  Code distributed by Google as part of the polymer project is also
2092
2092
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2093
- */const vt=a_(HTMLElement);/**
2093
+ */const vt=c_(HTMLElement);/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2097
- */const nt=[];function Zi(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):n!=null&&e.removeAttribute("dir")}function Ki(){return document.documentElement.getAttribute("dir")}function u_(){const e=Ki();nt.forEach(t=>{Zi(t,e)})}const d_=new MutationObserver(u_);d_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ur=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:n=>n||"",toAttribute:n=>n===""?null:n}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Zi(this,Ki(),null))}attributeChangedCallback(n,r,i){if(super.attributeChangedCallback(n,r,i),n!=="dir")return;const o=Ki(),s=i===o&&nt.indexOf(this)===-1,a=!i&&r&&nt.indexOf(this)===-1;s||a?(this.__subscribe(),Zi(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=nt.includes(this),this.__unsubscribe()}_valueToNodeAttribute(n,r,i){i==="dir"&&r===""&&!n.hasAttribute("dir")||super._valueToNodeAttribute(n,r,i)}_attributeToProperty(n,r,i){n==="dir"&&!r?this.dir="":super._attributeToProperty(n,r,i)}__subscribe(){nt.includes(this)||nt.push(this)}__unsubscribe(){nt.includes(this)&&nt.splice(nt.indexOf(this),1)}};/**
2097
+ */const nt=[];function Ki(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):n!=null&&e.removeAttribute("dir")}function Ji(){return document.documentElement.getAttribute("dir")}function f_(){const e=Ji();nt.forEach(t=>{Ki(t,e)})}const p_=new MutationObserver(f_);p_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ur=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:n=>n||"",toAttribute:n=>n===""?null:n}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Ki(this,Ji(),null))}attributeChangedCallback(n,r,i){if(super.attributeChangedCallback(n,r,i),n!=="dir")return;const o=Ji(),s=i===o&&nt.indexOf(this)===-1,a=!i&&r&&nt.indexOf(this)===-1;s||a?(this.__subscribe(),Ki(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=nt.includes(this),this.__unsubscribe()}_valueToNodeAttribute(n,r,i){i==="dir"&&r===""&&!n.hasAttribute("dir")||super._valueToNodeAttribute(n,r,i)}_attributeToProperty(n,r,i){n==="dir"&&!r?this.dir="":super._attributeToProperty(n,r,i)}__subscribe(){nt.includes(this)||nt.push(this)}__unsubscribe(){nt.includes(this)&&nt.splice(nt.indexOf(this),1)}};/**
2098
2098
  * @license
2099
2099
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2100
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2101
- */const c_=e=>class extends e{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",n=>{n.target===this&&n.preventDefault()}),this.addEventListener("click",n=>{n.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2101
+ */const m_=e=>class extends e{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",n=>{n.target===this&&n.preventDefault()}),this.addEventListener("click",n=>{n.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2102
2102
  * @license
2103
2103
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2104
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2105
- */const h_=pe`
2105
+ */const __=pe`
2106
2106
  :host {
2107
2107
  display: flex;
2108
2108
  align-items: center;
@@ -2171,15 +2171,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2171
2171
  * @license
2172
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2173
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
- */De("vaadin-input-container",h_,{moduleId:"vaadin-input-container-styles"});class f_ extends c_(Ot(Ur(vt))){static get is(){return"vaadin-input-container"}static get template(){return It`
2174
+ */De("vaadin-input-container",__,{moduleId:"vaadin-input-container-styles"});class g_ extends m_(Ot(Ur(vt))){static get is(){return"vaadin-input-container"}static get template(){return It`
2175
2175
  <slot name="prefix"></slot>
2176
2176
  <slot></slot>
2177
2177
  <slot name="suffix"></slot>
2178
- `}}Ke(f_);/**
2178
+ `}}Ke(g_);/**
2179
2179
  * @license
2180
2180
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2181
2181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
- */const p_=pe`
2182
+ */const b_=pe`
2183
2183
  :host {
2184
2184
  z-index: 200;
2185
2185
  position: fixed;
@@ -2242,7 +2242,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2242
2242
  * @license
2243
2243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2244
2244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2245
- */let Ao=!1;window.addEventListener("keydown",()=>{Ao=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ao=!1},{capture:!0});function Ji(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function To(){return Ao}function m_(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const n=window.getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"}function __(e,t){const n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return n===0||r===0?r>n:n>r}function g_(e,t){const n=[];for(;e.length>0&&t.length>0;)__(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}function Qi(e){const t=e.length;if(t<2)return e;const n=Math.ceil(t/2),r=Qi(e.slice(0,n)),i=Qi(e.slice(n));return g_(r,i)}function Ru(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function b_(e){return e.getRootNode().activeElement===e}function v_(e){if(!Ru(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function zu(e,t){if(e.nodeType!==Node.ELEMENT_NODE||m_(e))return!1;const n=e,r=v_(n);let i=r>0;r>=0&&t.push(n);let o=[];return n.localName==="slot"?o=n.assignedNodes({flatten:!0}):o=(n.shadowRoot||n).children,[...o].forEach(s=>{i=zu(s,t)||i}),i}function y_(e){const t=[];return zu(e,t)?Qi(t):t}/**
2245
+ */let So=!1;window.addEventListener("keydown",()=>{So=!0},{capture:!0});window.addEventListener("mousedown",()=>{So=!1},{capture:!0});function Qi(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ko(){return So}function v_(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const n=window.getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"}function y_(e,t){const n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return n===0||r===0?r>n:n>r}function w_(e,t){const n=[];for(;e.length>0&&t.length>0;)y_(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}function eo(e){const t=e.length;if(t<2)return e;const n=Math.ceil(t/2),r=eo(e.slice(0,n)),i=eo(e.slice(n));return w_(r,i)}function Vu(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function C_(e){return e.getRootNode().activeElement===e}function E_(e){if(!Vu(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function ju(e,t){if(e.nodeType!==Node.ELEMENT_NODE||v_(e))return!1;const n=e,r=E_(n);let i=r>0;r>=0&&t.push(n);let o=[];return n.localName==="slot"?o=n.assignedNodes({flatten:!0}):o=(n.shadowRoot||n).children,[...o].forEach(s=>{i=ju(s,t)||i}),i}function x_(e){const t=[];return ju(e,t)?eo(t):t}/**
2246
2246
  @license
2247
2247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2248
2248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2250,27 +2250,27 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2250
2250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2251
2251
  Code distributed by Google as part of the polymer project is also
2252
2252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2253
- */let eo=!1,w_=[],Uu=[];function C_(){eo=!0,requestAnimationFrame(function(){eo=!1,E_(w_),setTimeout(function(){x_(Uu)})})}function E_(e){for(;e.length;)$u(e.shift())}function x_(e){for(let t=0,n=e.length;t<n;t++)$u(e.shift())}function $u(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(i){setTimeout(()=>{throw i})}}function Wu(e,t,n){eo||C_(),Uu.push([e,t,n])}/**
2253
+ */let to=!1,A_=[],Gu=[];function T_(){to=!0,requestAnimationFrame(function(){to=!1,P_(A_),setTimeout(function(){S_(Gu)})})}function P_(e){for(;e.length;)Yu(e.shift())}function S_(e){for(let t=0,n=e.length;t<n;t++)Yu(e.shift())}function Yu(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(i){setTimeout(()=>{throw i})}}function qu(e,t,n){to||T_(),Gu.push([e,t,n])}/**
2254
2254
  * @license
2255
2255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2256
2256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2257
- */const $r=e=>e.test(navigator.userAgent),to=e=>e.test(navigator.platform),A_=e=>e.test(navigator.vendor);$r(/Android/u);$r(/Chrome/u)&&A_(/Google Inc/u);$r(/Firefox/u);const T_=to(/^iPad/u)||to(/^Mac/u)&&navigator.maxTouchPoints>1,P_=to(/^iPhone/u),Vu=P_||T_;$r(/^((?!chrome|android).)*safari/iu);const S_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
2257
+ */const $r=e=>e.test(navigator.userAgent),no=e=>e.test(navigator.platform),k_=e=>e.test(navigator.vendor);$r(/Android/u);$r(/Chrome/u)&&k_(/Google Inc/u);$r(/Firefox/u);const D_=no(/^iPad/u)||no(/^Mac/u)&&navigator.maxTouchPoints>1,B_=no(/^iPhone/u),Xu=B_||D_;$r(/^((?!chrome|android).)*safari/iu);const M_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
2258
2258
  * @license
2259
2259
  * Copyright (c) 2017 Anton Korzunov
2260
2260
  * SPDX-License-Identifier: MIT
2261
- */let zt=new WeakMap,Qn=new WeakMap,er={},gi=0;const Vs=e=>e&&e.nodeType===Node.ELEMENT_NODE,bi=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},k_=(e,t)=>Vs(e)?t.map(n=>{if(!Vs(n))return bi(n,"is not a valid element"),null;let r=n;for(;r&&r!==e;){if(e.contains(r))return n;r=r.getRootNode().host}return bi(n,"is not contained inside",e),null}).filter(n=>!!n):(bi(e,"is not a valid element"),[]),D_=(e,t,n,r)=>{const i=k_(t,Array.isArray(e)?e:[e]);er[n]||(er[n]=new WeakMap);const o=er[n],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const _=b.getAttribute(r),y=_!==null&&_!=="false",w=(zt.get(b)||0)+1,g=(o.get(b)||0)+1;zt.set(b,w),o.set(b,g),s.push(b),w===1&&y&&Qn.set(b,!0),g===1&&b.setAttribute(n,"true"),y||b.setAttribute(r,"true")}})};return d(t),a.clear(),gi+=1,()=>{s.forEach(c=>{const h=zt.get(c)-1,f=o.get(c)-1;zt.set(c,h),o.set(c,f),h||(Qn.has(c)?Qn.delete(c):c.removeAttribute(r)),f||c.removeAttribute(n)}),gi-=1,gi||(zt=new WeakMap,zt=new WeakMap,Qn=new WeakMap,er={})}},ju=(e,t=document.body,n="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),D_(r,t,n,"aria-hidden")};/**
2261
+ */let zt=new WeakMap,Qn=new WeakMap,er={},bi=0;const qs=e=>e&&e.nodeType===Node.ELEMENT_NODE,vi=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},O_=(e,t)=>qs(e)?t.map(n=>{if(!qs(n))return vi(n,"is not a valid element"),null;let r=n;for(;r&&r!==e;){if(e.contains(r))return n;r=r.getRootNode().host}return vi(n,"is not contained inside",e),null}).filter(n=>!!n):(vi(e,"is not a valid element"),[]),N_=(e,t,n,r)=>{const i=O_(t,Array.isArray(e)?e:[e]);er[n]||(er[n]=new WeakMap);const o=er[n],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const _=b.getAttribute(r),y=_!==null&&_!=="false",w=(zt.get(b)||0)+1,g=(o.get(b)||0)+1;zt.set(b,w),o.set(b,g),s.push(b),w===1&&y&&Qn.set(b,!0),g===1&&b.setAttribute(n,"true"),y||b.setAttribute(r,"true")}})};return d(t),a.clear(),bi+=1,()=>{s.forEach(c=>{const h=zt.get(c)-1,f=o.get(c)-1;zt.set(c,h),o.set(c,f),h||(Qn.has(c)?Qn.delete(c):c.removeAttribute(r)),f||c.removeAttribute(n)}),bi-=1,bi||(zt=new WeakMap,zt=new WeakMap,Qn=new WeakMap,er={})}},Zu=(e,t=document.body,n="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),N_(r,t,n,"aria-hidden")};/**
2262
2262
  * @license
2263
2263
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2264
2264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2265
- */class B_{constructor(t,n){this.host=t,this.callback=typeof n=="function"?n:()=>t}showModal(){const t=this.callback();this.__showOthers=ju(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2265
+ */class I_{constructor(t,n){this.host=t,this.callback=typeof n=="function"?n:()=>t}showModal(){const t=this.callback();this.__showOthers=Zu(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2266
2266
  * @license
2267
2267
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2268
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */class M_{saveFocus(t){this.focusNode=t||Ji()}restoreFocus(t){const n=this.focusNode;if(!n)return;const r=t?t.preventScroll:!1;Ji()===document.body?setTimeout(()=>n.focus({preventScroll:r})):n.focus({preventScroll:r}),this.focusNode=null}}/**
2269
+ */class L_{saveFocus(t){this.focusNode=t||Qi()}restoreFocus(t){const n=this.focusNode;if(!n)return;const r=t?t.preventScroll:!1;Qi()===document.body?setTimeout(()=>n.focus({preventScroll:r})):n.focus({preventScroll:r}),this.focusNode=null}}/**
2270
2270
  * @license
2271
2271
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2272
2272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2273
- */const vi=[];class O_{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return y_(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(b_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");vi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,vi.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(vi).pop()&&t.key==="Tab"){t.preventDefault();const n=t.shiftKey;this.__focusNextElement(n)}}__focusNextElement(t=!1){const n=this.__focusableElements,r=t?-1:1,i=this.__focusedElementIndex,o=(n.length+i+r)%n.length,s=n[o];s.focus(),s.localName==="input"&&s.select()}}/**
2273
+ */const yi=[];class F_{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return x_(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(C_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");yi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,yi.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(yi).pop()&&t.key==="Tab"){t.preventDefault();const n=t.shiftKey;this.__focusNextElement(n)}}__focusNextElement(t=!1){const n=this.__focusableElements,r=t?-1:1,i=this.__focusedElementIndex,o=(n.length+i+r)%n.length,s=n[o];s.focus(),s.localName==="input"&&s.select()}}/**
2274
2274
  * @license
2275
2275
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2276
2276
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2278,35 +2278,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2278
2278
  * @license
2279
2279
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2280
2280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2281
- */const N_=e=>class extends ln(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new B_(this),this.__focusTrapController=new O_(this),this.__focusRestorationController=new M_}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 n=!To();this.__focusRestorationController.restoreFocus({preventScroll:n})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const n=Ji();return n===document.body||this._deepContains(n)}_deepContains(n){if(this.contains(n))return!0;let r=n;const i=n.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2281
+ */const H_=e=>class extends ln(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new I_(this),this.__focusTrapController=new F_(this),this.__focusRestorationController=new L_}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 n=!ko();this.__focusRestorationController.restoreFocus({preventScroll:n})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const n=Qi();return n===document.body||this._deepContains(n)}_deepContains(n){if(this.contains(n))return!0;let r=n;const i=n.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2282
2282
  * @license
2283
2283
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2284
2284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2285
- */const Gu=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),no=()=>Gu().filter(e=>e.$.overlay),I_=e=>e===no().pop(),L_=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return I_(this)}bringToFront(){let n="";const r=Gu().filter(i=>i!==this).pop();r&&(n=r.__zIndex+1),this.style.zIndex=n,this.__zIndex=n||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),no().forEach(n=>{n!==this&&(n.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const n=no();let r;for(;(r=n.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2285
+ */const Ku=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),ro=()=>Ku().filter(e=>e.$.overlay),R_=e=>e===ro().pop(),z_=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return R_(this)}bringToFront(){let n="";const r=Ku().filter(i=>i!==this).pop();r&&(n=r.__zIndex+1),this.style.zIndex=n,this.__zIndex=n||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ro().forEach(n=>{n!==this&&(n.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const n=ro();let r;for(;(r=n.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2286
2286
  * @license
2287
2287
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2288
2288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2289
- */const F_=e=>class extends N_(L_(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Vu&&(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(n){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const n=window.innerHeight,i=window.innerWidth>n,o=document.documentElement.clientHeight;i&&o>n?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-n}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(n,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==n,l=this._oldRenderer!==void 0;this._oldRenderer=n;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&n&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(n){n?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(n,r){n?(this._saveFocus(),this._animatedOpening(),Wu(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(n){n&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const n=getComputedStyle(this),r=n.getPropertyValue("animation-name");return!(n.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(n,r){const i=`__${n}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(n){const r=`__${n}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(n){this._mouseDownInside=n.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(n){this._mouseUpInside=n.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(n){return this._last}_outsideClickListener(n){if(n.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(n))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(n)}_keydownListener(n){if(this._last&&!(this.modeless&&!n.composedPath().includes(this.$.overlay))&&n.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(n)}}};/**
2289
+ */const U_=e=>class extends H_(z_(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Xu&&(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(n){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const n=window.innerHeight,i=window.innerWidth>n,o=document.documentElement.clientHeight;i&&o>n?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-n}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(n,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==n,l=this._oldRenderer!==void 0;this._oldRenderer=n;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&n&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(n){n?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(n,r){n?(this._saveFocus(),this._animatedOpening(),qu(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(n){n&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const n=getComputedStyle(this),r=n.getPropertyValue("animation-name");return!(n.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(n,r){const i=`__${n}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(n){const r=`__${n}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(n){this._mouseDownInside=n.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(n){this._mouseUpInside=n.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(n){return this._last}_outsideClickListener(n){if(n.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(n))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(n)}_keydownListener(n){if(this._last&&!(this.modeless&&!n.composedPath().includes(this.$.overlay))&&n.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:n}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(n)}}};/**
2290
2290
  * @license
2291
2291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2292
2292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2293
- */function H_(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function Po(e){return e?new Set(e.split(" ")):new Set}function Wr(e){return e?[...e].join(" "):""}function Yu(e,t,n){const r=Po(e.getAttribute(t));r.add(n),e.setAttribute(t,Wr(r))}function R_(e,t,n){const r=Po(e.getAttribute(t));if(r.delete(n),r.size===0){e.removeAttribute(t);return}e.setAttribute(t,Wr(r))}function z_(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
2293
+ */function $_(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function Do(e){return e?new Set(e.split(" ")):new Set}function Wr(e){return e?[...e].join(" "):""}function Ju(e,t,n){const r=Do(e.getAttribute(t));r.add(n),e.setAttribute(t,Wr(r))}function W_(e,t,n){const r=Do(e.getAttribute(t));if(r.delete(n),r.size===0){e.removeAttribute(t);return}e.setAttribute(t,Wr(r))}function V_(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
2294
2294
  * @license
2295
2295
  * Copyright (c) 2024 Vaadin Ltd.
2296
2296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2297
- */function U_(e,t){let n=null;const r=document.documentElement;function i(){n&&n.disconnect(),n=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=e.getBoundingClientRect();if(s||t(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),b=Math.floor(r.clientHeight-(u+c)),_=Math.floor(l),w={rootMargin:`${-h}px ${-f}px ${-b}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function A(v){let k=v[0].intersectionRatio;if(k!==a){if(!g)return o();k===0&&(k=1e-7),o(!1,k)}g=!1}n=new IntersectionObserver(A,w),n.observe(e)}return o(!0),i}/**
2297
+ */function j_(e,t){let n=null;const r=document.documentElement;function i(){n&&n.disconnect(),n=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=e.getBoundingClientRect();if(s||t(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),b=Math.floor(r.clientHeight-(u+c)),_=Math.floor(l),w={rootMargin:`${-h}px ${-f}px ${-b}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function A(v){let k=v[0].intersectionRatio;if(k!==a){if(!g)return o();k===0&&(k=1e-7),o(!1,k)}g=!1}n=new IntersectionObserver(A,w),n.observe(e)}return o(!0),i}/**
2298
2298
  * @license
2299
2299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2300
2300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2301
- */const yi={start:"top",end:"bottom"},wi={start:"left",end:"right"},js=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),$_=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=H_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(n=>{n.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=U_(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(n=>{n.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(n,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,js.unobserve(r),n&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,js.observe(r))),n){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(n){n.target instanceof Node&&this.contains(n.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const n=this.positionTarget.getBoundingClientRect();if(n.width===0&&n.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(n);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(n,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(n,a,this.noVerticalOverlap,yi,this,r),u=this.__calculatePositionInOneDimension(n,a,this.noHorizontalOverlap,wi,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(n,r){const i=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(n,i,o,this.__margins,s,this.noHorizontalOverlap,wi)}__shouldAlignStartVertically(n){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(n,r,i,this.__margins,o,this.noVerticalOverlap,yi)}__shouldAlignStart(n,r,i,o,s,a,l){const u=i-n[a?l.end:l.start]-o[l.end],d=n[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(n,r,i){let o;if(n===r.end){if(r.end===yi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===wi.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(n,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-n[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2301
+ */const wi={start:"top",end:"bottom"},Ci={start:"left",end:"right"},Xs=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),G_=e=>class extends e{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=$_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(n=>{n.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=j_(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(n=>{n.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(n,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,Xs.unobserve(r),n&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,Xs.observe(r))),n){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(n){n.target instanceof Node&&this.contains(n.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const n=this.positionTarget.getBoundingClientRect();if(n.width===0&&n.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(n);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(n,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(n,a,this.noVerticalOverlap,wi,this,r),u=this.__calculatePositionInOneDimension(n,a,this.noHorizontalOverlap,Ci,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(n,r){const i=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(n,i,o,this.__margins,s,this.noHorizontalOverlap,Ci)}__shouldAlignStartVertically(n){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(n,r,i,this.__margins,o,this.noVerticalOverlap,wi)}__shouldAlignStart(n,r,i,o,s,a,l){const u=i-n[a?l.end:l.start]-o[l.end],d=n[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(n,r,i){let o;if(n===r.end){if(r.end===wi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===Ci.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(n,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-n[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2302
2302
  * @license
2303
2303
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2304
2304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
- */const W_=e=>class extends $_(F_(e)){_shouldCloseOnOutsideClick(n){return!n.composedPath().includes(this.positionTarget)}_mouseDownListener(n){super._mouseDownListener(n),this._shouldCloseOnOutsideClick(n)&&!Ru(n.composedPath()[0])&&n.preventDefault()}};/**
2305
+ */const Y_=e=>class extends G_(U_(e)){_shouldCloseOnOutsideClick(n){return!n.composedPath().includes(this.positionTarget)}_mouseDownListener(n){super._mouseDownListener(n),this._shouldCloseOnOutsideClick(n)&&!Vu(n.composedPath()[0])&&n.preventDefault()}};/**
2306
2306
  * @license
2307
2307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2308
2308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2309
- */const V_=pe`
2309
+ */const q_=pe`
2310
2310
  [part='overlay'] {
2311
2311
  display: flex;
2312
2312
  flex: auto;
@@ -2325,14 +2325,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2325
2325
  * @license
2326
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2327
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */De("vaadin-date-picker-overlay",[p_,V_],{moduleId:"vaadin-date-picker-overlay-styles"});class j_ extends W_(Ur(Ot(vt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return It`
2328
+ */De("vaadin-date-picker-overlay",[b_,q_],{moduleId:"vaadin-date-picker-overlay-styles"});class X_ extends Y_(Ur(Ot(vt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return It`
2329
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2330
2330
  <div part="overlay" id="overlay">
2331
2331
  <div part="content" id="content">
2332
2332
  <slot></slot>
2333
2333
  </div>
2334
2334
  </div>
2335
- `}}Ke(j_);const G_=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Y_(){function e(){return!0}return qu(e)}function q_(){try{return X_()?!0:Z_()?lr?!K_():!Y_():!1}catch(e){return!1}}function X_(){return localStorage.getItem("vaadin.developmentmode.force")}function Z_(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function K_(){return!!(lr&&Object.keys(lr).map(t=>lr[t]).filter(t=>t.productionMode).length>0)}function qu(e,t){if(typeof e!="function")return;const n=G_.exec(e.toString());if(n)try{e=new Function(n[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return e(t)}window.Vaadin=window.Vaadin||{};const Gs=function(e,t){if(window.Vaadin.developmentMode)return qu(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=q_());function J_(){/*! vaadin-dev-mode:start
2335
+ `}}Ke(X_);const Z_=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function K_(){function e(){return!0}return Qu(e)}function J_(){try{return Q_()?!0:e0()?lr?!t0():!K_():!1}catch(e){return!1}}function Q_(){return localStorage.getItem("vaadin.developmentmode.force")}function e0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function t0(){return!!(lr&&Object.keys(lr).map(t=>lr[t]).filter(t=>t.productionMode).length>0)}function Qu(e,t){if(typeof e!="function")return;const n=Z_.exec(e.toString());if(n)try{e=new Function(n[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return e(t)}window.Vaadin=window.Vaadin||{};const Zs=function(e,t){if(window.Vaadin.developmentMode)return Qu(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=J_());function n0(){/*! vaadin-dev-mode:start
2336
2336
  (function () {
2337
2337
  'use strict';
2338
2338
 
@@ -2810,7 +2810,7 @@ try {
2810
2810
 
2811
2811
  }());
2812
2812
 
2813
- vaadin-dev-mode:end **/}const Q_=function(){if(typeof Gs=="function")return Gs(J_)};/**
2813
+ vaadin-dev-mode:end **/}const r0=function(){if(typeof Zs=="function")return Zs(n0)};/**
2814
2814
  * @license
2815
2815
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2816
2816
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2818,7 +2818,7 @@ try {
2818
2818
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2819
2819
  * Code distributed by Google as part of the polymer project is also
2820
2820
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2821
- */let Ys=0,Xu=0;const Yt=[];let ro=!1;function e0(){ro=!1;const e=Yt.length;for(let t=0;t<e;t++){const n=Yt[t];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}Yt.splice(0,e),Xu+=e}const Cr={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},t0={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},n0={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},r0={run(e){ro||(ro=!0,queueMicrotask(()=>e0())),Yt.push(e);const t=Ys;return Ys+=1,t},cancel(e){const t=e-Xu;if(t>=0){if(!Yt[t])throw new Error(`invalid async handle: ${e}`);Yt[t]=null}}};/**
2821
+ */let Ks=0,ed=0;const Yt=[];let io=!1;function i0(){io=!1;const e=Yt.length;for(let t=0;t<e;t++){const n=Yt[t];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}Yt.splice(0,e),ed+=e}const Cr={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},o0={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},s0={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},a0={run(e){io||(io=!0,queueMicrotask(()=>i0())),Yt.push(e);const t=Ks;return Ks+=1,t},cancel(e){const t=e-ed;if(t>=0){if(!Yt[t])throw new Error(`invalid async handle: ${e}`);Yt[t]=null}}};/**
2822
2822
  @license
2823
2823
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2824
2824
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2826,31 +2826,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2826
2826
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2827
2827
  Code distributed by Google as part of the polymer project is also
2828
2828
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2829
- */const io=new Set;let tn=class oo{static debounce(t,n,r){return t instanceof oo?t._cancelAsync():t=new oo,t.setConfig(n,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,n){this._asyncModule=t,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,io.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),io.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 i0(e){io.add(e)}/**
2829
+ */const oo=new Set;let tn=class so{static debounce(t,n,r){return t instanceof so?t._cancelAsync():t=new so,t.setConfig(n,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,n){this._asyncModule=t,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,oo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),oo.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 l0(e){oo.add(e)}/**
2830
2830
  * @license
2831
2831
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2832
2832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2833
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Q_()};let Ci;const qs=new Set,Zu=e=>class extends Ur(e){static finalize(){super.finalize();const{is:n}=this;n&&!qs.has(n)&&(window.Vaadin.registrations.push(this),qs.add(n),window.Vaadin.developmentModeCallback&&(Ci=tn.debounce(Ci,n0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),i0(Ci)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2833
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){r0()};let Ei;const Js=new Set,td=e=>class extends Ur(e){static finalize(){super.finalize();const{is:n}=this;n&&!Js.has(n)&&(window.Vaadin.registrations.push(this),Js.add(n),window.Vaadin.developmentModeCallback&&(Ei=tn.debounce(Ei,s0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),l0(Ei)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2834
2834
  * @license
2835
2835
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2836
2836
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2837
- */class o0{constructor(t,n){this.slot=t,this.callback=n,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 t=this.slot.assignedNodes({flatten:!0});let n=[];const r=[],i=[];t.length&&(n=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=t.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(n.length||r.length||i.length)&&this.callback({addedNodes:n,currentNodes:t,movedNodes:i,removedNodes:r}),this._storedNodes=t}}/**
2837
+ */class u0{constructor(t,n){this.slot=t,this.callback=n,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 t=this.slot.assignedNodes({flatten:!0});let n=[];const r=[],i=[];t.length&&(n=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=t.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(n.length||r.length||i.length)&&this.callback({addedNodes:n,currentNodes:t,movedNodes:i,removedNodes:r}),this._storedNodes=t}}/**
2838
2838
  * @license
2839
2839
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2840
2840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2841
- */let s0=0;function Ku(){return s0++}/**
2841
+ */let d0=0;function nd(){return d0++}/**
2842
2842
  * @license
2843
2843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2844
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2845
- */class St extends EventTarget{static generateId(t,n="default"){return`${n}-${t.localName}-${Ku()}`}constructor(t,n,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=t,this.slotName=n,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(t,u||n))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const n=this.attachDefaultNode();n&&(this.nodes=[n],this.initNode(n))}else this.nodes=t,t.forEach(n=>{this.initAddedNode(n)})}attachDefaultNode(){const{host:t,slotName:n,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(n!==""&&i.setAttribute("slot",n),this.defaultNode=i)),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(n=>n.nodeType===Node.ELEMENT_NODE&&n.slot===t||n.nodeType===Node.TEXT_NODE&&n.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:n}=this;n&&n(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,n=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(n);this.__slotObserver=new o0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!z_(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)))})}}/**
2845
+ */class St extends EventTarget{static generateId(t,n="default"){return`${n}-${t.localName}-${nd()}`}constructor(t,n,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=t,this.slotName=n,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(t,u||n))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const n=this.attachDefaultNode();n&&(this.nodes=[n],this.initNode(n))}else this.nodes=t,t.forEach(n=>{this.initAddedNode(n)})}attachDefaultNode(){const{host:t,slotName:n,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(n!==""&&i.setAttribute("slot",n),this.defaultNode=i)),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(n=>n.nodeType===Node.ELEMENT_NODE&&n.slot===t||n.nodeType===Node.TEXT_NODE&&n.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:n}=this;n&&n(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,n=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(n);this.__slotObserver=new u0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!V_(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)))})}}/**
2846
2846
  * @license
2847
2847
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2848
2848
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2849
- */class Ju extends St{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const n=this.node;n&&(n.ariaTarget=t)}setContext(t){this.context=t;const n=this.node;n&&(n.context=t)}setManual(t){this.manual=t;const n=this.node;n&&(n.manual=t)}setOpened(t){this.opened=t;const n=this.node;n&&(n.opened=t)}setPosition(t){this.position=t;const n=this.node;n&&(n._position=t)}setShouldShow(t){this.shouldShow=t;const n=this.node;n&&(n.shouldShow=t)}setTarget(t){this.target=t;const n=this.node;n&&(n.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2849
+ */class rd extends St{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const n=this.node;n&&(n.ariaTarget=t)}setContext(t){this.context=t;const n=this.node;n&&(n.context=t)}setManual(t){this.manual=t;const n=this.node;n&&(n.manual=t)}setOpened(t){this.opened=t;const n=this.node;n&&(n.opened=t)}setPosition(t){this.position=t;const n=this.node;n&&(n._position=t)}setShouldShow(t){this.shouldShow=t;const n=this.node;n&&(n.shouldShow=t)}setTarget(t){this.target=t;const n=this.node;n&&(n.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2850
2850
  * @license
2851
2851
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2852
2852
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2853
- */const a0=pe`
2853
+ */const c0=pe`
2854
2854
  :host {
2855
2855
  display: inline-block;
2856
2856
  position: relative;
@@ -2910,7 +2910,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2910
2910
  outline-color: GrayText;
2911
2911
  }
2912
2912
  }
2913
- `,l0=e=>e`
2913
+ `,h0=e=>e`
2914
2914
  <div class="vaadin-button-container">
2915
2915
  <span part="prefix" aria-hidden="true">
2916
2916
  <slot name="prefix"></slot>
@@ -2931,11 +2931,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2931
2931
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2932
2932
  Code distributed by Google as part of the polymer project is also
2933
2933
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2934
- */const u0=e=>e,Qu=typeof document.head.style.touchAction=="string",so="__polymerGestures",Ei="__polymerGesturesHandled",ao="__polymerGesturesTouchAction",Xs=25,Zs=5,d0=2,c0=["mousedown","mousemove","mouseup","click"],h0=[0,1,4,2],f0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function So(e){return c0.indexOf(e)>-1}let p0=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){p0=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function m0(e){So(e)}const _0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),g0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Dt(e){const t=e.type;if(!So(t))return!1;if(t==="mousemove"){let r=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!f0&&(r=h0[e.which]||0),!!(r&1)}return(e.button===void 0?0:e.button)===0}function b0(e){if(e.type==="click"){if(e.detail===0)return!0;const t=gt(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const n=t.getBoundingClientRect(),r=e.pageX,i=e.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}const rt={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function v0(e){let t="auto";const n=td(e);for(let r=0,i;r<n.length;r++)if(i=n[r],i[ao]){t=i[ao];break}return t}function ed(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function qt(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const td=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ko={},kt=[];function y0(e,t){let n=document.elementFromPoint(e,t),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(e,t),i===r)break;r&&(n=r)}return n}function gt(e){const t=td(e);return t.length>0?t[0]:e.target}function w0(e){const t=e.type,r=e.currentTarget[so];if(!r)return;const i=r[t];if(!i)return;if(!e[Ei]&&(e[Ei]={},t.startsWith("touch"))){const s=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(rt.touch.id=s.identifier),rt.touch.id!==s.identifier)return;Qu||(t==="touchstart"||t==="touchmove")&&C0(e)}const o=e[Ei];if(!o.skip){for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](e))}}function C0(e){const t=e.changedTouches[0],n=e.type;if(n==="touchstart")rt.touch.x=t.clientX,rt.touch.y=t.clientY,rt.touch.scrollDecided=!1;else if(n==="touchmove"){if(rt.touch.scrollDecided)return;rt.touch.scrollDecided=!0;const r=v0(e);let i=!1;const o=Math.abs(rt.touch.x-t.clientX),s=Math.abs(rt.touch.y-t.clientY);e.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?e.preventDefault():Er("track")}}function Xe(e,t,n){return ko[t]?(E0(e,t,n),!0):!1}function E0(e,t,n){const r=ko[t],i=r.deps,o=r.name;let s=e[so];s||(e[so]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(_0&&So(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&e.addEventListener(l,w0,m0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,n),r.touchAction&&nd(e,r.touchAction)}function Do(e){kt.push(e),e.emits.forEach(t=>{ko[t]=e})}function x0(e){for(let t=0,n;t<kt.length;t++){n=kt[t];for(let r=0,i;r<n.emits.length;r++)if(i=n.emits[r],i===e)return n}return null}function nd(e,t){Qu&&e instanceof HTMLElement&&r0.run(()=>{e.style.touchAction=t}),e[ao]=t}function Bo(e,t,n){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,u0(e).dispatchEvent(r),r.defaultPrevented){const i=n.preventer||n.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Er(e){const t=x0(e);t.info&&(t.info.prevent=!0)}Do({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){qt(this.info)},mousedown(e){if(!Dt(e))return;const t=gt(e),n=this,r=o=>{Dt(o)||(_n("up",t,o),qt(n.info))},i=o=>{Dt(o)&&_n("up",t,o),qt(n.info)};ed(this.info,r,i),_n("down",t,e)},touchstart(e){_n("down",gt(e),e.changedTouches[0],e)},touchend(e){_n("up",gt(e),e.changedTouches[0],e)}});function _n(e,t,n,r){t&&Bo(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent(i){return Er(i)}})}Do({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(e){this.moves.length>d0&&this.moves.shift(),this.moves.push(e)},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,qt(this.info)},mousedown(e){if(!Dt(e))return;const t=gt(e),n=this,r=o=>{const s=o.clientX,a=o.clientY;Ks(n.info,s,a)&&(n.info.state=n.info.started?o.type==="mouseup"?"end":"track":"start",n.info.state==="start"&&Er("tap"),n.info.addMove({x:s,y:a}),Dt(o)||(n.info.state="end",qt(n.info)),t&&xi(n.info,t,o),n.info.started=!0)},i=o=>{n.info.started&&r(o),qt(n.info)};ed(this.info,r,i),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=gt(e),n=e.changedTouches[0],r=n.clientX,i=n.clientY;Ks(this.info,r,i)&&(this.info.state==="start"&&Er("tap"),this.info.addMove({x:r,y:i}),xi(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend(e){const t=gt(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),xi(this.info,t,n))}});function Ks(e,t,n){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-t),i=Math.abs(e.y-n);return r>=Zs||i>=Zs}function xi(e,t,n){if(!t)return;const r=e.moves[e.moves.length-2],i=e.moves[e.moves.length-1],o=i.x-e.x,s=i.y-e.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),Bo(t,"track",{state:e.state,x:n.clientX,y:n.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:n,hover(){return y0(n.clientX,n.clientY)}})}Do({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(e){Dt(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Dt(e)&&Js(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){Js(this.info,e.changedTouches[0],e)}});function Js(e,t,n){const r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=gt(n||t);!o||g0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=Xs&&i<=Xs||b0(t))&&(e.prevent||Bo(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}/**
2934
+ */const f0=!1,p0=e=>e,Bo=typeof document.head.style.touchAction=="string",ao="__polymerGestures",xi="__polymerGesturesHandled",lo="__polymerGesturesTouchAction",Qs=25,ea=5,m0=2,_0=["mousedown","mousemove","mouseup","click"],g0=[0,1,4,2],b0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function Mo(e){return _0.indexOf(e)>-1}let id=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){id=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function v0(e){if(!(Mo(e)||e==="touchend")&&Bo&&id&&f0)return{passive:!0}}const y0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),w0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Dt(e){const t=e.type;if(!Mo(t))return!1;if(t==="mousemove"){let r=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!b0&&(r=g0[e.which]||0),!!(r&1)}return(e.button===void 0?0:e.button)===0}function C0(e){if(e.type==="click"){if(e.detail===0)return!0;const t=gt(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const n=t.getBoundingClientRect(),r=e.pageX,i=e.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}const rt={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function E0(e){let t="auto";const n=sd(e);for(let r=0,i;r<n.length;r++)if(i=n[r],i[lo]){t=i[lo];break}return t}function od(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function qt(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const sd=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Oo={},kt=[];function x0(e,t){let n=document.elementFromPoint(e,t),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(e,t),i===r)break;r&&(n=r)}return n}function gt(e){const t=sd(e);return t.length>0?t[0]:e.target}function A0(e){const t=e.type,r=e.currentTarget[ao];if(!r)return;const i=r[t];if(!i)return;if(!e[xi]&&(e[xi]={},t.startsWith("touch"))){const s=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(rt.touch.id=s.identifier),rt.touch.id!==s.identifier)return;Bo||(t==="touchstart"||t==="touchmove")&&T0(e)}const o=e[xi];if(!o.skip){for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<kt.length;s++)a=kt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](e))}}function T0(e){const t=e.changedTouches[0],n=e.type;if(n==="touchstart")rt.touch.x=t.clientX,rt.touch.y=t.clientY,rt.touch.scrollDecided=!1;else if(n==="touchmove"){if(rt.touch.scrollDecided)return;rt.touch.scrollDecided=!0;const r=E0(e);let i=!1;const o=Math.abs(rt.touch.x-t.clientX),s=Math.abs(rt.touch.y-t.clientY);e.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?e.preventDefault():Er("track")}}function Xe(e,t,n){return Oo[t]?(P0(e,t,n),!0):!1}function P0(e,t,n){const r=Oo[t],i=r.deps,o=r.name;let s=e[ao];s||(e[ao]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(y0&&Mo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&e.addEventListener(l,A0,v0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,n),r.touchAction&&ad(e,r.touchAction)}function No(e){kt.push(e),e.emits.forEach(t=>{Oo[t]=e})}function S0(e){for(let t=0,n;t<kt.length;t++){n=kt[t];for(let r=0,i;r<n.emits.length;r++)if(i=n.emits[r],i===e)return n}return null}function ad(e,t){Bo&&e instanceof HTMLElement&&a0.run(()=>{e.style.touchAction=t}),e[lo]=t}function Io(e,t,n){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,p0(e).dispatchEvent(r),r.defaultPrevented){const i=n.preventer||n.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Er(e){const t=S0(e);t.info&&(t.info.prevent=!0)}No({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){qt(this.info)},mousedown(e){if(!Dt(e))return;const t=gt(e),n=this,r=o=>{Dt(o)||(_n("up",t,o),qt(n.info))},i=o=>{Dt(o)&&_n("up",t,o),qt(n.info)};od(this.info,r,i),_n("down",t,e)},touchstart(e){_n("down",gt(e),e.changedTouches[0],e)},touchend(e){_n("up",gt(e),e.changedTouches[0],e)}});function _n(e,t,n,r){t&&Io(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent(i){return Er(i)}})}No({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(e){this.moves.length>m0&&this.moves.shift(),this.moves.push(e)},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,qt(this.info)},mousedown(e){if(!Dt(e))return;const t=gt(e),n=this,r=o=>{const s=o.clientX,a=o.clientY;ta(n.info,s,a)&&(n.info.state=n.info.started?o.type==="mouseup"?"end":"track":"start",n.info.state==="start"&&Er("tap"),n.info.addMove({x:s,y:a}),Dt(o)||(n.info.state="end",qt(n.info)),t&&Ai(n.info,t,o),n.info.started=!0)},i=o=>{n.info.started&&r(o),qt(n.info)};od(this.info,r,i),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=gt(e),n=e.changedTouches[0],r=n.clientX,i=n.clientY;ta(this.info,r,i)&&(this.info.state==="start"&&Er("tap"),this.info.addMove({x:r,y:i}),Ai(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend(e){const t=gt(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Ai(this.info,t,n))}});function ta(e,t,n){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-t),i=Math.abs(e.y-n);return r>=ea||i>=ea}function Ai(e,t,n){if(!t)return;const r=e.moves[e.moves.length-2],i=e.moves[e.moves.length-1],o=i.x-e.x,s=i.y-e.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),Io(t,"track",{state:e.state,x:n.clientX,y:n.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:n,hover(){return x0(n.clientX,n.clientY)}})}No({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(e){Dt(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Dt(e)&&na(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){na(this.info,e.changedTouches[0],e)}});function na(e,t,n){const r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=gt(n||t);!o||w0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=Qs&&i<=Qs||C0(t))&&(e.prevent||Io(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}/**
2935
2935
  * @license
2936
2936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2937
2937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2938
- */const rd=Me(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(n){this._setAriaDisabled(n)}_setAriaDisabled(n){n?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2938
+ */const ld=Me(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(n){this._setAriaDisabled(n)}_setAriaDisabled(n){n?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2939
2939
  * @license
2940
2940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2941
2941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2943,27 +2943,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2943
2943
  * @license
2944
2944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2945
2945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2946
- */const A0=e=>class extends rd(Vr(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Xe(this,"down",n=>{this._shouldSetActive(n)&&this._setActive(!0)}),Xe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(n){return!this.disabled}_onKeyDown(n){super._onKeyDown(n),this._shouldSetActive(n)&&this._activeKeys.includes(n.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(n){this.toggleAttribute("active",n)}};/**
2946
+ */const k0=e=>class extends ld(Vr(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Xe(this,"down",n=>{this._shouldSetActive(n)&&this._setActive(!0)}),Xe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(n){return!this.disabled}_onKeyDown(n){super._onKeyDown(n),this._shouldSetActive(n)&&this._activeKeys.includes(n.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(n){this.toggleAttribute("active",n)}};/**
2947
2947
  * @license
2948
2948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2949
2949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2950
- */const Mo=Me(e=>class extends e{get _keyboardActive(){return To()}ready(){this.addEventListener("focusin",n=>{this._shouldSetFocus(n)&&this._setFocused(!0)}),this.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(n){this.toggleAttribute("focused",n),this.toggleAttribute("focus-ring",n&&this._keyboardActive)}_shouldSetFocus(n){return!0}_shouldRemoveFocus(n){return!0}});/**
2950
+ */const Lo=Me(e=>class extends e{get _keyboardActive(){return ko()}ready(){this.addEventListener("focusin",n=>{this._shouldSetFocus(n)&&this._setFocused(!0)}),this.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(n){this.toggleAttribute("focused",n),this.toggleAttribute("focus-ring",n&&this._keyboardActive)}_shouldSetFocus(n){return!0}_shouldRemoveFocus(n){return!0}});/**
2951
2951
  * @license
2952
2952
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2953
2953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2954
- */const id=e=>class extends rd(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(n,r){super._disabledChanged(n,r),n?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(n){this.disabled&&n!==-1&&(this._lastTabIndex=n,this.tabindex=-1)}};/**
2954
+ */const ud=e=>class extends ld(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(n,r){super._disabledChanged(n,r),n?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(n){this.disabled&&n!==-1&&(this._lastTabIndex=n,this.tabindex=-1)}};/**
2955
2955
  * @license
2956
2956
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2957
2957
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2958
- */const T0=e=>class extends A0(id(Mo(e))){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(n){super._onKeyDown(n),!(n.altKey||n.shiftKey||n.ctrlKey||n.metaKey)&&this._activeKeys.includes(n.key)&&(n.preventDefault(),this.click())}};/**
2958
+ */const D0=e=>class extends k0(ud(Lo(e))){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(n){super._onKeyDown(n),!(n.altKey||n.shiftKey||n.ctrlKey||n.metaKey)&&this._activeKeys.includes(n.key)&&(n.preventDefault(),this.click())}};/**
2959
2959
  * @license
2960
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2961
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2962
- */De("vaadin-button",a0,{moduleId:"vaadin-button-styles"});class P0 extends T0(Zu(Ot(ln(vt)))){static get is(){return"vaadin-button"}static get template(){return l0(It)}ready(){super.ready(),this._tooltipController=new Ju(this),this.addController(this._tooltipController)}}Ke(P0);/**
2962
+ */De("vaadin-button",c0,{moduleId:"vaadin-button-styles"});class B0 extends D0(td(Ot(ln(vt)))){static get is(){return"vaadin-button"}static get template(){return h0(It)}ready(){super.ready(),this._tooltipController=new rd(this),this.addController(this._tooltipController)}}Ke(B0);/**
2963
2963
  * @license
2964
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2965
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2966
- */function S0(e){let t=e.getDay();t===0&&(t=7);const n=4-t,r=new Date(e.getTime()+n*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function lo(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function st(e,t,n=lo){return e instanceof Date&&t instanceof Date&&n(e).getTime()===n(t).getTime()}function Oo(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function nn(e,t,n,r){let i=!1;if(typeof r=="function"&&e){const o=Oo(e);i=r(o)}return(!t||e>=t)&&(!n||e<=n)&&!i}function od(e,t){return t.filter(n=>n!==void 0).reduce((n,r)=>{if(!r)return n;if(!n)return r;const i=Math.abs(e.getTime()-r.getTime()),o=Math.abs(n.getTime()-e.getTime());return i<o?r:n})}function sd(e){const t=new Date,n=new Date(t);return n.setDate(1),n.setMonth(parseInt(e)+t.getMonth()),n}function k0(e,t,n=0,r=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(i-50,n,r)?i-=100:e>new Date(i+50,n,r)&&(i+=100),i}function gn(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const n=new Date(0,0);return n.setFullYear(parseInt(t[1],10)),n.setMonth(parseInt(t[2],10)-1),n.setDate(parseInt(t[3],10)),n}function D0(e){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let n="",r="0000",i=e.year;i<0?(i=-i,n="-",r="000000"):e.year>=1e4&&(n="+",r="000000");const o=n+t(i,r),s=t(e.month+1),a=t(e.day);return[o,s,a].join("-")}function B0(e){return e instanceof Date?D0({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
2966
+ */function M0(e){let t=e.getDay();t===0&&(t=7);const n=4-t,r=new Date(e.getTime()+n*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function uo(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function st(e,t,n=uo){return e instanceof Date&&t instanceof Date&&n(e).getTime()===n(t).getTime()}function Fo(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function nn(e,t,n,r){let i=!1;if(typeof r=="function"&&e){const o=Fo(e);i=r(o)}return(!t||e>=t)&&(!n||e<=n)&&!i}function dd(e,t){return t.filter(n=>n!==void 0).reduce((n,r)=>{if(!r)return n;if(!n)return r;const i=Math.abs(e.getTime()-r.getTime()),o=Math.abs(n.getTime()-e.getTime());return i<o?r:n})}function cd(e){const t=new Date,n=new Date(t);return n.setDate(1),n.setMonth(parseInt(e)+t.getMonth()),n}function O0(e,t,n=0,r=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(i-50,n,r)?i-=100:e>new Date(i+50,n,r)&&(i+=100),i}function gn(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const n=new Date(0,0);return n.setFullYear(parseInt(t[1],10)),n.setMonth(parseInt(t[2],10)-1),n.setDate(parseInt(t[3],10)),n}function N0(e){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let n="",r="0000",i=e.year;i<0?(i=-i,n="-",r="000000"):e.year>=1e4&&(n="+",r="000000");const o=n+t(i,r),s=t(e.month+1),a=t(e.day);return[o,s,a].join("-")}function I0(e){return e instanceof Date?N0({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
2967
2967
  @license
2968
2968
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2969
2969
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2971,7 +2971,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2971
2971
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2972
2972
  Code distributed by Google as part of the polymer project is also
2973
2973
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2974
- */class xr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,n){this._asyncModule=t,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,Ln.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ln.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(t,n,r){return t instanceof xr?t._cancelAsync():t=new xr,t.setConfig(n,r),t}}let Ln=new Set;const M0=function(e){Ln.add(e)},O0=function(){const e=!!Ln.size;return Ln.forEach(t=>{try{t.flush()}catch(n){setTimeout(()=>{throw n})}}),e};/**
2974
+ */class xr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,n){this._asyncModule=t,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,Ln.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ln.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(t,n,r){return t instanceof xr?t._cancelAsync():t=new xr,t.setConfig(n,r),t}}let Ln=new Set;const L0=function(e){Ln.add(e)},F0=function(){const e=!!Ln.size;return Ln.forEach(t=>{try{t.flush()}catch(n){setTimeout(()=>{throw n})}}),e};/**
2975
2975
  @license
2976
2976
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2977
2977
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2979,11 +2979,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2979
2979
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2980
2980
  Code distributed by Google as part of the polymer project is also
2981
2981
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2982
- */const No=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=O0();while(e||t)};/**
2982
+ */const Ho=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=F0();while(e||t)};/**
2983
2983
  * @license
2984
2984
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2985
2985
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2986
- */const ad=document.createElement("template");ad.innerHTML=`
2986
+ */const hd=document.createElement("template");hd.innerHTML=`
2987
2987
  <style>
2988
2988
  :host {
2989
2989
  display: block;
@@ -3033,11 +3033,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3033
3033
  <div class="buffer"></div>
3034
3034
  <div id="fullHeight"></div>
3035
3035
  </div>
3036
- `;class ld extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ad.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),n="background-position";this.$.fullHeight.style.setProperty(n,t);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(n);this.$.fullHeight.style.removeProperty(n),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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),No()}_createElement(){}_updateElement(t,n){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(n=>{this._ensureStampedInstance(n._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const n=t?1:0;this._buffers[n].translateY=this._buffers[n?0:1].translateY+this._bufferHeight*(n?-1:1),this._buffers[n].style.transform=`translate3d(0, ${this._buffers[n].translateY}px, 0)`,this._buffers[n].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const n=this.itemHeight+this.bufferOffset,r=t>this._buffers[1].translateY+n,i=t<this._buffers[0].translateY+n;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=tn.debounce(this._debouncerScrollFinish,Cr.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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=tn.debounce(this._debouncerUpdateClones,Cr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(n=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${Ku()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,n.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const n=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(n).forEach(r=>{t.instance[r]=n[r]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!t||this._isVisible(l,n))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(t,n){const r=t.getBoundingClientRect();return r.bottom>n.top&&r.top<n.bottom}}/**
3036
+ `;class fd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(hd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),n="background-position";this.$.fullHeight.style.setProperty(n,t);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(n);this.$.fullHeight.style.removeProperty(n),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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Ho()}_createElement(){}_updateElement(t,n){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(n=>{this._ensureStampedInstance(n._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const n=t?1:0;this._buffers[n].translateY=this._buffers[n?0:1].translateY+this._bufferHeight*(n?-1:1),this._buffers[n].style.transform=`translate3d(0, ${this._buffers[n].translateY}px, 0)`,this._buffers[n].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const n=this.itemHeight+this.bufferOffset,r=t>this._buffers[1].translateY+n,i=t<this._buffers[0].translateY+n;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=tn.debounce(this._debouncerScrollFinish,Cr.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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=tn.debounce(this._debouncerUpdateClones,Cr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(n=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${nd()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,n.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const n=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(n).forEach(r=>{t.instance[r]=n[r]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!t||this._isVisible(l,n))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(t,n){const r=t.getBoundingClientRect();return r.bottom>n.top&&r.top<n.bottom}}/**
3037
3037
  * @license
3038
3038
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3040
- */const ud=document.createElement("template");ud.innerHTML=`
3040
+ */const pd=document.createElement("template");pd.innerHTML=`
3041
3041
  <style>
3042
3042
  :host {
3043
3043
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3049,11 +3049,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3049
3049
  height: 100%;
3050
3050
  }
3051
3051
  </style>
3052
- `;class N0 extends ld{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ud.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,n){t.month=sd(n)}}Ke(N0);/**
3052
+ `;class H0 extends fd{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(pd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,n){t.month=cd(n)}}Ke(H0);/**
3053
3053
  * @license
3054
3054
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3055
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3056
- */const dd=document.createElement("template");dd.innerHTML=`
3056
+ */const md=document.createElement("template");md.innerHTML=`
3057
3057
  <style>
3058
3058
  :host {
3059
3059
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3087,15 +3087,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3087
3087
  border-left-color: #000;
3088
3088
  }
3089
3089
  </style>
3090
- `;class I0 extends ld{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(dd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,n){t.year=this._yearAfterXYears(n)}_yearAfterXYears(t){const n=new Date,r=new Date(n);return r.setFullYear(parseInt(t)+n.getFullYear()),r.getFullYear()}}Ke(I0);/**
3090
+ `;class R0 extends fd{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(md.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,n){t.year=this._yearAfterXYears(n)}_yearAfterXYears(t){const n=new Date,r=new Date(n);return r.setFullYear(parseInt(t)+n.getFullYear()),r.getFullYear()}}Ke(R0);/**
3091
3091
  * @license
3092
3092
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3093
3093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3094
- */const L0=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(n,r){this.toggleAttribute("selected",r&&r.getFullYear()===n),this.toggleAttribute("current",n===new Date().getFullYear())}};/**
3094
+ */const z0=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(n,r){this.toggleAttribute("selected",r&&r.getFullYear()===n),this.toggleAttribute("current",n===new Date().getFullYear())}};/**
3095
3095
  * @license
3096
3096
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3097
3097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3098
- */class F0 extends Ot(L0(vt)){static get is(){return"vaadin-date-picker-year"}static get template(){return It`
3098
+ */class U0 extends Ot(z0(vt)){static get is(){return"vaadin-date-picker-year"}static get template(){return It`
3099
3099
  <style>
3100
3100
  :host {
3101
3101
  display: block;
@@ -3104,7 +3104,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3104
3104
  </style>
3105
3105
  <div part="year-number">[[year]]</div>
3106
3106
  <div part="year-separator" aria-hidden="true"></div>
3107
- `}}Ke(F0);/**
3107
+ `}}Ke(U0);/**
3108
3108
  @license
3109
3109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3110
3110
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3112,7 +3112,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3112
3112
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3113
3113
  Code distributed by Google as part of the polymer project is also
3114
3114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3115
- */function Io(e,t,n,r,i){let o;i&&(o=typeof n=="object"&&n!==null,o&&(r=e.__dataTemp[t]));let s=r!==n&&(r===r||n===n);return o&&s&&(e.__dataTemp[t]=n),s}const Lo=Me(e=>{class t extends e{_shouldPropertyChange(r,i,o){return Io(this,r,i,o,!0)}}return t}),H0=Me(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Io(this,r,i,o,this.mutableData)}}return t});Lo._mutablePropertyChange=Io;/**
3115
+ */function Ro(e,t,n,r,i){let o;i&&(o=typeof n=="object"&&n!==null,o&&(r=e.__dataTemp[t]));let s=r!==n&&(r===r||n===n);return o&&s&&(e.__dataTemp[t]=n),s}const zo=Me(e=>{class t extends e{_shouldPropertyChange(r,i,o){return Ro(this,r,i,o,!0)}}return t}),$0=Me(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Ro(this,r,i,o,this.mutableData)}}return t});zo._mutablePropertyChange=Ro;/**
3116
3116
  @license
3117
3117
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3118
3118
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3120,7 +3120,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3120
3120
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3121
3121
  Code distributed by Google as part of the polymer project is also
3122
3122
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3123
- */let uo=null;function co(){return uo}co.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:co,writable:!0}});const cd=xo(co),R0=Lo(cd);function z0(e,t){uo=e,Object.setPrototypeOf(e,t.prototype),new t,uo=null}const U0=xo(class{});function $0(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),Ie(Ie(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Ie(Ie(i).parentNode).replaceChild(r,i)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}class yt extends U0{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let n=[];this.children=n;for(let i=this.root.firstChild;i;i=i.nextSibling)n.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(t&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in t)this._setPendingProperty(r,t[r])}forwardHostProp(t,n){this._setPendingPropertyOrPath(t,n,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,n,r)}}_showHideChildren(t){$0(t,this.children)}_setUnmanagedPropertyToNode(t,n,r){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&n=="textContent"?t.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(t,n,r)}get parentModel(){let t=this.__parentModel;if(!t){let n;t=this;do t=t.__dataHost.__dataHost;while((n=t.__templatizeOptions)&&!n.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}yt.prototype.__dataHost;yt.prototype.__templatizeOptions;yt.prototype._methodHost;yt.prototype.__templatizeOwner;yt.prototype.__hostProps;const W0=Lo(yt);function Qs(e){let t=e.__dataHost;return t&&t._methodHost||t}function V0(e,t,n){let r=n.mutableData?W0:yt;ho.mixin&&(r=ho.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(e),Y0(i,e,t,n),i}function j0(e,t,n,r){let i=n.forwardHostProp;if(i&&t.hasHostProps){const o=e.localName=="template";let s=t.templatizeTemplateClass;if(!s){if(o){let l=n.mutableData?R0:cd;class u extends l{}s=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}s=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:G0(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);_u&&r&&Z0(t,n,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),o)z0(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function G0(e,t){return function(r,i,o){t.call(r.__templatizeOwner,i.substring(6),o[i])}}function Y0(e,t,n,r){let i=n.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:q0(o,s)})}if(r.forwardHostProp&&t.__dataHost)for(let o in i)n.hasHostProps||(n.hasHostProps=!0),e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:X0()})}function q0(e,t){return function(r,i,o){t.call(r.__templatizeOwner,r,i,o[i])}}function X0(){return function(t,n,r){t.__dataHost._setPendingPropertyOrPath("_host_"+n,r[n],!0,!0)}}function ho(e,t,n){if(yr&&!Qs(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:yt)._parseTemplate(e),o=i.templatizeInstanceClass;o||(o=V0(e,i,n),i.templatizeInstanceClass=o);const s=Qs(e);j0(e,i,n,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function Z0(e,t,n){const r=n.constructor._properties,{propertyEffects:i}=e,{instanceProps:o}=t;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[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 K0(e,t){let n;for(;t;)if(n=t.__dataHost?t:t.__templatizeInstance)if(n.__dataHost!=e)t=n.__dataHost;else return n;else t=Ie(t).parentNode;return null}/**
3123
+ */let co=null;function ho(){return co}ho.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ho,writable:!0}});const _d=Po(ho),W0=zo(_d);function V0(e,t){co=e,Object.setPrototypeOf(e,t.prototype),new t,co=null}const j0=Po(class{});function G0(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),Ie(Ie(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Ie(Ie(i).parentNode).replaceChild(r,i)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}class yt extends j0{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let n=[];this.children=n;for(let i=this.root.firstChild;i;i=i.nextSibling)n.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(t&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in t)this._setPendingProperty(r,t[r])}forwardHostProp(t,n){this._setPendingPropertyOrPath(t,n,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,n,r)}}_showHideChildren(t){G0(t,this.children)}_setUnmanagedPropertyToNode(t,n,r){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&n=="textContent"?t.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(t,n,r)}get parentModel(){let t=this.__parentModel;if(!t){let n;t=this;do t=t.__dataHost.__dataHost;while((n=t.__templatizeOptions)&&!n.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}yt.prototype.__dataHost;yt.prototype.__templatizeOptions;yt.prototype._methodHost;yt.prototype.__templatizeOwner;yt.prototype.__hostProps;const Y0=zo(yt);function ra(e){let t=e.__dataHost;return t&&t._methodHost||t}function q0(e,t,n){let r=n.mutableData?Y0:yt;fo.mixin&&(r=fo.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(e),K0(i,e,t,n),i}function X0(e,t,n,r){let i=n.forwardHostProp;if(i&&t.hasHostProps){const o=e.localName=="template";let s=t.templatizeTemplateClass;if(!s){if(o){let l=n.mutableData?W0:_d;class u extends l{}s=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}s=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Z0(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);wu&&r&&eg(t,n,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),o)V0(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function Z0(e,t){return function(r,i,o){t.call(r.__templatizeOwner,i.substring(6),o[i])}}function K0(e,t,n,r){let i=n.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:J0(o,s)})}if(r.forwardHostProp&&t.__dataHost)for(let o in i)n.hasHostProps||(n.hasHostProps=!0),e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Q0()})}function J0(e,t){return function(r,i,o){t.call(r.__templatizeOwner,r,i,o[i])}}function Q0(){return function(t,n,r){t.__dataHost._setPendingPropertyOrPath("_host_"+n,r[n],!0,!0)}}function fo(e,t,n){if(yr&&!ra(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:yt)._parseTemplate(e),o=i.templatizeInstanceClass;o||(o=q0(e,i,n),i.templatizeInstanceClass=o);const s=ra(e);X0(e,i,n,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function eg(e,t,n){const r=n.constructor._properties,{propertyEffects:i}=e,{instanceProps:o}=t;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[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 tg(e,t){let n;for(;t;)if(n=t.__dataHost?t:t.__templatizeInstance)if(n.__dataHost!=e)t=n.__dataHost;else return n;else t=Ie(t).parentNode;return null}/**
3124
3124
  @license
3125
3125
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3126
3126
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3128,7 +3128,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3128
3128
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3129
3129
  Code distributed by Google as part of the polymer project is also
3130
3130
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3131
- */let ea=!1;function J0(){if(mu&&!pu){if(!ea){ea=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
3131
+ */let ia=!1;function ng(){if(yu&&!vu){if(!ia){ia=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
3132
3132
  @license
3133
3133
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3134
3134
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3136,15 +3136,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3136
3136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3137
3137
  Code distributed by Google as part of the polymer project is also
3138
3138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3139
- */const Q0=H0(vt);class ta extends Q0{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:!Ps,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),J0()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ie(Ie(this).parentNode);for(let n=0;n<this.__instances.length;n++)this.__attachInstance(n,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let n=this.template=t._templateInfo?t:this.querySelector("template");if(!n){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=ho(n,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(rm(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=On(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let n=t,r=this.__getMethodHost();return function(){return r[n].apply(r,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let n=this.__observePaths;for(let r=0;r<n.length;r++)t.indexOf(n[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,n=0){this.__renderDebouncer=xr.debounce(this.__renderDebouncer,n>0?um.after(n):Tu,t.bind(this)),M0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),No()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const n=this.__sortAndFilterItems(t),r=this.__calculateLimit(n.length);this.__updateInstances(t,r,n),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ps||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=r;return this.__filterFn&&(n=n.filter((r,i,o)=>this.__filterFn(t[r],i,o))),this.__sortFn&&n.sort((r,i)=>this.__sortFn(t[r],t[i])),n}__calculateLimit(t){let n=t;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),i=Math.max(n-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,n=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*n)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,n,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<n;o++){let s=this.__instances[o],a=r[o],l=t[a];i[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(t){let n=this.__instances[t];const r=Ie(n.root);for(let i=0;i<n.children.length;i++){let o=n.children[i];r.appendChild(o)}return n}__attachInstance(t,n){let r=this.__instances[t];n.insertBefore(r.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,n,r){let i={};return i[this.as]=t,i[this.indexAs]=n,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(t,n,r){const i=this.__stampInstance(t,n,r);let o=this.__instances[n+1],s=o?o.children[0]:this;return Ie(Ie(this).parentNode).insertBefore(i.root,s),this.__instances[n]=i,i}_showHideChildren(t){for(let n=0;n<this.__instances.length;n++)this.__instances[n]._showHideChildren(t)}__handleItemPath(t,n){let r=t.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,n,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let n=this.modelForElement(t);return n&&n[this.as]}indexForElement(t){let n=this.modelForElement(t);return n&&n[this.indexAs]}modelForElement(t){return K0(this.template,t)}}customElements.define(ta.is,ta);/**
3139
+ */const rg=$0(vt);class oa extends rg{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:!Bs,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),ng()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ie(Ie(this).parentNode);for(let n=0;n<this.__instances.length;n++)this.__attachInstance(n,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let n=this.template=t._templateInfo?t:this.querySelector("template");if(!n){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=fo(n,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(am(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=On(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let n=t,r=this.__getMethodHost();return function(){return r[n].apply(r,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let n=this.__observePaths;for(let r=0;r<n.length;r++)t.indexOf(n[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,n=0){this.__renderDebouncer=xr.debounce(this.__renderDebouncer,n>0?fm.after(n):Bu,t.bind(this)),L0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ho()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const n=this.__sortAndFilterItems(t),r=this.__calculateLimit(n.length);this.__updateInstances(t,r,n),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Bs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=r;return this.__filterFn&&(n=n.filter((r,i,o)=>this.__filterFn(t[r],i,o))),this.__sortFn&&n.sort((r,i)=>this.__sortFn(t[r],t[i])),n}__calculateLimit(t){let n=t;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),i=Math.max(n-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,n=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*n)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,n,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<n;o++){let s=this.__instances[o],a=r[o],l=t[a];i[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(t){let n=this.__instances[t];const r=Ie(n.root);for(let i=0;i<n.children.length;i++){let o=n.children[i];r.appendChild(o)}return n}__attachInstance(t,n){let r=this.__instances[t];n.insertBefore(r.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,n,r){let i={};return i[this.as]=t,i[this.indexAs]=n,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(t,n,r){const i=this.__stampInstance(t,n,r);let o=this.__instances[n+1],s=o?o.children[0]:this;return Ie(Ie(this).parentNode).insertBefore(i.root,s),this.__instances[n]=i,i}_showHideChildren(t){for(let n=0;n<this.__instances.length;n++)this.__instances[n]._showHideChildren(t)}__handleItemPath(t,n){let r=t.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,n,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let n=this.modelForElement(t);return n&&n[this.as]}indexForElement(t){let n=this.modelForElement(t);return n&&n[this.indexAs]}modelForElement(t){return tg(this.template,t)}}customElements.define(oa.is,oa);/**
3140
3140
  * @license
3141
3141
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3142
3142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3143
- */const eg=e=>class extends Mo(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(n=>st(n.date,this.focusedDate))}ready(){super.ready(),Xe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(n,r,i){const o=new Date(0,0);o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(n.getFullYear()),s.setMonth(n.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===n.getMonth()&&i.getDate()-r.getDate()>=0?!1:!nn(o,r,i)&&!nn(s,r,i)}_getTitle(n,r){if(!(n===void 0||r===void 0))return r.formatTitle(r.monthNames[n.getMonth()],n.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(n,r){n.setDate(n.getDate()+r)}_applyFirstDayOfWeek(n,r){if(!(n===void 0||r===void 0))return n.slice(r).concat(n.slice(0,r))}_getWeekDayNames(n,r){if(n===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=n,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(n,r){Array.isArray(r)&&r.some(i=>st(i,n))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(n){return n?n.getDate():""}_showWeekSeparator(n,r){return n&&r&&r.firstDayOfWeek===1}_isToday(n){return st(new Date,n)}_getDays(n,r){if(n===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(n.getFullYear()),i.setMonth(n.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=n.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(n){return n.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(n){!this.ignoreTaps&&!this._notTapping&&n.target.date&&!n.target.hasAttribute("disabled")&&(this.selectedDate=n.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:n.target.date},bubbles:!0,composed:!0})))}_preventDefault(n){n.preventDefault()}__getWeekNumber(n){const r=n.reduce((i,o)=>!i&&o?o:i);return S0(r)}__getDayAriaLabel(n){if(!n)return"";let r=`${this._getDate(n)} ${this.i18n.monthNames[n.getMonth()]} ${n.getFullYear()}, ${this.i18n.weekdays[n.getDay()]}`;return this._isToday(n)&&(r+=`, ${this.i18n.today}`),r}};/**
3143
+ */const ig=e=>class extends Lo(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(n=>st(n.date,this.focusedDate))}ready(){super.ready(),Xe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(n,r,i){const o=new Date(0,0);o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(n.getFullYear()),s.setMonth(n.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===n.getMonth()&&i.getDate()-r.getDate()>=0?!1:!nn(o,r,i)&&!nn(s,r,i)}_getTitle(n,r){if(!(n===void 0||r===void 0))return r.formatTitle(r.monthNames[n.getMonth()],n.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(n,r){n.setDate(n.getDate()+r)}_applyFirstDayOfWeek(n,r){if(!(n===void 0||r===void 0))return n.slice(r).concat(n.slice(0,r))}_getWeekDayNames(n,r){if(n===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=n,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(n,r){Array.isArray(r)&&r.some(i=>st(i,n))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(n){return n?n.getDate():""}_showWeekSeparator(n,r){return n&&r&&r.firstDayOfWeek===1}_isToday(n){return st(new Date,n)}_getDays(n,r){if(n===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(n.getFullYear()),i.setMonth(n.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=n.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(n){return n.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(n){!this.ignoreTaps&&!this._notTapping&&n.target.date&&!n.target.hasAttribute("disabled")&&(this.selectedDate=n.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:n.target.date},bubbles:!0,composed:!0})))}_preventDefault(n){n.preventDefault()}__getWeekNumber(n){const r=n.reduce((i,o)=>!i&&o?o:i);return M0(r)}__getDayAriaLabel(n){if(!n)return"";let r=`${this._getDate(n)} ${this.i18n.monthNames[n.getMonth()]} ${n.getFullYear()}, ${this.i18n.weekdays[n.getDay()]}`;return this._isToday(n)&&(r+=`, ${this.i18n.today}`),r}};/**
3144
3144
  * @license
3145
3145
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3146
3146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3147
- */const tg=pe`
3147
+ */const og=pe`
3148
3148
  :host {
3149
3149
  display: block;
3150
3150
  }
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */De("vaadin-month-calendar",tg,{moduleId:"vaadin-month-calendar-styles"});class ng extends eg(Ot(vt)){static get template(){return It`
3207
+ */De("vaadin-month-calendar",og,{moduleId:"vaadin-month-calendar-styles"});class sg extends ig(Ot(vt)){static get template(){return It`
3208
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3209
3209
  <table
3210
3210
  id="monthGrid"
@@ -3246,19 +3246,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3246
3246
  </template>
3247
3247
  </tbody>
3248
3248
  </table>
3249
- `}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(t,n){t&&n&&n.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,n,r,i,o,s){const a=["date"],l=t>lo(new Date),u=t<lo(new Date);return this.__isDayDisabled(t,i,o,s)&&a.push("disabled"),this.__isDayFocused(t,n)&&a.push("focused"),this.__isDaySelected(t,r)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,n){return st(t,n)}__isDaySelected(t,n){return st(t,n)}__getDayAriaSelected(t,n){if(this.__isDaySelected(t,n))return"true"}__isDayDisabled(t,n,r,i){return!nn(t,n,r,i)}__getDayAriaDisabled(t,n,r,i){if(!(t===void 0||n===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(t,n,r,i))return"true"}__getDayTabindex(t,n){return this.__isDayFocused(t,n)?"0":"-1"}}Ke(ng);/**
3249
+ `}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(t,n){t&&n&&n.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,n,r,i,o,s){const a=["date"],l=t>uo(new Date),u=t<uo(new Date);return this.__isDayDisabled(t,i,o,s)&&a.push("disabled"),this.__isDayFocused(t,n)&&a.push("focused"),this.__isDaySelected(t,r)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,n){return st(t,n)}__isDaySelected(t,n){return st(t,n)}__getDayAriaSelected(t,n){if(this.__isDaySelected(t,n))return"true"}__isDayDisabled(t,n,r,i){return!nn(t,n,r,i)}__getDayAriaDisabled(t,n,r,i){if(!(t===void 0||n===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(t,n,r,i))return"true"}__getDayTabindex(t,n){return this.__isDayFocused(t,n)?"0":"-1"}}Ke(sg);/**
3250
3250
  * @license
3251
3251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3252
3252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3253
- */class hd{constructor(t,n){this.query=t,this.callback=n,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(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3253
+ */class gd{constructor(t,n){this.query=t,this.callback=n,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(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3254
3254
  * @license
3255
3255
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3256
3256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3257
- */const rg=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(n=>n.focusableDateElement).find(Boolean)}_addListeners(){nd(this.$.scrollers,"pan-y"),Xe(this.$.scrollers,"track",this._track.bind(this)),Xe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Xe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Xe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new hd(this._desktopMediaQuery,n=>{this._desktopMode=n})),this.addController(new St(this,"today-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Xe(n,"tap",this._onTodayTap.bind(this)),this._todayButton=n}})),this.addController(new St(this,"cancel-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Xe(n,"tap",this._cancel.bind(this)),this._cancelButton=n}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(n,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(n):0;this._scrollToPosition(this._differenceInMonths(n,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new St(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:n=>{n.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),n.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),n.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),n.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=n}}))}__initYearScroller(){this.addController(new St(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:n=>{n.setAttribute("aria-hidden","true"),Xe(n,"tap",r=>{this._onYearTap(r)}),n.addEventListener("custom-scroll",()=>{this._onYearScroll()}),n.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),n.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=n}}))}__updateCancelButton(n,r){n&&(n.textContent=r&&r.cancel)}__updateTodayButton(n,r,i,o,s){n&&(n.textContent=r&&r.today,n.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(n,r,i,o,s,a,l,u,d,c){n&&n.length&&n.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(n,r,i){n&&n.length&&n.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(n){return this._dateAllowed(n)?(this.selectedDate=n,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:n},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(n){this.toggleAttribute("desktop",n)}_focusedDateChanged(n){this.revealDate(n)}revealDate(n,r=!0){if(!n)return;const i=this._differenceInMonths(n,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(n);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(n){const r=new Date(0,0);r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<n.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(n){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(n)}_repositionYearScroller(){const n=this._monthScroller.position;this._visibleMonthIndex=Math.floor(n),this._yearScroller.position=(n+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=tn.debounce(this._debouncer,Cr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(n,r,i){return n&&r&&typeof r.formatDate=="function"?r.formatDate(Oo(n)):i}_onTodayTap(){const n=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(n,this._originDate))<.001?(this._selectDate(n),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(n){if(!this._ignoreTaps&&!this._notTapping){const i=(n.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(n,r){if(this._targetPosition!==void 0){this._targetPosition=n;return}if(!r){this._monthScroller.position=n,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=n;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(n,r){return Math.min(r.max,Math.max(r.min,n))}_handleTrack(n){if(Math.abs(n.detail.dx)<10||Math.abs(n.detail.ddy)>10)return;Math.abs(n.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+n.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(n){if(!this._desktopMode)switch(n.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(n);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(n){n?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(n){this._desktopMode||(this._monthScroller.style.transform=`translateX(${n-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${n}px)`)}_yearAfterXMonths(n){return sd(n).getFullYear()}_differenceInMonths(n,r){return(n.getFullYear()-r.getFullYear())*12-r.getMonth()+n.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(n){n.preventDefault()}__toggleDate(n){st(n,this.selectedDate)?(this._clear(),this.focusedDate=n):this._selectDate(n)}__onMonthCalendarKeyDown(n){let r=!1;switch(n.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(n.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(n.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(n,"calendar");break}r&&(n.preventDefault(),n.stopPropagation())}_onTabKeyDown(n,r){switch(n.stopPropagation(),r){case"calendar":n.shiftKey&&(n.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":n.shiftKey&&(n.preventDefault(),this.focusDateElement());break;case"cancel":n.shiftKey||(n.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(n){n.key==="Tab"&&this._onTabKeyDown(n,"today")}__onCancelButtonKeyDown(n){n.key==="Tab"&&this._onTabKeyDown(n,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&st(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(n,r){return Ue(this,null,function*(){const i=n||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(n=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{Wu(this,()=>{No(),r()})})),n&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(n){this.focusDate(od(n,[this.minDate,this.maxDate]))}_focusAllowedDate(n,r,i){this._dateAllowed(n,void 0,void 0,()=>!1)?this.focusDate(n,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(n,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+n),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(n){const r=this._getDateDiff(0,n);this._focusAllowedDate(r,n,!1)}_moveFocusByMonths(n){const r=this._getDateDiff(n),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,n,!0)}_moveFocusInsideMonth(n,r){const i=new Date(0,0);i.setFullYear(n.getFullYear()),r==="minDate"?(i.setMonth(n.getMonth()),i.setDate(1)):(i.setMonth(n.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(n)?this.focusDate(this[r]):this._focusClosestDate(n)}_dateAllowed(n,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return nn(n,r,i,o)}_isTodayAllowed(n,r,i){return this._dateAllowed(this._getTodayMidnight(),n,r,i)}_getTodayMidnight(){const n=new Date,r=new Date(0,0);return r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(n.getDate()),r}};/**
3257
+ */const ag=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(n=>n.focusableDateElement).find(Boolean)}_addListeners(){ad(this.$.scrollers,"pan-y"),Xe(this.$.scrollers,"track",this._track.bind(this)),Xe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Xe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Xe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new gd(this._desktopMediaQuery,n=>{this._desktopMode=n})),this.addController(new St(this,"today-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Xe(n,"tap",this._onTodayTap.bind(this)),this._todayButton=n}})),this.addController(new St(this,"cancel-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Xe(n,"tap",this._cancel.bind(this)),this._cancelButton=n}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(n,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(n):0;this._scrollToPosition(this._differenceInMonths(n,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new St(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:n=>{n.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),n.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),n.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),n.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=n}}))}__initYearScroller(){this.addController(new St(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:n=>{n.setAttribute("aria-hidden","true"),Xe(n,"tap",r=>{this._onYearTap(r)}),n.addEventListener("custom-scroll",()=>{this._onYearScroll()}),n.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),n.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=n}}))}__updateCancelButton(n,r){n&&(n.textContent=r&&r.cancel)}__updateTodayButton(n,r,i,o,s){n&&(n.textContent=r&&r.today,n.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(n,r,i,o,s,a,l,u,d,c){n&&n.length&&n.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(n,r,i){n&&n.length&&n.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(n){return this._dateAllowed(n)?(this.selectedDate=n,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:n},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(n){this.toggleAttribute("desktop",n)}_focusedDateChanged(n){this.revealDate(n)}revealDate(n,r=!0){if(!n)return;const i=this._differenceInMonths(n,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(n);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(n){const r=new Date(0,0);r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<n.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(n){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(n)}_repositionYearScroller(){const n=this._monthScroller.position;this._visibleMonthIndex=Math.floor(n),this._yearScroller.position=(n+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=tn.debounce(this._debouncer,Cr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(n,r,i){return n&&r&&typeof r.formatDate=="function"?r.formatDate(Fo(n)):i}_onTodayTap(){const n=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(n,this._originDate))<.001?(this._selectDate(n),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(n){if(!this._ignoreTaps&&!this._notTapping){const i=(n.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(n,r){if(this._targetPosition!==void 0){this._targetPosition=n;return}if(!r){this._monthScroller.position=n,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=n;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(n,r){return Math.min(r.max,Math.max(r.min,n))}_handleTrack(n){if(Math.abs(n.detail.dx)<10||Math.abs(n.detail.ddy)>10)return;Math.abs(n.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+n.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(n){if(!this._desktopMode)switch(n.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(n);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(n){n?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(n){this._desktopMode||(this._monthScroller.style.transform=`translateX(${n-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${n}px)`)}_yearAfterXMonths(n){return cd(n).getFullYear()}_differenceInMonths(n,r){return(n.getFullYear()-r.getFullYear())*12-r.getMonth()+n.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(n){n.preventDefault()}__toggleDate(n){st(n,this.selectedDate)?(this._clear(),this.focusedDate=n):this._selectDate(n)}__onMonthCalendarKeyDown(n){let r=!1;switch(n.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(n.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(n.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(n,"calendar");break}r&&(n.preventDefault(),n.stopPropagation())}_onTabKeyDown(n,r){switch(n.stopPropagation(),r){case"calendar":n.shiftKey&&(n.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":n.shiftKey&&(n.preventDefault(),this.focusDateElement());break;case"cancel":n.shiftKey||(n.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(n){n.key==="Tab"&&this._onTabKeyDown(n,"today")}__onCancelButtonKeyDown(n){n.key==="Tab"&&this._onTabKeyDown(n,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&st(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(n,r){return Ue(this,null,function*(){const i=n||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(n=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{qu(this,()=>{Ho(),r()})})),n&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(n){this.focusDate(dd(n,[this.minDate,this.maxDate]))}_focusAllowedDate(n,r,i){this._dateAllowed(n,void 0,void 0,()=>!1)?this.focusDate(n,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(n,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+n),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(n){const r=this._getDateDiff(0,n);this._focusAllowedDate(r,n,!1)}_moveFocusByMonths(n){const r=this._getDateDiff(n),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,n,!0)}_moveFocusInsideMonth(n,r){const i=new Date(0,0);i.setFullYear(n.getFullYear()),r==="minDate"?(i.setMonth(n.getMonth()),i.setDate(1)):(i.setMonth(n.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(n)?this.focusDate(this[r]):this._focusClosestDate(n)}_dateAllowed(n,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return nn(n,r,i,o)}_isTodayAllowed(n,r,i){return this._dateAllowed(this._getTodayMidnight(),n,r,i)}_getTodayMidnight(){const n=new Date,r=new Date(0,0);return r.setFullYear(n.getFullYear()),r.setMonth(n.getMonth()),r.setDate(n.getDate()),r}};/**
3258
3258
  * @license
3259
3259
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3260
3260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3261
- */const ig=pe`
3261
+ */const lg=pe`
3262
3262
  :host {
3263
3263
  display: flex;
3264
3264
  flex-direction: column;
@@ -3322,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3322
3322
  * @license
3323
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3325
- */De("vaadin-date-picker-overlay-content",ig,{moduleId:"vaadin-date-picker-overlay-content-styles"});class og extends rg(ln(Ot(Ur(vt)))){static get template(){return It`
3325
+ */De("vaadin-date-picker-overlay-content",lg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class ug extends ag(ln(Ot(Ur(vt)))){static get template(){return It`
3326
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3327
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3328
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3342,75 +3342,75 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3342
3342
  <slot name="today-button"></slot>
3343
3343
  <slot name="cancel-button"></slot>
3344
3344
  </div>
3345
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Ke(og);/**
3345
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Ke(ug);/**
3346
3346
  * @license
3347
3347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3348
3348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3349
- */const fd=Me(e=>class extends Mo(id(e)){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(n,r){n?(n.disabled=this.disabled,this._addFocusListeners(n),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(n){n.addEventListener("blur",this._boundOnBlur),n.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(n){n.removeEventListener("blur",this._boundOnBlur),n.removeEventListener("focus",this._boundOnFocus)}_onFocus(n){n.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(n){n.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(n){return n.target===this.focusElement}_shouldRemoveFocus(n){return n.target===this.focusElement}_disabledChanged(n,r){super._disabledChanged(n,r),this.focusElement&&(this.focusElement.disabled=n),n&&this.blur()}_tabindexChanged(n){this.__forwardTabIndex(n)}__forwardTabIndex(n){n!==void 0&&this.focusElement&&(this.focusElement.tabIndex=n,n!==-1&&(this.tabindex=void 0)),this.disabled&&n&&(n!==-1&&(this._lastTabIndex=n),this.tabindex=void 0)}});/**
3349
+ */const bd=Me(e=>class extends Lo(ud(e)){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(n,r){n?(n.disabled=this.disabled,this._addFocusListeners(n),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(n){n.addEventListener("blur",this._boundOnBlur),n.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(n){n.removeEventListener("blur",this._boundOnBlur),n.removeEventListener("focus",this._boundOnFocus)}_onFocus(n){n.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(n){n.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(n){return n.target===this.focusElement}_shouldRemoveFocus(n){return n.target===this.focusElement}_disabledChanged(n,r){super._disabledChanged(n,r),this.focusElement&&(this.focusElement.disabled=n),n&&this.blur()}_tabindexChanged(n){this.__forwardTabIndex(n)}__forwardTabIndex(n){n!==void 0&&this.focusElement&&(this.focusElement.tabIndex=n,n!==-1&&(this.tabindex=void 0)),this.disabled&&n&&(n!==-1&&(this._lastTabIndex=n),this.tabindex=void 0)}});/**
3350
3350
  * @license
3351
3351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3352
3352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3353
- */const Ai=new WeakMap;function sg(e){return Ai.has(e)||Ai.set(e,new Set),Ai.get(e)}function ag(e,t){const n=document.createElement("style");n.textContent=e,t===document?document.head.appendChild(n):t.insertBefore(n,t.firstChild)}const lg=Me(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),r=sg(n);this.slotStyles.forEach(i=>{r.has(i)||(ag(i,n),r.add(i))})}});/**
3353
+ */const Ti=new WeakMap;function dg(e){return Ti.has(e)||Ti.set(e,new Set),Ti.get(e)}function cg(e,t){const n=document.createElement("style");n.textContent=e,t===document?document.head.appendChild(n):t.insertBefore(n,t.firstChild)}const hg=Me(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),r=dg(n);this.slotStyles.forEach(i=>{r.has(i)||(cg(i,n),r.add(i))})}});/**
3354
3354
  * @license
3355
3355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3356
3356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3357
- */const pd=Me(e=>class extends e{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(n){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=n)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(n){n.addEventListener("input",this._boundOnInput),n.addEventListener("change",this._boundOnChange)}_removeInputListeners(n){n.removeEventListener("input",this._boundOnInput),n.removeEventListener("change",this._boundOnChange)}_forwardInputValue(n){this.inputElement&&(this._inputElementValue=n!=null?n:"")}_inputElementChanged(n,r){n?this._addInputListeners(n):r&&this._removeInputListeners(r)}_hasInputValueChanged(n,r){(n||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(n){this._setHasInputValue(n),this._onInput(n)}_onInput(n){const r=n.composedPath()[0];this.__userInput=n.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(n){}_toggleHasValue(n){this.toggleAttribute("has-value",n)}_valueChanged(n,r){this._toggleHasValue(this._hasValue),!(n===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(n))}_setHasInputValue(n){const r=n.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3357
+ */const vd=Me(e=>class extends e{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(n){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=n)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(n){n.addEventListener("input",this._boundOnInput),n.addEventListener("change",this._boundOnChange)}_removeInputListeners(n){n.removeEventListener("input",this._boundOnInput),n.removeEventListener("change",this._boundOnChange)}_forwardInputValue(n){this.inputElement&&(this._inputElementValue=n!=null?n:"")}_inputElementChanged(n,r){n?this._addInputListeners(n):r&&this._removeInputListeners(r)}_hasInputValueChanged(n,r){(n||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(n){this._setHasInputValue(n),this._onInput(n)}_onInput(n){const r=n.composedPath()[0];this.__userInput=n.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(n){}_toggleHasValue(n){this.toggleAttribute("has-value",n)}_valueChanged(n,r){this._toggleHasValue(this._hasValue),!(n===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(n))}_setHasInputValue(n){const r=n.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3358
3358
  * @license
3359
3359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3360
3360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3361
- */const ug=e=>class extends pd(Vr(e)){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",n=>this._onClearButtonMouseDown(n)),this.clearElement.addEventListener("click",n=>this._onClearButtonClick(n)))}_onClearButtonClick(n){n.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(n){n.preventDefault(),S_||this.inputElement.focus()}_onEscape(n){super._onEscape(n),this.clearButtonVisible&&this.value&&!this.readonly&&(n.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3361
+ */const fg=e=>class extends vd(Vr(e)){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",n=>this._onClearButtonMouseDown(n)),this.clearElement.addEventListener("click",n=>this._onClearButtonClick(n)))}_onClearButtonClick(n){n.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(n){n.preventDefault(),M_||this.inputElement.focus()}_onEscape(n){super._onEscape(n),this.clearButtonVisible&&this.value&&!this.readonly&&(n.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3362
3362
  * @license
3363
3363
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3364
3364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3365
- */const Ti=new Map;function Fo(e){return Ti.has(e)||Ti.set(e,new WeakMap),Ti.get(e)}function md(e,t){e&&e.removeAttribute(t)}function _d(e,t){if(!e||!t)return;const n=Fo(t);if(n.has(e))return;const r=Po(e.getAttribute(t));n.set(e,new Set(r))}function dg(e,t){if(!e)return;const n=Fo(t),r=n.get(e);!r||r.size===0?e.removeAttribute(t):Yu(e,t,Wr(r)),n.delete(e)}function Pi(e,t,n={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:r,oldId:i,fromUser:o}=n,s=Fo(t),a=s.get(e);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(e):_d(e,t),md(e,t)),R_(e,t,i);const l=r||Wr(a);l&&Yu(e,t,l)}function cg(e,t){_d(e,t),md(e,t)}/**
3365
+ */const Pi=new Map;function Uo(e){return Pi.has(e)||Pi.set(e,new WeakMap),Pi.get(e)}function yd(e,t){e&&e.removeAttribute(t)}function wd(e,t){if(!e||!t)return;const n=Uo(t);if(n.has(e))return;const r=Do(e.getAttribute(t));n.set(e,new Set(r))}function pg(e,t){if(!e||!t)return;const n=Uo(t),r=n.get(e);!r||r.size===0?e.removeAttribute(t):Ju(e,t,Wr(r)),n.delete(e)}function Si(e,t,n={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:r,oldId:i,fromUser:o}=n,s=Uo(t),a=s.get(e);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(e):wd(e,t),yd(e,t)),W_(e,t,i);const l=r||Wr(a);l&&Ju(e,t,l)}function mg(e,t){wd(e,t),yd(e,t)}/**
3366
3366
  * @license
3367
3367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3368
3368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3369
- */class hg{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,n=!1){const r=n?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,r,n),n?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(cg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(dg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,n,r){Pi(this.__target,"aria-labelledby",{newId:t,oldId:n,fromUser:r})}__setErrorIdToAriaAttribute(t,n){Pi(this.__target,"aria-describedby",{newId:t,oldId:n,fromUser:!1})}__setHelperIdToAriaAttribute(t,n){Pi(this.__target,"aria-describedby",{newId:t,oldId:n,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3369
+ */class _g{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,n=!1){const r=n?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,r,n),n?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(mg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(pg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,n,r){Si(this.__target,"aria-labelledby",{newId:t,oldId:n,fromUser:r})}__setErrorIdToAriaAttribute(t,n){Si(this.__target,"aria-describedby",{newId:t,oldId:n,fromUser:!1})}__setHelperIdToAriaAttribute(t,n){Si(this.__target,"aria-describedby",{newId:t,oldId:n,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3370
3370
  * @license
3371
3371
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3372
3372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3373
- */const je=document.createElement("div");je.style.position="fixed";je.style.clip="rect(0px, 0px, 0px, 0px)";je.setAttribute("aria-live","polite");document.body.appendChild(je);let tr;function fg(e,t={}){const n=t.mode||"polite",r=t.timeout===void 0?150:t.timeout;n==="alert"?(je.removeAttribute("aria-live"),je.removeAttribute("role"),tr=tn.debounce(tr,t0,()=>{je.setAttribute("role","alert")})):(tr&&tr.cancel(),je.removeAttribute("role"),je.setAttribute("aria-live",n)),je.textContent="",setTimeout(()=>{je.textContent=e},r)}/**
3373
+ */const je=document.createElement("div");je.style.position="fixed";je.style.clip="rect(0px, 0px, 0px, 0px)";je.setAttribute("aria-live","polite");document.body.appendChild(je);let tr;function gg(e,t={}){const n=t.mode||"polite",r=t.timeout===void 0?150:t.timeout;n==="alert"?(je.removeAttribute("aria-live"),je.removeAttribute("role"),tr=tn.debounce(tr,o0,()=>{je.setAttribute("role","alert")})):(tr&&tr.cancel(),je.removeAttribute("role"),je.setAttribute("aria-live",n)),je.textContent="",setTimeout(()=>{je.textContent=e},r)}/**
3374
3374
  * @license
3375
3375
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3376
3376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3377
- */class Ho extends St{constructor(t,n,r,i={}){super(t,n,r,un(Et({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const n=this.getSlotChild();n&&n!==this.defaultNode?this.__notifyChange(n):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(n=>{n.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const n=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||n)&&!t.id&&(t.id=this.defaultId)}}/**
3377
+ */class $o extends St{constructor(t,n,r,i={}){super(t,n,r,un(Et({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const n=this.getSlotChild();n&&n!==this.defaultNode?this.__notifyChange(n):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(n=>{n.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const n=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||n)&&!t.id&&(t.id=this.defaultId)}}/**
3378
3378
  * @license
3379
3379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3380
3380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3381
- */class pg extends Ho{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:n,invalid:r}=this,i=!!(r&&n&&n.trim()!=="");t&&(t.textContent=i?n:"",t.hidden=!i,i&&fg(n,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
3381
+ */class bg extends $o{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:n,invalid:r}=this,i=!!(r&&n&&n.trim()!=="");t&&(t.textContent=i?n:"",t.hidden=!i,i&&gg(n,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
3382
3382
  * @license
3383
3383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3384
3384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3385
- */class mg extends Ho{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3385
+ */class vg extends $o{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3386
3386
  * @license
3387
3387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3388
3388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3389
- */class _g extends Ho{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3389
+ */class yg extends $o{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3390
3390
  * @license
3391
3391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3392
3392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3393
- */const gg=Me(e=>class extends ln(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new _g(this),this._labelController.addEventListener("slot-content-changed",n=>{this.toggleAttribute("has-label",n.detail.hasContent)})}get _labelId(){const n=this._labelNode;return n&&n.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(n){this._labelController.setLabel(n)}});/**
3393
+ */const wg=Me(e=>class extends ln(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new yg(this),this._labelController.addEventListener("slot-content-changed",n=>{this.toggleAttribute("has-label",n.detail.hasContent)})}get _labelId(){const n=this._labelNode;return n&&n.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(n){this._labelController.setLabel(n)}});/**
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3397
- */const gd=Me(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const n=this.checkValidity();return this._setInvalid(!n),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:n}})),n}checkValidity(){return!this.required||!!this.value}_setInvalid(n){this._shouldSetInvalid(n)&&(this.invalid=n)}_shouldSetInvalid(n){return!0}});/**
3397
+ */const Cd=Me(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const n=this.checkValidity();return this._setInvalid(!n),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:n}})),n}checkValidity(){return!this.required||!!this.value}_setInvalid(n){this._shouldSetInvalid(n)&&(this.invalid=n)}_shouldSetInvalid(n){return!0}});/**
3398
3398
  * @license
3399
3399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3400
3400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3401
- */const bg=e=>class extends gd(gg(ln(e))){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 hg(this),this._helperController=new mg(this),this._errorController=new pg(this),this._errorController.addEventListener("slot-content-changed",n=>{this.toggleAttribute("has-error-message",n.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",n=>{const{hasContent:r,node:i}=n.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",n=>{const{hasContent:r,node:i}=n.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(n,r){n?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(n){this._fieldAriaController.setAriaLabel(n)}_accessibleNameRefChanged(n){this._fieldAriaController.setLabelId(n,!0)}__labelChanged(n,r){n?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(n){this._errorController.setErrorMessage(n)}_helperTextChanged(n){this._helperController.setHelperText(n)}_ariaTargetChanged(n){n&&this._fieldAriaController.setTarget(n)}_requiredChanged(n){this._fieldAriaController.setRequired(n)}_invalidChanged(n){this._errorController.setInvalid(n),setTimeout(()=>{if(n){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3401
+ */const Cg=e=>class extends Cd(wg(ln(e))){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 _g(this),this._helperController=new vg(this),this._errorController=new bg(this),this._errorController.addEventListener("slot-content-changed",n=>{this.toggleAttribute("has-error-message",n.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",n=>{const{hasContent:r,node:i}=n.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",n=>{const{hasContent:r,node:i}=n.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(n,r){n?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(n){this._fieldAriaController.setAriaLabel(n)}_accessibleNameRefChanged(n){this._fieldAriaController.setLabelId(n,!0)}__labelChanged(n,r){n?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(n){this._errorController.setErrorMessage(n)}_helperTextChanged(n){this._helperController.setHelperText(n)}_ariaTargetChanged(n){n&&this._fieldAriaController.setTarget(n)}_requiredChanged(n){this._fieldAriaController.setRequired(n)}_invalidChanged(n){this._errorController.setInvalid(n),setTimeout(()=>{if(n){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3402
3402
  * @license
3403
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3405
- */const vg=Me(e=>class extends e{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(n){n&&(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(n=>{this._delegateAttribute(n,this[n])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(n=>{this._delegateProperty(n,this[n])})}_delegateAttrsChanged(...n){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,n[i])})}_delegatePropsChanged(...n){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,n[i])})}_delegateAttribute(n,r){this.stateTarget&&(n==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(n,r):r?this.stateTarget.setAttribute(n,r):this.stateTarget.removeAttribute(n))}_delegateProperty(n,r){this.stateTarget&&(this.stateTarget[n]=r)}});/**
3405
+ */const Eg=Me(e=>class extends e{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(n){n&&(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(n=>{this._delegateAttribute(n,this[n])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(n=>{this._delegateProperty(n,this[n])})}_delegateAttrsChanged(...n){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,n[i])})}_delegatePropsChanged(...n){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,n[i])})}_delegateAttribute(n,r){this.stateTarget&&(n==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(n,r):r?this.stateTarget.setAttribute(n,r):this.stateTarget.removeAttribute(n))}_delegateProperty(n,r){this.stateTarget&&(this.stateTarget[n]=r)}});/**
3406
3406
  * @license
3407
3407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3408
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */const bd=Me(e=>class extends vg(gd(pd(e))){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(n=>this[n]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(n){return n.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(n,...r){if(!n)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(n){n.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:n},bubbles:n.bubbles,cancelable:n.cancelable}))}__isValidConstraint(n){return!!n||n===0}});/**
3409
+ */const Ed=Me(e=>class extends Eg(Cd(vd(e))){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(n=>this[n]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(n){return n.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(n,...r){if(!n)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(n){n.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:n},bubbles:n.bubbles,cancelable:n.cancelable}))}__isValidConstraint(n){return!!n||n===0}});/**
3410
3410
  * @license
3411
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3412
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const yg=e=>class extends lg(fd(bd(bg(ug(Vr(e)))))){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[`
3413
+ */const xg=e=>class extends hg(bd(Ed(Cg(fg(Vr(e)))))){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[`
3414
3414
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3415
3415
  font: inherit;
3416
3416
  color: inherit;
@@ -3419,15 +3419,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3419
3419
  * @license
3420
3420
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3421
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3422
- */class wg extends St{constructor(t,n,r={}){const{uniqueIdPrefix:i}=r;super(t,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof n=="function"&&n(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3422
+ */class Ag extends St{constructor(t,n,r={}){const{uniqueIdPrefix:i}=r;super(t,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof n=="function"&&n(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3423
3423
  * @license
3424
3424
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3425
3425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3426
- */class Cg{constructor(t,n){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),n.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(n.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=n=>{n.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3426
+ */class Tg{constructor(t,n){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),n.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(n.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=n=>{n.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3427
3427
  * @license
3428
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const Eg=pe`
3430
+ */const Pg=pe`
3431
3431
  [part='clear-button'] {
3432
3432
  display: none;
3433
3433
  cursor: default;
@@ -3444,7 +3444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3444
3444
  * @license
3445
3445
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3446
3446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3447
- */const xg=pe`
3447
+ */const Sg=pe`
3448
3448
  :host {
3449
3449
  display: inline-flex;
3450
3450
  outline: none;
@@ -3482,7 +3482,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3482
3482
  * @license
3483
3483
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3484
3484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3485
- */const Ag=pe`
3485
+ */const kg=pe`
3486
3486
  [class$='container'] {
3487
3487
  display: flex;
3488
3488
  flex-direction: column;
@@ -3494,23 +3494,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3494
3494
  * @license
3495
3495
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3496
3496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3497
- */const Tg=[xg,Ag,Eg];/**
3497
+ */const Dg=[Sg,kg,Pg];/**
3498
3498
  * @license
3499
3499
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3500
3500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3501
- */const Pg=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(n,r){if(!r||n===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof n=="string"?n.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3501
+ */const Bg=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(n,r){if(!r||n===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof n=="string"?n.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3502
3502
  * @license
3503
3503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3504
3504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3505
- */class Sg{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3505
+ */class Mg{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3506
3506
  * @license
3507
3507
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3508
3508
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3509
- */const kg=e=>class extends Pg(ln(fd(bd(Vr(e))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(n){const r=String(n.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[n.month+1,n.day,r].join("/")},parseDate(n){const r=n.split("/"),i=new Date;let o,s=i.getMonth(),a=i.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,o=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?gn(this.referenceDate):new Date;a=k0(l,a,s,o)}}else r.length===2?(s=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(n,r)=>`${n} ${r}`})},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:Vu},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(n){super._inputElementValue=n,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(n){super._onFocus(n),this._noInput&&!To()&&n.target.blur()}_onBlur(n){super._onBlur(n),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new hd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Sg(this));const n=this.$.overlay;this._overlayElement=n,n.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(n){if(n.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");n.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(n){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(n);if(r&&(r=gn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(n){if(this.i18n.formatDate)return this.i18n.formatDate(Oo(n))}checkValidity(){const n=this._inputElementValue,r=!n||!!this._selectedDate&&n===this.__formatDate(this._selectedDate),i=!this._selectedDate||nn(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),r&&i&&o}_shouldSetFocus(n){return!this._shouldKeepFocusRing}_shouldRemoveFocus(n){const{relatedTarget:r}=n;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(n){super._setFocused(n),this._shouldKeepFocusRing=n&&this._keyboardActive}__commitValueChange(){const n=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==n&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=n}__commitDate(n){this.__keepCommittedValue=!0,this._selectedDate=n,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(n,r,i,o,s,a){return!n||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(n){return B0(n)}_inputElementChanged(n){super._inputElementChanged(n),n&&(n.autocomplete="off",n.setAttribute("role","combobox"),n.setAttribute("aria-haspopup","dialog"),n.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(n){this.inputElement&&this.inputElement.setAttribute("aria-expanded",n)}_selectedDateChanged(n,r){n===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(n),this.value=this._formatISO(n),this._ignoreFocusedDateChange=!0,this._focusedDate=n,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(n,r){n===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(n)}_valueChanged(n,r){const i=gn(n);if(n&&!i){this.value=r;return}n?st(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(n,r,i,o,s,a,l,u,d){n&&(n.i18n=r,n.label=i,n.minDate=o,n.maxDate=s,n.focusedDate=a,n.selectedDate=l,n.showWeekNumbers=u,n.isDateDisabled=d)}__updateOverlayContentTheme(n,r){n&&(r?n.setAttribute("theme",r):n.removeAttribute("theme"))}__updateOverlayContentFullScreen(n,r){n&&n.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const n=this._overlayContent;n.reset();const r=this._getInitialPosition();n.initialPosition=r;const i=n.focusedDate||r;n.scrollToDate(i),this._ignoreFocusedDateChange=!0,n.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(n.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?n:[o,n];this.__showOthers=ju(s)}_getInitialPosition(){const n=gn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||n||new Date;return n||nn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?od(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const n=this._inputElementValue||"",r=this.__parseDate(n);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.validate()}_onScroll(n){(n.target===window||!this._overlayContent.contains(n.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(n){this._inputElementValue=n?this.__formatDate(n):""}_setSelectionRange(n,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(n,r)}_onChange(n){n.stopPropagation()}_onClick(n){this._isClearButton(n)||this._onHostClick(n)}_onHostClick(n){(!this.autoOpenDisabled||this._noInput)&&(n.preventDefault(),this.open())}_onClearButtonClick(n){n.preventDefault(),this.__commitDate(null)}_onKeyDown(n){switch(super._onKeyDown(n),this._noInput&&[9].indexOf(n.keyCode)===-1&&n.preventDefault(),n.key){case"ArrowDown":case"ArrowUp":n.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(n.preventDefault(),n.stopPropagation(),this._setSelectionRange(0,0),n.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(n){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(n){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){n.stopPropagation(),this._onClearButtonClick(n);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(n){return n.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const n=this.__parseDate(this._inputElementValue);n&&(this._ignoreFocusedDateChange=!0,st(n,this._focusedDate)||(this._focusedDate=n),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(n){return gn(n)}};/**
3509
+ */const Og=e=>class extends Bg(ln(bd(Ed(Vr(e))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(n){const r=String(n.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[n.month+1,n.day,r].join("/")},parseDate(n){const r=n.split("/"),i=new Date;let o,s=i.getMonth(),a=i.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,o=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?gn(this.referenceDate):new Date;a=O0(l,a,s,o)}}else r.length===2?(s=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(n,r)=>`${n} ${r}`})},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:Xu},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(n){super._inputElementValue=n,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(n){super._onFocus(n),this._noInput&&!ko()&&n.target.blur()}_onBlur(n){super._onBlur(n),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new gd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Mg(this));const n=this.$.overlay;this._overlayElement=n,n.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(n){if(n.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");n.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(n){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(n);if(r&&(r=gn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(n){if(this.i18n.formatDate)return this.i18n.formatDate(Fo(n))}checkValidity(){const n=this._inputElementValue,r=!n||!!this._selectedDate&&n===this.__formatDate(this._selectedDate),i=!this._selectedDate||nn(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),r&&i&&o}_shouldSetFocus(n){return!this._shouldKeepFocusRing}_shouldRemoveFocus(n){const{relatedTarget:r}=n;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(n){super._setFocused(n),this._shouldKeepFocusRing=n&&this._keyboardActive}__commitValueChange(){const n=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==n&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=n}__commitDate(n){this.__keepCommittedValue=!0,this._selectedDate=n,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(n,r,i,o,s,a){return!n||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(n){return I0(n)}_inputElementChanged(n){super._inputElementChanged(n),n&&(n.autocomplete="off",n.setAttribute("role","combobox"),n.setAttribute("aria-haspopup","dialog"),n.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(n){this.inputElement&&this.inputElement.setAttribute("aria-expanded",n)}_selectedDateChanged(n,r){n===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(n),this.value=this._formatISO(n),this._ignoreFocusedDateChange=!0,this._focusedDate=n,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(n,r){n===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(n)}_valueChanged(n,r){const i=gn(n);if(n&&!i){this.value=r;return}n?st(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(n,r,i,o,s,a,l,u,d){n&&(n.i18n=r,n.label=i,n.minDate=o,n.maxDate=s,n.focusedDate=a,n.selectedDate=l,n.showWeekNumbers=u,n.isDateDisabled=d)}__updateOverlayContentTheme(n,r){n&&(r?n.setAttribute("theme",r):n.removeAttribute("theme"))}__updateOverlayContentFullScreen(n,r){n&&n.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const n=this._overlayContent;n.reset();const r=this._getInitialPosition();n.initialPosition=r;const i=n.focusedDate||r;n.scrollToDate(i),this._ignoreFocusedDateChange=!0,n.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(n.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?n:[o,n];this.__showOthers=Zu(s)}_getInitialPosition(){const n=gn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||n||new Date;return n||nn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?dd(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const n=this._inputElementValue||"",r=this.__parseDate(n);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.validate()}_onScroll(n){(n.target===window||!this._overlayContent.contains(n.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(n){this._inputElementValue=n?this.__formatDate(n):""}_setSelectionRange(n,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(n,r)}_onChange(n){n.stopPropagation()}_onClick(n){this._isClearButton(n)||this._onHostClick(n)}_onHostClick(n){(!this.autoOpenDisabled||this._noInput)&&(n.preventDefault(),this.open())}_onClearButtonClick(n){n.preventDefault(),this.__commitDate(null)}_onKeyDown(n){switch(super._onKeyDown(n),this._noInput&&[9].indexOf(n.keyCode)===-1&&n.preventDefault(),n.key){case"ArrowDown":case"ArrowUp":n.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(n.preventDefault(),n.stopPropagation(),this._setSelectionRange(0,0),n.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(n){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(n){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){n.stopPropagation(),this._onClearButtonClick(n);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(n){return n.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const n=this.__parseDate(this._inputElementValue);n&&(this._ignoreFocusedDateChange=!0,st(n,this._focusedDate)||(this._focusedDate=n),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(n){return gn(n)}};/**
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */const Dg=pe`
3513
+ */const Ng=pe`
3514
3514
  :host([opened]) {
3515
3515
  pointer-events: auto;
3516
3516
  }
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */De("vaadin-date-picker",[Tg,Dg],{moduleId:"vaadin-date-picker-styles"});class Bg extends kg(yg(Ot(Zu(vt)))){static get is(){return"vaadin-date-picker"}static get template(){return It`
3530
+ */De("vaadin-date-picker",[Dg,Ng],{moduleId:"vaadin-date-picker-styles"});class Ig extends Og(xg(Ot(td(vt)))){static get is(){return"vaadin-date-picker"}static get template(){return It`
3531
3531
  <div class="vaadin-date-picker-container">
3532
3532
  <div part="label">
3533
3533
  <slot name="label"></slot>
@@ -3569,9 +3569,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3569
3569
  ></vaadin-date-picker-overlay>
3570
3570
 
3571
3571
  <slot name="tooltip"></slot>
3572
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new wg(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Cg(this.inputElement,this._labelController)),this._tooltipController=new Ju(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(n=>!n.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",n=>n.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Ke(Bg);function Mg(e){Ar(e,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function Og(e){let t,n,r;return{c(){t=E("span"),n=B(e[0]),r=B(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(i,o){I(i,t,o),p(t,n),p(t,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&N(t)}}}function Ng(e){let t,n,r,i,o,s,a,l,u;const d=e[10].default,c=Rn(d,e,e[9],null),h=c||Og(e);return{c(){t=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=U(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",e[5]),m(i,"stroke-dashoffset",o=e[4]()),se(i,"Completed",e[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",e[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,b){I(f,t,b),p(t,n),p(n,r),p(n,i),e[11](i),p(n,s),p(t,a),p(t,l),h&&h.m(l,null),e[12](t),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&se(i,"Completed",f[1]==="completed"),(!u||b&2)&&se(s,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&Un(c,d,f,f[9],u?zn(d,f[9],b,null):$n(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ge(h,f),u=!0)},o(f){at(h,f),u=!1},d(f){f&&N(t),e[11](null),h&&h.d(f),e[12](null)}}}let na=64.5;function Ig(e,t,n){let r,{$$slots:i={},$$scope:o}=t,{value:s=0}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,c,h=Math.PI*(na*2),f;Tr(()=>()=>{});function b(y){it[y?"unshift":"push"](()=>{c=y,n(3,c)})}function _(y){it[y?"unshift":"push"](()=>{f=y,n(2,f)})}return e.$$set=y=>{"value"in y&&n(0,s=y.value),"status"in y&&n(1,a=y.status),"mbsource"in y&&n(6,l=y.mbsource),"clientstyling"in y&&n(7,u=y.clientstyling),"clientstylingurl"in y&&n(8,d=y.clientstylingurl),"$$scope"in y&&n(9,o=y.$$scope)},e.$$.update=()=>{e.$$.dirty&132&&u&&f&&Ir(f,u),e.$$.dirty&260&&d&&f&&Lr(f,d),e.$$.dirty&68&&l&&f&&Fr(f,`${l}.Style`),e.$$.dirty&1&&n(4,r=()=>{var y=Math.PI*(na*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*y})},[s,a,f,c,r,h,l,u,d,o,i,b,_]}class Lg extends kr{constructor(t){super(),Pr(this,t,Ig,Ng,Hn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Mg)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),de()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}}customElements.define("casino-bonus-progress",Sr(Lg,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ra=e=>Fg[e],Fg={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function Hg(e){Ar(e,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function ia(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}function oa(e,t,n){const r=e.slice();return r[85]=t[n],r}function sa(e,t,n){const r=e.slice();return r[76]=t[n],r}function aa(e,t,n){const r=e.slice();return r[79]=t[n],r}function la(e,t,n){const r=e.slice();return r[88]=t[n],r[90]=n,r}function ua(e){var ne;let t,n,r,i,o,s=e[33](e[5]).indexOf("Casino")>-1,a,l=e[33](e[5]).indexOf("Sports")>-1,u,d=(e[5].name||((ne=e[5].presentation)==null?void 0:ne.name.content))+"",c,h,f,b,_,y,w,g=s&&da(e),A=l&&ca(e),v=[e[41]("TitleIcon")],k={};for(let C=0;C<v.length;C+=1)k=D(k,v[C]);let x=[e[41]("BonusCardRowTitle")],L={};for(let C=0;C<x.length;C+=1)L=D(L,x[C]);function W(C,O){if(C[0]==="active")return zg;if(C[0]==="completed")return Rg}let G=W(e),F=G&&G(e),M=[e[41]("BonusCardHeader")],R={};for(let C=0;C<M.length;C+=1)R=D(R,M[C]);let K=Ug(e),X=e[10]&&Ta(e);function P(C,O){return C[14]?ab:sb}let z=P(e),re=z(e),ve=[e[41]("BonusCardFooter")],oe={};for(let C=0;C<ve.length;C+=1)oe=D(oe,ve[C]);let j=[e[41]("BonusCardInfo")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=e[9]&&Ia(e),ae=[e[41]("BonusCard")],J={};for(let C=0;C<ae.length;C+=1)J=D(J,ae[C]);return{c(){t=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=U(),A&&A.c(),u=U(),c=B(d),h=U(),F&&F.c(),f=U(),K&&K.c(),b=U(),_=E("div"),X&&X.c(),y=U(),re.c(),w=U(),Y&&Y.c(),S(o,k),S(i,L),S(r,R),S(_,oe),se(_,"Active",e[11]||e[12]),S(n,ie),S(t,J)},m(C,O){I(C,t,O),p(t,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(n,f),K&&K.m(n,null),p(n,b),p(n,_),X&&X.m(_,null),p(_,y),re.m(_,null),p(t,w),Y&&Y.m(t,null),e[59](t)},p(C,O){var ue;O[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g?g.p(C,O):(g=da(C),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A?A.p(C,O):(A=ca(C),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(C[5].name||((ue=C[5].presentation)==null?void 0:ue.name.content))+"")&&te(c,d,L.contenteditable),G===(G=W(C))&&F?F.p(C,O):(F&&F.d(1),F=G&&G(C),F&&(F.c(),F.m(r,null))),K.p(C,O),C[10]?X?X.p(C,O):(X=Ta(C),X.c(),X.m(_,y)):X&&(X.d(1),X=null),z===(z=P(C))&&re?re.p(C,O):(re.d(1),re=z(C),re&&(re.c(),re.m(_,null))),O[0]&6144&&se(_,"Active",C[11]||C[12]),C[9]?Y?Y.p(C,O):(Y=Ia(C),Y.c(),Y.m(t,null)):Y&&(Y.d(1),Y=null)},d(C){C&&N(t),g&&g.d(),A&&A.d(),F&&F.d(),K&&K.d(),X&&X.d(),re.d(),Y&&Y.d(),e[59](null)}}}function da(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,b=[e[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){t=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(n,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(n,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),ul(t,_)},m(y,w){I(y,t,w),p(t,n),p(t,r),p(t,i),p(t,o),p(t,s),p(t,a),p(t,l),p(t,u),p(t,d),p(t,c),p(t,h),p(t,f)},p:Se,d(y){y&&N(t)}}}function ca(e){let t,n,r,i,o,s,a=[e[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),m(n,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(n,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),ul(t,l)},m(u,d){I(u,t,d),p(t,n),p(t,r),p(t,i),p(t,o),p(t,s)},p:Se,d(u){u&&N(t)}}}function Rg(e){let t,n=e[25](`bonusCard.${e[5].status}`)+"",r,i=[e[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("p"),r=B(n),S(t,o)},m(s,a){I(s,t,a),p(t,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&te(r,n,o.contenteditable)},d(s){s&&N(t)}}}function zg(e){let t,n,r,i,o,s=[e[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("span"),n=ee("svg"),r=ee("path"),i=U(),o=B(e[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(t,a)},m(l,u){I(l,t,u),p(t,n),p(n,r),p(t,i),p(t,o)},p(l,u){u[0]&262144&&te(o,l[18],a.contenteditable)},d(l){l&&N(t)}}}function Ug(e){let t,n,r;function i(h,f){return h[0]==="claimable"?Wg:$g}let o=i(e),s=o(e),a=[e[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&Ea(e),d=[e[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){t=E("div"),n=E("div"),s.c(),r=U(),u&&u.c(),S(n,l),S(t,c)},m(h,f){I(h,t,f),p(t,n),s.m(n,null),p(t,r),u&&u.m(t,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(n,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=Ea(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&N(t),s.d(),u&&u.d()}}}function $g(e){let t,n,r=e[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=e[25]("bonusCard.bonusType")+"",h,f,b,_,y=e[25](`bonusType.${e[5].type}`)+"",w,g,A,v,k,x,L=[e[41]("BonusCardLabel")],W={};for(let C=0;C<L.length;C+=1)W=D(W,L[C]);function G(C,O){return C[0]==="active"?jg:Vg}let F=G(e),M=F(e),R=[e[41]("BonusCardRowText")],K={};for(let C=0;C<R.length;C+=1)K=D(K,R[C]);let X=[e[41]("BonusCardRow")],P={};for(let C=0;C<X.length;C+=1)P=D(P,X[C]);let z=[e[41]("BonusCardLabel")],re={};for(let C=0;C<z.length;C+=1)re=D(re,z[C]);let ve=[e[41]("BonusCardRowText","Type")],oe={};for(let C=0;C<ve.length;C+=1)oe=D(oe,ve[C]);let j=[e[41]("BonusCardRow")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=e[5].type==="standard"&&ha(e),ae=e[5].type==="freeBet"&&fa(e),J=e[5].type==="freeRound"&&pa(e),ne=e[5].type==="wagering"&&ga(e);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),M.c(),l=U(),u=E("p"),d=E("span"),h=B(c),f=B(":"),b=U(),_=E("span"),w=B(y),g=U(),Y&&Y.c(),A=U(),ae&&ae.c(),v=U(),J&&J.c(),k=U(),ne&&ne.c(),x=Ze(),S(n,W),S(a,K),se(a,"StatusActive",e[0]==="active"),se(a,"StatusCompleted",e[0]==="completed"),se(a,"StatusClaimable",e[0]==="claimable"),S(t,P),S(d,re),S(_,oe),S(u,ie)},m(C,O){I(C,t,O),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),M.m(a,null),I(C,l,O),I(C,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,w),I(C,g,O),Y&&Y.m(C,O),I(C,A,O),ae&&ae.m(C,O),I(C,v,O),J&&J.m(C,O),I(C,k,O),ne&&ne.m(C,O),I(C,x,O)},p(C,O){O[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&te(i,r,W.contenteditable),F===(F=G(C))&&M?M.p(C,O):(M.d(1),M=F(C),M&&(M.c(),M.m(a,null))),O[0]&1&&se(a,"StatusActive",C[0]==="active"),O[0]&1&&se(a,"StatusCompleted",C[0]==="completed"),O[0]&1&&se(a,"StatusClaimable",C[0]==="claimable"),O[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&te(h,c,re.contenteditable),O[0]&33554464&&y!==(y=C[25](`bonusType.${C[5].type}`)+"")&&te(w,y,oe.contenteditable),C[5].type==="standard"?Y?Y.p(C,O):(Y=ha(C),Y.c(),Y.m(A.parentNode,A)):Y&&(Y.d(1),Y=null),C[5].type==="freeBet"?ae?ae.p(C,O):(ae=fa(C),ae.c(),ae.m(v.parentNode,v)):ae&&(ae.d(1),ae=null),C[5].type==="freeRound"?J?J.p(C,O):(J=pa(C),J.c(),J.m(k.parentNode,k)):J&&(J.d(1),J=null),C[5].type==="wagering"?ne?ne.p(C,O):(ne=ga(C),ne.c(),ne.m(x.parentNode,x)):ne&&(ne.d(1),ne=null)},d(C){C&&(N(t),N(l),N(u),N(g),N(A),N(v),N(k),N(x)),M.d(),Y&&Y.d(C),ae&&ae.d(C),J&&J.d(C),ne&&ne.d(C)}}}function Wg(e){let t,n,r=e[25]("bonusCard.bonusType")+"",i,o,s,a,l=e[25](`bonusType.${e[5].type}`)+"",u,d,c,h,f,b,_,y,w=e[25]("bonusCard.validity")+"",g,A,v,k,x=e[32](e[5])+"",L,W,G,F,M=e[25]("bonusCard.validUntil")+"",R,K,X,P,z=e[39](e[5].trigger.endTime)+"",re,ve=[e[41]("BonusCardLabel")],oe={};for(let $=0;$<ve.length;$+=1)oe=D(oe,ve[$]);let j=[e[41]("BonusCardRowText","Type")],ie={};for(let $=0;$<j.length;$+=1)ie=D(ie,j[$]);let Y=[e[41]("BonusCardRow")],ae={};for(let $=0;$<Y.length;$+=1)ae=D(ae,Y[$]);let J=e[5].type==="standard"&&va(e),ne=e[5].type==="freeBet"&&ya(e),C=e[5].type==="freeRound"&&wa(e),O=e[5].type==="wagering"&&Ca(e),ue=[e[41]("BonusCardLabel")],q={};for(let $=0;$<ue.length;$+=1)q=D(q,ue[$]);let Ee=[e[41]("BonusCardRowText")],Z={};for(let $=0;$<Ee.length;$+=1)Z=D(Z,Ee[$]);let Te=[e[41]("BonusCardRow")],be={};for(let $=0;$<Te.length;$+=1)be=D(be,Te[$]);let Je=[e[41]("BonusCardLabel")],Qe={};for(let $=0;$<Je.length;$+=1)Qe=D(Qe,Je[$]);let dt=[e[41]("BonusCardRowText")],et={};for(let $=0;$<dt.length;$+=1)et=D(et,dt[$]);let wt=[e[41]("BonusCardRow")],Ct={};for(let $=0;$<wt.length;$+=1)Ct=D(Ct,wt[$]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),J&&J.c(),c=U(),ne&&ne.c(),h=U(),C&&C.c(),f=U(),O&&O.c(),b=U(),_=E("p"),y=E("span"),g=B(w),A=B(":"),v=U(),k=E("span"),L=B(x),W=U(),G=E("p"),F=E("span"),R=B(M),K=B(":"),X=U(),P=E("span"),re=B(z),S(n,oe),S(a,ie),S(t,ae),S(y,q),S(k,Z),S(_,be),S(F,Qe),S(P,et),S(G,Ct)},m($,ye){I($,t,ye),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I($,d,ye),J&&J.m($,ye),I($,c,ye),ne&&ne.m($,ye),I($,h,ye),C&&C.m($,ye),I($,f,ye),O&&O.m($,ye),I($,b,ye),I($,_,ye),p(_,y),p(y,g),p(y,A),p(_,v),p(_,k),p(k,L),I($,W,ye),I($,G,ye),p(G,F),p(F,R),p(F,K),p(G,X),p(G,P),p(P,re)},p($,ye){ye[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&te(i,r,oe.contenteditable),ye[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&te(u,l,ie.contenteditable),$[5].type==="standard"?J?J.p($,ye):(J=va($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ne?ne.p($,ye):(ne=ya($),ne.c(),ne.m(h.parentNode,h)):ne&&(ne.d(1),ne=null),$[5].type==="freeRound"?C?C.p($,ye):(C=wa($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?O?O.p($,ye):(O=Ca($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ye[0]&33554432&&w!==(w=$[25]("bonusCard.validity")+"")&&te(g,w,q.contenteditable),ye[0]&32&&x!==(x=$[32]($[5])+"")&&te(L,x,Z.contenteditable),ye[0]&33554432&&M!==(M=$[25]("bonusCard.validUntil")+"")&&te(R,M,Qe.contenteditable),ye[0]&32&&z!==(z=$[39]($[5].trigger.endTime)+"")&&te(re,z,et.contenteditable)},d($){$&&(N(t),N(d),N(c),N(h),N(f),N(b),N(_),N(W),N(G)),J&&J.d($),ne&&ne.d($),C&&C.d($),O&&O.d($)}}}function Vg(e){let t=e[25](`bonusCard.${e[5].status}`)+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&t!==(t=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,t)},d(r){r&&N(n)}}}function jg(e){let t=e[25](`bonusCard.${e[0]}`)+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&t!==(t=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,t)},d(r){r&&N(n)}}}function ha(e){let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[5].remainingAmount+"",d,c,h,f,b=e[5].amount+"",_,y,w,g,A,v=e[25]("bonusCard.wageredAmount")+"",k,x,L,W,G=e[29](e[5])+e[17]+"",F,M,R=[e[41]("BonusCardLabel")],K={};for(let O=0;O<R.length;O+=1)K=D(K,R[O]);let X=[e[41]("BonusCardRowText")],P={};for(let O=0;O<X.length;O+=1)P=D(P,X[O]);let z=[e[41]("BonusCardRow")],re={};for(let O=0;O<z.length;O+=1)re=D(re,z[O]);let ve=[e[41]("BonusCardLabel")],oe={};for(let O=0;O<ve.length;O+=1)oe=D(oe,ve[O]);function j(O,ue){return O[5].initialWagerRequirementAmount>=2147483647?Yg:Gg}let ie=j(e),Y=ie(e),ae=[e[41]("BonusCardRowText")],J={};for(let O=0;O<ae.length;O+=1)J=D(J,ae[O]);let ne=[e[41]("BonusCardRow")],C={};for(let O=0;O<ne.length;O+=1)C=D(C,ne[O]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),h=B(` /
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ag(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Tg(this.inputElement,this._labelController)),this._tooltipController=new rd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(n=>!n.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",n=>n.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Ke(Ig);function Lg(e){Ar(e,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function Fg(e){let t,n,r;return{c(){t=E("span"),n=B(e[0]),r=B(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(i,o){I(i,t,o),p(t,n),p(t,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&N(t)}}}function Hg(e){let t,n,r,i,o,s,a,l,u;const d=e[10].default,c=Rn(d,e,e[9],null),h=c||Fg(e);return{c(){t=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=U(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",e[5]),m(i,"stroke-dashoffset",o=e[4]()),se(i,"Completed",e[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",e[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,b){I(f,t,b),p(t,n),p(n,r),p(n,i),e[11](i),p(n,s),p(t,a),p(t,l),h&&h.m(l,null),e[12](t),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&se(i,"Completed",f[1]==="completed"),(!u||b&2)&&se(s,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&Un(c,d,f,f[9],u?zn(d,f[9],b,null):$n(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ge(h,f),u=!0)},o(f){at(h,f),u=!1},d(f){f&&N(t),e[11](null),h&&h.d(f),e[12](null)}}}let sa=64.5;function Rg(e,t,n){let r,{$$slots:i={},$$scope:o}=t,{value:s=0}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,c,h=Math.PI*(sa*2),f;Tr(()=>()=>{});function b(y){it[y?"unshift":"push"](()=>{c=y,n(3,c)})}function _(y){it[y?"unshift":"push"](()=>{f=y,n(2,f)})}return e.$$set=y=>{"value"in y&&n(0,s=y.value),"status"in y&&n(1,a=y.status),"mbsource"in y&&n(6,l=y.mbsource),"clientstyling"in y&&n(7,u=y.clientstyling),"clientstylingurl"in y&&n(8,d=y.clientstylingurl),"$$scope"in y&&n(9,o=y.$$scope)},e.$$.update=()=>{e.$$.dirty&132&&u&&f&&Ir(f,u),e.$$.dirty&260&&d&&f&&Lr(f,d),e.$$.dirty&68&&l&&f&&Fr(f,`${l}.Style`),e.$$.dirty&1&&n(4,r=()=>{var y=Math.PI*(sa*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*y})},[s,a,f,c,r,h,l,u,d,o,i,b,_]}class zg extends kr{constructor(t){super(),Pr(this,t,Rg,Hg,Hn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Lg)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),de()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}}customElements.define("casino-bonus-progress",Sr(zg,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const aa=e=>Ug[e],Ug={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function $g(e){Ar(e,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function la(e,t,n){const r=e.slice();return r[82]=t[n],r[84]=n,r}function ua(e,t,n){const r=e.slice();return r[85]=t[n],r}function da(e,t,n){const r=e.slice();return r[76]=t[n],r}function ca(e,t,n){const r=e.slice();return r[79]=t[n],r}function ha(e,t,n){const r=e.slice();return r[88]=t[n],r[90]=n,r}function fa(e){var ne;let t,n,r,i,o,s=e[33](e[5]).indexOf("Casino")>-1,a,l=e[33](e[5]).indexOf("Sports")>-1,u,d=(e[5].name||((ne=e[5].presentation)==null?void 0:ne.name.content))+"",c,h,f,b,_,y,w,g=s&&pa(e),A=l&&ma(e),v=[e[41]("TitleIcon")],k={};for(let C=0;C<v.length;C+=1)k=D(k,v[C]);let x=[e[41]("BonusCardRowTitle")],L={};for(let C=0;C<x.length;C+=1)L=D(L,x[C]);function W(C,O){if(C[0]==="active")return Vg;if(C[0]==="completed")return Wg}let G=W(e),F=G&&G(e),M=[e[41]("BonusCardHeader")],R={};for(let C=0;C<M.length;C+=1)R=D(R,M[C]);let K=jg(e),X=e[10]&&Da(e);function P(C,O){return C[14]?cb:db}let z=P(e),re=z(e),ve=[e[41]("BonusCardFooter")],oe={};for(let C=0;C<ve.length;C+=1)oe=D(oe,ve[C]);let j=[e[41]("BonusCardInfo")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=e[9]&&Ra(e),ae=[e[41]("BonusCard")],J={};for(let C=0;C<ae.length;C+=1)J=D(J,ae[C]);return{c(){t=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=U(),A&&A.c(),u=U(),c=B(d),h=U(),F&&F.c(),f=U(),K&&K.c(),b=U(),_=E("div"),X&&X.c(),y=U(),re.c(),w=U(),Y&&Y.c(),S(o,k),S(i,L),S(r,R),S(_,oe),se(_,"Active",e[11]||e[12]),S(n,ie),S(t,J)},m(C,O){I(C,t,O),p(t,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(n,f),K&&K.m(n,null),p(n,b),p(n,_),X&&X.m(_,null),p(_,y),re.m(_,null),p(t,w),Y&&Y.m(t,null),e[59](t)},p(C,O){var ue;O[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g?g.p(C,O):(g=pa(C),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A?A.p(C,O):(A=ma(C),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(C[5].name||((ue=C[5].presentation)==null?void 0:ue.name.content))+"")&&te(c,d,L.contenteditable),G===(G=W(C))&&F?F.p(C,O):(F&&F.d(1),F=G&&G(C),F&&(F.c(),F.m(r,null))),K.p(C,O),C[10]?X?X.p(C,O):(X=Da(C),X.c(),X.m(_,y)):X&&(X.d(1),X=null),z===(z=P(C))&&re?re.p(C,O):(re.d(1),re=z(C),re&&(re.c(),re.m(_,null))),O[0]&6144&&se(_,"Active",C[11]||C[12]),C[9]?Y?Y.p(C,O):(Y=Ra(C),Y.c(),Y.m(t,null)):Y&&(Y.d(1),Y=null)},d(C){C&&N(t),g&&g.d(),A&&A.d(),F&&F.d(),K&&K.d(),X&&X.d(),re.d(),Y&&Y.d(),e[59](null)}}}function pa(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,b=[e[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){t=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(n,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(n,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),fl(t,_)},m(y,w){I(y,t,w),p(t,n),p(t,r),p(t,i),p(t,o),p(t,s),p(t,a),p(t,l),p(t,u),p(t,d),p(t,c),p(t,h),p(t,f)},p:Se,d(y){y&&N(t)}}}function ma(e){let t,n,r,i,o,s,a=[e[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=ee("svg"),n=ee("path"),r=ee("path"),i=ee("path"),o=ee("path"),s=ee("path"),m(n,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(n,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),fl(t,l)},m(u,d){I(u,t,d),p(t,n),p(t,r),p(t,i),p(t,o),p(t,s)},p:Se,d(u){u&&N(t)}}}function Wg(e){let t,n=e[25](`bonusCard.${e[5].status}`)+"",r,i=[e[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("p"),r=B(n),S(t,o)},m(s,a){I(s,t,a),p(t,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&te(r,n,o.contenteditable)},d(s){s&&N(t)}}}function Vg(e){let t,n,r,i,o,s=[e[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("span"),n=ee("svg"),r=ee("path"),i=U(),o=B(e[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(t,a)},m(l,u){I(l,t,u),p(t,n),p(n,r),p(t,i),p(t,o)},p(l,u){u[0]&262144&&te(o,l[18],a.contenteditable)},d(l){l&&N(t)}}}function jg(e){let t,n,r;function i(h,f){return h[0]==="claimable"?Yg:Gg}let o=i(e),s=o(e),a=[e[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&Pa(e),d=[e[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){t=E("div"),n=E("div"),s.c(),r=U(),u&&u.c(),S(n,l),S(t,c)},m(h,f){I(h,t,f),p(t,n),s.m(n,null),p(t,r),u&&u.m(t,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(n,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=Pa(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&N(t),s.d(),u&&u.d()}}}function Gg(e){let t,n,r=e[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=e[25]("bonusCard.bonusType")+"",h,f,b,_,y=e[25](`bonusType.${e[5].type}`)+"",w,g,A,v,k,x,L=[e[41]("BonusCardLabel")],W={};for(let C=0;C<L.length;C+=1)W=D(W,L[C]);function G(C,O){return C[0]==="active"?Xg:qg}let F=G(e),M=F(e),R=[e[41]("BonusCardRowText")],K={};for(let C=0;C<R.length;C+=1)K=D(K,R[C]);let X=[e[41]("BonusCardRow")],P={};for(let C=0;C<X.length;C+=1)P=D(P,X[C]);let z=[e[41]("BonusCardLabel")],re={};for(let C=0;C<z.length;C+=1)re=D(re,z[C]);let ve=[e[41]("BonusCardRowText","Type")],oe={};for(let C=0;C<ve.length;C+=1)oe=D(oe,ve[C]);let j=[e[41]("BonusCardRow")],ie={};for(let C=0;C<j.length;C+=1)ie=D(ie,j[C]);let Y=e[5].type==="standard"&&_a(e),ae=e[5].type==="freeBet"&&ga(e),J=e[5].type==="freeRound"&&ba(e),ne=e[5].type==="wagering"&&wa(e);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),M.c(),l=U(),u=E("p"),d=E("span"),h=B(c),f=B(":"),b=U(),_=E("span"),w=B(y),g=U(),Y&&Y.c(),A=U(),ae&&ae.c(),v=U(),J&&J.c(),k=U(),ne&&ne.c(),x=Ze(),S(n,W),S(a,K),se(a,"StatusActive",e[0]==="active"),se(a,"StatusCompleted",e[0]==="completed"),se(a,"StatusClaimable",e[0]==="claimable"),S(t,P),S(d,re),S(_,oe),S(u,ie)},m(C,O){I(C,t,O),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),M.m(a,null),I(C,l,O),I(C,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,w),I(C,g,O),Y&&Y.m(C,O),I(C,A,O),ae&&ae.m(C,O),I(C,v,O),J&&J.m(C,O),I(C,k,O),ne&&ne.m(C,O),I(C,x,O)},p(C,O){O[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&te(i,r,W.contenteditable),F===(F=G(C))&&M?M.p(C,O):(M.d(1),M=F(C),M&&(M.c(),M.m(a,null))),O[0]&1&&se(a,"StatusActive",C[0]==="active"),O[0]&1&&se(a,"StatusCompleted",C[0]==="completed"),O[0]&1&&se(a,"StatusClaimable",C[0]==="claimable"),O[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&te(h,c,re.contenteditable),O[0]&33554464&&y!==(y=C[25](`bonusType.${C[5].type}`)+"")&&te(w,y,oe.contenteditable),C[5].type==="standard"?Y?Y.p(C,O):(Y=_a(C),Y.c(),Y.m(A.parentNode,A)):Y&&(Y.d(1),Y=null),C[5].type==="freeBet"?ae?ae.p(C,O):(ae=ga(C),ae.c(),ae.m(v.parentNode,v)):ae&&(ae.d(1),ae=null),C[5].type==="freeRound"?J?J.p(C,O):(J=ba(C),J.c(),J.m(k.parentNode,k)):J&&(J.d(1),J=null),C[5].type==="wagering"?ne?ne.p(C,O):(ne=wa(C),ne.c(),ne.m(x.parentNode,x)):ne&&(ne.d(1),ne=null)},d(C){C&&(N(t),N(l),N(u),N(g),N(A),N(v),N(k),N(x)),M.d(),Y&&Y.d(C),ae&&ae.d(C),J&&J.d(C),ne&&ne.d(C)}}}function Yg(e){let t,n,r=e[25]("bonusCard.bonusType")+"",i,o,s,a,l=e[25](`bonusType.${e[5].type}`)+"",u,d,c,h,f,b,_,y,w=e[25]("bonusCard.validity")+"",g,A,v,k,x=e[32](e[5])+"",L,W,G,F,M=e[25]("bonusCard.validUntil")+"",R,K,X,P,z=e[39](e[5].trigger.endTime)+"",re,ve=[e[41]("BonusCardLabel")],oe={};for(let $=0;$<ve.length;$+=1)oe=D(oe,ve[$]);let j=[e[41]("BonusCardRowText","Type")],ie={};for(let $=0;$<j.length;$+=1)ie=D(ie,j[$]);let Y=[e[41]("BonusCardRow")],ae={};for(let $=0;$<Y.length;$+=1)ae=D(ae,Y[$]);let J=e[5].type==="standard"&&Ea(e),ne=e[5].type==="freeBet"&&xa(e),C=e[5].type==="freeRound"&&Aa(e),O=e[5].type==="wagering"&&Ta(e),ue=[e[41]("BonusCardLabel")],q={};for(let $=0;$<ue.length;$+=1)q=D(q,ue[$]);let Ee=[e[41]("BonusCardRowText")],Z={};for(let $=0;$<Ee.length;$+=1)Z=D(Z,Ee[$]);let Te=[e[41]("BonusCardRow")],be={};for(let $=0;$<Te.length;$+=1)be=D(be,Te[$]);let Je=[e[41]("BonusCardLabel")],Qe={};for(let $=0;$<Je.length;$+=1)Qe=D(Qe,Je[$]);let dt=[e[41]("BonusCardRowText")],et={};for(let $=0;$<dt.length;$+=1)et=D(et,dt[$]);let wt=[e[41]("BonusCardRow")],Ct={};for(let $=0;$<wt.length;$+=1)Ct=D(Ct,wt[$]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),J&&J.c(),c=U(),ne&&ne.c(),h=U(),C&&C.c(),f=U(),O&&O.c(),b=U(),_=E("p"),y=E("span"),g=B(w),A=B(":"),v=U(),k=E("span"),L=B(x),W=U(),G=E("p"),F=E("span"),R=B(M),K=B(":"),X=U(),P=E("span"),re=B(z),S(n,oe),S(a,ie),S(t,ae),S(y,q),S(k,Z),S(_,be),S(F,Qe),S(P,et),S(G,Ct)},m($,ye){I($,t,ye),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I($,d,ye),J&&J.m($,ye),I($,c,ye),ne&&ne.m($,ye),I($,h,ye),C&&C.m($,ye),I($,f,ye),O&&O.m($,ye),I($,b,ye),I($,_,ye),p(_,y),p(y,g),p(y,A),p(_,v),p(_,k),p(k,L),I($,W,ye),I($,G,ye),p(G,F),p(F,R),p(F,K),p(G,X),p(G,P),p(P,re)},p($,ye){ye[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&te(i,r,oe.contenteditable),ye[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&te(u,l,ie.contenteditable),$[5].type==="standard"?J?J.p($,ye):(J=Ea($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ne?ne.p($,ye):(ne=xa($),ne.c(),ne.m(h.parentNode,h)):ne&&(ne.d(1),ne=null),$[5].type==="freeRound"?C?C.p($,ye):(C=Aa($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?O?O.p($,ye):(O=Ta($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ye[0]&33554432&&w!==(w=$[25]("bonusCard.validity")+"")&&te(g,w,q.contenteditable),ye[0]&32&&x!==(x=$[32]($[5])+"")&&te(L,x,Z.contenteditable),ye[0]&33554432&&M!==(M=$[25]("bonusCard.validUntil")+"")&&te(R,M,Qe.contenteditable),ye[0]&32&&z!==(z=$[39]($[5].trigger.endTime)+"")&&te(re,z,et.contenteditable)},d($){$&&(N(t),N(d),N(c),N(h),N(f),N(b),N(_),N(W),N(G)),J&&J.d($),ne&&ne.d($),C&&C.d($),O&&O.d($)}}}function qg(e){let t=e[25](`bonusCard.${e[5].status}`)+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&t!==(t=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,t)},d(r){r&&N(n)}}}function Xg(e){let t=e[25](`bonusCard.${e[0]}`)+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&t!==(t=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,t)},d(r){r&&N(n)}}}function _a(e){let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[5].remainingAmount+"",d,c,h,f,b=e[5].amount+"",_,y,w,g,A,v=e[25]("bonusCard.wageredAmount")+"",k,x,L,W,G=e[29](e[5])+e[17]+"",F,M,R=[e[41]("BonusCardLabel")],K={};for(let O=0;O<R.length;O+=1)K=D(K,R[O]);let X=[e[41]("BonusCardRowText")],P={};for(let O=0;O<X.length;O+=1)P=D(P,X[O]);let z=[e[41]("BonusCardRow")],re={};for(let O=0;O<z.length;O+=1)re=D(re,z[O]);let ve=[e[41]("BonusCardLabel")],oe={};for(let O=0;O<ve.length;O+=1)oe=D(oe,ve[O]);function j(O,ue){return O[5].initialWagerRequirementAmount>=2147483647?Kg:Zg}let ie=j(e),Y=ie(e),ae=[e[41]("BonusCardRowText")],J={};for(let O=0;O<ae.length;O+=1)J=D(J,ae[O]);let ne=[e[41]("BonusCardRow")],C={};for(let O=0;O<ne.length;O+=1)C=D(C,ne[O]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),h=B(` /
3573
3573
  `),f=E("span"),_=B(b),y=B(e[17]),w=U(),g=E("p"),A=E("span"),k=B(v),x=B(":"),L=U(),W=E("span"),F=B(G),M=B(` /
3574
- `),Y.c(),S(n,K),se(l,"BonusAmount",e[0]==="active"),se(f,"Amount",e[0]==="active"),S(a,P),S(t,re),S(A,oe),S(W,J),S(g,C)},m(O,ue){I(O,t,ue),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,y),I(O,w,ue),I(O,g,ue),p(g,A),p(A,k),p(A,x),p(g,L),p(g,W),p(W,F),p(W,M),Y.m(W,null)},p(O,ue){ue[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&te(i,r,K.contenteditable),ue[0]&32&&u!==(u=O[5].remainingAmount+"")&&fe(d,u),ue[0]&131072&&fe(c,O[17]),ue[0]&1&&se(l,"BonusAmount",O[0]==="active"),ue[0]&32&&b!==(b=O[5].amount+"")&&fe(_,b),ue[0]&131072&&fe(y,O[17]),ue[0]&1&&se(f,"Amount",O[0]==="active"),ue[0]&33554432&&v!==(v=O[25]("bonusCard.wageredAmount")+"")&&te(k,v,oe.contenteditable),ue[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&te(F,G,J.contenteditable),ie===(ie=j(O))&&Y?Y.p(O,ue):(Y.d(1),Y=ie(O),Y&&(Y.c(),Y.m(W,null)))},d(O){O&&(N(t),N(w),N(g)),Y.d()}}}function Gg(e){let t=e[5].initialWagerRequirementAmount+e[17]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&t!==(t=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,t)},d(r){r&&N(n)}}}function Yg(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function fa(e){let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[5].remainingAmount+"",d,c,h=[e[41]("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=[e[41]("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=D(_,b[g]);let y=[e[41]("BonusCardRow")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),S(n,f),se(l,"BonusAmount",e[0]==="active"),S(a,_),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),A[0]&131072&&fe(c,g[17]),A[0]&1&&se(l,"BonusAmount",g[0]==="active")},d(g){g&&N(t)}}}function pa(e){let t,n=e[5].status==="active"&&ma(e);return{c(){n&&n.c(),t=Ze()},m(r,i){n&&n.m(r,i),I(r,t,i)},p(r,i){r[5].status==="active"?n?n.p(r,i):(n=ma(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&N(t),n&&n.d(r)}}}function ma(e){let t,n,r=e[25]("bonusCard.roundNumber")+"",i,o,s,a,l=e[5].numberOfFreeSpin+"",u,d,c,h,f=e[25]("bonusCard.game")+"",b,_,y,w,g,A,v,k,x,L,W,G,F,M,R,K,X,P,z,re=[e[41]("BonusCardLabel")],ve={};for(let Z=0;Z<re.length;Z+=1)ve=D(ve,re[Z]);let oe=[e[41]("BonusCardRowText")],j={};for(let Z=0;Z<oe.length;Z+=1)j=D(j,oe[Z]);let ie=[e[41]("BonusCardRow")],Y={};for(let Z=0;Z<ie.length;Z+=1)Y=D(Y,ie[Z]);let ae=[e[41]("BonusCardLabel")],J={};for(let Z=0;Z<ae.length;Z+=1)J=D(J,ae[Z]);let ne=Fe(e[23]),C=[];for(let Z=0;Z<ne.length;Z+=1)C[Z]=_a(la(e,ne,Z));let O=[e[41]("BonusCardRowText")],ue={};for(let Z=0;Z<O.length;Z+=1)ue=D(ue,O[Z]);let q=[e[41]("BonusCardRow")],Ee={};for(let Z=0;Z<q.length;Z+=1)Ee=D(Ee,q[Z]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("div"),h=E("div"),b=B(f),_=B(":"),y=U(),w=E("div"),g=E("div"),A=E("button"),v=ee("svg"),k=ee("path"),L=U(),W=E("div"),G=E("span");for(let Z=0;Z<C.length;Z+=1)C[Z].c();F=U(),M=E("button"),R=ee("svg"),K=ee("path"),S(n,ve),S(a,j),S(t,Y),S(h,J),m(k,"stroke-linecap","round"),m(k,"stroke-linejoin","round"),m(k,"stroke-width","2"),m(k,"d","M15 19l-7-7 7-7"),m(v,"fill","none"),m(v,"stroke","currentColor"),m(v,"viewBox","0 0 24 24"),m(v,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=e[24]==0,se(A,"Hide",e[23].length<=3),m(G,"class","Games"),Wo(G,"transform","translateX("+e[24]+"px)"),m(W,"class","Main"),m(K,"stroke-linecap","round"),m(K,"stroke-linejoin","round"),m(K,"stroke-width","2"),m(K,"d","M9 5l7 7-7 7"),m(R,"fill","none"),m(R,"stroke","currentColor"),m(R,"viewBox","0 0 24 24"),m(R,"xmlns","http://www.w3.org/2000/svg"),m(M,"class","SliderNavButton"),m(M,"part","SliderNavButton"),M.disabled=X=e[24]<=-(e[23].length-3)*100,se(M,"Hide",e[23].length<=3),m(g,"class","BonusGamesSlider"),S(w,ue),S(c,Ee)},m(Z,Te){I(Z,t,Te),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I(Z,d,Te),I(Z,c,Te),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),p(w,g),p(g,A),p(A,v),p(v,k),p(g,L),p(g,W),p(W,G);for(let be=0;be<C.length;be+=1)C[be]&&C[be].m(G,null);p(g,F),p(g,M),p(M,R),p(R,K),P||(z=[ke(A,"click",e[52]),ke(M,"click",e[56])],P=!0)},p(Z,Te){if(Te[0]&33554432&&r!==(r=Z[25]("bonusCard.roundNumber")+"")&&te(i,r,ve.contenteditable),Te[0]&32&&l!==(l=Z[5].numberOfFreeSpin+"")&&te(u,l,j.contenteditable),Te[0]&33554432&&f!==(f=Z[25]("bonusCard.game")+"")&&te(b,f,J.contenteditable),Te[0]&16777216&&x!==(x=Z[24]==0)&&(A.disabled=x),Te[0]&8388608&&se(A,"Hide",Z[23].length<=3),Te[0]&48234496|Te[1]&14336){ne=Fe(Z[23]);let be;for(be=0;be<ne.length;be+=1){const Je=la(Z,ne,be);C[be]?C[be].p(Je,Te):(C[be]=_a(Je),C[be].c(),C[be].m(G,null))}for(;be<C.length;be+=1)C[be].d(1);C.length=ne.length}Te[0]&16777216&&Wo(G,"transform","translateX("+Z[24]+"px)"),Te[0]&25165824&&X!==(X=Z[24]<=-(Z[23].length-3)*100)&&(M.disabled=X),Te[0]&8388608&&se(M,"Hide",Z[23].length<=3)},d(Z){Z&&(N(t),N(d),N(c)),bt(C,Z),P=!1,Ye(z)}}}function _a(e){let t,n,r=e[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return e[53](e[88])}function y(){return e[54](e[90])}return{c(){t=E("span"),n=E("span"),i=B(r),a=U(),l=E("ui-image"),h=U(),m(n,"class",o="PlayNowButton "+(e[21]&&e[22]==e[90]?"ItemHover":"")),m(n,"part",s="PlayNowButton "+(e[21]&&e[22]==e[90]?"itemHover":"")),$o(l.src,u=e[88].thumbnail)||Pe(l,"src",u),Pe(l,"width","100px"),Pe(l,"height","75px"),Pe(l,"alt",d=e[88].name),Pe(l,"title",c=e[88].name),m(t,"class","Game"),m(t,"part","Game")},m(w,g){I(w,t,g),p(t,n),p(n,i),p(t,a),p(t,l),p(t,h),f||(b=[ke(t,"click",_),ke(t,"mouseenter",y),ke(t,"mouseleave",e[55])],f=!0)},p(w,g){e=w,g[0]&33554432&&r!==(r=e[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(e[21]&&e[22]==e[90]?"ItemHover":""))&&m(n,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(e[21]&&e[22]==e[90]?"itemHover":""))&&m(n,"part",s),g[0]&8388608&&!$o(l.src,u=e[88].thumbnail)&&Pe(l,"src",u),g[0]&8388608&&d!==(d=e[88].name)&&Pe(l,"alt",d),g[0]&8388608&&c!==(c=e[88].name)&&Pe(l,"title",c)},d(w){w&&N(t),f=!1,Ye(b)}}}function ga(e){let t,n,r=e[25]("bonusCard.wageringType")+"",i,o,s,a,l=e[25](`bonusCard.${e[5].wageringType}`)+"",u,d,c,h,f=e[25]("bonusCard.wagered")+"",b,_,y,w,g=[e[41]("BonusCardLabel")],A={};for(let P=0;P<g.length;P+=1)A=D(A,g[P]);let v=[e[41]("BonusCardRowText")],k={};for(let P=0;P<v.length;P+=1)k=D(k,v[P]);let x=[e[41]("BonusCardRow")],L={};for(let P=0;P<x.length;P+=1)L=D(L,x[P]);let W=[e[41]("BonusCardLabel")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=e[5].wageringType==="money"&&ba(e),M=[e[41]("BonusCardRowText")],R={};for(let P=0;P<M.length;P+=1)R=D(R,M[P]);let K=[e[41]("BonusCardRow")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("p"),h=E("span"),b=B(f),_=B(":"),y=U(),w=E("span"),F&&F.c(),S(n,A),S(a,k),S(t,L),S(h,G),S(w,R),S(c,X)},m(P,z){I(P,t,z),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I(P,d,z),I(P,c,z),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),F&&F.m(w,null)},p(P,z){z[0]&33554432&&r!==(r=P[25]("bonusCard.wageringType")+"")&&te(i,r,A.contenteditable),z[0]&33554464&&l!==(l=P[25](`bonusCard.${P[5].wageringType}`)+"")&&te(u,l,k.contenteditable),z[0]&33554432&&f!==(f=P[25]("bonusCard.wagered")+"")&&te(b,f,G.contenteditable),P[5].wageringType==="money"?F?F.p(P,z):(F=ba(P),F.c(),F.m(w,null)):F&&(F.d(1),F=null)},d(P){P&&(N(t),N(d),N(c)),F&&F.d()}}}function ba(e){let t;function n(o,s){return o[0]==="active"?Xg:qg}let r=n(e),i=r(e);return{c(){i.c(),t=Ze()},m(o,s){i.m(o,s),I(o,t,s)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&N(t),i.d(o)}}}function qg(e){let t=e[29](e[5])+e[17]+"",n,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Kg:Zg}let s=o(e),a=s(e);return{c(){n=B(t),r=B(` /
3575
- `),a.c(),i=Ze()},m(l,u){I(l,n,u),I(l,r,u),a.m(l,u),I(l,i,u)},p(l,u){u[0]&131104&&t!==(t=l[29](l[5])+l[17]+"")&&fe(n,t),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(N(n),N(r),N(i)),a.d(l)}}}function Xg(e){var d;let t=e[30](e[5])+"",n,r,i,o,s=((d=e[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){n=B(t),r=U(),i=B(e[17]),o=B(` /
3576
- `),a=B(s),l=U(),u=B(e[17])},m(c,h){I(c,n,h),I(c,r,h),I(c,i,h),I(c,o,h),I(c,a,h),I(c,l,h),I(c,u,h)},p(c,h){var f;h[0]&32&&t!==(t=c[30](c[5])+"")&&fe(n,t),h[0]&131072&&fe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&fe(a,s),h[0]&131072&&fe(u,c[17])},d(c){c&&(N(n),N(r),N(i),N(o),N(a),N(l),N(u))}}}function Zg(e){let t=e[5].initialWagerRequirementAmount+e[17]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&t!==(t=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,t)},d(r){r&&N(n)}}}function Kg(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function va(e){var ve,oe;let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[36]((oe=(ve=e[5].wallet.standard)==null?void 0:ve.initialAmount)==null?void 0:oe.fixedAmount)+"",d,c,h,f,b,_=e[25]("bonusCard.wageringRequirement")+"",y,w,g,A,v=e[37](e[5])+e[17]+"",k,x=[e[41]("BonusCardLabel")],L={};for(let j=0;j<x.length;j+=1)L=D(L,x[j]);let W=[e[41]("BonusCardRowText")],G={};for(let j=0;j<W.length;j+=1)G=D(G,W[j]);let F=[e[41]("BonusCardRow")],M={};for(let j=0;j<F.length;j+=1)M=D(M,F[j]);let R=[e[41]("BonusCardLabel")],K={};for(let j=0;j<R.length;j+=1)K=D(K,R[j]);let X=[e[41]("BonusCardRowText")],P={};for(let j=0;j<X.length;j+=1)P=D(P,X[j]);let z=[e[41]("BonusCardRow")],re={};for(let j=0;j<z.length;j+=1)re=D(re,z[j]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),h=U(),f=E("p"),b=E("span"),y=B(_),w=B(":"),g=U(),A=E("span"),k=B(v),S(n,L),S(a,G),S(t,M),S(b,K),S(A,P),S(f,re)},m(j,ie){I(j,t,ie),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c),I(j,h,ie),I(j,f,ie),p(f,b),p(b,y),p(b,w),p(f,g),p(f,A),p(A,k)},p(j,ie){var Y,ae;ie[0]&33554432&&r!==(r=j[25]("bonusCard.bonusAmount")+"")&&te(i,r,L.contenteditable),ie[0]&32&&u!==(u=j[36]((ae=(Y=j[5].wallet.standard)==null?void 0:Y.initialAmount)==null?void 0:ae.fixedAmount)+"")&&fe(d,u),ie[0]&131072&&fe(c,j[17]),ie[0]&33554432&&_!==(_=j[25]("bonusCard.wageringRequirement")+"")&&te(y,_,K.contenteditable),ie[0]&131104&&v!==(v=j[37](j[5])+j[17]+"")&&te(k,v,P.contenteditable)},d(j){j&&(N(t),N(h),N(f))}}}function ya(e){var g,A;let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[36]((A=(g=e[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[e[41]("BonusCardLabel")],f={};for(let v=0;v<h.length;v+=1)f=D(f,h[v]);let b=[e[41]("BonusCardRowText")],_={};for(let v=0;v<b.length;v+=1)_=D(_,b[v]);let y=[e[41]("BonusCardRow")],w={};for(let v=0;v<y.length;v+=1)w=D(w,y[v]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),S(n,f),S(a,_),S(t,w)},m(v,k){I(v,t,k),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c)},p(v,k){var x,L;k[0]&33554432&&r!==(r=v[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),k[0]&32&&u!==(u=v[36]((L=(x=v[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:L.fixedAmount)+"")&&fe(d,u),k[0]&131072&&fe(c,v[17])},d(v){v&&N(t)}}}function wa(e){let t,n,r=e[25]("bonusCard.roundNumber")+"",i,o,s,a,l=e[38](e[5])+"",u,d=[e[41]("BonusCardLabel")],c={};for(let y=0;y<d.length;y+=1)c=D(c,d[y]);let h=[e[41]("BonusCardRowText")],f={};for(let y=0;y<h.length;y+=1)f=D(f,h[y]);let b=[e[41]("BonusCardRow")],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),S(n,c),S(a,f),S(t,_)},m(y,w){I(y,t,w),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u)},p(y,w){w[0]&33554432&&r!==(r=y[25]("bonusCard.roundNumber")+"")&&te(i,r,c.contenteditable),w[0]&32&&l!==(l=y[38](y[5])+"")&&te(u,l,f.contenteditable)},d(y){y&&N(t)}}}function Ca(e){let t,n,r=e[25]("bonusCard.levels")+"",i,o,s,a,l=[e[41]("BonusCardLabel")],u={};for(let w=0;w<l.length;w+=1)u=D(u,l[w]);function d(w,g){return w[8]>0?Qg:Jg}let c=d(e),h=c(e),f=[e[41]("BonusCardRowText")],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[e[41]("BonusCardRow")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),h.c(),S(n,u),S(a,b),S(t,y)},m(w,g){I(w,t,g),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),h.m(a,null)},p(w,g){g[0]&33554432&&r!==(r=w[25]("bonusCard.levels")+"")&&te(i,r,u.contenteditable),c===(c=d(w))&&h?h.p(w,g):(h.d(1),h=c(w),h&&(h.c(),h.m(a,null)))},d(w){w&&N(t),h.d()}}}function Jg(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function Qg(e){let t;return{c(){t=B(e[8])},m(n,r){I(n,t,r)},p(n,r){r[0]&256&&fe(t,n[8])},d(n){n&&N(t)}}}function Ea(e){let t,n,r=e[5].type==="standard"&&xa(e),i=e[5].type==="wagering"&&Aa(e);return{c(){r&&r.c(),t=U(),i&&i.c(),n=Ze()},m(o,s){r&&r.m(o,s),I(o,t,s),i&&i.m(o,s),I(o,n,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=xa(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Aa(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(N(t),N(n)),r&&r.d(o),i&&i.d(o)}}}function xa(e){let t,n,r,i=[e[41]("CircularProgress"),{value:r=e[31](e[5])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[e[41]("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("div"),n=E("casino-bonus-progress"),S(n,o),S(t,a)},m(l,u){I(l,t,u),p(t,n)},p(l,u){S(n,o=Be(i,[l[41]("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&N(t)}}}function Aa(e){var k;let t,n,r,i,o,s=e[25]("bonusCard.level")+"",a,l,u=(((k=e[5].wageringProgress)==null?void 0:k.currentLevel)||1)+"",d,c,h=[e[41]("CircularProgress"),{value:r=e[31](e[5])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],f={};for(let x=0;x<h.length;x+=1)f=D(f,h[x]);function b(x,L){return x[8]>0?tb:eb}let _=b(e),y=_(e),w=[e[41]("CircularProgressText")],g={};for(let x=0;x<w.length;x+=1)g=D(g,w[x]);let A=[e[41]("BonusCardProgress")],v={};for(let x=0;x<A.length;x+=1)v=D(v,A[x]);return{c(){t=E("div"),n=E("casino-bonus-progress"),i=U(),o=E("div"),a=B(s),l=B(": "),d=B(u),c=B(` /
3577
- `),y.c(),S(n,f),S(o,g),S(t,v)},m(x,L){I(x,t,L),p(t,n),p(t,i),p(t,o),p(o,a),p(o,l),p(o,d),p(o,c),y.m(o,null)},p(x,L){var W;S(n,f=Be(h,[x[41]("CircularProgress"),L[0]&32&&r!==(r=x[31](x[5]))&&{value:r},L[0]&1&&{status:x[0]},L[0]&4&&{clientstyling:x[2]},L[0]&8&&{clientstylingurl:x[3]},L[0]&2&&{mbsource:x[1]}])),L[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&te(a,s,g.contenteditable),L[0]&32&&u!==(u=(((W=x[5].wageringProgress)==null?void 0:W.currentLevel)||1)+"")&&te(d,u,g.contenteditable),_===(_=b(x))&&y?y.p(x,L):(y.d(1),y=_(x),y&&(y.c(),y.m(o,null)))},d(x){x&&N(t),y.d()}}}function eb(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function tb(e){let t;return{c(){t=B(e[8])},m(n,r){I(n,t,r)},p(n,r){r[0]&256&&fe(t,n[8])},d(n){n&&N(t)}}}function Ta(e){let t,n,r,i,o,s,a=e[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[e[41]("BonusCardAdditionalTitle")],_={};for(let F=0;F<b.length;F+=1)_=D(_,b[F]);function y(F,M){return F[11]?nb:rb}let w=y(e),g=w(e),A=[e[41]("BonusCardAdditionalButton")],v={};for(let F=0;F<A.length;F+=1)v=D(v,A[F]);let k=[e[41]("BonusCardAdditionalHeader")],x={};for(let F=0;F<k.length;F+=1)x=D(x,k[F]);let L=e[11]&&Pa(e),W=[e[41]("BonusCardAdditional")],G={};for(let F=0;F<W.length;F+=1)G=D(G,W[F]);return{c(){t=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),l=B(a),u=U(),d=E("span"),g.c(),c=U(),L&&L.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,_),S(d,v),S(n,x),se(n,"Active",e[11]),S(t,G)},m(F,M){I(F,t,M),p(t,n),p(n,r),p(r,i),p(i,o),p(r,s),p(r,l),p(n,u),p(n,d),g.m(d,null),p(t,c),L&&L.m(t,null),h||(f=ke(n,"click",e[57]),h=!0)},p(F,M){M[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&te(l,a,_.contenteditable),w!==(w=y(F))&&(g.d(1),g=w(F),g&&(g.c(),g.m(d,null))),M[0]&2048&&se(n,"Active",F[11]),F[11]?L?L.p(F,M):(L=Pa(F),L.c(),L.m(t,null)):L&&(L.d(1),L=null)},d(F){F&&N(t),g.d(),L&&L.d(),h=!1,f()}}}function nb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function rb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function Pa(e){let t,n=e[5].type==="wagering"&&Sa(e),r=[e[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=D(i,r[o]);return{c(){t=E("div"),n&&n.c(),S(t,i)},m(o,s){I(o,t,s),n&&n.m(t,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Sa(o),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(o){o&&N(t),n&&n.d()}}}function Sa(e){let t,n=e[5].levels.length>Number(e[4]),r;function i(l,u){if(l[5].status)return ob;if(l[5].levels)return ib}let o=i(e),s=o&&o(e),a=n&&Oa(e);return{c(){s&&s.c(),t=U(),a&&a.c(),r=Ze()},m(l,u){s&&s.m(l,u),I(l,t,u),a&&a.m(l,u),I(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(t.parentNode,t))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Oa(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(N(t),N(r)),s&&s.d(l),a&&a.d(l)}}}function ib(e){let t,n=Fe(e[5].levels.slice(0,e[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Da(ia(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Ze()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,t,o)},p(i,o){if(o[0]&33554480|o[1]&1048){n=Fe(i[5].levels.slice(0,i[4]));let s;for(s=0;s<n.length;s+=1){const a=ia(i,n,s);r[s]?r[s].p(a,o):(r[s]=Da(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(t),bt(r,i)}}}function ob(e){let t,n=Fe(e[40](e[5],e[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Ma(sa(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Ze()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,t,o)},p(i,o){if(o[0]&33554592|o[1]&1536){n=Fe(i[40](i[5],i[7]));let s;for(s=0;s<n.length;s+=1){const a=sa(i,n,s);r[s]?r[s].p(a,o):(r[s]=Ma(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(t),bt(r,i)}}}function ka(e){let t=e[35](e[82],e[85])+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&t!==(t=r[35](r[82],r[85])+"")&&fe(n,t)},d(r){r&&N(n)}}}function Da(e){let t,n,r=e[25]("bonusCard.level")+"",i,o,s=e[34](e[5].levels,e[84])+"",a,l,u,d,c,h=[e[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Fe(e[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=ka(oa(e,b,g));let y=[e[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(n,a),p(n,l),p(t,u),p(t,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(t,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&te(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&te(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Fe(g[82].bonuses);let v;for(v=0;v<b.length;v+=1){const k=oa(g,b,v);_[v]?_[v].p(k,A):(_[v]=ka(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(t),bt(_,g)}}}function Ba(e){let t=e[79]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&t!==(t=r[79]+"")&&fe(n,t)},d(r){r&&N(n)}}}function Ma(e){let t,n,r=e[25](`bonusCard.${e[76].label}`)+"",i,o,s=e[25]("bonusCard.level")+"",a,l,u,d,c,h=[e[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Fe(e[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=Ba(aa(e,b,g));let y=[e[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(n,a),p(n,l),p(t,u),p(t,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(t,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&te(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&te(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Fe(g[76].desc);let v;for(v=0;v<b.length;v+=1){const k=aa(g,b,v);_[v]?_[v].p(k,A):(_[v]=Ba(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(t),bt(_,g)}}}function Oa(e){let t,n=e[25]("bonusCard.allRewards")+"",r,i,o,s=[e[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("a"),r=B(n),S(t,a)},m(l,u){I(l,t,u),p(t,r),i||(o=ke(t,"click",e[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&te(r,n,a.contenteditable)},d(l){l&&N(t),i=!1,o()}}}function sb(e){let t,n,r,i,o,s,a,l,u,d,c=e[25]("bonusCard.terms")+"",h,f=[e[41]("BonusCardTermsLink"),{href:e[20]},{target:"__blank"}],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[e[41]("BonusCardTerms")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){t=E("div"),n=E("a"),r=ee("svg"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=U(),h=B(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(n,b),S(t,y)},m(w,g){I(w,t,g),p(t,n),p(n,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(n,d),p(n,h)},p(w,g){g[0]&33554432&&c!==(c=w[25]("bonusCard.terms")+"")&&te(h,c,b.contenteditable),S(n,b=Be(f,[w[41]("BonusCardTermsLink"),g[0]&1048576&&{href:w[20]},{target:"__blank"}]))},d(w){w&&N(t)}}}function ab(e){let t,n,r,i,o,s,a,l,u,d,c,h=e[25]("bonusCard.terms")+"",f,b,_,y,w,g,A=[e[41]("BonusCardTermsTitle")],v={};for(let P=0;P<A.length;P+=1)v=D(v,A[P]);function k(P,z){return P[12]?lb:ub}let x=k(e),L=x(e),W=[e[41]("BonusCardTermsButton")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=[e[41]("BonusCardTermsHeader")],M={};for(let P=0;P<F.length;P+=1)M=D(M,F[P]);let R=e[12]&&Na(e),K=[e[41]("BonusCardTerms")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){t=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=U(),f=B(h),b=U(),_=E("span"),L.c(),y=U(),R&&R.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,v),S(_,G),S(n,M),se(n,"Active",e[12]),S(t,X)},m(P,z){I(P,t,z),p(t,n),p(n,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(n,b),p(n,_),L.m(_,null),p(t,y),R&&R.m(t,null),w||(g=ke(n,"click",e[58]),w=!0)},p(P,z){z[0]&33554432&&h!==(h=P[25]("bonusCard.terms")+"")&&te(f,h,v.contenteditable),x!==(x=k(P))&&(L.d(1),L=x(P),L&&(L.c(),L.m(_,null))),z[0]&4096&&se(n,"Active",P[12]),P[12]?R?R.p(P,z):(R=Na(P),R.c(),R.m(t,null)):R&&(R.d(1),R=null)},d(P){P&&N(t),L.d(),R&&R.d(),w=!1,g()}}}function lb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function ub(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function Na(e){let t,n,r,i,o=[e[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=D(s,o[a]);return{c(){t=E("div"),S(t,s)},m(a,l){I(a,t,l),r||(i=Pd(n=e[45].call(null,t,e[16].terms_and_conditions)),r=!0)},p(a,l){n&&Fn(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&N(t),r=!1,i()}}}function Ia(e){let t,n,r,i=e[0]==="claimable"&&La(e),o=e[0]==="active"&&e[5].status==="active"&&Ha(e),s=[e[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=D(a,s[d]);let l=[e[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){t=E("div"),n=E("div"),i&&i.c(),r=U(),o&&o.c(),S(n,a),S(t,u)},m(d,c){I(d,t,c),p(t,n),i&&i.m(n,null),p(n,r),o&&o.m(n,null)},p(d,c){d[0]==="claimable"?i?i.p(d,c):(i=La(d),i.c(),i.m(n,r)):i&&(i.d(1),i=null),d[0]==="active"&&d[5].status==="active"?o?o.p(d,c):(o=Ha(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&N(t),i&&i.d(),o&&o.d()}}}function La(e){let t,n,r,i,o,s,a,l,u,d=e[25]("bonusCard.join")+"",c,h,f,b,_=e[15]===!0&&Fa(e),y=[e[41]("BonusCardJoinCountdown")],w={};for(let x=0;x<y.length;x+=1)w=D(w,y[x]);let g=[e[41]("BonusJoinButton"),{type:"button"},{disabled:h=!e[13]}],A={};for(let x=0;x<g.length;x+=1)A=D(A,g[x]);let v=[e[41]("BonusCardJoinWrapper")],k={};for(let x=0;x<v.length;x+=1)k=D(k,v[x]);return{c(){t=E("div"),_&&_.c(),n=U(),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),a=B(e[19]),l=U(),u=E("button"),c=B(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,w),S(u,A),S(t,k)},m(x,L){I(x,t,L),_&&_.m(t,null),p(t,n),p(t,r),p(r,i),p(i,o),p(r,s),p(r,a),p(t,l),p(t,u),p(u,c),u.autofocus&&u.focus(),f||(b=ke(u,"click",e[26]),f=!0)},p(x,L){x[15]===!0?_?_.p(x,L):(_=Fa(x),_.c(),_.m(t,n)):_&&(_.d(1),_=null),L[0]&524288&&te(a,x[19],w.contenteditable),L[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&te(c,d,A.contenteditable),S(u,A=Be(g,[x[41]("BonusJoinButton"),{type:"button"},L[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&N(t),_&&_.d(),f=!1,b()}}}function Fa(e){let t,n=e[25]("bonusCard.error")+"",r,i=[e[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("span"),r=B(n),S(t,o)},m(s,a){I(s,t,a),p(t,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&te(r,n,o.contenteditable)},d(s){s&&N(t)}}}function Ha(e){let t,n=e[25]("bonusCard.forfeit")+"",r,i,o,s,a=[e[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!e[13]}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=E("button"),r=B(n),S(t,l)},m(u,d){I(u,t,d),p(t,r),t.autofocus&&t.focus(),o||(s=ke(t,"click",e[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&te(r,n,l.contenteditable),S(t,l=Be(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&N(t),o=!1,s()}}}function db(e){let t,n=e[5]&&ua(e);return{c(){n&&n.c(),t=Ze()},m(r,i){n&&n.m(r,i),I(r,t,i)},p(r,i){r[5]?n?n.p(r,i):(n=ua(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:Se,o:Se,d(r){r&&N(t),n&&n.d(r)}}}function cb(e,t,n){let r,i;al(e,Hl,T=>n(25,i=T));let{rawbonus:o=""}=t,{lang:s="en"}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{cmsendpoint:c=""}=t,{translationurl:h=""}=t,{levelcountlimit:f=""}=t,{currency:b=""}=t,_,y=[],w,g=!1,A=!1,v=!1,k=!1,x=!0,L=!1,W=!1,G={},F,M,R="",K=1e3*30,X,P="",z=!1,re,ve=[],oe=0;const j=()=>{fetch(h).then(H=>H.json()).then(H=>{Object.keys(H).forEach(Q=>{hr(Q,H[Q])})}).catch(H=>{console.log(H)})};Object.keys(fr).forEach(T=>{hr(T,fr[T])}),Tr(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));const ie=()=>{var T,H;try{n(5,_=JSON.parse(o))}catch(Q){}_&&(_.type==="wagering"&&n(10,A=!0),n(17,F=ra(_.currency||b)),n(7,y=ae(_.levels||((H=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:H.levels))),_.type==="freeRound"&&n(23,ve=Y(_.freeSpin)),Te())},Y=T=>{if(!T||!T.vendorGamesDetail)return[];let H=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(Q=>{H=T.vendorGamesDetail[Q]}),H},ae=T=>{if(!T)return[];const H=[];let Q=!1;return T.map((le,me)=>{const ht=le,{maxRepeats:Ae,completedTime:tt}=ht,We=ti(ht,["maxRepeats","completedTime"]);Ae===0&&(Q=!0);for(let ze=0;ze<Ae;ze++)H.push(Et({},We))}),Q?n(8,w=0):n(8,w=H.length),H},J=()=>{n(13,x=!1),n(15,W=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},ne=()=>{n(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},C=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},O=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,x=!0);break;case"OnBonusForfeitedDone":n(13,x=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,W=!0);break}},ue=(T,H)=>({remainder:T%H,quotient:Math.floor(T/H)}),q=T=>{const H=new Date;return new Date(T).getTime()-H.getTime()},Ee=T=>{const H=q(T)/6e4,{quotient:Q,remainder:le}=ue(H,1440),{quotient:me,remainder:Ae}=ue(le,60),tt=Math.floor(Ae),We=ze=>Math.abs(ze)<10?`0${ze}`:ze;return[{value:Q,symbol:"d"},{value:me,symbol:"h"},{value:tt,symbol:"m"}].map(ze=>We(ze.value)+ze.symbol).join(" ")},Z=(T,H,Q,le)=>{const me=q(T);me<0?Q():(le(Ee(T)),me<H&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},me))},Te=()=>{var Q;if(!_)return;const T=(le,me,Ae)=>{Z(le,K,()=>me(Ae),me)},H=_.endTime||((Q=_.trigger)==null?void 0:Q.endTime);H&&T(H,le=>{n(19,R=le),n(18,M=le)},"Expired"),_.expiryDate&&T(_.expiryDate,le=>n(18,M=le),"Expired")},be=T=>{let H=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&(H=(Number(H)+T.remainingAmount).toFixed(2)),parseFloat(H).toString()},Je=T=>{var H,Q;return(((H=T.wageringProgress)==null?void 0:H.currentLevelIncrement)-((Q=T.wageringProgress)==null?void 0:Q.gap)).toFixed(2)},Qe=T=>{var le,me,Ae;let H,Q;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(Q=(le=T.wageringProgress)==null?void 0:le.currentLevelIncrement,Q!=0&&(H=((((me=T.wageringProgress)==null?void 0:me.currentLevelIncrement)-((Ae=T.wageringProgress)==null?void 0:Ae.gap))/Q*100).toFixed(2))):T.status=="released"?H=100:(Q=T.initialWagerRequirementAmount,Q!=0&&(H=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/Q*100).toFixed(2))),Number(H)},dt=T=>{if(!T.wallet)return"";const H=T.type==="freeBet"||T.type==="freeRound"?T.wallet[T.type]:T.wallet,{validityMinutes:Q,expiryTime:le}=H;if(Q===0)return le?wn(new Date(le),"yyyy-MM-dd HH:mm:ss"):"infinite";{const me=Math.round(Q/1440);return me===1?`${me} day`:`${me} days`}},et=T=>{if(T.products)return T.products;{let H=[];return T.wallet&&(T.wallet.casino&&H.push("Casino"),T.wallet.sports&&H.push("Sports")),H}},wt=(T,H)=>{const Q=i(`bonusType.${H.type}`),le=ra(Object.keys(T.increment)[0]);return H.mode==="percentage"?`${H.bonusAmount*100}% up to ${le}${H.capAmount} ${Q}`:H.mode==="fixed"?`${le}${H.bonusAmount} ${Q}`:Q},Ct=(T,H)=>{const Q=We=>We===0?0:T.slice(0,We).reduce((ht,ze)=>ht+ze.maxRepeats,0),le=T[H],Ae=Q(H)+1,tt=Ae+le.maxRepeats-1;return le.maxRepeats>1?`${Ae}-${tt}`:`${H+1}`},$=(T,H)=>{switch(H.type){case"standard":case"freeBet":return wt(T,H);case"freeRound":return`${H.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},ye=T=>{var H,Q;return Number((Q=(H=T==null?void 0:T[b])!=null?H:T==null?void 0:T.EUR)!=null?Q:0)},jr=T=>{var le,me,Ae,tt;const H=ye((Ae=(me=(le=T.wallet)==null?void 0:le.standard)==null?void 0:me.initialAmount)==null?void 0:Ae.fixedAmount),Q=((tt=T.wallet)==null?void 0:tt.wageringRequirementCoefficient)||0;return Number((H*Q).toFixed(2))},Gr=T=>{var le,me,Ae;const H=(me=(le=T.wallet)==null?void 0:le.freeRound)==null?void 0:me.vendor;if(!H)return 0;const Q=Object.keys(H)[0];return((Ae=H[Q])==null?void 0:Ae.roundNumber)||0},Yr=T=>wn(new Date(T),"yyyy-MM-dd HH:mm:ss"),qr=(T,H)=>{var Ae;const Q=((Ae=T.wageringProgress)==null?void 0:Ae.currentLevel)-1||0,le=H.length-1,me=tt=>tt.filter(We=>We.index>=0&&We.index<=le).map(We=>{const ht=H[We.index];return{label:We.label,desc:ht.bonuses.map(ze=>$(ht,ze))}});return T.status==="active"?me([{label:"current",index:Q},{label:"next",index:Q+1}]):T.status?me([{label:"last",index:le},{label:"previous",index:le-1}]):me([{label:"first",index:0},{label:"next",index:1}])},Xr=T=>{var H,Q;n(20,P=T.url?T.url:(Q=(H=T.presentation)==null?void 0:H.url)==null?void 0:Q.content)},Zr=(T,H="")=>({part:T,class:[T,H].join(" ")}),jn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Gn=T=>{n(21,z=!0),n(22,re=T)},V=()=>{n(21,z=!1),n(22,re=-1)},Ce=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(H=>H.json()).then(H=>{H&&H[T]&&(n(14,L=!0),n(16,G=H[T]))})},Oe=(T,H)=>{let Q=document.createElement("div");Q.innerHTML=H,T.append(Q)},Lt=()=>n(24,oe+=300),ct=T=>jn(T),yd=T=>Gn(T),wd=()=>V(),Cd=()=>n(24,oe-=300),Kr=()=>{n(11,v=!v)},Jr=()=>{n(12,k=!k)};function Qr(T){it[T?"unshift":"push"](()=>{X=T,n(6,X)})}return e.$$set=T=>{"rawbonus"in T&&n(46,o=T.rawbonus),"lang"in T&&n(47,s=T.lang),"status"in T&&n(0,a=T.status),"mbsource"in T&&n(1,l=T.mbsource),"clientstyling"in T&&n(2,u=T.clientstyling),"clientstylingurl"in T&&n(3,d=T.clientstylingurl),"cmsendpoint"in T&&n(48,c=T.cmsendpoint),"translationurl"in T&&n(49,h=T.translationurl),"levelcountlimit"in T&&n(4,f=T.levelcountlimit),"currency"in T&&n(50,b=T.currency)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&98304&&n(51,r=o&&s&&a),e.$$.dirty[1]&1048576&&r&&ie(),e.$$.dirty[0]&32|e.$$.dirty[1]&1245184&&r&&_&&(s&&Rl(s),c?Ce(_.id):Xr(_)),e.$$.dirty[0]&68&&u&&X&&Ir(X,u),e.$$.dirty[0]&72&&d&&X&&Lr(X,d),e.$$.dirty[0]&66&&l&&X&&Fr(X,`${l}.Style`),e.$$.dirty[1]&262144&&h&&j()},[a,l,u,d,f,_,X,y,w,g,A,v,k,x,L,W,G,F,M,R,P,z,re,ve,oe,i,J,ne,C,be,Je,Qe,dt,et,Ct,$,ye,jr,Gr,Yr,qr,Zr,jn,Gn,V,Oe,o,s,c,h,b,r,Lt,ct,yd,wd,Cd,Kr,Jr,Qr]}class hb extends kr{constructor(t){super(),Pr(this,t,cb,db,Hn,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},Hg,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(t){this.$$set({rawbonus:t}),de()}get lang(){return this.$$.ctx[47]}set lang(t){this.$$set({lang:t}),de()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),de()}get translationurl(){return this.$$.ctx[49]}set translationurl(t){this.$$set({translationurl:t}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(t){this.$$set({levelcountlimit:t}),de()}get currency(){return this.$$.ctx[50]}set currency(t){this.$$set({currency:t}),de()}}customElements.define("casino-bonus-card",Sr(hb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function fb({totalItems:e,pageSize:t,currentPage:n,limit:r}){const i=Math.ceil(e/t),s=r&&i>_b(r)?mb({totalPages:i,limit:r,currentPage:n}):pb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:"&gt;",value:n>=i?i:n+1}]}function pb({totalPages:e}){return new Array(e).fill(null).map((t,n)=>({type:"number",value:n+1}))}function mb({totalPages:e,limit:t,currentPage:n}){const r=t*2+2,i=1+r,o=e-r,s=i+2;return n<=i-t?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:e}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+t?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):n>=i-t&&n<=o+t?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-t+(l-2)}:l===s-1?{type:"number",value:e}:l===s-2?{type:"symbol",symbol:".",value:n+t+1}:{type:"number",value:n-t+(l-2)}):[]}function _b(e){return e*2+3+2}function gb(e){Ar(e,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Ra(e,t,n){const r=e.slice();return r[29]=t[n],r}const bb=e=>({}),za=e=>({}),vb=e=>({}),Ua=e=>({}),yb=e=>({}),$a=e=>({}),wb=e=>({value:e[0]&32}),Wa=e=>({value:e[29].value});function Cb(e){let t;const n=e[21].next,r=Rn(n,e,e[20],za),i=r||Tb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,bb):$n(o[20]),za)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Eb(e){let t;const n=e[21].prev,r=Rn(n,e,e[20],Ua),i=r||Pb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,vb):$n(o[20]),Ua)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function xb(e){let t;const n=e[21].ellipsis,r=Rn(n,e,e[20],$a),i=r||Sb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,yb):$n(o[20]),$a)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Ab(e){let t;const n=e[21].number,r=Rn(n,e,e[20],Wa),i=r||kb(e);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r?r.p&&(!t||s[0]&1048608)&&Un(r,n,o,o[20],t?zn(n,o[20],s,wb):$n(o[20]),Wa):i&&i.p&&(!t||s[0]&32)&&i.p(o,t?s:[-1,-1])},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Tb(e){let t;return{c(){t=B(">")},m(n,r){I(n,t,r)},d(n){n&&N(t)}}}function Pb(e){let t;return{c(){t=B("<")},m(n,r){I(n,t,r)},d(n){n&&N(t)}}}function Sb(e){let t;return{c(){t=E("span"),t.textContent="..."},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function kb(e){let t,n=e[29].value+"",r;return{c(){t=E("span"),r=B(n)},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&N(t)}}}function Va(e){let t,n,r,i,o,s,a,l;const u=[Ab,xb,Eb,Cb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(n=c(e))&&(r=d[n]=u[n](e));function h(){return e[22](e[29])}return{c(){t=E("button"),r&&r.c(),i=U(),t.disabled=o=e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),se(t,"number",e[29].type==="number"),se(t,"prev",e[29].type==="symbol"&&e[29].symbol==="&lt;"),se(t,"next",e[29].type==="symbol"&&e[29].symbol==="&gt;"),se(t,"disabled",e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1),se(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),se(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,b){I(f,t,b),~n&&d[n].m(t,null),p(t,i),s=!0,a||(l=ke(t,"click",h),a=!0)},p(f,b){e=f;let _=n;n=c(e),n===_?~n&&d[n].p(e,b):(r&&(cl(),at(d[_],1,1,()=>{d[_]=null}),hl()),~n?(r=d[n],r?r.p(e,b):(r=d[n]=u[n](e),r.c()),Ge(r,1),r.m(t,i)):r=null),(!s||b[0]&98&&o!==(o=e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1))&&(t.disabled=o),(!s||b[0]&32)&&se(t,"number",e[29].type==="number"),(!s||b[0]&32)&&se(t,"prev",e[29].type==="symbol"&&e[29].symbol==="&lt;"),(!s||b[0]&32)&&se(t,"next",e[29].type==="symbol"&&e[29].symbol==="&gt;"),(!s||b[0]&98)&&se(t,"disabled",e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1),(!s||b[0]&32)&&se(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!s||b[0]&34)&&se(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){s||(Ge(r),s=!0)},o(f){at(r),s=!1},d(f){f&&N(t),~n&&d[n].d(),a=!1,l()}}}function ja(e){let t,n,r,i,o,s,a,l;return{c(){t=E("div"),n=E("span"),n.textContent="Go To Page",r=U(),i=E("input"),o=U(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,d){I(u,t,d),p(t,n),p(t,r),p(t,i),ur(i,e[3]),p(t,o),p(t,s),a||(l=[ke(i,"input",e[23]),ke(i,"change",e[24]),ke(s,"click",e[25])],a=!0)},p(u,d){d[0]&8&&dl(i.value)!==u[3]&&ur(i,u[3])},d(u){u&&N(t),a=!1,Ye(l)}}}function Db(e){let t,n,r,i,o,s,a=Fe(e[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Va(Ra(e,a,c));const u=c=>at(l[c],1,1,()=>{l[c]=null});let d=e[7]&&ja(e);return{c(){t=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=U(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(c,h){I(c,t,h),p(t,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(t,o),d&&d.m(t,null),e[26](t),s=!0},p(c,h){if(h[0]&1048930){a=Fe(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Ra(c,a,f);l[f]?(l[f].p(b,h),Ge(l[f],1)):(l[f]=Va(b),l[f].c(),Ge(l[f],1),l[f].m(n,null))}for(cl(),f=a.length;f<l.length;f+=1)u(f);hl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"part",i),c[7]?d?d.p(c,h):(d=ja(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ge(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)at(l[h]);s=!1},d(c){c&&N(t),bt(l,c),d&&d.d(),e[26](null)}}}function Bb(e,t,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=t,{totalitems:d=""}=t,{pagesize:c=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:b=""}=t,{mbsource:_}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,g=window.navigator.userAgent,A=!1,v;Gl(g)&&(A=!0);let k,x,L;const W=P=>{window.postMessage({type:"PaginationChange",page:P.value})},G=P=>{n(4,x=P>a?a:P)};Tr(()=>()=>{});const F=P=>W(P);function M(){k=dl(this.value),n(3,k)}const R=()=>G(k),K=()=>W({value:x});function X(P){it[P?"unshift":"push"](()=>{v=P,n(0,v)})}return e.$$set=P=>{"totalitems"in P&&n(10,d=P.totalitems),"pagesize"in P&&n(11,c=P.pagesize),"currentpage"in P&&n(12,h=P.currentpage),"limit"in P&&n(13,f=P.limit),"showinput"in P&&n(14,b=P.showinput),"mbsource"in P&&n(15,_=P.mbsource),"clientstyling"in P&&n(16,y=P.clientstyling),"clientstylingurl"in P&&n(17,w=P.clientstylingurl),"$$scope"in P&&n(20,u=P.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&65537&&y&&v&&Ir(v,y),e.$$.dirty[0]&131073&&w&&v&&Lr(v,w),e.$$.dirty[0]&32769&&_&&v&&Fr(v,`${_}.Style`),e.$$.dirty[0]&1024&&n(19,r=Number(d)),e.$$.dirty[0]&16384&&n(7,i=b),e.$$.dirty[0]&4096&&n(1,o=Number(h)),e.$$.dirty[0]&2048&&n(18,s=c),e.$$.dirty[0]&794626&&n(5,L=fb({totalItems:r,pageSize:s,currentPage:o,limit:f})),e.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[v,o,A,k,x,L,a,i,W,G,d,c,h,f,b,_,y,w,s,r,u,l,F,M,R,K,X]}class Mb extends kr{constructor(t){super(),Pr(this,t,Bb,Db,Hn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},gb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),de()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),de()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}}customElements.define("casino-bonus-pagination",Sr(Mb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Ob(e){Ar(e,"svelte-bgb61g",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Ga(e,t,n){const r=e.slice();return r[65]=t[n],r}function Ya(e,t,n){const r=e.slice();return r[68]=t[n],r}function qa(e){let t,n=e[26](`bonusCard.${e[68]}`)+"",r,i,o,s,a=[{type:"button"},e[25]("BonusStatusFilter"),{disabled:e[13]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return e[41](e[68])}return{c(){t=E("button"),r=B(n),i=U(),S(t,l),se(t,"active",e[68]===e[22])},m(d,c){I(d,t,c),p(t,r),p(t,i),t.autofocus&&t.focus(),o||(s=ke(t,"click",u),o=!0)},p(d,c){e=d,c[0]&67108864&&n!==(n=e[26](`bonusCard.${e[68]}`)+"")&&te(r,n,l.contenteditable),S(t,l=Be(a,[{type:"button"},c[0]&33554432&&e[25]("BonusStatusFilter"),c[0]&8192&&{disabled:e[13]}])),se(t,"active",e[68]===e[22])},d(d){d&&N(t),o=!1,s()}}}function Nb(e){let t,n,r=e[26]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=e[26]("bonus.from")+"",c,h,f,b,_,y,w=e[26]("bonus.to")+"",g,A,v,k,x,L=e[26]("bonus.filter")+"",W,G,F,M=[e[35]("BonusCalendarTitle")],R={};for(let q=0;q<M.length;q+=1)R=D(R,M[q]);let K=[{min:e[27]},{max:e[28]},{value:e[29]},{placeholder:"From"},e[35]("VaadinDatePicker")],X={};for(let q=0;q<K.length;q+=1)X=D(X,K[q]);let P=[e[25]("BonusCalendarStartDate")],z={};for(let q=0;q<P.length;q+=1)z=D(z,P[q]);let re=[{min:e[27]},{max:e[28]},{value:e[28]},{placeholder:"To"},e[35]("VaadinDatePicker")],ve={};for(let q=0;q<re.length;q+=1)ve=D(ve,re[q]);let oe=[e[25]("BonusCalendarEndDate")],j={};for(let q=0;q<oe.length;q+=1)j=D(j,oe[q]);let ie=[e[25]("BonusCalendarContainer")],Y={};for(let q=0;q<ie.length;q+=1)Y=D(Y,ie[q]);let ae=[e[25]("BonusFilterButton"),{disabled:e[13]}],J={};for(let q=0;q<ae.length;q+=1)J=D(J,ae[q]);let ne=[e[35]("BonusCalendarContent")],C={};for(let q=0;q<ne.length;q+=1)C=D(C,ne[q]);let O=[e[25]("BonusCalendarWrapper")],ue={};for(let q=0;q<O.length;q+=1)ue=D(ue,O[q]);return{c(){t=E("div"),n=E("div"),i=B(r),o=U(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=B(d),h=U(),f=E("vaadin-date-picker"),b=U(),_=E("div"),y=E("label"),g=B(w),A=U(),v=E("vaadin-date-picker"),k=U(),x=E("button"),W=B(L),S(n,R),m(u,"for","BonusCalendarStartDate"),S(f,X),S(l,z),m(y,"for","BonusCalendarEndDate"),S(v,ve),S(_,j),S(a,Y),S(x,J),S(s,C),S(t,ue)},m(q,Ee){I(q,t,Ee),p(t,n),p(n,i),p(t,o),p(t,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),e[44](f),p(a,b),p(a,_),p(_,y),p(y,g),p(_,A),p(_,v),e[45](v),p(s,k),p(s,x),p(x,W),x.autofocus&&x.focus(),G||(F=ke(x,"click",e[46]),G=!0)},p(q,Ee){Ee[0]&67108864&&r!==(r=q[26]("bonus.canlendarTitle")+"")&&te(i,r,R.contenteditable),Ee[0]&67108864&&d!==(d=q[26]("bonus.from")+"")&&fe(c,d),S(l,z=Be(P,[Ee[0]&33554432&&q[25]("BonusCalendarStartDate")])),Ee[0]&67108864&&w!==(w=q[26]("bonus.to")+"")&&fe(g,w),S(_,j=Be(oe,[Ee[0]&33554432&&q[25]("BonusCalendarEndDate")])),S(a,Y=Be(ie,[Ee[0]&33554432&&q[25]("BonusCalendarContainer")])),Ee[0]&67108864&&L!==(L=q[26]("bonus.filter")+"")&&te(W,L,J.contenteditable),S(x,J=Be(ae,[Ee[0]&33554432&&q[25]("BonusFilterButton"),Ee[0]&8192&&{disabled:q[13]}])),S(t,ue=Be(O,[Ee[0]&33554432&&q[25]("BonusCalendarWrapper")]))},d(q){q&&N(t),e[44](null),e[45](null),G=!1,F()}}}function Ib(e){let t,n,r,i=e[26]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=e[26]("bonus.claim")+"",f,b,_,y,w,g=[e[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[26]("bonus.placeholder")}],A={};for(let M=0;M<g.length;M+=1)A=D(A,g[M]);let v=[e[25]("BonusClaimButton"),{disabled:b=e[19]||!e[23]}],k={};for(let M=0;M<v.length;M+=1)k=D(k,v[M]);let x=[e[25]("BonusCodeWrapper")],L={};for(let M=0;M<x.length;M+=1)L=D(L,x[M]);let W=e[20]&&Xa(e),G=[e[25]("BonusCodeContainer")],F={};for(let M=0;M<G.length;M+=1)F=D(F,G[M]);return{c(){t=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=B(i),s=U(),a=E("div"),l=E("input"),d=U(),c=E("button"),f=B(h),_=U(),W&&W.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),S(l,A),S(c,k),S(a,L),S(t,F)},m(M,R){I(M,t,R),p(t,n),p(n,r),p(n,o),p(t,s),p(t,a),p(a,l),l.autofocus&&l.focus(),ur(l,e[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(t,_),W&&W.m(t,null),y||(w=[ke(l,"input",e[42]),ke(l,"keyup",e[36]),ke(c,"click",e[43])],y=!0)},p(M,R){R[0]&67108864&&i!==(i=M[26]("bonus.bonusCode")+"")&&fe(o,i),S(l,A=Be(g,[R[0]&33554432&&M[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},R[0]&67108864&&u!==(u=M[26]("bonus.placeholder"))&&{placeholder:u}])),R[0]&262144&&l.value!==M[18]&&ur(l,M[18]),R[0]&67108864&&h!==(h=M[26]("bonus.claim")+"")&&te(f,h,k.contenteditable),S(c,k=Be(v,[R[0]&33554432&&M[25]("BonusClaimButton"),R[0]&8912896&&b!==(b=M[19]||!M[23])&&{disabled:b}])),S(a,L=Be(x,[R[0]&33554432&&M[25]("BonusCodeWrapper")])),M[20]?W?W.p(M,R):(W=Xa(M),W.c(),W.m(t,null)):W&&(W.d(1),W=null),S(t,F=Be(G,[R[0]&33554432&&M[25]("BonusCodeContainer")]))},d(M){M&&N(t),W&&W.d(),y=!1,Ye(w)}}}function Xa(e){let t,n=e[26]("bonus.invalidBonusCode")+"",r;return{c(){t=E("p"),r=B(n),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&N(t)}}}function Lb(e){let t,n;function r(a,l){return a[12].length>0?zb:a[14]?Rb:Hb}let i=r(e),o=i(e),s=e[12].length!==0&&Ka(e);return{c(){o.c(),t=U(),s&&s.c(),n=Ze()},m(a,l){o.m(a,l),I(a,t,l),s&&s.m(a,l),I(a,n,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(t.parentNode,t))),a[12].length!==0?s?s.p(a,l):(s=Ka(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(N(t),N(n)),o.d(a),s&&s.d(a)}}}function Fb(e){let t,n=[e[35]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=D(r,n[i]);return{c(){t=E("div"),S(t,r)},m(i,o){I(i,t,o)},p:Se,d(i){i&&N(t)}}}function Hb(e){let t,n=e[26]("bonus.noBonus")+"",r;return{c(){t=E("span"),r=B(n),m(t,"class","NoBonus")},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&N(t)}}}function Rb(e){let t,n=e[26]("bonus.error")+"",r,i,o;return{c(){t=E("div"),r=B(n),i=B(": "),o=B(e[14]),m(t,"class","BonusError")},m(s,a){I(s,t,a),p(t,r),p(t,i),p(t,o)},p(s,a){a[0]&67108864&&n!==(n=s[26]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&N(t)}}}function zb(e){let t,n=Fe(e[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=Za(Ga(e,n,s));let i=[e[35]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();S(t,o)},m(s,a){I(s,t,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(t,null)},p(s,a){if(a[0]&37753339){n=Fe(s[12]);let l;for(l=0;l<n.length;l+=1){const u=Ga(s,n,l);r[l]?r[l].p(u,a):(r[l]=Za(u),r[l].c(),r[l].m(t,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&N(t),bt(r,s)}}}function Za(e){let t,n,r,i=[{rawbonus:JSON.stringify(e[65]),status:e[22],cmsendpoint:e[3],lang:e[0],clientstyling:e[5],clientstylingurl:e[6],mbsource:e[4],translationurl:e[7],levelcountlimit:e[8],currency:e[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[e[25]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("li"),n=E("casino-bonus-card"),r=U(),S(n,o),S(t,a)},m(l,u){I(l,t,u),p(t,n),p(t,r)},p(l,u){S(n,o=Be(i,[u[0]&4198907&&{rawbonus:JSON.stringify(l[65]),status:l[22],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),S(t,a=Be(s,[u[0]&33554432&&l[25]("BonusItem")]))},d(l){l&&N(t)}}}function Ka(e){let t;return{c(){t=E("casino-bonus-pagination"),Pe(t,"totalitems",e[16]),Pe(t,"currentpage",e[15]),Pe(t,"pagesize",e[2]),Pe(t,"limit",e[17]),Pe(t,"clientstyling",e[5]),Pe(t,"clientstylingurl",e[6]),Pe(t,"mbsource",e[4])},m(n,r){I(n,t,r)},p(n,r){r[0]&65536&&Pe(t,"totalitems",n[16]),r[0]&32768&&Pe(t,"currentpage",n[15]),r[0]&4&&Pe(t,"pagesize",n[2]),r[0]&131072&&Pe(t,"limit",n[17]),r[0]&32&&Pe(t,"clientstyling",n[5]),r[0]&64&&Pe(t,"clientstylingurl",n[6]),r[0]&16&&Pe(t,"mbsource",n[4])},d(n){n&&N(t)}}}function Ja(e){let t,n,r,i,o=e[26]("bonus.forfeitMessage")+"",s,a,l,u,d=e[26]("bonus.forfeitCancel")+"",c,h,f,b=e[26]("bonus.forfeitConfirm")+"",_,y,w,g=[e[35]("ModalText")],A={};for(let z=0;z<g.length;z+=1)A=D(A,g[z]);let v=[e[35]("ModalCancel")],k={};for(let z=0;z<v.length;z+=1)k=D(k,v[z]);let x=[e[35]("ModalConfirm")],L={};for(let z=0;z<x.length;z+=1)L=D(L,x[z]);let W=[e[35]("ModalButtons")],G={};for(let z=0;z<W.length;z+=1)G=D(G,W[z]);let F=[e[35]("ModalBody")],M={};for(let z=0;z<F.length;z+=1)M=D(M,F[z]);let R=[e[35]("ModalContent")],K={};for(let z=0;z<R.length;z+=1)K=D(K,R[z]);let X=[e[25]("ModalWrapper")],P={};for(let z=0;z<X.length;z+=1)P=D(P,X[z]);return{c(){t=E("div"),n=E("div"),r=E("div"),i=E("p"),s=B(o),a=U(),l=E("div"),u=E("button"),c=B(d),h=U(),f=E("button"),_=B(b),S(i,A),S(u,k),S(f,L),S(l,G),S(r,M),S(n,K),S(t,P)},m(z,re){I(z,t,re),p(t,n),p(n,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),y||(w=[ke(u,"click",e[33]),ke(f,"click",e[47])],y=!0)},p(z,re){re[0]&67108864&&o!==(o=z[26]("bonus.forfeitMessage")+"")&&te(s,o,A.contenteditable),re[0]&67108864&&d!==(d=z[26]("bonus.forfeitCancel")+"")&&te(c,d,k.contenteditable),re[0]&67108864&&b!==(b=z[26]("bonus.forfeitConfirm")+"")&&te(_,b,L.contenteditable),S(t,P=Be(X,[re[0]&33554432&&z[25]("ModalWrapper")]))},d(z){z&&N(t),y=!1,Ye(w)}}}function Ub(e){let t,n,r,i,o,s,a=Fe(e[30]),l=[];for(let v=0;v<a.length;v+=1)l[v]=qa(Ya(e,a,v));let u=[e[25]("BonusFilterWrapper")],d={};for(let v=0;v<u.length;v+=1)d=D(d,u[v]);function c(v,k){if(v[22]==="claimable")return Ib;if(v[22]==="completed")return Nb}let h=c(e),f=h&&h(e);function b(v,k){return v[13]?Fb:Lb}let _=b(e),y=_(e),w=e[21]&&Ja(e),g=[e[35]("BonusesController")],A={};for(let v=0;v<g.length;v+=1)A=D(A,g[v]);return{c(){t=E("div"),n=E("div"),r=E("div");for(let v=0;v<l.length;v+=1)l[v].c();i=U(),f&&f.c(),o=U(),y.c(),s=U(),w&&w.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),S(n,d),S(t,A)},m(v,k){I(v,t,k),p(t,n),p(n,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(t,i),f&&f.m(t,null),p(t,o),y.m(t,null),p(t,s),w&&w.m(t,null),e[48](t)},p(v,k){if(k[0]&1178607616|k[1]&8){a=Fe(v[30]);let x;for(x=0;x<a.length;x+=1){const L=Ya(v,a,x);l[x]?l[x].p(L,k):(l[x]=qa(L),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}S(n,d=Be(u,[k[0]&33554432&&v[25]("BonusFilterWrapper")])),h===(h=c(v))&&f?f.p(v,k):(f&&f.d(1),f=h&&h(v),f&&(f.c(),f.m(t,o))),_===(_=b(v))&&y?y.p(v,k):(y.d(1),y=_(v),y&&(y.c(),y.m(t,s))),v[21]?w?w.p(v,k):(w=Ja(v),w.c(),w.m(t,null)):w&&(w.d(1),w=null)},i:Se,o:Se,d(v){v&&N(t),bt(l,v),f&&f.d(),y.d(),w&&w.d(),e[48](null)}}}function $b(e,t,n){let r,i,o;al(e,Hl,V=>n(26,o=V));let{endpoint:s=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:d=""}=t,{cmsendpoint:c=""}=t,{mbsource:h}=t,{clientstyling:f=""}=t,{clientstylingurl:b=""}=t,{translationurl:_=""}=t,{levelcountlimit:y="3"}=t,w=window.navigator.userAgent,g=!1,A=[],v=!0,k="",x=1,L=0,W=2,G=wn(ms(new Date,6),"yyyy-MM-dd"),F=wn(new Date,"yyyy-MM-dd"),M=wn(ms(new Date,3),"yyyy-MM-dd"),R,K="",X=!0,P=!1,z=!1,re=M,ve=F,oe,j,ie="active",Y=!0,ae=["active","completed","claimable"],J="";Gl(w)&&(g=!0,W=1);const ne=()=>{fetch(_).then(Ce=>Ce.json()).then(Ce=>{Object.keys(Ce).forEach(Oe=>{hr(Oe,Ce[Oe])})}).catch(Ce=>{console.log(Ce)})};Object.keys(fr).forEach(V=>{hr(V,fr[V])}),Tr(()=>(window.addEventListener("message",C,!1),()=>{oe==null||oe.removeEventListener("change",et),j==null||j.removeEventListener("change",wt),window.removeEventListener("message",C)}));const C=V=>{switch(V.data.type){case"PaginationChange":n(15,x=V.data.page),be(x);break;case"OnBonusClaimed":ue(V.data.bonusCode);break;case"OnBonusForfeit":n(24,J=V.data.bonus.id),n(21,z=!0)}},O=()=>Ue(this,null,function*(){be(1)}),ue=(V,Ce)=>Ue(this,null,function*(){n(23,Y=!1);const Oe=yield q(V);Oe.success?(n(20,P=!1),be(1)):(n(14,k=Oe.errorMessage),Ce?n(20,P=!0):window.postMessage({type:"OnBonusClaimError",message:k,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),n(23,Y=!0)}),q=V=>Ue(this,null,function*(){return yield dt(s+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),Ee=V=>Ue(this,null,function*(){n(23,Y=!1);const Ce=yield Z(V);Ce.success?be(1):n(14,k=Ce.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(23,Y=!0),n(21,z=!1)}),Z=V=>Ue(this,null,function*(){const Ce=new URL(`${s}/v1/bonus/forfeit`),Oe={bonusID:V,lang:a};return Object.keys(Oe).map(Lt=>{Ce.searchParams.append(Lt,Oe[Lt])}),yield dt(Ce,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Te=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(21,z=!1)},be=V=>Ue(this,null,function*(){x!==V&&n(15,x=V);const Ce=(V-1)*Number(d);n(13,v=!0),n(12,A=[]);const Oe=yield Je(s,l,Ce,{lang:a,limit:d});Oe.success?(n(16,L=Oe.total),n(12,A=Oe.items||Oe.bonuses)):n(14,k=Oe.errorMessage),n(13,v=!1)}),Je=(ct,yd,wd,...Cd)=>Ue(this,[ct,yd,wd,...Cd],function*(V,Ce,Oe,Lt={}){const le=Lt,{limit:Kr,lang:Jr}=le,Qr=ti(le,["limit","lang"]),T=(()=>{switch(ie){case"claimable":return ie;default:return"granted"}})(),H=un(Et({pagination:`limit=${Kr},offset=${Oe}`,language:Jr},Qr),{sortOrder:"desc"});if(ie==="completed"){let me=new Date(re).toISOString(),Ae=new Date(ve+" 23:59:59").toISOString();H.startTime=me,H.endTime=Ae,H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="completed,released,forfeited,expired,closed"}ie==="active"&&(H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="active");const Q=new URL(`${V}/v1/bonus/${T}`);return ie!=="claimable"?Q.searchParams.append("expand","freeSpin"):delete H.sortOrder,Object.keys(H).map(me=>{Q.searchParams.append(me,H[me])}),yield dt(Q,{headers:Et({},Ce?{"x-SessionId":Ce}:{})})}),Qe=(V,Ce="")=>({part:V,class:[V,Ce].join(" ")}),dt=(Oe,...Lt)=>Ue(this,[Oe,...Lt],function*(V,Ce={}){let ct;return ct=yield fetch(V,Ce),ct.ok===!1?{errorMessage:ct.status}:(ct=yield ct.json(),ct)}),et=V=>{re=V.target.value},wt=V=>{ve=V.target.value},Ct=()=>{oe.addEventListener("change",et,!1),j.addEventListener("change",wt,!1)},$=()=>(n(20,P=!1),!!K),ye=()=>{n(19,X=!$())},jr=V=>{n(22,ie=V),be(1)};function Gr(){K=this.value,n(18,K)}const Yr=()=>{ue(K,!0)};function qr(V){it[V?"unshift":"push"](()=>{oe=V,n(10,oe)})}function Xr(V){it[V?"unshift":"push"](()=>{j=V,n(11,j)})}const Zr=()=>be(1),jn=()=>Ee(J);function Gn(V){it[V?"unshift":"push"](()=>{R=V,n(9,R)})}return e.$$set=V=>{"endpoint"in V&&n(37,s=V.endpoint),"lang"in V&&n(0,a=V.lang),"session"in V&&n(38,l=V.session),"currency"in V&&n(1,u=V.currency),"limit"in V&&n(2,d=V.limit),"cmsendpoint"in V&&n(3,c=V.cmsendpoint),"mbsource"in V&&n(4,h=V.mbsource),"clientstyling"in V&&n(5,f=V.clientstyling),"clientstylingurl"in V&&n(6,b=V.clientstylingurl),"translationurl"in V&&n(7,_=V.translationurl),"levelcountlimit"in V&&n(8,y=V.levelcountlimit)},e.$$.update=()=>{e.$$.dirty[0]&3072&&oe&&j&&Ct(),e.$$.dirty[1]&256&&n(25,r=(V,Ce="")=>Qe(`${V}${g?` ${V}Mobile`:""}`,Ce)),e.$$.dirty[0]&1&&a&&Rl(a),e.$$.dirty[0]&5|e.$$.dirty[1]&192&&n(40,i=s&&l&&a&&d),e.$$.dirty[1]&512&&i&&O(),e.$$.dirty[0]&544&&f&&R&&Ir(R,f),e.$$.dirty[0]&576&&b&&R&&Lr(R,b),e.$$.dirty[0]&528&&h&&R&&Fr(R,`${h}.Style`),e.$$.dirty[0]&128&&_&&ne()},[a,u,d,c,h,f,b,_,y,R,oe,j,A,v,k,x,L,W,K,X,P,z,ie,Y,J,r,o,G,F,M,ae,ue,Ee,Te,be,Qe,ye,s,l,g,i,jr,Gr,Yr,qr,Xr,Zr,jn,Gn]}class vd extends kr{constructor(t){super(),Pr(this,t,$b,Ub,Hn,{endpoint:37,lang:0,session:38,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8},Ob,[-1,-1,-1])}get endpoint(){return this.$$.ctx[37]}set endpoint(t){this.$$set({endpoint:t}),de()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),de()}get session(){return this.$$.ctx[38]}set session(t){this.$$set({session:t}),de()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),de()}get limit(){return this.$$.ctx[2]}set limit(t){this.$$set({limit:t}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(t){this.$$set({translationurl:t}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(t){this.$$set({levelcountlimit:t}),de()}}Sr(vd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{}},[],[],!0);exports.default=vd;
3574
+ `),Y.c(),S(n,K),se(l,"BonusAmount",e[0]==="active"),se(f,"Amount",e[0]==="active"),S(a,P),S(t,re),S(A,oe),S(W,J),S(g,C)},m(O,ue){I(O,t,ue),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,y),I(O,w,ue),I(O,g,ue),p(g,A),p(A,k),p(A,x),p(g,L),p(g,W),p(W,F),p(W,M),Y.m(W,null)},p(O,ue){ue[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&te(i,r,K.contenteditable),ue[0]&32&&u!==(u=O[5].remainingAmount+"")&&fe(d,u),ue[0]&131072&&fe(c,O[17]),ue[0]&1&&se(l,"BonusAmount",O[0]==="active"),ue[0]&32&&b!==(b=O[5].amount+"")&&fe(_,b),ue[0]&131072&&fe(y,O[17]),ue[0]&1&&se(f,"Amount",O[0]==="active"),ue[0]&33554432&&v!==(v=O[25]("bonusCard.wageredAmount")+"")&&te(k,v,oe.contenteditable),ue[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&te(F,G,J.contenteditable),ie===(ie=j(O))&&Y?Y.p(O,ue):(Y.d(1),Y=ie(O),Y&&(Y.c(),Y.m(W,null)))},d(O){O&&(N(t),N(w),N(g)),Y.d()}}}function Zg(e){let t=e[5].initialWagerRequirementAmount+e[17]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&t!==(t=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,t)},d(r){r&&N(n)}}}function Kg(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function ga(e){let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[5].remainingAmount+"",d,c,h=[e[41]("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=[e[41]("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=D(_,b[g]);let y=[e[41]("BonusCardRow")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),S(n,f),se(l,"BonusAmount",e[0]==="active"),S(a,_),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),A[0]&131072&&fe(c,g[17]),A[0]&1&&se(l,"BonusAmount",g[0]==="active")},d(g){g&&N(t)}}}function ba(e){let t,n=e[5].status==="active"&&va(e);return{c(){n&&n.c(),t=Ze()},m(r,i){n&&n.m(r,i),I(r,t,i)},p(r,i){r[5].status==="active"?n?n.p(r,i):(n=va(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&N(t),n&&n.d(r)}}}function va(e){let t,n,r=e[25]("bonusCard.roundNumber")+"",i,o,s,a,l=e[5].numberOfFreeSpin+"",u,d,c,h,f=e[25]("bonusCard.game")+"",b,_,y,w,g,A,v,k,x,L,W,G,F,M,R,K,X,P,z,re=[e[41]("BonusCardLabel")],ve={};for(let Z=0;Z<re.length;Z+=1)ve=D(ve,re[Z]);let oe=[e[41]("BonusCardRowText")],j={};for(let Z=0;Z<oe.length;Z+=1)j=D(j,oe[Z]);let ie=[e[41]("BonusCardRow")],Y={};for(let Z=0;Z<ie.length;Z+=1)Y=D(Y,ie[Z]);let ae=[e[41]("BonusCardLabel")],J={};for(let Z=0;Z<ae.length;Z+=1)J=D(J,ae[Z]);let ne=Fe(e[23]),C=[];for(let Z=0;Z<ne.length;Z+=1)C[Z]=ya(ha(e,ne,Z));let O=[e[41]("BonusCardRowText")],ue={};for(let Z=0;Z<O.length;Z+=1)ue=D(ue,O[Z]);let q=[e[41]("BonusCardRow")],Ee={};for(let Z=0;Z<q.length;Z+=1)Ee=D(Ee,q[Z]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("div"),h=E("div"),b=B(f),_=B(":"),y=U(),w=E("div"),g=E("div"),A=E("button"),v=ee("svg"),k=ee("path"),L=U(),W=E("div"),G=E("span");for(let Z=0;Z<C.length;Z+=1)C[Z].c();F=U(),M=E("button"),R=ee("svg"),K=ee("path"),S(n,ve),S(a,j),S(t,Y),S(h,J),m(k,"stroke-linecap","round"),m(k,"stroke-linejoin","round"),m(k,"stroke-width","2"),m(k,"d","M15 19l-7-7 7-7"),m(v,"fill","none"),m(v,"stroke","currentColor"),m(v,"viewBox","0 0 24 24"),m(v,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=e[24]==0,se(A,"Hide",e[23].length<=3),m(G,"class","Games"),Yo(G,"transform","translateX("+e[24]+"px)"),m(W,"class","Main"),m(K,"stroke-linecap","round"),m(K,"stroke-linejoin","round"),m(K,"stroke-width","2"),m(K,"d","M9 5l7 7-7 7"),m(R,"fill","none"),m(R,"stroke","currentColor"),m(R,"viewBox","0 0 24 24"),m(R,"xmlns","http://www.w3.org/2000/svg"),m(M,"class","SliderNavButton"),m(M,"part","SliderNavButton"),M.disabled=X=e[24]<=-(e[23].length-3)*100,se(M,"Hide",e[23].length<=3),m(g,"class","BonusGamesSlider"),S(w,ue),S(c,Ee)},m(Z,Te){I(Z,t,Te),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I(Z,d,Te),I(Z,c,Te),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),p(w,g),p(g,A),p(A,v),p(v,k),p(g,L),p(g,W),p(W,G);for(let be=0;be<C.length;be+=1)C[be]&&C[be].m(G,null);p(g,F),p(g,M),p(M,R),p(R,K),P||(z=[ke(A,"click",e[52]),ke(M,"click",e[56])],P=!0)},p(Z,Te){if(Te[0]&33554432&&r!==(r=Z[25]("bonusCard.roundNumber")+"")&&te(i,r,ve.contenteditable),Te[0]&32&&l!==(l=Z[5].numberOfFreeSpin+"")&&te(u,l,j.contenteditable),Te[0]&33554432&&f!==(f=Z[25]("bonusCard.game")+"")&&te(b,f,J.contenteditable),Te[0]&16777216&&x!==(x=Z[24]==0)&&(A.disabled=x),Te[0]&8388608&&se(A,"Hide",Z[23].length<=3),Te[0]&48234496|Te[1]&14336){ne=Fe(Z[23]);let be;for(be=0;be<ne.length;be+=1){const Je=ha(Z,ne,be);C[be]?C[be].p(Je,Te):(C[be]=ya(Je),C[be].c(),C[be].m(G,null))}for(;be<C.length;be+=1)C[be].d(1);C.length=ne.length}Te[0]&16777216&&Yo(G,"transform","translateX("+Z[24]+"px)"),Te[0]&25165824&&X!==(X=Z[24]<=-(Z[23].length-3)*100)&&(M.disabled=X),Te[0]&8388608&&se(M,"Hide",Z[23].length<=3)},d(Z){Z&&(N(t),N(d),N(c)),bt(C,Z),P=!1,Ye(z)}}}function ya(e){let t,n,r=e[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return e[53](e[88])}function y(){return e[54](e[90])}return{c(){t=E("span"),n=E("span"),i=B(r),a=U(),l=E("ui-image"),h=U(),m(n,"class",o="PlayNowButton "+(e[21]&&e[22]==e[90]?"ItemHover":"")),m(n,"part",s="PlayNowButton "+(e[21]&&e[22]==e[90]?"itemHover":"")),Go(l.src,u=e[88].thumbnail)||Pe(l,"src",u),Pe(l,"width","100px"),Pe(l,"height","75px"),Pe(l,"alt",d=e[88].name),Pe(l,"title",c=e[88].name),m(t,"class","Game"),m(t,"part","Game")},m(w,g){I(w,t,g),p(t,n),p(n,i),p(t,a),p(t,l),p(t,h),f||(b=[ke(t,"click",_),ke(t,"mouseenter",y),ke(t,"mouseleave",e[55])],f=!0)},p(w,g){e=w,g[0]&33554432&&r!==(r=e[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(e[21]&&e[22]==e[90]?"ItemHover":""))&&m(n,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(e[21]&&e[22]==e[90]?"itemHover":""))&&m(n,"part",s),g[0]&8388608&&!Go(l.src,u=e[88].thumbnail)&&Pe(l,"src",u),g[0]&8388608&&d!==(d=e[88].name)&&Pe(l,"alt",d),g[0]&8388608&&c!==(c=e[88].name)&&Pe(l,"title",c)},d(w){w&&N(t),f=!1,Ye(b)}}}function wa(e){let t,n,r=e[25]("bonusCard.wageringType")+"",i,o,s,a,l=e[25](`bonusCard.${e[5].wageringType}`)+"",u,d,c,h,f=e[25]("bonusCard.wagered")+"",b,_,y,w,g=[e[41]("BonusCardLabel")],A={};for(let P=0;P<g.length;P+=1)A=D(A,g[P]);let v=[e[41]("BonusCardRowText")],k={};for(let P=0;P<v.length;P+=1)k=D(k,v[P]);let x=[e[41]("BonusCardRow")],L={};for(let P=0;P<x.length;P+=1)L=D(L,x[P]);let W=[e[41]("BonusCardLabel")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=e[5].wageringType==="money"&&Ca(e),M=[e[41]("BonusCardRowText")],R={};for(let P=0;P<M.length;P+=1)R=D(R,M[P]);let K=[e[41]("BonusCardRow")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),d=U(),c=E("p"),h=E("span"),b=B(f),_=B(":"),y=U(),w=E("span"),F&&F.c(),S(n,A),S(a,k),S(t,L),S(h,G),S(w,R),S(c,X)},m(P,z){I(P,t,z),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u),I(P,d,z),I(P,c,z),p(c,h),p(h,b),p(h,_),p(c,y),p(c,w),F&&F.m(w,null)},p(P,z){z[0]&33554432&&r!==(r=P[25]("bonusCard.wageringType")+"")&&te(i,r,A.contenteditable),z[0]&33554464&&l!==(l=P[25](`bonusCard.${P[5].wageringType}`)+"")&&te(u,l,k.contenteditable),z[0]&33554432&&f!==(f=P[25]("bonusCard.wagered")+"")&&te(b,f,G.contenteditable),P[5].wageringType==="money"?F?F.p(P,z):(F=Ca(P),F.c(),F.m(w,null)):F&&(F.d(1),F=null)},d(P){P&&(N(t),N(d),N(c)),F&&F.d()}}}function Ca(e){let t;function n(o,s){return o[0]==="active"?Qg:Jg}let r=n(e),i=r(e);return{c(){i.c(),t=Ze()},m(o,s){i.m(o,s),I(o,t,s)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&N(t),i.d(o)}}}function Jg(e){let t=e[29](e[5])+e[17]+"",n,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?tb:eb}let s=o(e),a=s(e);return{c(){n=B(t),r=B(` /
3575
+ `),a.c(),i=Ze()},m(l,u){I(l,n,u),I(l,r,u),a.m(l,u),I(l,i,u)},p(l,u){u[0]&131104&&t!==(t=l[29](l[5])+l[17]+"")&&fe(n,t),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(N(n),N(r),N(i)),a.d(l)}}}function Qg(e){var d;let t=e[30](e[5])+"",n,r,i,o,s=((d=e[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){n=B(t),r=U(),i=B(e[17]),o=B(` /
3576
+ `),a=B(s),l=U(),u=B(e[17])},m(c,h){I(c,n,h),I(c,r,h),I(c,i,h),I(c,o,h),I(c,a,h),I(c,l,h),I(c,u,h)},p(c,h){var f;h[0]&32&&t!==(t=c[30](c[5])+"")&&fe(n,t),h[0]&131072&&fe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&fe(a,s),h[0]&131072&&fe(u,c[17])},d(c){c&&(N(n),N(r),N(i),N(o),N(a),N(l),N(u))}}}function eb(e){let t=e[5].initialWagerRequirementAmount+e[17]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&t!==(t=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,t)},d(r){r&&N(n)}}}function tb(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function Ea(e){var ve,oe;let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[36]((oe=(ve=e[5].wallet.standard)==null?void 0:ve.initialAmount)==null?void 0:oe.fixedAmount)+"",d,c,h,f,b,_=e[25]("bonusCard.wageringRequirement")+"",y,w,g,A,v=e[37](e[5])+e[17]+"",k,x=[e[41]("BonusCardLabel")],L={};for(let j=0;j<x.length;j+=1)L=D(L,x[j]);let W=[e[41]("BonusCardRowText")],G={};for(let j=0;j<W.length;j+=1)G=D(G,W[j]);let F=[e[41]("BonusCardRow")],M={};for(let j=0;j<F.length;j+=1)M=D(M,F[j]);let R=[e[41]("BonusCardLabel")],K={};for(let j=0;j<R.length;j+=1)K=D(K,R[j]);let X=[e[41]("BonusCardRowText")],P={};for(let j=0;j<X.length;j+=1)P=D(P,X[j]);let z=[e[41]("BonusCardRow")],re={};for(let j=0;j<z.length;j+=1)re=D(re,z[j]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),h=U(),f=E("p"),b=E("span"),y=B(_),w=B(":"),g=U(),A=E("span"),k=B(v),S(n,L),S(a,G),S(t,M),S(b,K),S(A,P),S(f,re)},m(j,ie){I(j,t,ie),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c),I(j,h,ie),I(j,f,ie),p(f,b),p(b,y),p(b,w),p(f,g),p(f,A),p(A,k)},p(j,ie){var Y,ae;ie[0]&33554432&&r!==(r=j[25]("bonusCard.bonusAmount")+"")&&te(i,r,L.contenteditable),ie[0]&32&&u!==(u=j[36]((ae=(Y=j[5].wallet.standard)==null?void 0:Y.initialAmount)==null?void 0:ae.fixedAmount)+"")&&fe(d,u),ie[0]&131072&&fe(c,j[17]),ie[0]&33554432&&_!==(_=j[25]("bonusCard.wageringRequirement")+"")&&te(y,_,K.contenteditable),ie[0]&131104&&v!==(v=j[37](j[5])+j[17]+"")&&te(k,v,P.contenteditable)},d(j){j&&(N(t),N(h),N(f))}}}function xa(e){var g,A;let t,n,r=e[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=e[36]((A=(g=e[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[e[41]("BonusCardLabel")],f={};for(let v=0;v<h.length;v+=1)f=D(f,h[v]);let b=[e[41]("BonusCardRowText")],_={};for(let v=0;v<b.length;v+=1)_=D(_,b[v]);let y=[e[41]("BonusCardRow")],w={};for(let v=0;v<y.length;v+=1)w=D(w,y[v]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),l=E("span"),d=B(u),c=B(e[17]),S(n,f),S(a,_),S(t,w)},m(v,k){I(v,t,k),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,l),p(l,d),p(l,c)},p(v,k){var x,L;k[0]&33554432&&r!==(r=v[25]("bonusCard.bonusAmount")+"")&&te(i,r,f.contenteditable),k[0]&32&&u!==(u=v[36]((L=(x=v[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:L.fixedAmount)+"")&&fe(d,u),k[0]&131072&&fe(c,v[17])},d(v){v&&N(t)}}}function Aa(e){let t,n,r=e[25]("bonusCard.roundNumber")+"",i,o,s,a,l=e[38](e[5])+"",u,d=[e[41]("BonusCardLabel")],c={};for(let y=0;y<d.length;y+=1)c=D(c,d[y]);let h=[e[41]("BonusCardRowText")],f={};for(let y=0;y<h.length;y+=1)f=D(f,h[y]);let b=[e[41]("BonusCardRow")],_={};for(let y=0;y<b.length;y+=1)_=D(_,b[y]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),u=B(l),S(n,c),S(a,f),S(t,_)},m(y,w){I(y,t,w),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),p(a,u)},p(y,w){w[0]&33554432&&r!==(r=y[25]("bonusCard.roundNumber")+"")&&te(i,r,c.contenteditable),w[0]&32&&l!==(l=y[38](y[5])+"")&&te(u,l,f.contenteditable)},d(y){y&&N(t)}}}function Ta(e){let t,n,r=e[25]("bonusCard.levels")+"",i,o,s,a,l=[e[41]("BonusCardLabel")],u={};for(let w=0;w<l.length;w+=1)u=D(u,l[w]);function d(w,g){return w[8]>0?rb:nb}let c=d(e),h=c(e),f=[e[41]("BonusCardRowText")],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[e[41]("BonusCardRow")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){t=E("p"),n=E("span"),i=B(r),o=B(":"),s=U(),a=E("span"),h.c(),S(n,u),S(a,b),S(t,y)},m(w,g){I(w,t,g),p(t,n),p(n,i),p(n,o),p(t,s),p(t,a),h.m(a,null)},p(w,g){g[0]&33554432&&r!==(r=w[25]("bonusCard.levels")+"")&&te(i,r,u.contenteditable),c===(c=d(w))&&h?h.p(w,g):(h.d(1),h=c(w),h&&(h.c(),h.m(a,null)))},d(w){w&&N(t),h.d()}}}function nb(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function rb(e){let t;return{c(){t=B(e[8])},m(n,r){I(n,t,r)},p(n,r){r[0]&256&&fe(t,n[8])},d(n){n&&N(t)}}}function Pa(e){let t,n,r=e[5].type==="standard"&&Sa(e),i=e[5].type==="wagering"&&ka(e);return{c(){r&&r.c(),t=U(),i&&i.c(),n=Ze()},m(o,s){r&&r.m(o,s),I(o,t,s),i&&i.m(o,s),I(o,n,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=Sa(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=ka(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(N(t),N(n)),r&&r.d(o),i&&i.d(o)}}}function Sa(e){let t,n,r,i=[e[41]("CircularProgress"),{value:r=e[31](e[5])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[e[41]("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("div"),n=E("casino-bonus-progress"),S(n,o),S(t,a)},m(l,u){I(l,t,u),p(t,n)},p(l,u){S(n,o=Be(i,[l[41]("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&N(t)}}}function ka(e){var k;let t,n,r,i,o,s=e[25]("bonusCard.level")+"",a,l,u=(((k=e[5].wageringProgress)==null?void 0:k.currentLevel)||1)+"",d,c,h=[e[41]("CircularProgress"),{value:r=e[31](e[5])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],f={};for(let x=0;x<h.length;x+=1)f=D(f,h[x]);function b(x,L){return x[8]>0?ob:ib}let _=b(e),y=_(e),w=[e[41]("CircularProgressText")],g={};for(let x=0;x<w.length;x+=1)g=D(g,w[x]);let A=[e[41]("BonusCardProgress")],v={};for(let x=0;x<A.length;x+=1)v=D(v,A[x]);return{c(){t=E("div"),n=E("casino-bonus-progress"),i=U(),o=E("div"),a=B(s),l=B(": "),d=B(u),c=B(` /
3577
+ `),y.c(),S(n,f),S(o,g),S(t,v)},m(x,L){I(x,t,L),p(t,n),p(t,i),p(t,o),p(o,a),p(o,l),p(o,d),p(o,c),y.m(o,null)},p(x,L){var W;S(n,f=Be(h,[x[41]("CircularProgress"),L[0]&32&&r!==(r=x[31](x[5]))&&{value:r},L[0]&1&&{status:x[0]},L[0]&4&&{clientstyling:x[2]},L[0]&8&&{clientstylingurl:x[3]},L[0]&2&&{mbsource:x[1]}])),L[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&te(a,s,g.contenteditable),L[0]&32&&u!==(u=(((W=x[5].wageringProgress)==null?void 0:W.currentLevel)||1)+"")&&te(d,u,g.contenteditable),_===(_=b(x))&&y?y.p(x,L):(y.d(1),y=_(x),y&&(y.c(),y.m(o,null)))},d(x){x&&N(t),y.d()}}}function ib(e){let t;return{c(){t=B("∞")},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function ob(e){let t;return{c(){t=B(e[8])},m(n,r){I(n,t,r)},p(n,r){r[0]&256&&fe(t,n[8])},d(n){n&&N(t)}}}function Da(e){let t,n,r,i,o,s,a=e[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[e[41]("BonusCardAdditionalTitle")],_={};for(let F=0;F<b.length;F+=1)_=D(_,b[F]);function y(F,M){return F[11]?sb:ab}let w=y(e),g=w(e),A=[e[41]("BonusCardAdditionalButton")],v={};for(let F=0;F<A.length;F+=1)v=D(v,A[F]);let k=[e[41]("BonusCardAdditionalHeader")],x={};for(let F=0;F<k.length;F+=1)x=D(x,k[F]);let L=e[11]&&Ba(e),W=[e[41]("BonusCardAdditional")],G={};for(let F=0;F<W.length;F+=1)G=D(G,W[F]);return{c(){t=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),l=B(a),u=U(),d=E("span"),g.c(),c=U(),L&&L.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,_),S(d,v),S(n,x),se(n,"Active",e[11]),S(t,G)},m(F,M){I(F,t,M),p(t,n),p(n,r),p(r,i),p(i,o),p(r,s),p(r,l),p(n,u),p(n,d),g.m(d,null),p(t,c),L&&L.m(t,null),h||(f=ke(n,"click",e[57]),h=!0)},p(F,M){M[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&te(l,a,_.contenteditable),w!==(w=y(F))&&(g.d(1),g=w(F),g&&(g.c(),g.m(d,null))),M[0]&2048&&se(n,"Active",F[11]),F[11]?L?L.p(F,M):(L=Ba(F),L.c(),L.m(t,null)):L&&(L.d(1),L=null)},d(F){F&&N(t),g.d(),L&&L.d(),h=!1,f()}}}function sb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function ab(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function Ba(e){let t,n=e[5].type==="wagering"&&Ma(e),r=[e[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=D(i,r[o]);return{c(){t=E("div"),n&&n.c(),S(t,i)},m(o,s){I(o,t,s),n&&n.m(t,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Ma(o),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(o){o&&N(t),n&&n.d()}}}function Ma(e){let t,n=e[5].levels.length>Number(e[4]),r;function i(l,u){if(l[5].status)return ub;if(l[5].levels)return lb}let o=i(e),s=o&&o(e),a=n&&Fa(e);return{c(){s&&s.c(),t=U(),a&&a.c(),r=Ze()},m(l,u){s&&s.m(l,u),I(l,t,u),a&&a.m(l,u),I(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(t.parentNode,t))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Fa(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(N(t),N(r)),s&&s.d(l),a&&a.d(l)}}}function lb(e){let t,n=Fe(e[5].levels.slice(0,e[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Na(la(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Ze()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,t,o)},p(i,o){if(o[0]&33554480|o[1]&1048){n=Fe(i[5].levels.slice(0,i[4]));let s;for(s=0;s<n.length;s+=1){const a=la(i,n,s);r[s]?r[s].p(a,o):(r[s]=Na(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(t),bt(r,i)}}}function ub(e){let t,n=Fe(e[40](e[5],e[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=La(da(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Ze()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,t,o)},p(i,o){if(o[0]&33554592|o[1]&1536){n=Fe(i[40](i[5],i[7]));let s;for(s=0;s<n.length;s+=1){const a=da(i,n,s);r[s]?r[s].p(a,o):(r[s]=La(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(t),bt(r,i)}}}function Oa(e){let t=e[35](e[82],e[85])+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&t!==(t=r[35](r[82],r[85])+"")&&fe(n,t)},d(r){r&&N(n)}}}function Na(e){let t,n,r=e[25]("bonusCard.level")+"",i,o,s=e[34](e[5].levels,e[84])+"",a,l,u,d,c,h=[e[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Fe(e[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Oa(ua(e,b,g));let y=[e[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(n,a),p(n,l),p(t,u),p(t,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(t,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&te(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&te(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Fe(g[82].bonuses);let v;for(v=0;v<b.length;v+=1){const k=ua(g,b,v);_[v]?_[v].p(k,A):(_[v]=Oa(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(t),bt(_,g)}}}function Ia(e){let t=e[79]+"",n;return{c(){n=B(t)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&t!==(t=r[79]+"")&&fe(n,t)},d(r){r&&N(n)}}}function La(e){let t,n,r=e[25](`bonusCard.${e[76].label}`)+"",i,o,s=e[25]("bonusCard.level")+"",a,l,u,d,c,h=[e[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let b=Fe(e[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=Ia(ca(e,b,g));let y=[e[41]("BonusRewardsLevelsItem")],w={};for(let g=0;g<y.length;g+=1)w=D(w,y[g]);return{c(){t=E("p"),n=E("span"),i=B(r),o=U(),a=B(s),l=B(":"),u=U(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=U(),S(n,f),S(t,w)},m(g,A){I(g,t,A),p(t,n),p(n,i),p(n,o),p(n,a),p(n,l),p(t,u),p(t,d);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(d,null);p(t,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&te(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&te(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Fe(g[76].desc);let v;for(v=0;v<b.length;v+=1){const k=ca(g,b,v);_[v]?_[v].p(k,A):(_[v]=Ia(k),_[v].c(),_[v].m(d,null))}for(;v<_.length;v+=1)_[v].d(1);_.length=b.length}},d(g){g&&N(t),bt(_,g)}}}function Fa(e){let t,n=e[25]("bonusCard.allRewards")+"",r,i,o,s=[e[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("a"),r=B(n),S(t,a)},m(l,u){I(l,t,u),p(t,r),i||(o=ke(t,"click",e[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&te(r,n,a.contenteditable)},d(l){l&&N(t),i=!1,o()}}}function db(e){let t,n,r,i,o,s,a,l,u,d,c=e[25]("bonusCard.terms")+"",h,f=[e[41]("BonusCardTermsLink"),{href:e[20]},{target:"__blank"}],b={};for(let w=0;w<f.length;w+=1)b=D(b,f[w]);let _=[e[41]("BonusCardTerms")],y={};for(let w=0;w<_.length;w+=1)y=D(y,_[w]);return{c(){t=E("div"),n=E("a"),r=ee("svg"),i=ee("path"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=U(),h=B(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(n,b),S(t,y)},m(w,g){I(w,t,g),p(t,n),p(n,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(n,d),p(n,h)},p(w,g){g[0]&33554432&&c!==(c=w[25]("bonusCard.terms")+"")&&te(h,c,b.contenteditable),S(n,b=Be(f,[w[41]("BonusCardTermsLink"),g[0]&1048576&&{href:w[20]},{target:"__blank"}]))},d(w){w&&N(t)}}}function cb(e){let t,n,r,i,o,s,a,l,u,d,c,h=e[25]("bonusCard.terms")+"",f,b,_,y,w,g,A=[e[41]("BonusCardTermsTitle")],v={};for(let P=0;P<A.length;P+=1)v=D(v,A[P]);function k(P,z){return P[12]?hb:fb}let x=k(e),L=x(e),W=[e[41]("BonusCardTermsButton")],G={};for(let P=0;P<W.length;P+=1)G=D(G,W[P]);let F=[e[41]("BonusCardTermsHeader")],M={};for(let P=0;P<F.length;P+=1)M=D(M,F[P]);let R=e[12]&&Ha(e),K=[e[41]("BonusCardTerms")],X={};for(let P=0;P<K.length;P+=1)X=D(X,K[P]);return{c(){t=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=U(),f=B(h),b=U(),_=E("span"),L.c(),y=U(),R&&R.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,v),S(_,G),S(n,M),se(n,"Active",e[12]),S(t,X)},m(P,z){I(P,t,z),p(t,n),p(n,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(n,b),p(n,_),L.m(_,null),p(t,y),R&&R.m(t,null),w||(g=ke(n,"click",e[58]),w=!0)},p(P,z){z[0]&33554432&&h!==(h=P[25]("bonusCard.terms")+"")&&te(f,h,v.contenteditable),x!==(x=k(P))&&(L.d(1),L=x(P),L&&(L.c(),L.m(_,null))),z[0]&4096&&se(n,"Active",P[12]),P[12]?R?R.p(P,z):(R=Ha(P),R.c(),R.m(t,null)):R&&(R.d(1),R=null)},d(P){P&&N(t),L.d(),R&&R.d(),w=!1,g()}}}function hb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function fb(e){let t,n;return{c(){t=ee("svg"),n=ee("path"),m(n,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(n,"stroke","black"),m(n,"stroke-width","3"),m(n,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,t,i),p(t,n)},d(r){r&&N(t)}}}function Ha(e){let t,n,r,i,o=[e[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=D(s,o[a]);return{c(){t=E("div"),S(t,s)},m(a,l){I(a,t,l),r||(i=Md(n=e[45].call(null,t,e[16].terms_and_conditions)),r=!0)},p(a,l){n&&Fn(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&N(t),r=!1,i()}}}function Ra(e){let t,n,r,i=e[0]==="claimable"&&za(e),o=e[0]==="active"&&e[5].status==="active"&&$a(e),s=[e[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=D(a,s[d]);let l=[e[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){t=E("div"),n=E("div"),i&&i.c(),r=U(),o&&o.c(),S(n,a),S(t,u)},m(d,c){I(d,t,c),p(t,n),i&&i.m(n,null),p(n,r),o&&o.m(n,null)},p(d,c){d[0]==="claimable"?i?i.p(d,c):(i=za(d),i.c(),i.m(n,r)):i&&(i.d(1),i=null),d[0]==="active"&&d[5].status==="active"?o?o.p(d,c):(o=$a(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&N(t),i&&i.d(),o&&o.d()}}}function za(e){let t,n,r,i,o,s,a,l,u,d=e[25]("bonusCard.join")+"",c,h,f,b,_=e[15]===!0&&Ua(e),y=[e[41]("BonusCardJoinCountdown")],w={};for(let x=0;x<y.length;x+=1)w=D(w,y[x]);let g=[e[41]("BonusJoinButton"),{type:"button"},{disabled:h=!e[13]}],A={};for(let x=0;x<g.length;x+=1)A=D(A,g[x]);let v=[e[41]("BonusCardJoinWrapper")],k={};for(let x=0;x<v.length;x+=1)k=D(k,v[x]);return{c(){t=E("div"),_&&_.c(),n=U(),r=E("span"),i=ee("svg"),o=ee("path"),s=U(),a=B(e[19]),l=U(),u=E("button"),c=B(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,w),S(u,A),S(t,k)},m(x,L){I(x,t,L),_&&_.m(t,null),p(t,n),p(t,r),p(r,i),p(i,o),p(r,s),p(r,a),p(t,l),p(t,u),p(u,c),u.autofocus&&u.focus(),f||(b=ke(u,"click",e[26]),f=!0)},p(x,L){x[15]===!0?_?_.p(x,L):(_=Ua(x),_.c(),_.m(t,n)):_&&(_.d(1),_=null),L[0]&524288&&te(a,x[19],w.contenteditable),L[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&te(c,d,A.contenteditable),S(u,A=Be(g,[x[41]("BonusJoinButton"),{type:"button"},L[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&N(t),_&&_.d(),f=!1,b()}}}function Ua(e){let t,n=e[25]("bonusCard.error")+"",r,i=[e[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("span"),r=B(n),S(t,o)},m(s,a){I(s,t,a),p(t,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&te(r,n,o.contenteditable)},d(s){s&&N(t)}}}function $a(e){let t,n=e[25]("bonusCard.forfeit")+"",r,i,o,s,a=[e[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!e[13]}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=E("button"),r=B(n),S(t,l)},m(u,d){I(u,t,d),p(t,r),t.autofocus&&t.focus(),o||(s=ke(t,"click",e[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&te(r,n,l.contenteditable),S(t,l=Be(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&N(t),o=!1,s()}}}function pb(e){let t,n=e[5]&&fa(e);return{c(){n&&n.c(),t=Ze()},m(r,i){n&&n.m(r,i),I(r,t,i)},p(r,i){r[5]?n?n.p(r,i):(n=fa(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:Se,o:Se,d(r){r&&N(t),n&&n.d(r)}}}function mb(e,t,n){let r,i;cl(e,$l,T=>n(25,i=T));let{rawbonus:o=""}=t,{lang:s="en"}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{cmsendpoint:c=""}=t,{translationurl:h=""}=t,{levelcountlimit:f=""}=t,{currency:b=""}=t,_,y=[],w,g=!1,A=!1,v=!1,k=!1,x=!0,L=!1,W=!1,G={},F,M,R="",K=1e3*30,X,P="",z=!1,re,ve=[],oe=0;const j=()=>{fetch(h).then(H=>H.json()).then(H=>{Object.keys(H).forEach(Q=>{hr(Q,H[Q])})}).catch(H=>{console.log(H)})};Object.keys(fr).forEach(T=>{hr(T,fr[T])}),Tr(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));const ie=()=>{var T,H;try{n(5,_=JSON.parse(o))}catch(Q){}_&&(_.type==="wagering"&&n(10,A=!0),n(17,F=aa(_.currency||b)),n(7,y=ae(_.levels||((H=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:H.levels))),_.type==="freeRound"&&n(23,ve=Y(_.freeSpin)),Te())},Y=T=>{if(!T||!T.vendorGamesDetail)return[];let H=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(Q=>{H=T.vendorGamesDetail[Q]}),H},ae=T=>{if(!T)return[];const H=[];let Q=!1;return T.map((le,me)=>{const ht=le,{maxRepeats:Ae,completedTime:tt}=ht,We=ti(ht,["maxRepeats","completedTime"]);Ae===0&&(Q=!0);for(let ze=0;ze<Ae;ze++)H.push(Et({},We))}),Q?n(8,w=0):n(8,w=H.length),H},J=()=>{n(13,x=!1),n(15,W=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},ne=()=>{n(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},C=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},O=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,x=!0);break;case"OnBonusForfeitedDone":n(13,x=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,W=!0);break}},ue=(T,H)=>({remainder:T%H,quotient:Math.floor(T/H)}),q=T=>{const H=new Date;return new Date(T).getTime()-H.getTime()},Ee=T=>{const H=q(T)/6e4,{quotient:Q,remainder:le}=ue(H,1440),{quotient:me,remainder:Ae}=ue(le,60),tt=Math.floor(Ae),We=ze=>Math.abs(ze)<10?`0${ze}`:ze;return[{value:Q,symbol:"d"},{value:me,symbol:"h"},{value:tt,symbol:"m"}].map(ze=>We(ze.value)+ze.symbol).join(" ")},Z=(T,H,Q,le)=>{const me=q(T);me<0?Q():(le(Ee(T)),me<H&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},me))},Te=()=>{var Q;if(!_)return;const T=(le,me,Ae)=>{Z(le,K,()=>me(Ae),me)},H=_.endTime||((Q=_.trigger)==null?void 0:Q.endTime);H&&T(H,le=>{n(19,R=le),n(18,M=le)},"Expired"),_.expiryDate&&T(_.expiryDate,le=>n(18,M=le),"Expired")},be=T=>{let H=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&(H=(Number(H)+T.remainingAmount).toFixed(2)),parseFloat(H).toString()},Je=T=>{var H,Q;return(((H=T.wageringProgress)==null?void 0:H.currentLevelIncrement)-((Q=T.wageringProgress)==null?void 0:Q.gap)).toFixed(2)},Qe=T=>{var le,me,Ae;let H,Q;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(Q=(le=T.wageringProgress)==null?void 0:le.currentLevelIncrement,Q!=0&&(H=((((me=T.wageringProgress)==null?void 0:me.currentLevelIncrement)-((Ae=T.wageringProgress)==null?void 0:Ae.gap))/Q*100).toFixed(2))):T.status=="released"?H=100:(Q=T.initialWagerRequirementAmount,Q!=0&&(H=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/Q*100).toFixed(2))),Number(H)},dt=T=>{if(!T.wallet)return"";const H=T.type==="freeBet"||T.type==="freeRound"?T.wallet[T.type]:T.wallet,{validityMinutes:Q,expiryTime:le}=H;if(Q===0)return le?wn(new Date(le),"yyyy-MM-dd HH:mm:ss"):"infinite";{const me=Math.round(Q/1440);return me===1?`${me} day`:`${me} days`}},et=T=>{if(T.products)return T.products;{let H=[];return T.wallet&&(T.wallet.casino&&H.push("Casino"),T.wallet.sports&&H.push("Sports")),H}},wt=(T,H)=>{const Q=i(`bonusType.${H.type}`),le=aa(Object.keys(T.increment)[0]);return H.mode==="percentage"?`${H.bonusAmount*100}% up to ${le}${H.capAmount} ${Q}`:H.mode==="fixed"?`${le}${H.bonusAmount} ${Q}`:Q},Ct=(T,H)=>{const Q=We=>We===0?0:T.slice(0,We).reduce((ht,ze)=>ht+ze.maxRepeats,0),le=T[H],Ae=Q(H)+1,tt=Ae+le.maxRepeats-1;return le.maxRepeats>1?`${Ae}-${tt}`:`${H+1}`},$=(T,H)=>{switch(H.type){case"standard":case"freeBet":return wt(T,H);case"freeRound":return`${H.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},ye=T=>{var H,Q;return Number((Q=(H=T==null?void 0:T[b])!=null?H:T==null?void 0:T.EUR)!=null?Q:0)},jr=T=>{var le,me,Ae,tt;const H=ye((Ae=(me=(le=T.wallet)==null?void 0:le.standard)==null?void 0:me.initialAmount)==null?void 0:Ae.fixedAmount),Q=((tt=T.wallet)==null?void 0:tt.wageringRequirementCoefficient)||0;return Number((H*Q).toFixed(2))},Gr=T=>{var le,me,Ae;const H=(me=(le=T.wallet)==null?void 0:le.freeRound)==null?void 0:me.vendor;if(!H)return 0;const Q=Object.keys(H)[0];return((Ae=H[Q])==null?void 0:Ae.roundNumber)||0},Yr=T=>wn(new Date(T),"yyyy-MM-dd HH:mm:ss"),qr=(T,H)=>{var Ae;const Q=((Ae=T.wageringProgress)==null?void 0:Ae.currentLevel)-1||0,le=H.length-1,me=tt=>tt.filter(We=>We.index>=0&&We.index<=le).map(We=>{const ht=H[We.index];return{label:We.label,desc:ht.bonuses.map(ze=>$(ht,ze))}});return T.status==="active"?me([{label:"current",index:Q},{label:"next",index:Q+1}]):T.status?me([{label:"last",index:le},{label:"previous",index:le-1}]):me([{label:"first",index:0},{label:"next",index:1}])},Xr=T=>{var H,Q;n(20,P=T.url?T.url:(Q=(H=T.presentation)==null?void 0:H.url)==null?void 0:Q.content)},Zr=(T,H="")=>({part:T,class:[T,H].join(" ")}),jn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Gn=T=>{n(21,z=!0),n(22,re=T)},V=()=>{n(21,z=!1),n(22,re=-1)},Ce=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(H=>H.json()).then(H=>{H&&H[T]&&(n(14,L=!0),n(16,G=H[T]))})},Oe=(T,H)=>{let Q=document.createElement("div");Q.innerHTML=H,T.append(Q)},Lt=()=>n(24,oe+=300),ct=T=>jn(T),Ad=T=>Gn(T),Td=()=>V(),Pd=()=>n(24,oe-=300),Kr=()=>{n(11,v=!v)},Jr=()=>{n(12,k=!k)};function Qr(T){it[T?"unshift":"push"](()=>{X=T,n(6,X)})}return e.$$set=T=>{"rawbonus"in T&&n(46,o=T.rawbonus),"lang"in T&&n(47,s=T.lang),"status"in T&&n(0,a=T.status),"mbsource"in T&&n(1,l=T.mbsource),"clientstyling"in T&&n(2,u=T.clientstyling),"clientstylingurl"in T&&n(3,d=T.clientstylingurl),"cmsendpoint"in T&&n(48,c=T.cmsendpoint),"translationurl"in T&&n(49,h=T.translationurl),"levelcountlimit"in T&&n(4,f=T.levelcountlimit),"currency"in T&&n(50,b=T.currency)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&98304&&n(51,r=o&&s&&a),e.$$.dirty[1]&1048576&&r&&ie(),e.$$.dirty[0]&32|e.$$.dirty[1]&1245184&&r&&_&&(s&&Wl(s),c?Ce(_.id):Xr(_)),e.$$.dirty[0]&68&&u&&X&&Ir(X,u),e.$$.dirty[0]&72&&d&&X&&Lr(X,d),e.$$.dirty[0]&66&&l&&X&&Fr(X,`${l}.Style`),e.$$.dirty[1]&262144&&h&&j()},[a,l,u,d,f,_,X,y,w,g,A,v,k,x,L,W,G,F,M,R,P,z,re,ve,oe,i,J,ne,C,be,Je,Qe,dt,et,Ct,$,ye,jr,Gr,Yr,qr,Zr,jn,Gn,V,Oe,o,s,c,h,b,r,Lt,ct,Ad,Td,Pd,Kr,Jr,Qr]}class _b extends kr{constructor(t){super(),Pr(this,t,mb,pb,Hn,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},$g,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(t){this.$$set({rawbonus:t}),de()}get lang(){return this.$$.ctx[47]}set lang(t){this.$$set({lang:t}),de()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),de()}get translationurl(){return this.$$.ctx[49]}set translationurl(t){this.$$set({translationurl:t}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(t){this.$$set({levelcountlimit:t}),de()}get currency(){return this.$$.ctx[50]}set currency(t){this.$$set({currency:t}),de()}}customElements.define("casino-bonus-card",Sr(_b,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function gb({totalItems:e,pageSize:t,currentPage:n,limit:r}){const i=Math.ceil(e/t),s=r&&i>yb(r)?vb({totalPages:i,limit:r,currentPage:n}):bb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:"&gt;",value:n>=i?i:n+1}]}function bb({totalPages:e}){return new Array(e).fill(null).map((t,n)=>({type:"number",value:n+1}))}function vb({totalPages:e,limit:t,currentPage:n}){const r=t*2+2,i=1+r,o=e-r,s=i+2;return n<=i-t?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:e}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+t?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):n>=i-t&&n<=o+t?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-t+(l-2)}:l===s-1?{type:"number",value:e}:l===s-2?{type:"symbol",symbol:".",value:n+t+1}:{type:"number",value:n-t+(l-2)}):[]}function yb(e){return e*2+3+2}function wb(e){Ar(e,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Wa(e,t,n){const r=e.slice();return r[29]=t[n],r}const Cb=e=>({}),Va=e=>({}),Eb=e=>({}),ja=e=>({}),xb=e=>({}),Ga=e=>({}),Ab=e=>({value:e[0]&32}),Ya=e=>({value:e[29].value});function Tb(e){let t;const n=e[21].next,r=Rn(n,e,e[20],Va),i=r||Db();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,Cb):$n(o[20]),Va)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Pb(e){let t;const n=e[21].prev,r=Rn(n,e,e[20],ja),i=r||Bb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,Eb):$n(o[20]),ja)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Sb(e){let t;const n=e[21].ellipsis,r=Rn(n,e,e[20],Ga),i=r||Mb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r&&r.p&&(!t||s[0]&1048576)&&Un(r,n,o,o[20],t?zn(n,o[20],s,xb):$n(o[20]),Ga)},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function kb(e){let t;const n=e[21].number,r=Rn(n,e,e[20],Ya),i=r||Ob(e);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),t=!0},p(o,s){r?r.p&&(!t||s[0]&1048608)&&Un(r,n,o,o[20],t?zn(n,o[20],s,Ab):$n(o[20]),Ya):i&&i.p&&(!t||s[0]&32)&&i.p(o,t?s:[-1,-1])},i(o){t||(Ge(i,o),t=!0)},o(o){at(i,o),t=!1},d(o){i&&i.d(o)}}}function Db(e){let t;return{c(){t=B(">")},m(n,r){I(n,t,r)},d(n){n&&N(t)}}}function Bb(e){let t;return{c(){t=B("<")},m(n,r){I(n,t,r)},d(n){n&&N(t)}}}function Mb(e){let t;return{c(){t=E("span"),t.textContent="..."},m(n,r){I(n,t,r)},p:Se,d(n){n&&N(t)}}}function Ob(e){let t,n=e[29].value+"",r;return{c(){t=E("span"),r=B(n)},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&N(t)}}}function qa(e){let t,n,r,i,o,s,a,l;const u=[kb,Sb,Pb,Tb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(n=c(e))&&(r=d[n]=u[n](e));function h(){return e[22](e[29])}return{c(){t=E("button"),r&&r.c(),i=U(),t.disabled=o=e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),se(t,"number",e[29].type==="number"),se(t,"prev",e[29].type==="symbol"&&e[29].symbol==="&lt;"),se(t,"next",e[29].type==="symbol"&&e[29].symbol==="&gt;"),se(t,"disabled",e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1),se(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),se(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,b){I(f,t,b),~n&&d[n].m(t,null),p(t,i),s=!0,a||(l=ke(t,"click",h),a=!0)},p(f,b){e=f;let _=n;n=c(e),n===_?~n&&d[n].p(e,b):(r&&(ml(),at(d[_],1,1,()=>{d[_]=null}),_l()),~n?(r=d[n],r?r.p(e,b):(r=d[n]=u[n](e),r.c()),Ge(r,1),r.m(t,i)):r=null),(!s||b[0]&98&&o!==(o=e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1))&&(t.disabled=o),(!s||b[0]&32)&&se(t,"number",e[29].type==="number"),(!s||b[0]&32)&&se(t,"prev",e[29].type==="symbol"&&e[29].symbol==="&lt;"),(!s||b[0]&32)&&se(t,"next",e[29].type==="symbol"&&e[29].symbol==="&gt;"),(!s||b[0]&98)&&se(t,"disabled",e[29].type==="symbol"&&e[29].symbol==="&gt;"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="&lt;"&&e[1]<=1),(!s||b[0]&32)&&se(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!s||b[0]&34)&&se(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){s||(Ge(r),s=!0)},o(f){at(r),s=!1},d(f){f&&N(t),~n&&d[n].d(),a=!1,l()}}}function Xa(e){let t,n,r,i,o,s,a,l;return{c(){t=E("div"),n=E("span"),n.textContent="Go To Page",r=U(),i=E("input"),o=U(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,d){I(u,t,d),p(t,n),p(t,r),p(t,i),ur(i,e[3]),p(t,o),p(t,s),a||(l=[ke(i,"input",e[23]),ke(i,"change",e[24]),ke(s,"click",e[25])],a=!0)},p(u,d){d[0]&8&&pl(i.value)!==u[3]&&ur(i,u[3])},d(u){u&&N(t),a=!1,Ye(l)}}}function Nb(e){let t,n,r,i,o,s,a=Fe(e[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=qa(Wa(e,a,c));const u=c=>at(l[c],1,1,()=>{l[c]=null});let d=e[7]&&Xa(e);return{c(){t=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=U(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(c,h){I(c,t,h),p(t,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(t,o),d&&d.m(t,null),e[26](t),s=!0},p(c,h){if(h[0]&1048930){a=Fe(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Wa(c,a,f);l[f]?(l[f].p(b,h),Ge(l[f],1)):(l[f]=qa(b),l[f].c(),Ge(l[f],1),l[f].m(n,null))}for(ml(),f=a.length;f<l.length;f+=1)u(f);_l()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(n,"part",i),c[7]?d?d.p(c,h):(d=Xa(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ge(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)at(l[h]);s=!1},d(c){c&&N(t),bt(l,c),d&&d.d(),e[26](null)}}}function Ib(e,t,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=t,{totalitems:d=""}=t,{pagesize:c=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:b=""}=t,{mbsource:_}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,g=window.navigator.userAgent,A=!1,v;Kl(g)&&(A=!0);let k,x,L;const W=P=>{window.postMessage({type:"PaginationChange",page:P.value})},G=P=>{n(4,x=P>a?a:P)};Tr(()=>()=>{});const F=P=>W(P);function M(){k=pl(this.value),n(3,k)}const R=()=>G(k),K=()=>W({value:x});function X(P){it[P?"unshift":"push"](()=>{v=P,n(0,v)})}return e.$$set=P=>{"totalitems"in P&&n(10,d=P.totalitems),"pagesize"in P&&n(11,c=P.pagesize),"currentpage"in P&&n(12,h=P.currentpage),"limit"in P&&n(13,f=P.limit),"showinput"in P&&n(14,b=P.showinput),"mbsource"in P&&n(15,_=P.mbsource),"clientstyling"in P&&n(16,y=P.clientstyling),"clientstylingurl"in P&&n(17,w=P.clientstylingurl),"$$scope"in P&&n(20,u=P.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&65537&&y&&v&&Ir(v,y),e.$$.dirty[0]&131073&&w&&v&&Lr(v,w),e.$$.dirty[0]&32769&&_&&v&&Fr(v,`${_}.Style`),e.$$.dirty[0]&1024&&n(19,r=Number(d)),e.$$.dirty[0]&16384&&n(7,i=b),e.$$.dirty[0]&4096&&n(1,o=Number(h)),e.$$.dirty[0]&2048&&n(18,s=c),e.$$.dirty[0]&794626&&n(5,L=gb({totalItems:r,pageSize:s,currentPage:o,limit:f})),e.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[v,o,A,k,x,L,a,i,W,G,d,c,h,f,b,_,y,w,s,r,u,l,F,M,R,K,X]}class Lb extends kr{constructor(t){super(),Pr(this,t,Ib,Nb,Hn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},wb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),de()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),de()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}}customElements.define("casino-bonus-pagination",Sr(Lb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Fb(e){Ar(e,"svelte-bgb61g",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Za(e,t,n){const r=e.slice();return r[65]=t[n],r}function Ka(e,t,n){const r=e.slice();return r[68]=t[n],r}function Ja(e){let t,n=e[26](`bonusCard.${e[68]}`)+"",r,i,o,s,a=[{type:"button"},e[25]("BonusStatusFilter"),{disabled:e[13]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return e[41](e[68])}return{c(){t=E("button"),r=B(n),i=U(),S(t,l),se(t,"active",e[68]===e[22])},m(d,c){I(d,t,c),p(t,r),p(t,i),t.autofocus&&t.focus(),o||(s=ke(t,"click",u),o=!0)},p(d,c){e=d,c[0]&67108864&&n!==(n=e[26](`bonusCard.${e[68]}`)+"")&&te(r,n,l.contenteditable),S(t,l=Be(a,[{type:"button"},c[0]&33554432&&e[25]("BonusStatusFilter"),c[0]&8192&&{disabled:e[13]}])),se(t,"active",e[68]===e[22])},d(d){d&&N(t),o=!1,s()}}}function Hb(e){let t,n,r=e[26]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=e[26]("bonus.from")+"",c,h,f,b,_,y,w=e[26]("bonus.to")+"",g,A,v,k,x,L=e[26]("bonus.filter")+"",W,G,F,M=[e[35]("BonusCalendarTitle")],R={};for(let q=0;q<M.length;q+=1)R=D(R,M[q]);let K=[{min:e[27]},{max:e[28]},{value:e[29]},{placeholder:"From"},e[35]("VaadinDatePicker")],X={};for(let q=0;q<K.length;q+=1)X=D(X,K[q]);let P=[e[25]("BonusCalendarStartDate")],z={};for(let q=0;q<P.length;q+=1)z=D(z,P[q]);let re=[{min:e[27]},{max:e[28]},{value:e[28]},{placeholder:"To"},e[35]("VaadinDatePicker")],ve={};for(let q=0;q<re.length;q+=1)ve=D(ve,re[q]);let oe=[e[25]("BonusCalendarEndDate")],j={};for(let q=0;q<oe.length;q+=1)j=D(j,oe[q]);let ie=[e[25]("BonusCalendarContainer")],Y={};for(let q=0;q<ie.length;q+=1)Y=D(Y,ie[q]);let ae=[e[25]("BonusFilterButton"),{disabled:e[13]}],J={};for(let q=0;q<ae.length;q+=1)J=D(J,ae[q]);let ne=[e[35]("BonusCalendarContent")],C={};for(let q=0;q<ne.length;q+=1)C=D(C,ne[q]);let O=[e[25]("BonusCalendarWrapper")],ue={};for(let q=0;q<O.length;q+=1)ue=D(ue,O[q]);return{c(){t=E("div"),n=E("div"),i=B(r),o=U(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=B(d),h=U(),f=E("vaadin-date-picker"),b=U(),_=E("div"),y=E("label"),g=B(w),A=U(),v=E("vaadin-date-picker"),k=U(),x=E("button"),W=B(L),S(n,R),m(u,"for","BonusCalendarStartDate"),S(f,X),S(l,z),m(y,"for","BonusCalendarEndDate"),S(v,ve),S(_,j),S(a,Y),S(x,J),S(s,C),S(t,ue)},m(q,Ee){I(q,t,Ee),p(t,n),p(n,i),p(t,o),p(t,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),e[44](f),p(a,b),p(a,_),p(_,y),p(y,g),p(_,A),p(_,v),e[45](v),p(s,k),p(s,x),p(x,W),x.autofocus&&x.focus(),G||(F=ke(x,"click",e[46]),G=!0)},p(q,Ee){Ee[0]&67108864&&r!==(r=q[26]("bonus.canlendarTitle")+"")&&te(i,r,R.contenteditable),Ee[0]&67108864&&d!==(d=q[26]("bonus.from")+"")&&fe(c,d),S(l,z=Be(P,[Ee[0]&33554432&&q[25]("BonusCalendarStartDate")])),Ee[0]&67108864&&w!==(w=q[26]("bonus.to")+"")&&fe(g,w),S(_,j=Be(oe,[Ee[0]&33554432&&q[25]("BonusCalendarEndDate")])),S(a,Y=Be(ie,[Ee[0]&33554432&&q[25]("BonusCalendarContainer")])),Ee[0]&67108864&&L!==(L=q[26]("bonus.filter")+"")&&te(W,L,J.contenteditable),S(x,J=Be(ae,[Ee[0]&33554432&&q[25]("BonusFilterButton"),Ee[0]&8192&&{disabled:q[13]}])),S(t,ue=Be(O,[Ee[0]&33554432&&q[25]("BonusCalendarWrapper")]))},d(q){q&&N(t),e[44](null),e[45](null),G=!1,F()}}}function Rb(e){let t,n,r,i=e[26]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=e[26]("bonus.claim")+"",f,b,_,y,w,g=[e[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[26]("bonus.placeholder")}],A={};for(let M=0;M<g.length;M+=1)A=D(A,g[M]);let v=[e[25]("BonusClaimButton"),{disabled:b=e[19]||!e[23]}],k={};for(let M=0;M<v.length;M+=1)k=D(k,v[M]);let x=[e[25]("BonusCodeWrapper")],L={};for(let M=0;M<x.length;M+=1)L=D(L,x[M]);let W=e[20]&&Qa(e),G=[e[25]("BonusCodeContainer")],F={};for(let M=0;M<G.length;M+=1)F=D(F,G[M]);return{c(){t=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=B(i),s=U(),a=E("div"),l=E("input"),d=U(),c=E("button"),f=B(h),_=U(),W&&W.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),S(l,A),S(c,k),S(a,L),S(t,F)},m(M,R){I(M,t,R),p(t,n),p(n,r),p(n,o),p(t,s),p(t,a),p(a,l),l.autofocus&&l.focus(),ur(l,e[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(t,_),W&&W.m(t,null),y||(w=[ke(l,"input",e[42]),ke(l,"keyup",e[36]),ke(c,"click",e[43])],y=!0)},p(M,R){R[0]&67108864&&i!==(i=M[26]("bonus.bonusCode")+"")&&fe(o,i),S(l,A=Be(g,[R[0]&33554432&&M[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},R[0]&67108864&&u!==(u=M[26]("bonus.placeholder"))&&{placeholder:u}])),R[0]&262144&&l.value!==M[18]&&ur(l,M[18]),R[0]&67108864&&h!==(h=M[26]("bonus.claim")+"")&&te(f,h,k.contenteditable),S(c,k=Be(v,[R[0]&33554432&&M[25]("BonusClaimButton"),R[0]&8912896&&b!==(b=M[19]||!M[23])&&{disabled:b}])),S(a,L=Be(x,[R[0]&33554432&&M[25]("BonusCodeWrapper")])),M[20]?W?W.p(M,R):(W=Qa(M),W.c(),W.m(t,null)):W&&(W.d(1),W=null),S(t,F=Be(G,[R[0]&33554432&&M[25]("BonusCodeContainer")]))},d(M){M&&N(t),W&&W.d(),y=!1,Ye(w)}}}function Qa(e){let t,n=e[26]("bonus.invalidBonusCode")+"",r;return{c(){t=E("p"),r=B(n),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&N(t)}}}function zb(e){let t,n;function r(a,l){return a[12].length>0?Vb:a[14]?Wb:$b}let i=r(e),o=i(e),s=e[12].length!==0&&tl(e);return{c(){o.c(),t=U(),s&&s.c(),n=Ze()},m(a,l){o.m(a,l),I(a,t,l),s&&s.m(a,l),I(a,n,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(t.parentNode,t))),a[12].length!==0?s?s.p(a,l):(s=tl(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(N(t),N(n)),o.d(a),s&&s.d(a)}}}function Ub(e){let t,n=[e[35]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=D(r,n[i]);return{c(){t=E("div"),S(t,r)},m(i,o){I(i,t,o)},p:Se,d(i){i&&N(t)}}}function $b(e){let t,n=e[26]("bonus.noBonus")+"",r;return{c(){t=E("span"),r=B(n),m(t,"class","NoBonus")},m(i,o){I(i,t,o),p(t,r)},p(i,o){o[0]&67108864&&n!==(n=i[26]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&N(t)}}}function Wb(e){let t,n=e[26]("bonus.error")+"",r,i,o;return{c(){t=E("div"),r=B(n),i=B(": "),o=B(e[14]),m(t,"class","BonusError")},m(s,a){I(s,t,a),p(t,r),p(t,i),p(t,o)},p(s,a){a[0]&67108864&&n!==(n=s[26]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&N(t)}}}function Vb(e){let t,n=Fe(e[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=el(Za(e,n,s));let i=[e[35]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){t=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();S(t,o)},m(s,a){I(s,t,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(t,null)},p(s,a){if(a[0]&37753339){n=Fe(s[12]);let l;for(l=0;l<n.length;l+=1){const u=Za(s,n,l);r[l]?r[l].p(u,a):(r[l]=el(u),r[l].c(),r[l].m(t,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&N(t),bt(r,s)}}}function el(e){let t,n,r,i=[{rawbonus:JSON.stringify(e[65]),status:e[22],cmsendpoint:e[3],lang:e[0],clientstyling:e[5],clientstylingurl:e[6],mbsource:e[4],translationurl:e[7],levelcountlimit:e[8],currency:e[1]}],o={};for(let l=0;l<i.length;l+=1)o=D(o,i[l]);let s=[e[25]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){t=E("li"),n=E("casino-bonus-card"),r=U(),S(n,o),S(t,a)},m(l,u){I(l,t,u),p(t,n),p(t,r)},p(l,u){S(n,o=Be(i,[u[0]&4198907&&{rawbonus:JSON.stringify(l[65]),status:l[22],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),S(t,a=Be(s,[u[0]&33554432&&l[25]("BonusItem")]))},d(l){l&&N(t)}}}function tl(e){let t;return{c(){t=E("casino-bonus-pagination"),Pe(t,"totalitems",e[16]),Pe(t,"currentpage",e[15]),Pe(t,"pagesize",e[2]),Pe(t,"limit",e[17]),Pe(t,"clientstyling",e[5]),Pe(t,"clientstylingurl",e[6]),Pe(t,"mbsource",e[4])},m(n,r){I(n,t,r)},p(n,r){r[0]&65536&&Pe(t,"totalitems",n[16]),r[0]&32768&&Pe(t,"currentpage",n[15]),r[0]&4&&Pe(t,"pagesize",n[2]),r[0]&131072&&Pe(t,"limit",n[17]),r[0]&32&&Pe(t,"clientstyling",n[5]),r[0]&64&&Pe(t,"clientstylingurl",n[6]),r[0]&16&&Pe(t,"mbsource",n[4])},d(n){n&&N(t)}}}function nl(e){let t,n,r,i,o=e[26]("bonus.forfeitMessage")+"",s,a,l,u,d=e[26]("bonus.forfeitCancel")+"",c,h,f,b=e[26]("bonus.forfeitConfirm")+"",_,y,w,g=[e[35]("ModalText")],A={};for(let z=0;z<g.length;z+=1)A=D(A,g[z]);let v=[e[35]("ModalCancel")],k={};for(let z=0;z<v.length;z+=1)k=D(k,v[z]);let x=[e[35]("ModalConfirm")],L={};for(let z=0;z<x.length;z+=1)L=D(L,x[z]);let W=[e[35]("ModalButtons")],G={};for(let z=0;z<W.length;z+=1)G=D(G,W[z]);let F=[e[35]("ModalBody")],M={};for(let z=0;z<F.length;z+=1)M=D(M,F[z]);let R=[e[35]("ModalContent")],K={};for(let z=0;z<R.length;z+=1)K=D(K,R[z]);let X=[e[25]("ModalWrapper")],P={};for(let z=0;z<X.length;z+=1)P=D(P,X[z]);return{c(){t=E("div"),n=E("div"),r=E("div"),i=E("p"),s=B(o),a=U(),l=E("div"),u=E("button"),c=B(d),h=U(),f=E("button"),_=B(b),S(i,A),S(u,k),S(f,L),S(l,G),S(r,M),S(n,K),S(t,P)},m(z,re){I(z,t,re),p(t,n),p(n,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),y||(w=[ke(u,"click",e[33]),ke(f,"click",e[47])],y=!0)},p(z,re){re[0]&67108864&&o!==(o=z[26]("bonus.forfeitMessage")+"")&&te(s,o,A.contenteditable),re[0]&67108864&&d!==(d=z[26]("bonus.forfeitCancel")+"")&&te(c,d,k.contenteditable),re[0]&67108864&&b!==(b=z[26]("bonus.forfeitConfirm")+"")&&te(_,b,L.contenteditable),S(t,P=Be(X,[re[0]&33554432&&z[25]("ModalWrapper")]))},d(z){z&&N(t),y=!1,Ye(w)}}}function jb(e){let t,n,r,i,o,s,a=Fe(e[30]),l=[];for(let v=0;v<a.length;v+=1)l[v]=Ja(Ka(e,a,v));let u=[e[25]("BonusFilterWrapper")],d={};for(let v=0;v<u.length;v+=1)d=D(d,u[v]);function c(v,k){if(v[22]==="claimable")return Rb;if(v[22]==="completed")return Hb}let h=c(e),f=h&&h(e);function b(v,k){return v[13]?Ub:zb}let _=b(e),y=_(e),w=e[21]&&nl(e),g=[e[35]("BonusesController")],A={};for(let v=0;v<g.length;v+=1)A=D(A,g[v]);return{c(){t=E("div"),n=E("div"),r=E("div");for(let v=0;v<l.length;v+=1)l[v].c();i=U(),f&&f.c(),o=U(),y.c(),s=U(),w&&w.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),S(n,d),S(t,A)},m(v,k){I(v,t,k),p(t,n),p(n,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(t,i),f&&f.m(t,null),p(t,o),y.m(t,null),p(t,s),w&&w.m(t,null),e[48](t)},p(v,k){if(k[0]&1178607616|k[1]&8){a=Fe(v[30]);let x;for(x=0;x<a.length;x+=1){const L=Ka(v,a,x);l[x]?l[x].p(L,k):(l[x]=Ja(L),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}S(n,d=Be(u,[k[0]&33554432&&v[25]("BonusFilterWrapper")])),h===(h=c(v))&&f?f.p(v,k):(f&&f.d(1),f=h&&h(v),f&&(f.c(),f.m(t,o))),_===(_=b(v))&&y?y.p(v,k):(y.d(1),y=_(v),y&&(y.c(),y.m(t,s))),v[21]?w?w.p(v,k):(w=nl(v),w.c(),w.m(t,null)):w&&(w.d(1),w=null)},i:Se,o:Se,d(v){v&&N(t),bt(l,v),f&&f.d(),y.d(),w&&w.d(),e[48](null)}}}function Gb(e,t,n){let r,i,o;cl(e,$l,V=>n(26,o=V));let{endpoint:s=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:d=""}=t,{cmsendpoint:c=""}=t,{mbsource:h}=t,{clientstyling:f=""}=t,{clientstylingurl:b=""}=t,{translationurl:_=""}=t,{levelcountlimit:y="3"}=t,w=window.navigator.userAgent,g=!1,A=[],v=!0,k="",x=1,L=0,W=2,G=wn(vs(new Date,6),"yyyy-MM-dd"),F=wn(new Date,"yyyy-MM-dd"),M=wn(vs(new Date,3),"yyyy-MM-dd"),R,K="",X=!0,P=!1,z=!1,re=M,ve=F,oe,j,ie="active",Y=!0,ae=["active","completed","claimable"],J="";Kl(w)&&(g=!0,W=1);const ne=()=>{fetch(_).then(Ce=>Ce.json()).then(Ce=>{Object.keys(Ce).forEach(Oe=>{hr(Oe,Ce[Oe])})}).catch(Ce=>{console.log(Ce)})};Object.keys(fr).forEach(V=>{hr(V,fr[V])}),Tr(()=>(window.addEventListener("message",C,!1),()=>{oe==null||oe.removeEventListener("change",et),j==null||j.removeEventListener("change",wt),window.removeEventListener("message",C)}));const C=V=>{switch(V.data.type){case"PaginationChange":n(15,x=V.data.page),be(x);break;case"OnBonusClaimed":ue(V.data.bonusCode);break;case"OnBonusForfeit":n(24,J=V.data.bonus.id),n(21,z=!0)}},O=()=>Ue(this,null,function*(){be(1)}),ue=(V,Ce)=>Ue(this,null,function*(){n(23,Y=!1);const Oe=yield q(V);Oe.success?(n(20,P=!1),be(1)):(n(14,k=Oe.errorMessage),Ce?n(20,P=!0):window.postMessage({type:"OnBonusClaimError",message:k,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),n(23,Y=!0)}),q=V=>Ue(this,null,function*(){return yield dt(s+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:V,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),Ee=V=>Ue(this,null,function*(){n(23,Y=!1);const Ce=yield Z(V);Ce.success?be(1):n(14,k=Ce.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(23,Y=!0),n(21,z=!1)}),Z=V=>Ue(this,null,function*(){const Ce=new URL(`${s}/v1/bonus/forfeit`),Oe={bonusID:V,lang:a};return Object.keys(Oe).map(Lt=>{Ce.searchParams.append(Lt,Oe[Lt])}),yield dt(Ce,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Te=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(21,z=!1)},be=V=>Ue(this,null,function*(){x!==V&&n(15,x=V);const Ce=(V-1)*Number(d);n(13,v=!0),n(12,A=[]);const Oe=yield Je(s,l,Ce,{lang:a,limit:d});Oe.success?(n(16,L=Oe.total),n(12,A=Oe.items||Oe.bonuses)):n(14,k=Oe.errorMessage),n(13,v=!1)}),Je=(ct,Ad,Td,...Pd)=>Ue(this,[ct,Ad,Td,...Pd],function*(V,Ce,Oe,Lt={}){const le=Lt,{limit:Kr,lang:Jr}=le,Qr=ti(le,["limit","lang"]),T=(()=>{switch(ie){case"claimable":return ie;default:return"granted"}})(),H=un(Et({pagination:`limit=${Kr},offset=${Oe}`,language:Jr},Qr),{sortOrder:"desc"});if(ie==="completed"){let me=new Date(re).toISOString(),Ae=new Date(ve+" 23:59:59").toISOString();H.startTime=me,H.endTime=Ae,H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="completed,released,forfeited,expired,closed"}ie==="active"&&(H.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",H.status="active");const Q=new URL(`${V}/v1/bonus/${T}`);return ie!=="claimable"?Q.searchParams.append("expand","freeSpin"):delete H.sortOrder,Object.keys(H).map(me=>{Q.searchParams.append(me,H[me])}),yield dt(Q,{headers:Et({},Ce?{"x-SessionId":Ce}:{})})}),Qe=(V,Ce="")=>({part:V,class:[V,Ce].join(" ")}),dt=(Oe,...Lt)=>Ue(this,[Oe,...Lt],function*(V,Ce={}){let ct;return ct=yield fetch(V,Ce),ct.ok===!1?{errorMessage:ct.status}:(ct=yield ct.json(),ct)}),et=V=>{re=V.target.value},wt=V=>{ve=V.target.value},Ct=()=>{oe.addEventListener("change",et,!1),j.addEventListener("change",wt,!1)},$=()=>(n(20,P=!1),!!K),ye=()=>{n(19,X=!$())},jr=V=>{n(22,ie=V),be(1)};function Gr(){K=this.value,n(18,K)}const Yr=()=>{ue(K,!0)};function qr(V){it[V?"unshift":"push"](()=>{oe=V,n(10,oe)})}function Xr(V){it[V?"unshift":"push"](()=>{j=V,n(11,j)})}const Zr=()=>be(1),jn=()=>Ee(J);function Gn(V){it[V?"unshift":"push"](()=>{R=V,n(9,R)})}return e.$$set=V=>{"endpoint"in V&&n(37,s=V.endpoint),"lang"in V&&n(0,a=V.lang),"session"in V&&n(38,l=V.session),"currency"in V&&n(1,u=V.currency),"limit"in V&&n(2,d=V.limit),"cmsendpoint"in V&&n(3,c=V.cmsendpoint),"mbsource"in V&&n(4,h=V.mbsource),"clientstyling"in V&&n(5,f=V.clientstyling),"clientstylingurl"in V&&n(6,b=V.clientstylingurl),"translationurl"in V&&n(7,_=V.translationurl),"levelcountlimit"in V&&n(8,y=V.levelcountlimit)},e.$$.update=()=>{e.$$.dirty[0]&3072&&oe&&j&&Ct(),e.$$.dirty[1]&256&&n(25,r=(V,Ce="")=>Qe(`${V}${g?` ${V}Mobile`:""}`,Ce)),e.$$.dirty[0]&1&&a&&Wl(a),e.$$.dirty[0]&5|e.$$.dirty[1]&192&&n(40,i=s&&l&&a&&d),e.$$.dirty[1]&512&&i&&O(),e.$$.dirty[0]&544&&f&&R&&Ir(R,f),e.$$.dirty[0]&576&&b&&R&&Lr(R,b),e.$$.dirty[0]&528&&h&&R&&Fr(R,`${h}.Style`),e.$$.dirty[0]&128&&_&&ne()},[a,u,d,c,h,f,b,_,y,R,oe,j,A,v,k,x,L,W,K,X,P,z,ie,Y,J,r,o,G,F,M,ae,ue,Ee,Te,be,Qe,ye,s,l,g,i,jr,Gr,Yr,qr,Xr,Zr,jn,Gn]}class xd extends kr{constructor(t){super(),Pr(this,t,Gb,jb,Hn,{endpoint:37,lang:0,session:38,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8},Fb,[-1,-1,-1])}get endpoint(){return this.$$.ctx[37]}set endpoint(t){this.$$set({endpoint:t}),de()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),de()}get session(){return this.$$.ctx[38]}set session(t){this.$$set({session:t}),de()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),de()}get limit(){return this.$$.ctx[2]}set limit(t){this.$$set({limit:t}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(t){this.$$set({translationurl:t}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(t){this.$$set({levelcountlimit:t}),de()}}Sr(xd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{}},[],[],!0);exports.default=xd;