@everymatrix/casino-bonuses-controller 1.91.0 → 1.91.1
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.
- package/components/{CasinoBonusesController-z2lItfiZ.cjs → CasinoBonusesController-B5-f6HZL.cjs} +121 -121
- package/components/{CasinoBonusesController-BwrZoX6N.js → CasinoBonusesController-DcQZX9bu.js} +1551 -1543
- package/components/{CasinoBonusesController-D_baf-ti.js → CasinoBonusesController-R_L19NpA.js} +2620 -2612
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/esnext/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBonusesController-z2lItfiZ.cjs → CasinoBonusesController-B5-f6HZL.cjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var Nd=Object.defineProperty,Id=Object.defineProperties;var Ld=Object.getOwnPropertyDescriptors;var Kn=Object.getOwnPropertySymbols;var qo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable;var oi=(t,e,n)=>e in t?Nd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pt=(t,e)=>{for(var n in e||(e={}))qo.call(e,n)&&oi(t,n,e[n]);if(Kn)for(var n of Kn(e))Xo.call(e,n)&&oi(t,n,e[n]);return t},dn=(t,e)=>Id(t,Ld(e));var si=(t,e)=>{var n={};for(var r in t)qo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Kn)for(var r of Kn(t))e.indexOf(r)<0&&Xo.call(t,r)&&(n[r]=t[r]);return n};var Ge=(t,e,n)=>(oi(t,typeof e!="symbol"?e+"":e,n),n);var We=(t,e,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(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function k(t,e){for(const n in e)t[n]=e[n];return t}function ml(t){return t()}function Zo(){return Object.create(null)}function Ye(t){t.forEach(ml)}function Hn(t){return typeof t=="function"}function Rn(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Jn;function Ko(t,e){return t===e?!0:(Jn||(Jn=document.createElement("a")),Jn.href=e,t===Jn.href)}function Fd(t){return Object.keys(t).length===0}function _l(t,...e){if(t==null){for(const r of e)r(void 0);return Pe}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function gl(t,e,n){t.$$.on_destroy.push(_l(e,n))}function zn(t,e,n,r){if(t){const i=bl(t,e,n,r);return t[0](i)}}function bl(t,e,n,r){return t[1]&&r?k(n.ctx.slice(),t[1](r(e))):n.ctx}function Un(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function $n(t,e,n,r,i,o){if(i){const s=bl(e,n,r,o);t.p(s,i)}}function Wn(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Hd(t){return t&&Hn(t.destroy)?t.destroy:Pe}const Rd=["",!0,1,"true","contenteditable"];function p(t,e){t.appendChild(e)}function Dr(t,e,n){const r=zd(t);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=n,Ud(r,i)}}function zd(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ud(t,e){return p(t.head||t,e),e.sheet}function I(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode&&t.parentNode.removeChild(t)}function yt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function ee(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function D(t){return document.createTextNode(t)}function z(){return D(" ")}function Qe(){return D("")}function Ae(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function m(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const $d=["width","height"];function P(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&$d.indexOf(r)===-1?t[r]=e[r]:m(t,r,e[r])}function vl(t,e){for(const n in e)m(t,n,e[n])}function Ue(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:m(t,e,n)}function yl(t){return t===""?null:+t}function Wd(t){return Array.from(t.childNodes)}function fe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Vd(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function re(t,e,n){~Rd.indexOf(n)?Vd(t,e):fe(t,e)}function fr(t,e){t.value=e==null?"":e}function Jo(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function se(t,e,n){t.classList.toggle(e,!!n)}function jd(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let Tn;function wn(t){Tn=t}function Gd(){if(!Tn)throw new Error("Function called outside component initialization");return Tn}function Br(t){Gd().$$.on_mount.push(t)}const $t=[],st=[];let jt=[];const Qo=[],Yd=Promise.resolve();let Ni=!1;function qd(){Ni||(Ni=!0,Yd.then(ue))}function Ii(t){jt.push(t)}const ai=new Set;let Ht=0;function ue(){if(Ht!==0)return;const t=Tn;do{try{for(;Ht<$t.length;){const e=$t[Ht];Ht++,wn(e),Xd(e.$$)}}catch(e){throw $t.length=0,Ht=0,e}for(wn(null),$t.length=0,Ht=0;st.length;)st.pop()();for(let e=0;e<jt.length;e+=1){const n=jt[e];ai.has(n)||(ai.add(n),n())}jt.length=0}while($t.length);for(;Qo.length;)Qo.pop()();Ni=!1,ai.clear(),wn(t)}function Xd(t){if(t.fragment!==null){t.update(),Ye(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ii)}}function Zd(t){const e=[],n=[];jt.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),jt=e}const sr=new Set;let Tt;function wl(){Tt={r:0,c:[],p:Tt}}function Cl(){Tt.r||Ye(Tt.c),Tt=Tt.p}function Xe(t,e){t&&t.i&&(sr.delete(t),t.i(e))}function ut(t,e,n,r){if(t&&t.o){if(sr.has(t))return;sr.add(t),Tt.c.push(()=>{sr.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Fe(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Se(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=e[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);t[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 Kd(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Ii(()=>{const o=t.$$.on_mount.map(ml).filter(Hn);t.$$.on_destroy?t.$$.on_destroy.push(...o):Ye(o),t.$$.on_mount=[]}),i.forEach(Ii)}function Jd(t,e){const n=t.$$;n.fragment!==null&&(Zd(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Qd(t,e){t.$$.dirty[0]===-1&&($t.push(t),qd(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Mr(t,e,n,r,i,o,s=null,a=[-1]){const l=Tn;wn(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:i,bound:Zo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Zo(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(t,e.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&&Qd(t,c)),h}):[],u.update(),d=!0,Ye(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Wd(e.target);u.fragment&&u.fragment.l(c),c.forEach(O)}else u.fragment&&u.fragment.c();e.intro&&Xe(t.$$.fragment),Kd(t,e.target,e.anchor),ue()}wn(l)}let El;typeof HTMLElement=="function"&&(El=class extends HTMLElement{constructor(e,n,r){super();Ge(this,"$$ctor");Ge(this,"$$s");Ge(this,"$$c");Ge(this,"$$cn",!1);Ge(this,"$$d",{});Ge(this,"$$r",!1);Ge(this,"$$p_d",{});Ge(this,"$$l",{});Ge(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return We(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=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&&O(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=jd(this);for(const o of this.$$s)o in r&&(n[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=ar(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:dn(pt({},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=ar(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(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ar(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function ar(t,e,n,r){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Or(t,e,n,r,i,o){let s=class extends El{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=ar(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Nr{constructor(){Ge(this,"$$");Ge(this,"$$set")}$destroy(){Jd(this,1),this.$destroy=Pe}$on(e,n){if(!Hn(n))return Pe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Fd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ec="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ec);const Rt=[];function tc(t,e){return{subscribe:Ir(t,e).subscribe}}function Ir(t,e=Pe){let n;const r=new Set;function i(a){if(Rn(t,a)&&(t=a,n)){const l=!Rt.length;for(const u of r)u[1](),Rt.push(u,t);if(l){for(let u=0;u<Rt.length;u+=2)Rt[u][0](Rt[u+1]);Rt.length=0}}}function o(a){i(a(t))}function s(a,l=Pe){const u=[a,l];return r.add(u),r.size===1&&(n=e(i,o)||Pe),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function on(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return tc(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Pe;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=Hn(b)?b:Pe},f=i.map((b,_)=>_l(b,w=>{u[_]=w,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){Ye(f),c(),l=!1}})}function nc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rc=function(e){return ic(e)&&!oc(e)};function ic(t){return!!t&&typeof t=="object"}function oc(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||lc(t)}var sc=typeof Symbol=="function"&&Symbol.for,ac=sc?Symbol.for("react.element"):60103;function lc(t){return t.$$typeof===ac}function uc(t){return Array.isArray(t)?[]:{}}function Pn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Zt(uc(t),t,e):t}function dc(t,e,n){return t.concat(e).map(function(r){return Pn(r,n)})}function cc(t,e){if(!e.customMerge)return Zt;var n=e.customMerge(t);return typeof n=="function"?n:Zt}function hc(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function es(t){return Object.keys(t).concat(hc(t))}function Al(t,e){try{return e in t}catch(n){return!1}}function fc(t,e){return Al(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function pc(t,e,n){var r={};return n.isMergeableObject(t)&&es(t).forEach(function(i){r[i]=Pn(t[i],n)}),es(e).forEach(function(i){fc(t,i)||(Al(t,i)&&n.isMergeableObject(e[i])?r[i]=cc(i,n)(t[i],e[i],n):r[i]=Pn(e[i],n))}),r}function Zt(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||dc,n.isMergeableObject=n.isMergeableObject||rc,n.cloneUnlessOtherwiseSpecified=Pn;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):pc(t,e,n):Pn(e,n)}Zt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Zt(r,i,n)},{})};var mc=Zt,_c=mc;const gc=nc(_c);var Li=function(t,e){return Li=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])},Li(t,e)};function Lr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Li(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Je=function(){return Je=Object.assign||function(e){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)&&(e[o]=n[o])}return e},Je.apply(this,arguments)};function bc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function li(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function ui(t,e){var n=e&&e.cache?e.cache:xc,r=e&&e.serializer?e.serializer:Ec,i=e&&e.strategy?e.strategy:wc;return i(t,{cache:n,serializer:r})}function vc(t){return t==null||typeof t=="number"||typeof t=="boolean"}function yc(t,e,n,r){var i=vc(r)?r:n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.call(this,r),e.set(i,o)),o}function xl(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.apply(this,r),e.set(i,o)),o}function Tl(t,e,n,r,i){return n.bind(e,t,r,i)}function wc(t,e){var n=t.length===1?yc:xl;return Tl(t,this,n,e.cache.create(),e.serializer)}function Cc(t,e){return Tl(t,this,xl,e.cache.create(),e.serializer)}var Ec=function(){return JSON.stringify(arguments)},Ac=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t}(),xc={create:function(){return new Ac}},di={variadic:Cc},pr=function(){return pr=Object.assign||function(e){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)&&(e[o]=n[o])}return e},pr.apply(this,arguments)};var de;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(de||(de={}));var Ee;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ee||(Ee={}));var Kt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Kt||(Kt={}));function ts(t){return t.type===Ee.literal}function Tc(t){return t.type===Ee.argument}function Pl(t){return t.type===Ee.number}function Sl(t){return t.type===Ee.date}function kl(t){return t.type===Ee.time}function Dl(t){return t.type===Ee.select}function Bl(t){return t.type===Ee.plural}function Pc(t){return t.type===Ee.pound}function Ml(t){return t.type===Ee.tag}function Ol(t){return!!(t&&typeof t=="object"&&t.type===Kt.number)}function Fi(t){return!!(t&&typeof t=="object"&&t.type===Kt.dateTime)}var Nl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kc(t){var e={};return t.replace(Sc,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Te=function(){return Te=Object.assign||function(e){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)&&(e[o]=n[o])}return e},Te.apply(this,arguments)};var Dc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bc(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Dc).filter(function(h){return h.length>0}),n=[],r=0,i=e;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 Mc(t){return t.replace(/^(.*?)-/,"")}var ns=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Il=/^(@+)?(\+|#+)?[rs]?$/g,Oc=/(\*)(0+)|(#+)(0+)|(0+)/g,Ll=/^(0+)$/;function rs(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Il,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Fl(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ll.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function is(t){var e={},n=Fl(t);return n||e}function Ic(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Mc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Te(Te(Te({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Te(Te({},l),is(u))},{}));continue;case"engineering":e=Te(Te(Te({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Te(Te({},l),is(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Oc,function(l,u,d,c,h,f){if(u)e.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(Ll.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ns.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ns,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Te(Te({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Te(Te({},e),rs(o)));continue}if(Il.test(i.stem)){e=Te(Te({},e),rs(i.stem));continue}var s=Fl(i.stem);s&&(e=Te(Te({},e),s));var a=Nc(i.stem);a&&(e=Te(Te({},e),a))}return e}var Qn={"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 Lc(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Fc(e);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 Fc(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=Qn[r||""]||Qn[n||""]||Qn["".concat(n,"-001")]||Qn["001"];return i[0]}var ci,Hc=new RegExp("^".concat(Nl.source,"*")),Rc=new RegExp("".concat(Nl.source,"*$"));function he(t,e){return{start:t,end:e}}var zc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Uc=!!String.fromCodePoint,$c=!!Object.fromEntries,Wc=!!String.prototype.codePointAt,Vc=!!String.prototype.trimStart,jc=!!String.prototype.trimEnd,Gc=!!Number.isSafeInteger,Yc=Gc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Hi=!0;try{var qc=Rl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hi=((ci=qc.exec("a"))===null||ci===void 0?void 0:ci[0])==="a"}catch(t){Hi=!1}var os=zc?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},Ri=Uc?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[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},ss=$c?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Hl=Wc?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Xc=Vc?function(e){return e.trimStart()}:function(e){return e.replace(Hc,"")},Zc=jc?function(e){return e.trimEnd()}:function(e){return e.replace(Rc,"")};function Rl(t,e){return new RegExp(t,e)}var zi;if(Hi){var as=Rl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zi=function(e,n){var r;as.lastIndex=n;var i=as.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else zi=function(e,n){for(var r=[];;){var i=Hl(e,n);if(i===void 0||zl(i)||eh(i))break;r.push(i),n+=i>=65536?2:1}return Ri.apply(void 0,r)};var Kc=function(){function t(e,n){n===void 0&&(n={}),this.message=e,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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(de.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ui(this.peek()||0)){var s=this.parseTag(e,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ui(this.char()))return this.error(de.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(de.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(de.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(de.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(de.INVALID_TAG,he(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Qc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,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:Ee.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Jc(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var 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 Ri.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),Ri(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(de.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=zi(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(e,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(e,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(de.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=Zc(c.val);if(h.length===0)return this.error(de.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&&os(u==null?void 0:u.style,"::",0)){var w=Xc(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(w,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(w.length===0)return this.error(de.EXPECT_DATE_TIME_SKELETON,_);var v=w;this.locale&&(v=Lc(w,this.locale));var h={type:Kt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.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 x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(de.EXPECT_SELECT_ARGUMENT_OPTIONS,he(x,pr({},x)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var A=this.tryParsePluralOrSelectOptions(e,a,n,y);if(A.err)return A;var b=this.tryParseArgumentClose(i);if(b.err)return b;var F=he(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ss(A.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:ss(A.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(de.INVALID_ARGUMENT_TYPE,he(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=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(de.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=Bc(e)}catch(i){return this.error(de.INVALID_NUMBER_SKELETON,n)}return{val:{type:Kt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ic(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,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(de.EXPECT_PLURAL_ARGUMENT_SELECTOR,de.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"?de.DUPLICATE_SELECT_ARGUMENT_SELECTOR:de.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:de.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+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"?de.EXPECT_SELECT_ARGUMENT_SELECTOR:de.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(de.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,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,Yc(s)?{val:s,err:null}:this.error(n,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Hl(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(os(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&zl(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r!=null?r:null},t}();function Ui(t){return t>=97&&t<=122||t>=65&&t<=90}function Jc(t){return Ui(t)||t===47}function Qc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function zl(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function eh(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function $i(t){t.forEach(function(e){if(delete e.location,Dl(e)||Bl(e))for(var n in e.options)delete e.options[n].location,$i(e.options[n].value);else Pl(e)&&Ol(e.style)||(Sl(e)||kl(e))&&Fi(e.style)?delete e.style.location:Ml(e)&&$i(e.children)})}function th(t,e){e===void 0&&(e={}),e=pr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new Kc(t,e).parse();if(n.err){var r=SyntaxError(de[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e!=null&&e.captureLocation||$i(n.val),n.val}var Jt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Jt||(Jt={}));var Fr=function(t){Lr(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ls=function(t){Lr(e,t);function e(n,r,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Jt.INVALID_VALUE,o)||this}return e}(Fr),nh=function(t){Lr(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Jt.INVALID_VALUE,i)||this}return e}(Fr),rh=function(t){Lr(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Jt.MISSING_VALUE,r)||this}return e}(Fr),ze;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ze||(ze={}));function ih(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==ze.literal||n.type!==ze.literal?e.push(n):r.value+=n.value,e},[])}function oh(t){return typeof t=="function"}function lr(t,e,n,r,i,o,s){if(t.length===1&&ts(t[0]))return[{type:ze.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var d=u[l];if(ts(d)){a.push({type:ze.literal,value:d.value});continue}if(Pc(d)){typeof o=="number"&&a.push({type:ze.literal,value:n.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new rh(c,s);var h=i[c];if(Tc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ze.literal:ze.object,value:h});continue}if(Sl(d)){var f=typeof d.style=="string"?r.date[d.style]:Fi(d.style)?d.style.parsedOptions:void 0;a.push({type:ze.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(kl(d)){var f=typeof d.style=="string"?r.time[d.style]:Fi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ze.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(Pl(d)){var f=typeof d.style=="string"?r.number[d.style]:Ol(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ze.literal,value:n.getNumberFormat(e,f).format(h)});continue}if(Ml(d)){var b=d.children,_=d.value,w=i[_];if(!oh(w))throw new nh(_,"function",s);var v=lr(b,e,n,r,i,o),g=w(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?ze.literal:ze.object,value:S}}))}if(Dl(d)){var x=d.options[h]||d.options.other;if(!x)throw new ls(d.value,h,Object.keys(d.options),s);a.push.apply(a,lr(x.value,e,n,r,i));continue}if(Bl(d)){var x=d.options["=".concat(h)];if(!x){if(!Intl.PluralRules)throw new Fr(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var Nd=Object.defineProperty,Id=Object.defineProperties;var Ld=Object.getOwnPropertyDescriptors;var Jn=Object.getOwnPropertySymbols;var Xo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable;var ai=(t,e,n)=>e in t?Nd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ft=(t,e)=>{for(var n in e||(e={}))Xo.call(e,n)&&ai(t,n,e[n]);if(Jn)for(var n of Jn(e))Zo.call(e,n)&&ai(t,n,e[n]);return t},hn=(t,e)=>Id(t,Ld(e));var li=(t,e)=>{var n={};for(var r in t)Xo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Jn)for(var r of Jn(t))e.indexOf(r)<0&&Zo.call(t,r)&&(n[r]=t[r]);return n};var Ye=(t,e,n)=>(ai(t,typeof e!="symbol"?e+"":e,n),n);var Ve=(t,e,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(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function k(t,e){for(const n in e)t[n]=e[n];return t}function _l(t){return t()}function Ko(){return Object.create(null)}function qe(t){t.forEach(_l)}function zn(t){return typeof t=="function"}function Un(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Qn;function Jo(t,e){return t===e?!0:(Qn||(Qn=document.createElement("a")),Qn.href=e,t===Qn.href)}function Fd(t){return Object.keys(t).length===0}function gl(t,...e){if(t==null){for(const r of e)r(void 0);return Pe}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function bl(t,e,n){t.$$.on_destroy.push(gl(e,n))}function $n(t,e,n,r){if(t){const i=vl(t,e,n,r);return t[0](i)}}function vl(t,e,n,r){return t[1]&&r?k(n.ctx.slice(),t[1](r(e))):n.ctx}function Wn(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function Vn(t,e,n,r,i,o){if(i){const s=vl(e,n,r,o);t.p(s,i)}}function jn(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Hd(t){return t&&zn(t.destroy)?t.destroy:Pe}const Rd=["",!0,1,"true","contenteditable"];function p(t,e){t.appendChild(e)}function Br(t,e,n){const r=zd(t);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=n,Ud(r,i)}}function zd(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ud(t,e){return p(t.head||t,e),e.sheet}function I(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function vt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function ee(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function D(t){return document.createTextNode(t)}function z(){return D(" ")}function tt(){return D("")}function xe(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function m(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const $d=["width","height"];function P(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&$d.indexOf(r)===-1?t[r]=e[r]:m(t,r,e[r])}function yl(t,e){for(const n in e)m(t,n,e[n])}function Ue(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:m(t,e,n)}function wl(t){return t===""?null:+t}function Wd(t){return Array.from(t.childNodes)}function fe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Vd(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ne(t,e,n){~Rd.indexOf(n)?Vd(t,e):fe(t,e)}function pr(t,e){t.value=e==null?"":e}function Qo(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function se(t,e,n){t.classList.toggle(e,!!n)}function jd(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let Sn;function En(t){Sn=t}function Gd(){if(!Sn)throw new Error("Function called outside component initialization");return Sn}function Mr(t){Gd().$$.on_mount.push(t)}const $t=[],ot=[];let jt=[];const es=[],Yd=Promise.resolve();let Li=!1;function qd(){Li||(Li=!0,Yd.then(le))}function Fi(t){jt.push(t)}const ui=new Set;let Ht=0;function le(){if(Ht!==0)return;const t=Sn;do{try{for(;Ht<$t.length;){const e=$t[Ht];Ht++,En(e),Xd(e.$$)}}catch(e){throw $t.length=0,Ht=0,e}for(En(null),$t.length=0,Ht=0;ot.length;)ot.pop()();for(let e=0;e<jt.length;e+=1){const n=jt[e];ui.has(n)||(ui.add(n),n())}jt.length=0}while($t.length);for(;es.length;)es.pop()();Li=!1,ui.clear(),En(t)}function Xd(t){if(t.fragment!==null){t.update(),qe(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Fi)}}function Zd(t){const e=[],n=[];jt.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),jt=e}const ar=new Set;let At;function Cl(){At={r:0,c:[],p:At}}function El(){At.r||qe(At.c),At=At.p}function Ze(t,e){t&&t.i&&(ar.delete(t),t.i(e))}function lt(t,e,n,r){if(t&&t.o){if(ar.has(t))return;ar.add(t),At.c.push(()=>{ar.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function He(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Se(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=e[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);t[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 Kd(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Fi(()=>{const o=t.$$.on_mount.map(_l).filter(zn);t.$$.on_destroy?t.$$.on_destroy.push(...o):qe(o),t.$$.on_mount=[]}),i.forEach(Fi)}function Jd(t,e){const n=t.$$;n.fragment!==null&&(Zd(n.after_update),qe(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Qd(t,e){t.$$.dirty[0]===-1&&($t.push(t),qd(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Or(t,e,n,r,i,o,s=null,a=[-1]){const l=Sn;En(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Pe,not_equal:i,bound:Ko(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ko(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(t,e.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&&Qd(t,c)),h}):[],u.update(),d=!0,qe(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Wd(e.target);u.fragment&&u.fragment.l(c),c.forEach(N)}else u.fragment&&u.fragment.c();e.intro&&Ze(t.$$.fragment),Kd(t,e.target,e.anchor),le()}En(l)}let Al;typeof HTMLElement=="function"&&(Al=class extends HTMLElement{constructor(e,n,r){super();Ye(this,"$$ctor");Ye(this,"$$s");Ye(this,"$$c");Ye(this,"$$cn",!1);Ye(this,"$$d",{});Ye(this,"$$r",!1);Ye(this,"$$p_d",{});Ye(this,"$$l",{});Ye(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ve(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=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=jd(this);for(const o of this.$$s)o in r&&(n[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=lr(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:hn(ft({},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=lr(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(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=lr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function lr(t,e,n,r){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Nr(t,e,n,r,i,o){let s=class extends Al{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=lr(a,l,e),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=s,s}class Ir{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){Jd(this,1),this.$destroy=Pe}$on(e,n){if(!zn(n))return Pe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Fd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ec="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ec);const Rt=[];function tc(t,e){return{subscribe:Lr(t,e).subscribe}}function Lr(t,e=Pe){let n;const r=new Set;function i(a){if(Un(t,a)&&(t=a,n)){const l=!Rt.length;for(const u of r)u[1](),Rt.push(u,t);if(l){for(let u=0;u<Rt.length;u+=2)Rt[u][0](Rt[u+1]);Rt.length=0}}}function o(a){i(a(t))}function s(a,l=Pe){const u=[a,l];return r.add(u),r.size===1&&(n=e(i,o)||Pe),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function on(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return tc(n,(s,a)=>{let l=!1;const u=[];let d=0,c=Pe;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=zn(b)?b:Pe},f=i.map((b,_)=>gl(b,C=>{u[_]=C,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function nc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rc=function(e){return ic(e)&&!oc(e)};function ic(t){return!!t&&typeof t=="object"}function oc(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||lc(t)}var sc=typeof Symbol=="function"&&Symbol.for,ac=sc?Symbol.for("react.element"):60103;function lc(t){return t.$$typeof===ac}function uc(t){return Array.isArray(t)?[]:{}}function kn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Zt(uc(t),t,e):t}function dc(t,e,n){return t.concat(e).map(function(r){return kn(r,n)})}function cc(t,e){if(!e.customMerge)return Zt;var n=e.customMerge(t);return typeof n=="function"?n:Zt}function hc(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function ts(t){return Object.keys(t).concat(hc(t))}function xl(t,e){try{return e in t}catch(n){return!1}}function fc(t,e){return xl(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function pc(t,e,n){var r={};return n.isMergeableObject(t)&&ts(t).forEach(function(i){r[i]=kn(t[i],n)}),ts(e).forEach(function(i){fc(t,i)||(xl(t,i)&&n.isMergeableObject(e[i])?r[i]=cc(i,n)(t[i],e[i],n):r[i]=kn(e[i],n))}),r}function Zt(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||dc,n.isMergeableObject=n.isMergeableObject||rc,n.cloneUnlessOtherwiseSpecified=kn;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):pc(t,e,n):kn(e,n)}Zt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Zt(r,i,n)},{})};var mc=Zt,_c=mc;const gc=nc(_c);var Hi=function(t,e){return Hi=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])},Hi(t,e)};function Fr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var et=function(){return et=Object.assign||function(e){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)&&(e[o]=n[o])}return e},et.apply(this,arguments)};function bc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function di(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function ci(t,e){var n=e&&e.cache?e.cache:xc,r=e&&e.serializer?e.serializer:Ec,i=e&&e.strategy?e.strategy:wc;return i(t,{cache:n,serializer:r})}function vc(t){return t==null||typeof t=="number"||typeof t=="boolean"}function yc(t,e,n,r){var i=vc(r)?r:n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.call(this,r),e.set(i,o)),o}function Tl(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return typeof o=="undefined"&&(o=t.apply(this,r),e.set(i,o)),o}function Pl(t,e,n,r,i){return n.bind(e,t,r,i)}function wc(t,e){var n=t.length===1?yc:Tl;return Pl(t,this,n,e.cache.create(),e.serializer)}function Cc(t,e){return Pl(t,this,Tl,e.cache.create(),e.serializer)}var Ec=function(){return JSON.stringify(arguments)},Ac=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t}(),xc={create:function(){return new Ac}},hi={variadic:Cc},mr=function(){return mr=Object.assign||function(e){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)&&(e[o]=n[o])}return e},mr.apply(this,arguments)};var de;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(de||(de={}));var Ae;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ae||(Ae={}));var Kt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Kt||(Kt={}));function ns(t){return t.type===Ae.literal}function Tc(t){return t.type===Ae.argument}function Sl(t){return t.type===Ae.number}function kl(t){return t.type===Ae.date}function Dl(t){return t.type===Ae.time}function Bl(t){return t.type===Ae.select}function Ml(t){return t.type===Ae.plural}function Pc(t){return t.type===Ae.pound}function Ol(t){return t.type===Ae.tag}function Nl(t){return!!(t&&typeof t=="object"&&t.type===Kt.number)}function Ri(t){return!!(t&&typeof t=="object"&&t.type===Kt.dateTime)}var Il=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kc(t){var e={};return t.replace(Sc,function(n){var r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Te=function(){return Te=Object.assign||function(e){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)&&(e[o]=n[o])}return e},Te.apply(this,arguments)};var Dc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bc(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Dc).filter(function(h){return h.length>0}),n=[],r=0,i=e;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 Mc(t){return t.replace(/^(.*?)-/,"")}var rs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ll=/^(@+)?(\+|#+)?[rs]?$/g,Oc=/(\*)(0+)|(#+)(0+)|(0+)/g,Fl=/^(0+)$/;function is(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Ll,function(n,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function Hl(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nc(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!Fl.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function os(t){var e={},n=Hl(t);return n||e}function Ic(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Mc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Te(Te(Te({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Te(Te({},l),os(u))},{}));continue;case"engineering":e=Te(Te(Te({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Te(Te({},l),os(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Oc,function(l,u,d,c,h,f){if(u)e.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(Fl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(rs.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(rs,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Te(Te({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Te(Te({},e),is(o)));continue}if(Ll.test(i.stem)){e=Te(Te({},e),is(i.stem));continue}var s=Hl(i.stem);s&&(e=Te(Te({},e),s));var a=Nc(i.stem);a&&(e=Te(Te({},e),a))}return e}var er={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Lc(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Fc(e);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 Fc(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,r;n!=="root"&&(r=t.maximize().region);var i=er[r||""]||er[n||""]||er["".concat(n,"-001")]||er["001"];return i[0]}var fi,Hc=new RegExp("^".concat(Il.source,"*")),Rc=new RegExp("".concat(Il.source,"*$"));function he(t,e){return{start:t,end:e}}var zc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Uc=!!String.fromCodePoint,$c=!!Object.fromEntries,Wc=!!String.prototype.codePointAt,Vc=!!String.prototype.trimStart,jc=!!String.prototype.trimEnd,Gc=!!Number.isSafeInteger,Yc=Gc?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},zi=!0;try{var qc=zl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zi=((fi=qc.exec("a"))===null||fi===void 0?void 0:fi[0])==="a"}catch(t){zi=!1}var ss=zc?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},Ui=Uc?String.fromCodePoint:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[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},as=$c?Object.fromEntries:function(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Rl=Wc?function(e,n){return e.codePointAt(n)}:function(e,n){var r=e.length;if(!(n<0||n>=r)){var i=e.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=e.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Xc=Vc?function(e){return e.trimStart()}:function(e){return e.replace(Hc,"")},Zc=jc?function(e){return e.trimEnd()}:function(e){return e.replace(Rc,"")};function zl(t,e){return new RegExp(t,e)}var $i;if(zi){var ls=zl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=function(e,n){var r;ls.lastIndex=n;var i=ls.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else $i=function(e,n){for(var r=[];;){var i=Rl(e,n);if(i===void 0||Ul(i)||eh(i))break;r.push(i),n+=i>=65536?2:1}return Ui.apply(void 0,r)};var Kc=function(){function t(e,n){n===void 0&&(n={}),this.message=e,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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ae.pound,location:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(de.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Wi(this.peek()||0)){var s=this.parseTag(e,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ae.literal,value:"<".concat(i,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Wi(this.char()))return this.error(de.INVALID_TAG,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(de.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ae.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(de.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(de.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(de.INVALID_TAG,he(r,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Qc(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,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:Ae.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Jc(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var 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 Ui.apply(void 0,n)},t.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&e>0?null:(this.bump(),Ui(r))},t.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(de.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ae.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,n,i,r);default:return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=$i(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=he(e,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(e,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(de.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=Zc(c.val);if(h.length===0)return this.error(de.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&&ss(u==null?void 0:u.style,"::",0)){var C=Xc(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(C,u.styleLocation);return c.err?c:{val:{type:Ae.number,value:r,location:_,style:c.val},err:null}}else{if(C.length===0)return this.error(de.EXPECT_DATE_TIME_SKELETON,_);var v=C;this.locale&&(v=Lc(C,this.locale));var h={type:Kt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kc(v):{}},g=a==="date"?Ae.date:Ae.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ae.number:a==="date"?Ae.date:Ae.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 x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(de.EXPECT_SELECT_ARGUMENT_OPTIONS,he(x,mr({},x)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var A=this.tryParsePluralOrSelectOptions(e,a,n,y);if(A.err)return A;var b=this.tryParseArgumentClose(i);if(b.err)return b;var H=he(i,this.clonePosition());return a==="select"?{val:{type:Ae.select,value:r,options:as(A.val),location:H},err:null}:{val:{type:Ae.plural,value:r,options:as(A.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:H},err:null}}default:return this.error(de.INVALID_ARGUMENT_TYPE,he(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=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(de.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=Bc(e)}catch(i){return this.error(de.INVALID_NUMBER_SKELETON,n)}return{val:{type:Kt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ic(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,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(de.EXPECT_PLURAL_ARGUMENT_SELECTOR,de.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"?de.DUPLICATE_SELECT_ARGUMENT_SELECTOR:de.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:de.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+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"?de.EXPECT_SELECT_ARGUMENT_SELECTOR:de.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(de.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(e,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,Yc(s)?{val:s,err:null}:this.error(n,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=Rl(this.message,e);if(n===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(ss(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ul(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return r!=null?r:null},t}();function Wi(t){return t>=97&&t<=122||t>=65&&t<=90}function Jc(t){return Wi(t)||t===47}function Qc(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Ul(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function eh(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Vi(t){t.forEach(function(e){if(delete e.location,Bl(e)||Ml(e))for(var n in e.options)delete e.options[n].location,Vi(e.options[n].value);else Sl(e)&&Nl(e.style)||(kl(e)||Dl(e))&&Ri(e.style)?delete e.style.location:Ol(e)&&Vi(e.children)})}function th(t,e){e===void 0&&(e={}),e=mr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new Kc(t,e).parse();if(n.err){var r=SyntaxError(de[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return e!=null&&e.captureLocation||Vi(n.val),n.val}var Jt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Jt||(Jt={}));var Hr=function(t){Fr(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),us=function(t){Fr(e,t);function e(n,r,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Jt.INVALID_VALUE,o)||this}return e}(Hr),nh=function(t){Fr(e,t);function e(n,r,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Jt.INVALID_VALUE,i)||this}return e}(Hr),rh=function(t){Fr(e,t);function e(n,r){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Jt.MISSING_VALUE,r)||this}return e}(Hr),Re;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(Re||(Re={}));function ih(t){return t.length<2?t:t.reduce(function(e,n){var r=e[e.length-1];return!r||r.type!==Re.literal||n.type!==Re.literal?e.push(n):r.value+=n.value,e},[])}function oh(t){return typeof t=="function"}function ur(t,e,n,r,i,o,s){if(t.length===1&&ns(t[0]))return[{type:Re.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var d=u[l];if(ns(d)){a.push({type:Re.literal,value:d.value});continue}if(Pc(d)){typeof o=="number"&&a.push({type:Re.literal,value:n.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new rh(c,s);var h=i[c];if(Tc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Re.literal:Re.object,value:h});continue}if(kl(d)){var f=typeof d.style=="string"?r.date[d.style]:Ri(d.style)?d.style.parsedOptions:void 0;a.push({type:Re.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(Dl(d)){var f=typeof d.style=="string"?r.time[d.style]:Ri(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:Re.literal,value:n.getDateTimeFormat(e,f).format(h)});continue}if(Sl(d)){var f=typeof d.style=="string"?r.number[d.style]:Nl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Re.literal,value:n.getNumberFormat(e,f).format(h)});continue}if(Ol(d)){var b=d.children,_=d.value,C=i[_];if(!oh(C))throw new nh(_,"function",s);var v=ur(b,e,n,r,i,o),g=C(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?Re.literal:Re.object,value:S}}))}if(Bl(d)){var x=d.options[h]||d.options.other;if(!x)throw new us(d.value,h,Object.keys(d.options),s);a.push.apply(a,ur(x.value,e,n,r,i));continue}if(Ml(d)){var x=d.options["=".concat(h)];if(!x){if(!Intl.PluralRules)throw new Hr(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,Jt.MISSING_INTL_API,s);var y=n.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));x=d.options[y]||d.options.other}if(!x)throw new
|
|
3
|
+
`,Jt.MISSING_INTL_API,s);var y=n.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));x=d.options[y]||d.options.other}if(!x)throw new us(d.value,h,Object.keys(d.options),s);a.push.apply(a,ur(x.value,e,n,r,i,h-(d.offset||0)));continue}}return ih(a)}function sh(t,e){return e?et(et(et({},t||{}),e||{}),Object.keys(t).reduce(function(n,r){return n[r]=et(et({},t[r]),e[r]||{}),n},{})):t}function ah(t,e){return e?Object.keys(t).reduce(function(n,r){return n[r]=sh(t[r],e[r]),n},et({},t)):t}function pi(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function lh(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ci(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,di([void 0],n,!1)))},{cache:pi(t.number),strategy:hi.variadic}),getDateTimeFormat:ci(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,di([void 0],n,!1)))},{cache:pi(t.dateTime),strategy:hi.variadic}),getPluralRules:ci(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,di([void 0],n,!1)))},{cache:pi(t.pluralRules),strategy:hi.variadic})}}var uh=function(){function t(e,n,r,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==Re.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 ur(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=t.resolveLocale(n),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=bc(s,["formatters"]);this.ast=t.__parse(e,et(et({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ah(t.formats,r),this.formatters=i&&i.formatters||lh(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(e);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=th,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function dh(t,e){if(e==null)return;if(e in t)return t[e];const n=e.split(".");let r=t;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 _t={},ch=(t,e,n)=>n&&(e in _t||(_t[e]={}),t in _t[e]||(_t[e][t]=n),n),$l=(t,e)=>{if(e==null)return;if(e in _t&&t in _t[e])return _t[e][t];const n=Rr(e);for(let r=0;r<n.length;r++){const i=n[r],o=fh(i,t);if(o)return ch(t,e,o)}};let Eo;const Gn=Lr({});function hh(t){return Eo[t]||null}function Wl(t){return t in Eo}function fh(t,e){if(!Wl(t))return null;const n=hh(t);return dh(n,e)}function ph(t){if(t==null)return;const e=Rr(t);for(let n=0;n<e.length;n++){const r=e[n];if(Wl(r))return r}}function Vl(t,...e){delete _t[t],Gn.update(n=>(n[t]=gc.all([n[t]||{},...e]),n))}on([Gn],([t])=>Object.keys(t));Gn.subscribe(t=>Eo=t);const dr={};function mh(t,e){dr[t].delete(e),dr[t].size===0&&delete dr[t]}function jl(t){return dr[t]}function _h(t){return Rr(t).map(e=>{const n=jl(e);return[e,n?[...n]:[]]}).filter(([,e])=>e.length>0)}function ji(t){return t==null?!1:Rr(t).some(e=>{var n;return(n=jl(e))==null?void 0:n.size})}function gh(t,e){return Promise.all(e.map(r=>(mh(t,r),r().then(i=>i.default||i)))).then(r=>Vl(t,...r))}const fn={};function Gl(t){if(!ji(t))return t in fn?fn[t]:Promise.resolve();const e=_h(t);return fn[t]=Promise.all(e.map(([n,r])=>gh(n,r))).then(()=>{if(ji(t))return Gl(t);delete fn[t]}),fn[t]}const bh={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"}}},vh={fallbackLocale:null,loadingDelay:200,formats:bh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},yh=vh;function Qt(){return yh}const mi=Lr(!1);var wh=Object.defineProperty,Ch=Object.defineProperties,Eh=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,cs=(t,e,n)=>e in t?wh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Th=(t,e)=>{for(var n in e||(e={}))Ah.call(e,n)&&cs(t,n,e[n]);if(ds)for(var n of ds(e))xh.call(e,n)&&cs(t,n,e[n]);return t},Ph=(t,e)=>Ch(t,Eh(e));let Gi;const _r=Lr(null);function hs(t){return t.split("-").map((e,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Rr(t,e=Qt().fallbackLocale){const n=hs(t);return e?[...new Set([...n,...hs(e)])]:n}function Bt(){return Gi!=null?Gi:void 0}_r.subscribe(t=>{Gi=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const Sh=t=>{if(t&&ph(t)&&ji(t)){const{loadingDelay:e}=Qt();let n;return typeof window!="undefined"&&Bt()!=null&&e?n=window.setTimeout(()=>mi.set(!0),e):mi.set(!0),Gl(t).then(()=>{_r.set(t)}).finally(()=>{clearTimeout(n),mi.set(!1)})}return _r.set(t)},sn=Ph(Th({},_r),{set:Sh}),zr=t=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=t(r)}};var kh=Object.defineProperty,gr=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,fs=(t,e,n)=>e in t?kh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ao=(t,e)=>{for(var n in e||(e={}))Yl.call(e,n)&&fs(t,n,e[n]);if(gr)for(var n of gr(e))ql.call(e,n)&&fs(t,n,e[n]);return t},an=(t,e)=>{var n={};for(var r in t)Yl.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&gr)for(var r of gr(t))e.indexOf(r)<0&&ql.call(t,r)&&(n[r]=t[r]);return n};const Dn=(t,e)=>{const{formats:n}=Qt();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Dh=zr(t=>{var e=t,{locale:n,format:r}=e,i=an(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Dn("number",r)),new Intl.NumberFormat(n,i)}),Bh=zr(t=>{var e=t,{locale:n,format:r}=e,i=an(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Dn("date",r):Object.keys(i).length===0&&(i=Dn("date","short")),new Intl.DateTimeFormat(n,i)}),Mh=zr(t=>{var e=t,{locale:n,format:r}=e,i=an(e,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Dn("time",r):Object.keys(i).length===0&&(i=Dn("time","short")),new Intl.DateTimeFormat(n,i)}),Oh=(t={})=>{var e=t,{locale:n=Bt()}=e,r=an(e,["locale"]);return Dh(Ao({locale:n},r))},Nh=(t={})=>{var e=t,{locale:n=Bt()}=e,r=an(e,["locale"]);return Bh(Ao({locale:n},r))},Ih=(t={})=>{var e=t,{locale:n=Bt()}=e,r=an(e,["locale"]);return Mh(Ao({locale:n},r))},Lh=zr((t,e=Bt())=>new uh(t,e,Qt().formats,{ignoreTag:Qt().ignoreTag})),Fh=(t,e={})=>{var n,r,i,o;let s=e;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=Bt(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=$l(t,l);if(!d)d=(o=(i=(r=(n=Qt()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?o:t;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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=Lh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return c},Hh=(t,e)=>Ih(e).format(t),Rh=(t,e)=>Nh(e).format(t),zh=(t,e)=>Oh(e).format(t),Uh=(t,e=Bt())=>$l(t,e),Xl=on([sn,Gn],()=>Fh);on([sn],()=>Hh);on([sn],()=>Rh);on([sn],()=>zh);on([sn,Gn],()=>Uh);function br(t,e){Vl(t,e)}function Zl(t){sn.set(t)}/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
5
5
|
|
|
6
6
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -13,35 +13,35 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
13
13
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
14
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */var
|
|
16
|
+
***************************************************************************** */var Yi=function(t,e){return Yi=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])},Yi(t,e)};function Yn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Yi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function qi(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xi(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >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 Zi(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||e)}function st(t){return typeof t=="function"}function Kl(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _i=Kl(function(t){return function(n){t(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 Xi(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var zr=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,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=Gi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){o=_ instanceof pi?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Gi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{fs(b)}catch(_){o=o!=null?o:[],_ instanceof pi?o=qi(qi([],Yi(o)),Yi(_.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 pi(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)fs(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Xi(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Xi(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Kl=zr.EMPTY;function Jl(t){return t instanceof zr||t&&"closed"in t&&at(t.remove)&&at(t.add)&&at(t.unsubscribe)}function fs(t){at(t)?t():t.unsubscribe()}var $h={Promise:void 0},Wh={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,qi([t,e],Yi(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Vh(t){Wh.setTimeout(function(){throw t})}function ps(){}function dr(t){t()}var Ql=function(t){jn(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Jl(n)&&n.add(r)):r.destination=Yh,r}return e.create=function(n,r,i){return new Zi(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(zr),jh=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){er(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){er(r)}else er(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){er(n)}},t}(),Zi=function(t){jn(e,t);function e(n,r,i){var o=t.call(this)||this,s;return at(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 jh(s),o}return e}(Ql);function er(t){Vh(t)}function Gh(t){throw t}var Yh={closed:!0,next:ps,error:Gh,complete:ps},qh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xh(t){return t}function Zh(t){return t.length===0?Xh:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var ms=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=Jh(e)?e:new Zi(e,n,r);return dr(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=_s(n),new n(function(i,o){var s=new Zi({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[qh]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Zh(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=_s(e),new e(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function _s(t){var e;return(e=t!=null?t:$h.Promise)!==null&&e!==void 0?e:Promise}function Kh(t){return t&&at(t.next)&&at(t.error)&&at(t.complete)}function Jh(t){return t&&t instanceof Ql||Kh(t)&&Jl(t)}var Qh=Zl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eu=function(t){jn(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new gs(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Qh},e.prototype.next=function(n){var r=this;dr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Gi(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}}}})},e.prototype.error=function(n){var r=this;dr(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)}})},e.prototype.complete=function(){var n=this;dr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Kl:(this.currentObservers=null,a.push(n),new zr(function(){r.currentObservers=null,Xi(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},e.prototype.asObservable=function(){var n=new ms;return n.source=this,n},e.create=function(n,r){return new gs(n,r)},e}(ms),gs=function(t){jn(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.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)},e.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)},e.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)},e.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:Kl},e}(eu),tu={now:function(){return(tu.delegate||Date).now()},delegate:void 0},ef=function(t){jn(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=tu);var o=t.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 e.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(),t.prototype.next.call(this,n)},e.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},e.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)}},e}(eu);const bs=[],vs={},tf=(t,e=0)=>{if(bs.indexOf(t)==-1){const n=new ef(e);vs[t]=n,bs.push(t)}return vs[t]};window.emWidgets={topic:tf};const nu=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const br={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"},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",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},Wt="__WIDGET_GLOBAL_STYLE_CACHE__";function Ur(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function $r(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Wr(t,e,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=nf(t,e),n;window[Wt]||(window[Wt]={}),n=rf(t,e);const o=n.unsubscribe.bind(n),s=()=>{if(window[Wt][e]){const a=window[Wt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[Wt][e]}o()};return n.unsubscribe=s,n}function nf(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{t&&(n.innerHTML=r,t.appendChild(n))})}function rf(t,e){return window.emMessageBus.subscribe(e,n=>{if(!t)return;const r=t.getRootNode(),i=window[Wt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function vr(t){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(t)}function dt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Le(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Ze(t){Le(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||vr(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[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 of(t,e){Le(2,arguments);var n=Ze(t),r=dt(e);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 sf(t,e){Le(2,arguments);var n=Ze(t).getTime(),r=dt(e);return new Date(n+r)}var af={};function Vr(){return af}function lf(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function uf(t){return Le(1,arguments),t instanceof Date||vr(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function df(t){if(Le(1,arguments),!uf(t)&&typeof t!="number")return!1;var e=Ze(t);return!isNaN(Number(e))}function cf(t,e){Le(2,arguments);var n=dt(e);return sf(t,-n)}var hf=864e5;function ff(t){Le(1,arguments);var e=Ze(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/hf)+1}function yr(t){Le(1,arguments);var e=1,n=Ze(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function ru(t){Le(1,arguments);var e=Ze(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=yr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=yr(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function pf(t){Le(1,arguments);var e=ru(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=yr(n);return r}var mf=6048e5;function _f(t){Le(1,arguments);var e=Ze(t),n=yr(e).getTime()-pf(e).getTime();return Math.round(n/mf)+1}function wr(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Vr(),c=dt((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.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=Ze(t),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function iu(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Ze(t),c=d.getUTCFullYear(),h=Vr(),f=dt((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.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 _=wr(b,e),w=new Date(0);w.setUTCFullYear(c,0,f),w.setUTCHours(0,0,0,0);var v=wr(w,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function gf(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Vr(),c=dt((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.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=iu(t,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=wr(f,e);return b}var bf=6048e5;function vf(t,e){Le(1,arguments);var n=Ze(t),r=wr(n,e).getTime()-gf(n,e).getTime();return Math.round(r/bf)+1}function ye(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var mt={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):ye(r+1,2)},d:function(e,n){return ye(e.getUTCDate(),n.length)},a:function(e,n){var r=e.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(e,n){return ye(e.getUTCHours()%12||12,n.length)},H:function(e,n){return ye(e.getUTCHours(),n.length)},m:function(e,n){return ye(e.getUTCMinutes(),n.length)},s:function(e,n){return ye(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ye(o,n.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yf={G:function(e,n,r){var i=e.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(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return mt.y(e,n)},Y:function(e,n,r,i){var o=iu(e,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return ye(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,n.length)},R:function(e,n){var r=ru(e);return ye(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return ye(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return ye(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(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return ye(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(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return mt.M(e,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(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return ye(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(e,n,r,i){var o=vf(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,n.length)},I:function(e,n,r){var i=_f(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):mt.d(e,n)},D:function(e,n,r){var i=ff(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(i,n.length)},E:function(e,n,r){var i=e.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(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ye(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(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ye(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(e,n,r){var i=e.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return ye(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(e,n,r){var i=e.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(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=zt.noon:i===0?o=zt.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(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=zt.evening:i>=12?o=zt.afternoon:i>=4?o=zt.morning:o=zt.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(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return mt.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mt.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mt.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):mt.s(e,n)},S:function(e,n){return mt.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return ws(s);case"XXXX":case"XX":return xt(s);case"XXXXX":case"XXX":default:return xt(s,":")}},x:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return ws(s);case"xxxx":case"xx":return xt(s);case"xxxxx":case"xxx":default:return xt(s,":")}},O:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ys(s,":");case"OOOO":default:return"GMT"+xt(s,":")}},z:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ys(s,":");case"zzzz":default:return"GMT"+xt(s,":")}},t:function(e,n,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ye(s,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,n.length)}};function ys(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e;return n+String(i)+s+ye(o,2)}function ws(t,e){if(t%60===0){var n=t>0?"-":"+";return n+ye(Math.abs(t)/60,2)}return xt(t,e)}function xt(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+n+s}var Cs=function(e,n){switch(e){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"})}},ou=function(e,n){switch(e){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"})}},wf=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Cs(e,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}}",Cs(i,n)).replace("{{time}}",ou(o,n))},Cf={p:ou,P:wf},Ef=["D","DD"],Af=["YY","YYYY"];function xf(t){return Ef.indexOf(t)!==-1}function Tf(t){return Af.indexOf(t)!==-1}function Es(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) 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(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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"}},Sf=function(e,n,r){var i,o=Pf[e];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 mi(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var kf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Df={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}}"},Mf={date:mi({formats:kf,defaultWidth:"full"}),time:mi({formats:Df,defaultWidth:"full"}),dateTime:mi({formats:Bf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nf=function(e,n,r,i){return Of[e]};function hn(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var If={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ff={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"]},Hf={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"]},Rf={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"}},zf={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"}},Uf=function(e,n){var r=Number(e),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"},$f={ordinalNumber:Uf,era:hn({values:If,defaultWidth:"wide"}),quarter:hn({values:Lf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:hn({values:Ff,defaultWidth:"wide"}),day:hn({values:Hf,defaultWidth:"wide"}),dayPeriod:hn({values:Rf,defaultWidth:"wide",formattingValues:zf,defaultFormattingWidth:"wide"})};function fn(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Vf(a,function(c){return c.test(s)}):Wf(a,function(c){return c.test(s)}),u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function Wf(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Vf(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function jf(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Gf=/^(\d+)(th|st|nd|rd)?/i,Yf=/\d+/i,qf={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},Xf={any:[/^b/i,/^(a|c)/i]},Zf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kf={any:[/1/i,/2/i,/3/i,/4/i]},Jf={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},Qf={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]},ep={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},tp={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]},np={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},rp={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}},ip={ordinalNumber:jf({matchPattern:Gf,parsePattern:Yf,valueCallback:function(e){return parseInt(e,10)}}),era:fn({matchPatterns:qf,defaultMatchWidth:"wide",parsePatterns:Xf,defaultParseWidth:"any"}),quarter:fn({matchPatterns:Zf,defaultMatchWidth:"wide",parsePatterns:Kf,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:fn({matchPatterns:Jf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any"}),day:fn({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:tp,defaultParseWidth:"any"}),dayPeriod:fn({matchPatterns:np,defaultMatchWidth:"any",parsePatterns:rp,defaultParseWidth:"any"})},op={code:"en-US",formatDistance:Sf,formatLong:Mf,formatRelative:Nf,localize:$f,match:ip,options:{weekStartsOn:0,firstWeekContainsDate:1}},sp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ap=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lp=/^'([^]*?)'?$/,up=/''/g,dp=/[a-zA-Z]/;function Cn(t,e,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,w;Le(2,arguments);var v=String(e),g=Vr(),x=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:op,y=dt((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(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=dt((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||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var A=Ze(t);if(!df(A))throw new RangeError("Invalid time value");var F=lf(A),j=cf(A,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:x,_originalDate:A},H=v.match(ap).map(function(B){var $=B[0];if($==="p"||$==="P"){var X=Cf[$];return X(B,x.formatLong)}return B}).join("").match(sp).map(function(B){if(B==="''")return"'";var $=B[0];if($==="'")return cp(B);var X=yf[$];if(X)return Tf(B)&&Es(B,e,String(t)),xf(B)&&Es(B,e,String(t)),X(j,B,x.localize,G);if($.match(dp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return B}).join("");return H}function cp(t){var e=t.match(lp);return e?e[1].replace(up,"'"):t}function As(t,e){Le(2,arguments);var n=dt(e);return of(t,-n)}/**
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Ki(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Ur=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,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=qi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(st(d))try{d()}catch(_){o=_ instanceof _i?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=qi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{ps(b)}catch(_){o=o!=null?o:[],_ instanceof _i?o=Zi(Zi([],Xi(o)),Xi(_.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 _i(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)ps(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Ki(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Ki(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Jl=Ur.EMPTY;function Ql(t){return t instanceof Ur||t&&"closed"in t&&st(t.remove)&&st(t.add)&&st(t.unsubscribe)}function ps(t){st(t)?t():t.unsubscribe()}var $h={Promise:void 0},Wh={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Zi([t,e],Xi(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Vh(t){Wh.setTimeout(function(){throw t})}function ms(){}function cr(t){t()}var eu=function(t){Yn(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ql(n)&&n.add(r)):r.destination=Yh,r}return e.create=function(n,r,i){return new Ji(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Ur),jh=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){tr(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){tr(r)}else tr(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){tr(n)}},t}(),Ji=function(t){Yn(e,t);function e(n,r,i){var o=t.call(this)||this,s;return st(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 jh(s),o}return e}(eu);function tr(t){Vh(t)}function Gh(t){throw t}var Yh={closed:!0,next:ms,error:Gh,complete:ms},qh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xh(t){return t}function Zh(t){return t.length===0?Xh:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var _s=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=Jh(e)?e:new Ji(e,n,r);return cr(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=gs(n),new n(function(i,o){var s=new Ji({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[qh]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Zh(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=gs(e),new e(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function gs(t){var e;return(e=t!=null?t:$h.Promise)!==null&&e!==void 0?e:Promise}function Kh(t){return t&&st(t.next)&&st(t.error)&&st(t.complete)}function Jh(t){return t&&t instanceof eu||Kh(t)&&Ql(t)}var Qh=Kl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tu=function(t){Yn(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new bs(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Qh},e.prototype.next=function(n){var r=this;cr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=qi(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}}}})},e.prototype.error=function(n){var r=this;cr(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)}})},e.prototype.complete=function(){var n=this;cr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.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 Ur(function(){r.currentObservers=null,Ki(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},e.prototype.asObservable=function(){var n=new _s;return n.source=this,n},e.create=function(n,r){return new bs(n,r)},e}(_s),bs=function(t){Yn(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.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)},e.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)},e.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)},e.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},e}(tu),nu={now:function(){return(nu.delegate||Date).now()},delegate:void 0},ef=function(t){Yn(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=nu);var o=t.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 e.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(),t.prototype.next.call(this,n)},e.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},e.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)}},e}(tu);const vs=[],ys={},tf=(t,e=0)=>{if(vs.indexOf(t)==-1){const n=new ef(e);ys[t]=n,vs.push(t)}return ys[t]};window.emWidgets={topic:tf};const ru=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const vr={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"},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",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},Wt="__WIDGET_GLOBAL_STYLE_CACHE__";function $r(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Wr(t,e){if(!t||!e)return;const n=new URL(e);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vr(t,e,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=nf(t,e),n;window[Wt]||(window[Wt]={}),n=rf(t,e);const o=n.unsubscribe.bind(n),s=()=>{if(window[Wt][e]){const a=window[Wt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[Wt][e]}o()};return n.unsubscribe=s,n}function nf(t,e){const n=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{t&&(n.innerHTML=r,t.appendChild(n))})}function rf(t,e){return window.emMessageBus.subscribe(e,n=>{if(!t)return;const r=t.getRootNode(),i=window[Wt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function yr(t){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yr(t)}function ut(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Le(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Ke(t){Le(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||yr(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[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 of(t,e){Le(2,arguments);var n=Ke(t),r=ut(e);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 sf(t,e){Le(2,arguments);var n=Ke(t).getTime(),r=ut(e);return new Date(n+r)}var af={};function jr(){return af}function lf(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function uf(t){return Le(1,arguments),t instanceof Date||yr(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function df(t){if(Le(1,arguments),!uf(t)&&typeof t!="number")return!1;var e=Ke(t);return!isNaN(Number(e))}function cf(t,e){Le(2,arguments);var n=ut(e);return sf(t,-n)}var hf=864e5;function ff(t){Le(1,arguments);var e=Ke(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/hf)+1}function wr(t){Le(1,arguments);var e=1,n=Ke(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function iu(t){Le(1,arguments);var e=Ke(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=wr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=wr(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function pf(t){Le(1,arguments);var e=iu(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=wr(n);return r}var mf=6048e5;function _f(t){Le(1,arguments);var e=Ke(t),n=wr(e).getTime()-pf(e).getTime();return Math.round(n/mf)+1}function Cr(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=jr(),c=ut((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.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=Ke(t),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function ou(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=Ke(t),c=d.getUTCFullYear(),h=jr(),f=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.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 _=Cr(b,e),C=new Date(0);C.setUTCFullYear(c,0,f),C.setUTCHours(0,0,0,0);var v=Cr(C,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function gf(t,e){var n,r,i,o,s,a,l,u;Le(1,arguments);var d=jr(),c=ut((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.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=ou(t,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=Cr(f,e);return b}var bf=6048e5;function vf(t,e){Le(1,arguments);var n=Ke(t),r=Cr(n,e).getTime()-gf(n,e).getTime();return Math.round(r/bf)+1}function we(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var pt={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return we(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):we(r+1,2)},d:function(e,n){return we(e.getUTCDate(),n.length)},a:function(e,n){var r=e.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(e,n){return we(e.getUTCHours()%12||12,n.length)},H:function(e,n){return we(e.getUTCHours(),n.length)},m:function(e,n){return we(e.getUTCMinutes(),n.length)},s:function(e,n){return we(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return we(o,n.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yf={G:function(e,n,r){var i=e.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(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return pt.y(e,n)},Y:function(e,n,r,i){var o=ou(e,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(e,n){var r=iu(e);return we(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return we(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.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(e,n,r){var i=Math.ceil((e.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(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return pt.M(e,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(e,n,r){var i=e.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(e,n,r,i){var o=vf(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):we(o,n.length)},I:function(e,n,r){var i=_f(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):we(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):pt.d(e,n)},D:function(e,n,r){var i=ff(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):we(i,n.length)},E:function(e,n,r){var i=e.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(e,n,r,i){var o=e.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(e,n,r,i){var o=e.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(e,n,r){var i=e.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(e,n,r){var i=e.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(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=zt.noon:i===0?o=zt.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(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=zt.evening:i>=12?o=zt.afternoon:i>=4?o=zt.morning:o=zt.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(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return pt.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):pt.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):we(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):pt.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pt.s(e,n)},S:function(e,n){return pt.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Cs(s);case"XXXX":case"XX":return Et(s);case"XXXXX":case"XXX":default:return Et(s,":")}},x:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"x":return Cs(s);case"xxxx":case"xx":return Et(s);case"xxxxx":case"xxx":default:return Et(s,":")}},O:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ws(s,":");case"OOOO":default:return"GMT"+Et(s,":")}},z:function(e,n,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ws(s,":");case"zzzz":default:return"GMT"+Et(s,":")}},t:function(e,n,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return we(s,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,s=o.getTime();return we(s,n.length)}};function ws(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e;return n+String(i)+s+we(o,2)}function Cs(t,e){if(t%60===0){var n=t>0?"-":"+";return n+we(Math.abs(t)/60,2)}return Et(t,e)}function Et(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=we(Math.floor(i/60),2),s=we(i%60,2);return r+o+n+s}var Es=function(e,n){switch(e){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"})}},su=function(e,n){switch(e){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"})}},wf=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Es(e,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}}",Es(i,n)).replace("{{time}}",su(o,n))},Cf={p:su,P:wf},Ef=["D","DD"],Af=["YY","YYYY"];function xf(t){return Ef.indexOf(t)!==-1}function Tf(t){return Af.indexOf(t)!==-1}function As(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) 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(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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"}},Sf=function(e,n,r){var i,o=Pf[e];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 gi(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var kf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Df={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}}"},Mf={date:gi({formats:kf,defaultWidth:"full"}),time:gi({formats:Df,defaultWidth:"full"}),dateTime:gi({formats:Bf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nf=function(e,n,r,i){return Of[e]};function pn(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var If={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ff={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"]},Hf={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"]},Rf={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"}},zf={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"}},Uf=function(e,n){var r=Number(e),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"},$f={ordinalNumber:Uf,era:pn({values:If,defaultWidth:"wide"}),quarter:pn({values:Lf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pn({values:Ff,defaultWidth:"wide"}),day:pn({values:Hf,defaultWidth:"wide"}),dayPeriod:pn({values:Rf,defaultWidth:"wide",formattingValues:zf,defaultFormattingWidth:"wide"})};function mn(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Vf(a,function(c){return c.test(s)}):Wf(a,function(c){return c.test(s)}),u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function Wf(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Vf(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function jf(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Gf=/^(\d+)(th|st|nd|rd)?/i,Yf=/\d+/i,qf={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},Xf={any:[/^b/i,/^(a|c)/i]},Zf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kf={any:[/1/i,/2/i,/3/i,/4/i]},Jf={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},Qf={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]},ep={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},tp={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]},np={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},rp={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}},ip={ordinalNumber:jf({matchPattern:Gf,parsePattern:Yf,valueCallback:function(e){return parseInt(e,10)}}),era:mn({matchPatterns:qf,defaultMatchWidth:"wide",parsePatterns:Xf,defaultParseWidth:"any"}),quarter:mn({matchPatterns:Zf,defaultMatchWidth:"wide",parsePatterns:Kf,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mn({matchPatterns:Jf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any"}),day:mn({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:tp,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:np,defaultMatchWidth:"any",parsePatterns:rp,defaultParseWidth:"any"})},op={code:"en-US",formatDistance:Sf,formatLong:Mf,formatRelative:Nf,localize:$f,match:ip,options:{weekStartsOn:0,firstWeekContainsDate:1}},sp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ap=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lp=/^'([^]*?)'?$/,up=/''/g,dp=/[a-zA-Z]/;function An(t,e,n){var r,i,o,s,a,l,u,d,c,h,f,b,_,C;Le(2,arguments);var v=String(e),g=jr(),x=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:op,y=ut((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(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=ut((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||(C=_.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var A=Ke(t);if(!df(A))throw new RangeError("Invalid time value");var H=lf(A),V=cf(A,H),G={firstWeekContainsDate:y,weekStartsOn:S,locale:x,_originalDate:A},F=v.match(ap).map(function(M){var $=M[0];if($==="p"||$==="P"){var J=Cf[$];return J(M,x.formatLong)}return M}).join("").match(sp).map(function(M){if(M==="''")return"'";var $=M[0];if($==="'")return cp(M);var J=yf[$];if(J)return Tf(M)&&As(M,e,String(t)),xf(M)&&As(M,e,String(t)),J(V,M,x.localize,G);if($.match(dp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return M}).join("");return F}function cp(t){var e=t.match(lp);return e?e[1].replace(up,"'"):t}function xs(t,e){Le(2,arguments);var n=ut(e);return of(t,-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
|
|
22
|
+
*/function nt(t,e="24.5.10"){Object.defineProperty(t,"version",{get(){return e}});const n=customElements.get(t.is);if(!n)customElements.define(t.is,t);else{const r=n.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${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 hp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}
|
|
26
|
+
*/class hp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}nt(hp);/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2019 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const
|
|
30
|
+
*/const hr=globalThis,xo=hr.ShadowRoot&&(hr.ShadyCSS===void 0||hr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,To=Symbol(),Ts=new WeakMap;let Po=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==To)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(xo&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=Ts.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ts.set(n,e))}return e}toString(){return this.cssText}};const fp=t=>new Po(typeof t=="string"?t:t+"",void 0,To),me=(t,...e)=>{const n=t.length===1?t[0]:e.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)+t[o+1],t[0]);return new Po(n,t,To)},au=(t,e)=>{if(xo)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),i=hr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,t.appendChild(r)}},Ps=xo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return fp(n)})(t):t;/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:pp,defineProperty:mp,getOwnPropertyDescriptor:_p,getOwnPropertyNames:gp,getOwnPropertySymbols:bp,getPrototypeOf:vp}=Object,
|
|
34
|
+
*/const{is:pp,defineProperty:mp,getOwnPropertyDescriptor:_p,getOwnPropertyNames:gp,getOwnPropertySymbols:bp,getPrototypeOf:vp}=Object,gt=globalThis,Ss=gt.trustedTypes,yp=Ss?Ss.emptyScript:"",bi=gt.reactiveElementPolyfillSupport,xn=(t,e)=>t,Qi={toAttribute(t,e){switch(e){case Boolean:t=t?yp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(r){n=null}}return n}},lu=(t,e)=>!pp(t,e),ks={attribute:!0,type:String,converter:Qi,reflect:!1,useDefault:!1,hasChanged:lu};var dl,cl;(dl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(cl=gt.litPropertyMetadata)!=null||(gt.litPropertyMetadata=new WeakMap);let Vt=class extends HTMLElement{static addInitializer(e){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=ks){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,n);i!==void 0&&mp(this.prototype,e,i)}}static getPropertyDescriptor(e,n,r){var s;const{get:i,set:o}=(s=_p(this.prototype,e))!=null?s:{get(){return this[n]},set(a){this[n]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var n;return(n=this.elementProperties.get(e))!=null?n:ks}static _$Ei(){if(this.hasOwnProperty(xn("elementProperties")))return;const e=vp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(xn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(xn("properties"))){const n=this.properties,r=[...gp(n),...bp(n)];for(const i of r)this.createProperty(i,n[i])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);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(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)n.unshift(Ps(i))}else e!==void 0&&n.push(Ps(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n,r;((n=this._$EO)!=null?n:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var n;const e=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return au(e,this.constructor.elementStyles),e}connectedCallback(){var e,n;(e=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(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$ET(e,n){var o;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Qi).toAttribute(n,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,n){var o,s,a;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=r.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:Qi;this._$Em=i;const d=u.fromAttribute(n,l.type);this[i]=(a=d!=null?d:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:d,this._$Em=null}}requestUpdate(e,n,r,i=!1,o){var s,a;if(e!==void 0){const l=this.constructor;if(i===!1&&(o=this[e]),r!=null||(r=l.getPropertyOptions(e)),!(((s=r.hasChanged)!=null?s:lu)(o,n)||r.useDefault&&r.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:r,reflect:i,wrapped:o},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:n)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(n=void 0),this._$AL.set(e,n)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ve(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&(yield e),!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){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(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._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(n)}willUpdate(e){}_$AE(e){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(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(n=>this._$ET(n,this[n]))),this._$EM()}updated(e){}firstUpdated(e){}};var hl;Vt.elementStyles=[],Vt.shadowRootOptions={mode:"open"},Vt[xn("elementProperties")]=new Map,Vt[xn("finalized")]=new Map,bi==null||bi({ReactiveElement:Vt}),((hl=gt.reactiveElementVersions)!=null?hl:gt.reactiveElementVersions=[]).push("2.1.2");/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const
|
|
39
|
-
\f\r]`,
|
|
40
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
38
|
+
*/const Tn=globalThis,Ds=t=>t,Er=Tn.trustedTypes,Bs=Er?Er.createPolicy("lit-html",{createHTML:t=>t}):void 0,uu="$lit$",mt=`lit$${Math.random().toFixed(9).slice(2)}$`,du="?"+mt,wp=`<${du}>`,Dt=document,Bn=()=>Dt.createComment(""),Mn=t=>t===null||typeof t!="object"&&typeof t!="function",So=Array.isArray,Cp=t=>So(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",vi=`[
|
|
39
|
+
\f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ms=/-->/g,Os=/>/g,Ct=RegExp(`>|${vi}(?:([^\\s"'>=/]+)(${vi}*=${vi}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ns=/'/g,Is=/"/g,cu=/^(?:script|style|textarea|title)$/i,en=Symbol.for("lit-noChange"),Oe=Symbol.for("lit-nothing"),Ls=new WeakMap,xt=Dt.createTreeWalker(Dt,129);function hu(t,e){if(!So(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bs!==void 0?Bs.createHTML(e):e}const Ep=(t,e)=>{const n=t.length-1,r=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=_n;for(let a=0;a<n;a++){const l=t[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===_n?d[1]==="!--"?s=Ms:d[1]!==void 0?s=Os:d[2]!==void 0?(cu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=Ct):d[3]!==void 0&&(s=Ct):s===Ct?d[0]===">"?(s=i!=null?i:_n,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?Ct:d[3]==='"'?Is:Ns):s===Is||s===Ns?s=Ct:s===Ms||s===Os?s=_n:(s=Ct,i=void 0);const f=s===Ct&&t[a+1].startsWith("/>")?" ":"";o+=s===_n?l+wp:c>=0?(r.push(u),l.slice(0,c)+uu+l.slice(c)+mt+f):l+mt+(c===-2?a:f)}return[hu(t,o+(t[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class On{constructor({strings:e,_$litType$:n},r){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,d]=Ep(e,n);if(this.el=On.createElement(u,r),xt.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=xt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(uu)){const h=d[s++],f=i.getAttribute(c).split(mt),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?xp:b[1]==="?"?Tp:b[1]==="@"?Pp:Gr}),i.removeAttribute(c)}else c.startsWith(mt)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(cu.test(i.tagName)){const c=i.textContent.split(mt),h=c.length-1;if(h>0){i.textContent=Er?Er.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Bn()),xt.nextNode(),l.push({type:2,index:++o});i.append(c[h],Bn())}}}else if(i.nodeType===8)if(i.data===du)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(mt,c+1))!==-1;)l.push({type:7,index:o}),c+=mt.length-1}o++}}static createElement(e,n){const r=Dt.createElement("template");return r.innerHTML=e,r}}function tn(t,e,n=t,r){var s,a,l;if(e===en)return e;let i=r!==void 0?(s=n._$Co)==null?void 0:s[r]:n._$Cl;const o=Mn(e)?void 0:e._$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(t),i._$AT(t,n,r)),r!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[r]=i:n._$Cl=i),i!==void 0&&(e=tn(t,i._$AS(t,e.values),i,r)),e}class Ap{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:n},parts:r}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:Dt).importNode(n,!0);xt.currentNode=i;let o=xt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new qn(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Sp(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=xt.nextNode(),s++)}return xt.currentNode=Dt,i}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class qn{get _$AU(){var e,n;return(n=(e=this._$AM)==null?void 0:e._$AU)!=null?n:this._$Cv}constructor(e,n,r,i){var o;this.type=2,this._$AH=Oe,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=tn(this,e,n),Mn(e)?e===Oe||e==null||e===""?(this._$AH!==Oe&&this._$AR(),this._$AH=Oe):e!==this._$AH&&e!==en&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Cp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Oe&&Mn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Dt.createTextNode(e)),this._$AH=e}$(e){var o;const{values:n,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=On.createElement(hu(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 Ap(i,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(e){let n=Ls.get(e.strings);return n===void 0&&Ls.set(e.strings,n=new On(e)),n}k(e){So(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of e)i===n.length?n.push(r=new qn(this.O(Bn()),this.O(Bn()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);e!==this._$AB;){const i=Ds(e).nextSibling;Ds(e).remove(),e=i}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class Gr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,i,o){this.type=1,this._$AH=Oe,this._$AN=void 0,this.element=e,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=Oe}_$AI(e,n=this,r,i){const o=this.strings;let s=!1;if(o===void 0)e=tn(this,e,n,0),s=!Mn(e)||e!==this._$AH&&e!==en,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=tn(this,a[r+l],n,l),u===en&&(u=this._$AH[l]),s||(s=!Mn(u)||u!==this._$AH[l]),u===Oe?e=Oe:e!==Oe&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class xp extends Gr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Oe?void 0:e}}class Tp extends Gr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Oe)}}class Pp extends Gr{constructor(e,n,r,i,o){super(e,n,r,i,o),this.type=5}_$AI(e,n=this){var s;if((e=(s=tn(this,e,n,0))!=null?s:Oe)===en)return;const r=this._$AH,i=e===Oe&&r!==Oe||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Oe&&(r===Oe||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,r;typeof this._$AH=="function"?this._$AH.call((r=(n=this.options)==null?void 0:n.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Sp{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){tn(this,e)}}const yi=Tn.litHtmlPolyfillSupport;var fl;yi==null||yi(On,qn),((fl=Tn.litHtmlVersions)!=null?fl:Tn.litHtmlVersions=[]).push("3.3.2");const kp=(t,e,n)=>{var o,s;const r=(o=n==null?void 0:n.renderBefore)!=null?o:e;let i=r._$litPart$;if(i===void 0){const a=(s=n==null?void 0:n.renderBefore)!=null?s:null;r._$litPart$=i=new qn(e.insertBefore(Bn(),a),a,void 0,n!=null?n:{})}return i._$AI(t),i};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const
|
|
44
|
+
*/const St=globalThis;class Gt extends Vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,r;const e=super.createRenderRoot();return(r=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kp(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return en}}var pl;Gt._$litElement$=!0,Gt.finalized=!0,(pl=St.litElementHydrateSupport)==null||pl.call(St,{LitElement:Gt});const wi=St.litElementPolyfillSupport;wi==null||wi({LitElement:Gt});var ml;((ml=St.litElementVersions)!=null?ml:St.litElementVersions=[]).push("4.2.2");/**
|
|
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/
|
|
@@ -49,8 +49,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
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
|
|
53
|
-
`)}const
|
|
52
|
+
*/const fu=[],eo=new Set,ko=new Set;function pu(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Bp(t){return pu(customElements.get(t))}function Mp(t=[]){return[t].flat(1/0).filter(e=>e instanceof Po?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function mu(t,e){return(t||"").split(" ").some(n=>new RegExp(`^${n.split("*").join(".*")}$`,"u").test(e))}function _u(t){return t.map(e=>e.cssText).join(`
|
|
53
|
+
`)}const Ar="vaadin-themable-mixin-style";function Op(t,e){const n=document.createElement("style");n.id=Ar,n.textContent=_u(t),e.content.appendChild(n)}function Np(t){if(!t.shadowRoot)return;const e=t.constructor;if(t instanceof Gt)[...t.shadowRoot.querySelectorAll("style")].forEach(n=>n.remove()),au(t.shadowRoot,e.elementStyles);else{const n=t.shadowRoot.getElementById(Ar),r=e.prototype._template;n.textContent=r.content.getElementById(Ar).textContent}}function Ip(t){eo.forEach(e=>{const n=e.deref();n instanceof t?Np(n):n||eo.delete(e)})}function gu(t){if(t.prototype instanceof Gt)t.elementStyles=t.finalizeStyles(t.styles);else{const e=t.prototype._template;e.content.getElementById(Ar).textContent=_u(t.getStylesForThis())}ko.forEach(e=>{const n=customElements.get(e);n!==t&&n.prototype instanceof t&&gu(n)})}function Lp(t,e){const n=t.__themes;return!n||!e?!1:n.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function ke(t,e,n={}){e=Mp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,n):fu.push({themeFor:t,styles:e,include:n.include,moduleId:n.moduleId}),t&&ko.forEach(r=>{if(mu(t,r)&&Bp(r)){const i=customElements.get(r);Lp(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),gu(i),Ip(i)}})}function to(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():fu}function Fp(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function bu(t){const e=[];return t.include&&[].concat(t.include).forEach(n=>{const r=to().find(i=>i.moduleId===n);r?e.push(...bu(r),...r.styles):console.warn(`Included moduleId ${n} not found in style registry`)},t.styles),e}function Hp(t){const e=`${t}-default-theme`,n=to().filter(r=>r.moduleId!==e&&mu(r.themeFor,t)).map(r=>hn(ft({},r),{styles:[...bu(r),...r.styles],includePriority:Fp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return n.length>0?n:to().filter(r=>r.moduleId===e)}const Mt=t=>class extends Dp(t){constructor(){super(),eo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ko.add(this.is),this.elementStyles)return;const n=this.prototype._template;!n||pu(this)||Op(this.getStylesForThis(),n)}static finalizeStyles(n){const r=this.getStylesForThis();return n?[...[n].flat(1/0),...r]:r}static getStylesForThis(){const n=t.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...n,...i,...Hp(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/
|
|
@@ -532,7 +532,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
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
|
|
535
|
+
*/const vu=me`
|
|
536
536
|
:host {
|
|
537
537
|
top: var(--lumo-space-m);
|
|
538
538
|
right: var(--lumo-space-m);
|
|
@@ -597,11 +597,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
597
597
|
opacity: 1;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
`;ke("",
|
|
600
|
+
`;ke("",vu,{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
|
|
604
|
+
*/const yu=me`
|
|
605
605
|
:host([opening]),
|
|
606
606
|
:host([closing]) {
|
|
607
607
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -631,7 +631,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
631
631
|
opacity: 0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
`;ke("",
|
|
634
|
+
`;ke("",yu,{moduleId:"lumo-menu-overlay-core"});const Yp=me`
|
|
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 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
693
693
|
transform: translateY(150%);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
`,
|
|
696
|
+
`,wu=[vu,yu,Yp];ke("",wu,{moduleId:"lumo-menu-overlay"});const qp=me`
|
|
697
697
|
[part='overlay'] {
|
|
698
698
|
/*
|
|
699
699
|
Width:
|
|
@@ -738,7 +738,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
738
738
|
max-height: 70vh;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
`;ke("vaadin-date-picker-overlay",[
|
|
741
|
+
`;ke("vaadin-date-picker-overlay",[wu,qp],{moduleId:"lumo-date-picker-overlay"});const Xp=me`
|
|
742
742
|
:host {
|
|
743
743
|
/* Sizing */
|
|
744
744
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -1574,7 +1574,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
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
|
|
1577
|
+
*/const Cu=me`
|
|
1578
1578
|
[part$='button'] {
|
|
1579
1579
|
flex: none;
|
|
1580
1580
|
width: 1em;
|
|
@@ -1601,7 +1601,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1601
1601
|
font-family: 'lumo-icons';
|
|
1602
1602
|
display: block;
|
|
1603
1603
|
}
|
|
1604
|
-
`;ke("",
|
|
1604
|
+
`;ke("",Cu,{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/
|
|
@@ -1665,7 +1665,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
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
|
|
1668
|
+
*/const Eu=me`
|
|
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,7 +1777,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1777
1777
|
margin-left: 0;
|
|
1778
1778
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1779
1779
|
}
|
|
1780
|
-
`;ke("",
|
|
1780
|
+
`;ke("",Eu,{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/
|
|
@@ -1912,7 +1912,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1912
1912
|
[part='clear-button']::before {
|
|
1913
1913
|
content: var(--lumo-icons-cross);
|
|
1914
1914
|
}
|
|
1915
|
-
`,
|
|
1915
|
+
`,Au=[Eu,Cu,Kp,Jp];ke("",Au,{moduleId:"lumo-input-field-shared-styles"});const Qp=me`
|
|
1916
1916
|
[part='toggle-button']::before {
|
|
1917
1917
|
content: var(--lumo-icons-calendar);
|
|
1918
1918
|
}
|
|
@@ -1934,7 +1934,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1934
1934
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
1935
1935
|
--_lumo-text-field-overflow-mask-image: none;
|
|
1936
1936
|
}
|
|
1937
|
-
`;ke("vaadin-date-picker",[
|
|
1937
|
+
`;ke("vaadin-date-picker",[Au,Qp],{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 em=/(url\()([^)]*)(\))/g,tm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,
|
|
1953
|
+
*/let em=/(url\()([^)]*)(\))/g,tm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,nr,je;function Pn(t,e){if(t&&tm.test(t)||t==="//")return t;if(nr===void 0){nr=!1;try{const n=new URL("b","http://a");n.pathname="c%20d",nr=n.href==="http://a/c%20d"}catch(n){}}if(e||(e=document.baseURI||window.location.href),nr)try{return new URL(t,e).href}catch(n){return t}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=t,je.anchor.href||t}function Do(t,e){return t.replace(em,function(n,r,i,o){return r+"'"+Pn(i.replace(/["']/g,""),e)+"'"+o})}function Bo(t){return t.substring(0,t.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
|
|
1961
|
+
*/const xu=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const nm=xu&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let rm=window.Polymer&&window.Polymer.rootPath||Bo(document.baseURI||window.location.href),xr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Tr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,im=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Tu=window.Polymer&&window.Polymer.legacyOptimizations||!1,Pu=window.Polymer&&window.Polymer.legacyWarnings||!1,om=window.Polymer&&window.Polymer.syncInitialRender||!1,no=window.Polymer&&window.Polymer.legacyUndefined||!1,sm=window.Polymer&&window.Polymer.orderedComputed||!1,Fs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,am=window.Polymer&&window.Polymer.fastDomIf||!1,Hs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let lm=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
|
|
@@ -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
|
|
1977
|
+
*/let Mo={},Su={};function Rs(t,e){Mo[t]=Su[t.toLowerCase()]=e}function zs(t){return Mo[t]||Su[t.toLowerCase()]}function dm(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Nn extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,n){if(e){let r=zs(e);return r&&n?r.querySelector(n):r}return null}attributeChangedCallback(e,n,r,i){n!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,n=Pn(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Bo(n)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Tr&&zs(e)!==void 0)throw Rs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Rs(e,this),dm(this)}}}Nn.prototype.modules=Mo;customElements.define("dom-module",Nn);/**
|
|
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 cm="link[rel=import][type~=css]",hm="include",
|
|
1985
|
+
*/const cm="link[rel=import][type~=css]",hm="include",Us="shady-unscoped";function ku(t){return Nn.import(t)}function $s(t){let e=t.body?t.body:t;const n=Do(e.textContent,t.baseURI),r=document.createElement("style");return r.textContent=n,r}function fm(t){const e=t.trim().split(/\s+/),n=[];for(let r=0;r<e.length;r++)n.push(...pm(e[r]));return n}function pm(t){const e=ku(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(e._styles===void 0){const n=[];n.push(...Bu(e));const r=e.querySelector("template");r&&n.push(...Du(r,e.assetpath)),e._styles=n}return e._styles}function Du(t,e){if(!t._styles){const n=[],r=t.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(hm);s&&n.push(...fm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Do(o.textContent,e)),n.push(o)}t._styles=n}return t._styles}function mm(t){let e=ku(t);return e?Bu(e):[]}function Bu(t){const e=[],n=t.querySelectorAll(cm);for(let r=0;r<n.length;r++){let i=n[r];if(i.import){const o=i.import,s=i.hasAttribute(Us);if(s&&!o._unscopedStyle){const a=$s(o);a.setAttribute(Us,""),o._unscopedStyle=a}else o._style||(o._style=$s(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
|
|
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
|
|
2001
|
+
*/function ro(t){return t.indexOf(".")>=0}function Ot(t){let e=t.indexOf(".");return e===-1?t:t.slice(0,e)}function Mu(t,e){return t.indexOf(e+".")===0}function In(t,e){return e.indexOf(t+".")===0}function Ln(t,e,n){return e+n.slice(t.length)}function _m(t,e){return t===e||Mu(t,e)||In(t,e)}function wn(t){if(Array.isArray(t)){let e=[];for(let n=0;n<t.length;n++){let r=t[n].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return t}function Ou(t){return Array.isArray(t)?wn(t).split("."):t.toString().split(".")}function $e(t,e,n){let r=t,i=Ou(e);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 Ws(t,e,n){let r=t,i=Ou(e),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[e]=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
|
|
2009
|
+
*/const Pr={},gm=/-[a-z]/g,bm=/([A-Z])/g;function Nu(t){return Pr[t]||(Pr[t]=t.indexOf("-")<0?t:t.replace(gm,e=>e[1].toUpperCase()))}function Yr(t){return Pr[t]||(Pr[t]=t.replace(bm,"-$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 vm=0,
|
|
2017
|
+
*/let vm=0,Iu=0,Yt=[],ym=0,io=!1,Lu=document.createTextNode("");new window.MutationObserver(wm).observe(Lu,{characterData:!0});function wm(){io=!1;const t=Yt.length;for(let e=0;e<t;e++){let n=Yt[e];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}Yt.splice(0,t),Iu+=t}const Cm={after(t){return{run(e){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}},Fu={run(t){return io||(io=!0,Lu.textContent=ym++),Yt.push(t),vm++},cancel(t){const e=t-Iu;if(e>=0){if(!Yt[e])throw new Error("invalid async handle: "+t);Yt[e]=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 Em=
|
|
2025
|
+
*/const Em=Fu,Hu=Be(t=>{class e extends t{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,Em.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 e});/**
|
|
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
|
|
2033
|
+
*/const Ru={};let rr=HTMLElement.prototype;for(;rr;){let t=Object.getOwnPropertyNames(rr);for(let e=0;e<t.length;e++)Ru[t[e]]=!0;rr=Object.getPrototypeOf(rr)}const Am=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function xm(t,e){if(!Ru[e]){let n=t[e];n!==void 0&&(t.__data?t._setPendingProperty(e,n):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=n))}}const Tm=Be(t=>{const e=Hu(t);class n extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Nu(i[o]))}static attributeNameForProperty(i){return Yr(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(Am(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){xm(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
|
|
2041
|
+
*/const Pm={"dom-if":!0,"dom-repeat":!0};let Vs=!1,js=!1;function Sm(){if(!Vs){Vs=!0;const t=document.createElement("textarea");t.placeholder="a",js=t.placeholder===t.textContent}return js}function km(t){Sm()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Dm=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,n,r)=>{const i=n.getAttribute(r);if(t&&r.startsWith("on-")){e.setAttribute(r,t.createScript(i,r));return}e.setAttribute(r,i)}})();function Bm(t){let e=t.getAttribute("is");if(e&&Pm[e]){let n=t;for(n.removeAttribute("is"),t=n.ownerDocument.createElement(e),n.parentNode.replaceChild(t,n),t.appendChild(n);n.attributes.length;){const{name:r}=n.attributes[0];Dm(t,n,r),n.removeAttribute(r)}}return t}function zu(t,e){let n=e.parentInfo&&zu(t,e.parentInfo);if(n){for(let r=n.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return t}function Mm(t,e,n,r){r.id&&(e[r.id]=n)}function Om(t,e,n){if(n.events&&n.events.length)for(let r=0,i=n.events,o;r<i.length&&(o=i[r]);r++)t._addMethodEventListenerToNode(e,o.name,o.value,t)}function Nm(t,e,n,r){n.templateInfo&&(e._templateInfo=n.templateInfo,e._parentTemplateInfo=r)}function Im(t,e,n){return t=t._methodHost||t,function(i){t[n]?t[n](i,i.detail):console.warn("listener method `"+n+"` not defined")}}const Lm=Be(t=>{class e extends t{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),km(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]=zu(a,c);Mm(this,a.$,h,c),Nm(this,h,c,i),Om(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Im(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 e});/**
|
|
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 In=0;const Ln=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},zu="__computeInfo",Fm=/[A-Z]/;function yi(t,e,n){let r=t[e];if(!r)r=t[e]={};else if(!t.hasOwnProperty(e)&&(r=t[e]=Object.create(t[e]),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 yn(t,e,n,r,i,o){if(e){let s=!1;const a=In++;for(let l in n){let u=i?It(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||Bo(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,n,r,f.info,i,o),s=!0)}return s}return!1}function Hm(t,e,n,r,i,o,s,a){let l=!1,u=s?It(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==n)&&(!s||Bo(r,f.trigger))&&(f.info&&(f.info.lastRun=n),f.fn(t,r,i,o,f.info,s,a),l=!0);return l}function Bo(t,e){if(e){let n=e.name;return n==t||!!(e.structured&&Bu(n,t))||!!(e.wildcard&&On(n,t))}else return!0}function js(t,e,n,r,i){let o=typeof i.method=="string"?t[i.method]:i.method,s=i.property;o?o.call(t,t.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Rm(t,e,n,r,i){let o=t[ge.NOTIFY],s,a=In++;for(let u in e)e[u]&&(o&&Hm(t,o,a,u,n,r,i)||i&&zm(t,u,n))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zm(t,e,n){let r=It(e);if(r!==e){let i=Gr(r)+"-changed";return Uu(t,i,n[e],e),!0}return!1}function Uu(t,e,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Ie(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function Um(t,e,n,r,i,o){let a=(o?It(e):e)!=e?e:null,l=a?$e(t,a):t.__data[e];a&&l===void 0&&(l=n[e]),Uu(t,i.eventName,l,a)}function $m(t,e,n,r,i){let o,s=t.detail,a=s&&s.path;a?(r=Nn(n,r,a),o=s&&s.value):o=t.currentTarget[n],o=i?!o:o,(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Wm(t,e,n,r,i){let o=t.__data[e];Ar&&(o=Ar(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function Vm(t,e,n,r){let i=t[ge.COMPUTE];if(i)if(sm){In++;const o=Gm(t),s=[];for(let l in e)Gs(l,i,s,o,r);let a;for(;a=s.shift();)$u(t,"",e,n,a)&&Gs(a.methodInfo,i,s,o,r);Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;yn(t,i,o,n,r);)Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const jm=(t,e,n)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=n.get(e[s].methodInfo)-n.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,t)},Gs=(t,e,n,r,i)=>{const o=i?It(t):t,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==In&&(!i||Bo(t,l.trigger))&&(l.info.lastRun=In,jm(l.info,n,r))}};function Gm(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const n=t[ge.COMPUTE];let{counts:r,ready:i,total:o}=Ym(t),s;for(;s=i.shift();){e.set(s,e.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 ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}function Ym(t){const e=t[zu],n={},r=t[ge.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=n[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:n,ready:i,total:o}}function $u(t,e,n,r,i){let o=ro(t,e,n,r,i);if(o===Ln)return!1;let s=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function qm(t,e,n){let r=t.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];On(o,e)?(i=Nn(o,s,e),t._setPendingPropertyOrPath(i,n,!0,!0)):On(s,e)&&(i=Nn(s,o,e),t._setPendingPropertyOrPath(i,n,!0,!0))}}}function wi(t,e,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),Qm(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Gr(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,Xm(t,e,a,d,l)}}function Xm(t,e,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:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Vu(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Zm,info:s,trigger:l})}}}function Zm(t,e,n,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=n[e];e=Nn(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&t._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(t,u,e,n,r,o);d!==Ln&&Km(t,a,l,u,d)}}function Km(t,e,n,r,i){if(i=Jm(e,i,n,r),Ar&&(i=Ar(i,n.target,n.kind,e)),n.kind=="attribute")t._valueToNodeAttribute(e,i,n.target);else{let o=n.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][o])&&e._setPendingProperty(o,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,i)}}function Jm(t,e,n,r){if(n.isCompound){let i=t.__dataCompoundStorage[n.target];i[r.compoundIndex]=e,e=i.join("")}return n.kind!=="attribute"&&(n.target==="textContent"||n.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function Qm(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function e_(t,e){let{nodeList:n,nodeInfoList:r}=e;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];t_(s,u),n_(s,t,u)}s.__dataHost=t}}function t_(t,e){if(e.isCompound){let n=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;n[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(t=Ie(t)),t[o]=e.literal)}}function n_(t,e,n){if(n.listenerEvent){let r=n.parts[0];t.addEventListener(n.listenerEvent,function(i){$m(i,e,n.target,r.source,r.negate)})}}function Ys(t,e,n,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,n,{fn:r,info:s,trigger:l});return o&&t._addPropertyEffect(e.methodName,n,{fn:r,info:s}),s}function ro(t,e,n,r,i){let o=t._methodHost||t,s=o[i.methodName];if(s){let a=t._marshalArgs(i.args,e,n);return a===Ln?Ln:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const r_=[],Wu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",i_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",o_="(?:'(?:[^'\\\\]|\\\\.)*')",s_='(?:"(?:[^"\\\\]|\\\\.)*")',a_="(?:"+o_+"|"+s_+")",qs="(?:("+Wu+"|"+i_+"|"+a_+")\\s*)",l_="(?:"+qs+"(?:,\\s*"+qs+")*)",u_="(?:\\(\\s*(?:"+l_+"?)\\)\\s*)",d_="("+Wu+"\\s*"+u_+"?)",c_="(\\[\\[|{{)\\s*",h_="(?:]]|}})",f_="(?:(!)\\s*)?",p_=c_+f_+d_+h_,Xs=new RegExp(p_,"g");function Zs(t){let e="";for(let n=0;n<t.length;n++){let r=t[n].literal;e+=r||""}return e}function Ci(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:r_};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return m_(i,r)}else return r}return null}function m_(t,e){return e.args=t.map(function(n){let r=Vu(n);return r.literal||(e.static=!1),r},this),e}function Vu(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=e.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(e),n.literal=!0;break}return n.literal||(n.rootProperty=It(e),n.structured=to(e),n.structured&&(n.wildcard=e.slice(-2)==".*",n.wildcard&&(n.name=e.slice(0,-2)))),n}function Ks(t,e,n){let r=$e(t,n);return r===void 0&&(r=e[n]),r}function ju(t,e,n,r){const i={indexSplices:r};eo&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(n+".splices",i),t.notifyPath(n+".length",e.length),eo&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function mn(t,e,n,r,i,o){ju(t,e,n,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function __(t){return t[0].toUpperCase()+t.substring(1)}const Mo=Be(t=>{const e=Lm(Tm(t));class n extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ge}_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(_n.length){let i=_n[_n.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[ge.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==ge.READ_ONLY);let a=yi(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=yi(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,ge.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,ge.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,ge.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,ge.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||It(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=$e(this,i);if(i=$s(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return qm(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&&to(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[ge.NOTIFY]&&this[ge.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[ge.READ_ONLY]||!this[ge.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;Vm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),yn(this,this[ge.REFLECT],o,s,a),yn(this,this[ge.OBSERVE],o,s,a),l&&Rm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[ge.PROPAGATE]&&yn(this,this[ge.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{yn(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=vn(i),o=vn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=vn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=$e(this,i,s);ju(this,a,s.path,o)}get(i,o){return $e(o||this,i)}set(i,o,s){s?$s(s,i,o):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=$e(this,i,s),l=a.length,u=a.push(...o);return o.length&&mn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.pop();return a&&mn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=$e(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)&&mn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.shift();return a&&mn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=$e(this,i,s),l=a.unshift(...o);return o.length&&mn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=$e(this,i,a),s=a.path}else Array.isArray(i)?s=vn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,ge.READ_ONLY),o&&(this["_set"+__(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,ge.OBSERVE,{fn:js,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,ge.OBSERVE,{fn:js,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Ci(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Ys(this,s,ge.OBSERVE,ro,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,ge.NOTIFY,{fn:Um,info:{eventName:Gr(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,ge.REFLECT,{fn:Wm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Ci(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Ys(this,a,ge.COMPUTE,$u,i,s);yi(this,zu)[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 w=On(c,o),v=Ks(a,s,w?o:c);b={path:w?o:c,value:v,base:w?$e(a,c):v}}else b=h?Ks(a,s,c):a[c];if(eo&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return Ln;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),_n.push(this);let s=super._stampTemplate(i,o);if(_n.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,e_(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=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=Zs(l)||" ",wi(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";Fm.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=Ou(a)),wi(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Ls&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(am&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Ls||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];wi(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Xs.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 _=Ci(c),w=[];if(_){let{args:v,methodName:g}=_;for(let y=0;y<v.length;y++){let S=v[y];S.literal||w.push(S)}let x=o.dynamicFns;(x&&x[g]||_.static)&&(w.push(g),_.dynamicFn=!0)}else w.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:w,event:f}),a=Xs.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=ro(i,s,a,l,o.signature):s!=o.source?d=$e(i,o.source):u&&to(s)?d=$e(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return n}),_n=[];/**
|
|
2051
|
+
*/let Fn=0;const Hn=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Uu="__computeInfo",Fm=/[A-Z]/;function Ci(t,e,n){let r=t[e];if(!r)r=t[e]={};else if(!t.hasOwnProperty(e)&&(r=t[e]=Object.create(t[e]),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 Cn(t,e,n,r,i,o){if(e){let s=!1;const a=Fn++;for(let l in n){let u=i?Ot(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||Oo(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,n,r,f.info,i,o),s=!0)}return s}return!1}function Hm(t,e,n,r,i,o,s,a){let l=!1,u=s?Ot(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==n)&&(!s||Oo(r,f.trigger))&&(f.info&&(f.info.lastRun=n),f.fn(t,r,i,o,f.info,s,a),l=!0);return l}function Oo(t,e){if(e){let n=e.name;return n==t||!!(e.structured&&Mu(n,t))||!!(e.wildcard&&In(n,t))}else return!0}function Gs(t,e,n,r,i){let o=typeof i.method=="string"?t[i.method]:i.method,s=i.property;o?o.call(t,t.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Rm(t,e,n,r,i){let o=t[ge.NOTIFY],s,a=Fn++;for(let u in e)e[u]&&(o&&Hm(t,o,a,u,n,r,i)||i&&zm(t,u,n))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zm(t,e,n){let r=Ot(e);if(r!==e){let i=Yr(r)+"-changed";return $u(t,i,n[e],e),!0}return!1}function $u(t,e,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),Ie(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function Um(t,e,n,r,i,o){let a=(o?Ot(e):e)!=e?e:null,l=a?$e(t,a):t.__data[e];a&&l===void 0&&(l=n[e]),$u(t,i.eventName,l,a)}function $m(t,e,n,r,i){let o,s=t.detail,a=s&&s.path;a?(r=Ln(n,r,a),o=s&&s.value):o=t.currentTarget[n],o=i?!o:o,(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Wm(t,e,n,r,i){let o=t.__data[e];xr&&(o=xr(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function Vm(t,e,n,r){let i=t[ge.COMPUTE];if(i)if(sm){Fn++;const o=Gm(t),s=[];for(let l in e)Ys(l,i,s,o,r);let a;for(;a=s.shift();)Wu(t,"",e,n,a)&&Ys(a.methodInfo,i,s,o,r);Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let o=e;for(;Cn(t,i,o,n,r);)Object.assign(n,t.__dataOld),Object.assign(e,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const jm=(t,e,n)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=n.get(e[s].methodInfo)-n.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,t)},Ys=(t,e,n,r,i)=>{const o=i?Ot(t):t,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Fn&&(!i||Oo(t,l.trigger))&&(l.info.lastRun=Fn,jm(l.info,n,r))}};function Gm(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const n=t[ge.COMPUTE];let{counts:r,ready:i,total:o}=Ym(t),s;for(;s=i.shift();){e.set(s,e.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 ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}function Ym(t){const e=t[Uu],n={},r=t[ge.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=n[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:n,ready:i,total:o}}function Wu(t,e,n,r,i){let o=oo(t,e,n,r,i);if(o===Hn)return!1;let s=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function qm(t,e,n){let r=t.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];In(o,e)?(i=Ln(o,s,e),t._setPendingPropertyOrPath(i,n,!0,!0)):In(s,e)&&(i=Ln(s,o,e),t._setPendingPropertyOrPath(i,n,!0,!0))}}}function Ei(t,e,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),Qm(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Yr(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,Xm(t,e,a,d,l)}}function Xm(t,e,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:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ju(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:Zm,info:s,trigger:l})}}}function Zm(t,e,n,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=n[e];e=Ln(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&t._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(t,u,e,n,r,o);d!==Hn&&Km(t,a,l,u,d)}}function Km(t,e,n,r,i){if(i=Jm(e,i,n,r),xr&&(i=xr(i,n.target,n.kind,e)),n.kind=="attribute")t._valueToNodeAttribute(e,i,n.target);else{let o=n.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][o])&&e._setPendingProperty(o,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,i)}}function Jm(t,e,n,r){if(n.isCompound){let i=t.__dataCompoundStorage[n.target];i[r.compoundIndex]=e,e=i.join("")}return n.kind!=="attribute"&&(n.target==="textContent"||n.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function Qm(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function e_(t,e){let{nodeList:n,nodeInfoList:r}=e;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];t_(s,u),n_(s,t,u)}s.__dataHost=t}}function t_(t,e){if(e.isCompound){let n=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;n[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(t=Ie(t)),t[o]=e.literal)}}function n_(t,e,n){if(n.listenerEvent){let r=n.parts[0];t.addEventListener(n.listenerEvent,function(i){$m(i,e,n.target,r.source,r.negate)})}}function qs(t,e,n,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,n,{fn:r,info:s,trigger:l});return o&&t._addPropertyEffect(e.methodName,n,{fn:r,info:s}),s}function oo(t,e,n,r,i){let o=t._methodHost||t,s=o[i.methodName];if(s){let a=t._marshalArgs(i.args,e,n);return a===Hn?Hn:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const r_=[],Vu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",i_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",o_="(?:'(?:[^'\\\\]|\\\\.)*')",s_='(?:"(?:[^"\\\\]|\\\\.)*")',a_="(?:"+o_+"|"+s_+")",Xs="(?:("+Vu+"|"+i_+"|"+a_+")\\s*)",l_="(?:"+Xs+"(?:,\\s*"+Xs+")*)",u_="(?:\\(\\s*(?:"+l_+"?)\\)\\s*)",d_="("+Vu+"\\s*"+u_+"?)",c_="(\\[\\[|{{)\\s*",h_="(?:]]|}})",f_="(?:(!)\\s*)?",p_=c_+f_+d_+h_,Zs=new RegExp(p_,"g");function Ks(t){let e="";for(let n=0;n<t.length;n++){let r=t[n].literal;e+=r||""}return e}function Ai(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:r_};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return m_(i,r)}else return r}return null}function m_(t,e){return e.args=t.map(function(n){let r=ju(n);return r.literal||(e.static=!1),r},this),e}function ju(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=e.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(e),n.literal=!0;break}return n.literal||(n.rootProperty=Ot(e),n.structured=ro(e),n.structured&&(n.wildcard=e.slice(-2)==".*",n.wildcard&&(n.name=e.slice(0,-2)))),n}function Js(t,e,n){let r=$e(t,n);return r===void 0&&(r=e[n]),r}function Gu(t,e,n,r){const i={indexSplices:r};no&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(n+".splices",i),t.notifyPath(n+".length",e.length),no&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function gn(t,e,n,r,i,o){Gu(t,e,n,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function __(t){return t[0].toUpperCase()+t.substring(1)}const No=Be(t=>{const e=Lm(Tm(t));class n extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ge}_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(bn.length){let i=bn[bn.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[ge.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==ge.READ_ONLY);let a=Ci(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=Ci(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,ge.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,ge.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,ge.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,ge.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Ot(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=$e(this,i);if(i=Ws(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return qm(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&&ro(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[ge.NOTIFY]&&this[ge.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[ge.READ_ONLY]||!this[ge.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;Vm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Cn(this,this[ge.REFLECT],o,s,a),Cn(this,this[ge.OBSERVE],o,s,a),l&&Rm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[ge.PROPAGATE]&&Cn(this,this[ge.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{Cn(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=wn(i),o=wn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=wn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=$e(this,i,s);Gu(this,a,s.path,o)}get(i,o){return $e(o||this,i)}set(i,o,s){s?Ws(s,i,o):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=$e(this,i,s),l=a.length,u=a.push(...o);return o.length&&gn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.pop();return a&&gn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=$e(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)&&gn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=$e(this,i,o),a=!!s.length,l=s.shift();return a&&gn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=$e(this,i,s),l=a.unshift(...o);return o.length&&gn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=$e(this,i,a),s=a.path}else Array.isArray(i)?s=wn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,ge.READ_ONLY),o&&(this["_set"+__(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,ge.OBSERVE,{fn:Gs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,ge.OBSERVE,{fn:Gs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Ai(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");qs(this,s,ge.OBSERVE,oo,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,ge.NOTIFY,{fn:Um,info:{eventName:Yr(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,ge.REFLECT,{fn:Wm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Ai(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=qs(this,a,ge.COMPUTE,Wu,i,s);Ci(this,Uu)[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 C=In(c,o),v=Js(a,s,C?o:c);b={path:C?o:c,value:v,base:C?$e(a,c):v}}else b=h?Js(a,s,c):a[c];if(no&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return Hn;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),bn.push(this);let s=super._stampTemplate(i,o);if(bn.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,e_(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=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=Ks(l)||" ",Ei(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";Fm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Ks(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=Nu(a)),Ei(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Fs&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(am&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Fs||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Ei(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Zs.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 _=Ai(c),C=[];if(_){let{args:v,methodName:g}=_;for(let y=0;y<v.length;y++){let S=v[y];S.literal||C.push(S)}let x=o.dynamicFns;(x&&x[g]||_.static)&&(C.push(g),_.dynamicFn=!0)}else C.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:C,event:f}),a=Zs.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=oo(i,s,a,l,o.signature):s!=o.source?d=$e(i,o.source):u&&ro(s)?d=$e(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return n}),bn=[];/**
|
|
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 g_(t){const e={};for(let n in t){const r=t[n];e[n]=typeof r=="function"?{type:r}:r}return e}const b_=Be(t=>{const e=
|
|
2067
|
+
*/function g_(t){const e={};for(let n in t){const r=t[n];e[n]=typeof r=="function"?{type:r}:r}return e}const b_=Be(t=>{const e=Hu(t);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=g_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=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 v_="3.5.2",
|
|
2077
|
+
*/const v_="3.5.2",Qs=window.ShadyCSS&&window.ShadyCSS.cssBuild,y_=Be(t=>{const e=b_(No(t));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(!Qs){const h=u.content.querySelectorAll("style"),f=Du(u),b=mm(d),_=u.content.firstElementChild;for(let v=0;v<b.length;v++){let g=b[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let C=0;for(let v=0;v<f.length;v++){let g=f[v],x=h[C];x!==g?(g=g.cloneNode(!0),x.parentNode.insertBefore(g,x)):C++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),lm&&Qs&&nm){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&&(!Tr||im)&&(u=Nn.import(l,"template"),Tr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return v_}static _finalizeClass(){e._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):Tu||(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=Bo(u.url);else{const d=Nn.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=rm,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 Do(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?Pn(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])),om&&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=Pn(this.importPath)),Pn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Pu&&!(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.`),e._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
|
|
2085
|
+
*/const ea=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Yu{constructor(e,n){Xu(e,n);const r=n.reduce((i,o,s)=>i+qu(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function qu(t){if(t instanceof Yu)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function w_(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Yu)return qu(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Nt=function(e,...n){Xu(e,n);const r=document.createElement("template");let i=n.reduce((o,s,a)=>o+w_(s)+e[a+1],e[0]);return ea&&(i=ea.createHTML(i)),r.innerHTML=i,r},Xu=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.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,11 +2090,11 @@ 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
|
|
2093
|
+
*/const yt=y_(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
|
|
2097
|
+
*/const rt=[];function so(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):n!=null&&t.removeAttribute("dir")}function ao(){return document.documentElement.getAttribute("dir")}function C_(){const t=ao();rt.forEach(e=>{so(e,t)})}const E_=new MutationObserver(C_);E_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const qr=t=>class extends t{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(),so(this,ao(),null))}attributeChangedCallback(n,r,i){if(super.attributeChangedCallback(n,r,i),n!=="dir")return;const o=ao(),s=i===o&&rt.indexOf(this)===-1,a=!i&&r&&rt.indexOf(this)===-1;s||a?(this.__subscribe(),so(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=rt.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(){rt.includes(this)||rt.push(this)}__unsubscribe(){rt.includes(this)&&rt.splice(rt.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/
|
|
@@ -2171,11 +2171,11 @@ 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
|
-
*/ke("vaadin-input-container",x_,{moduleId:"vaadin-input-container-styles"});class T_ extends A_(
|
|
2174
|
+
*/ke("vaadin-input-container",x_,{moduleId:"vaadin-input-container-styles"});class T_ extends A_(Mt(qr(yt))){static get is(){return"vaadin-input-container"}static get template(){return Nt`
|
|
2175
2175
|
<slot name="prefix"></slot>
|
|
2176
2176
|
<slot></slot>
|
|
2177
2177
|
<slot name="suffix"></slot>
|
|
2178
|
-
`}}
|
|
2178
|
+
`}}nt(T_);/**
|
|
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/
|
|
@@ -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
|
|
2245
|
+
*/let Io=!1;window.addEventListener("keydown",()=>{Io=!0},{capture:!0});window.addEventListener("mousedown",()=>{Io=!1},{capture:!0});function lo(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Lo(){return Io}function S_(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none")return!0;const n=window.getComputedStyle(t);return n.visibility==="hidden"||n.display==="none"}function k_(t,e){const n=Math.max(t.tabIndex,0),r=Math.max(e.tabIndex,0);return n===0||r===0?r>n:n>r}function D_(t,e){const n=[];for(;t.length>0&&e.length>0;)k_(t[0],e[0])?n.push(e.shift()):n.push(t.shift());return n.concat(t,e)}function uo(t){const e=t.length;if(e<2)return t;const n=Math.ceil(e/2),r=uo(t.slice(0,n)),i=uo(t.slice(n));return D_(r,i)}function Zu(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function B_(t){return t.getRootNode().activeElement===t}function M_(t){if(!Zu(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}function Ku(t,e){if(t.nodeType!==Node.ELEMENT_NODE||S_(t))return!1;const n=t,r=M_(n);let i=r>0;r>=0&&e.push(n);let o=[];return n.localName==="slot"?o=n.assignedNodes({flatten:!0}):o=(n.shadowRoot||n).children,[...o].forEach(s=>{i=Ku(s,e)||i}),i}function O_(t){const e=[];return Ku(t,e)?uo(e):e}/**
|
|
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
|
|
2253
|
+
*/let co=!1,N_=[],Ju=[];function I_(){co=!0,requestAnimationFrame(function(){co=!1,L_(N_),setTimeout(function(){F_(Ju)})})}function L_(t){for(;t.length;)Qu(t.shift())}function F_(t){for(let e=0,n=t.length;e<n;e++)Qu(t.shift())}function Qu(t){const e=t[0],n=t[1],r=t[2];try{n.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function ed(t,e,n){co||I_(),Ju.push([t,e,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
|
|
2257
|
+
*/const Xr=t=>t.test(navigator.userAgent),ho=t=>t.test(navigator.platform),H_=t=>t.test(navigator.vendor);Xr(/Android/u);Xr(/Chrome/u)&&H_(/Google Inc/u);Xr(/Firefox/u);const R_=ho(/^iPad/u)||ho(/^Mac/u)&&navigator.maxTouchPoints>1,z_=ho(/^iPhone/u),td=z_||R_;Xr(/^((?!chrome|android).)*safari/iu);const U_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
|
|
2258
2258
|
* @license
|
|
2259
2259
|
* Copyright (c) 2017 Anton Korzunov
|
|
2260
2260
|
* SPDX-License-Identifier: MIT
|
|
2261
|
-
*/let Ut=new WeakMap,
|
|
2261
|
+
*/let Ut=new WeakMap,ir=new WeakMap,or={},xi=0;const ta=t=>t&&t.nodeType===Node.ELEMENT_NODE,Ti=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},$_=(t,e)=>ta(t)?e.map(n=>{if(!ta(n))return Ti(n,"is not a valid element"),null;let r=n;for(;r&&r!==t;){if(t.contains(r))return n;r=r.getRootNode().host}return Ti(n,"is not contained inside",t),null}).filter(n=>!!n):(Ti(t,"is not a valid element"),[]),W_=(t,e,n,r)=>{const i=$_(e,Array.isArray(t)?t:[t]);or[n]||(or[n]=new WeakMap);const o=or[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),C=_!==null&&_!=="false",v=(Ut.get(b)||0)+1,g=(o.get(b)||0)+1;Ut.set(b,v),o.set(b,g),s.push(b),v===1&&C&&ir.set(b,!0),g===1&&b.setAttribute(n,"true"),C||b.setAttribute(r,"true")}})};return d(e),a.clear(),xi+=1,()=>{s.forEach(c=>{const h=Ut.get(c)-1,f=o.get(c)-1;Ut.set(c,h),o.set(c,f),h||(ir.has(c)?ir.delete(c):c.removeAttribute(r)),f||c.removeAttribute(n)}),xi-=1,xi||(Ut=new WeakMap,Ut=new WeakMap,ir=new WeakMap,or={})}},nd=(t,e=document.body,n="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),W_(r,e,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 V_{constructor(e,n){this.host=e,this.callback=typeof n=="function"?n:()=>e}showModal(){const e=this.callback();this.__showOthers=
|
|
2265
|
+
*/class V_{constructor(e,n){this.host=e,this.callback=typeof n=="function"?n:()=>e}showModal(){const e=this.callback();this.__showOthers=nd(e)}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 j_{saveFocus(e){this.focusNode=e||
|
|
2269
|
+
*/class j_{saveFocus(e){this.focusNode=e||lo()}restoreFocus(e){const n=this.focusNode;if(!n)return;const r=e?e.preventScroll:!1;lo()===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
|
|
2273
|
+
*/const Pi=[];class G_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return O_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(B_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Pi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Pi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Pi).pop()&&e.key==="Tab"){e.preventDefault();const n=e.shiftKey;this.__focusNextElement(n)}}__focusNextElement(e=!1){const n=this.__focusableElements,r=e?-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,19 +2278,19 @@ 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 Y_=t=>class extends un(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new V_(this),this.__focusTrapController=new G_(this),this.__focusRestorationController=new j_}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=!
|
|
2281
|
+
*/const Y_=t=>class extends un(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new V_(this),this.__focusTrapController=new G_(this),this.__focusRestorationController=new j_}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=!Lo();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=lo();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
|
|
2285
|
+
*/const rd=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,e)=>t.__zIndex-e.__zIndex||0),fo=()=>rd().filter(t=>t.$.overlay),q_=t=>t===fo().pop(),X_=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return q_(this)}bringToFront(){let n="";const r=rd().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"),fo().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=fo();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 Z_=t=>class extends Y_(X_(t)){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),
|
|
2289
|
+
*/const Z_=t=>class extends Y_(X_(t)){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),td&&(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(),ed(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 K_(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function
|
|
2293
|
+
*/function K_(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function Fo(t){return t?new Set(t.split(" ")):new Set}function Zr(t){return t?[...t].join(" "):""}function id(t,e,n){const r=Fo(t.getAttribute(e));r.add(n),t.setAttribute(e,Zr(r))}function J_(t,e,n){const r=Fo(t.getAttribute(e));if(r.delete(n),r.size===0){t.removeAttribute(e);return}t.setAttribute(e,Zr(r))}function Q_(t){return t.nodeType===Node.TEXT_NODE&&t.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/
|
|
@@ -2298,11 +2298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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
|
|
2301
|
+
*/const Si={start:"top",end:"bottom"},ki={start:"left",end:"right"},na=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),t0=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=K_(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(n=>{n.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=e0(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,na.unobserve(r),n&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,na.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,Si,this,r),u=this.__calculatePositionInOneDimension(n,a,this.noHorizontalOverlap,ki,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,ki)}__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,Si)}__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===Si.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===ki.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 n0=t=>class extends t0(Z_(t)){_shouldCloseOnOutsideClick(n){return!n.composedPath().includes(this.positionTarget)}_mouseDownListener(n){super._mouseDownListener(n),this._shouldCloseOnOutsideClick(n)&&!
|
|
2305
|
+
*/const n0=t=>class extends t0(Z_(t)){_shouldCloseOnOutsideClick(n){return!n.composedPath().includes(this.positionTarget)}_mouseDownListener(n){super._mouseDownListener(n),this._shouldCloseOnOutsideClick(n)&&!Zu(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/
|
|
@@ -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
|
-
*/ke("vaadin-date-picker-overlay",[P_,r0],{moduleId:"vaadin-date-picker-overlay-styles"});class i0 extends n0(
|
|
2328
|
+
*/ke("vaadin-date-picker-overlay",[P_,r0],{moduleId:"vaadin-date-picker-overlay-styles"});class i0 extends n0(qr(Mt(yt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Nt`
|
|
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
|
-
`}}
|
|
2335
|
+
`}}nt(i0);const o0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,fr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function s0(){function t(){return!0}return od(t)}function a0(){try{return l0()?!0:u0()?fr?!d0():!s0():!1}catch(t){return!1}}function l0(){return localStorage.getItem("vaadin.developmentmode.force")}function u0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function d0(){return!!(fr&&Object.keys(fr).map(e=>fr[e]).filter(e=>e.productionMode).length>0)}function od(t,e){if(typeof t!="function")return;const n=o0.exec(t.toString());if(n)try{t=new Function(n[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(e)}window.Vaadin=window.Vaadin||{};const ra=function(t,e){if(window.Vaadin.developmentMode)return od(t,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=a0());function c0(){/*! 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 h0=function(){if(typeof
|
|
2813
|
+
vaadin-dev-mode:end **/}const h0=function(){if(typeof ra=="function")return ra(c0)};/**
|
|
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
|
|
2821
|
+
*/let ia=0,sd=0;const qt=[];let po=!1;function f0(){po=!1;const t=qt.length;for(let e=0;e<t;e++){const n=qt[e];if(n)try{n()}catch(r){setTimeout(()=>{throw r})}}qt.splice(0,t),sd+=t}const Sr={after(t){return{run(e){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}},p0={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},m0={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},_0={run(t){po||(po=!0,queueMicrotask(()=>f0())),qt.push(t);const e=ia;return ia+=1,e},cancel(t){const e=t-sd;if(e>=0){if(!qt[e])throw new Error(`invalid async handle: ${t}`);qt[e]=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,11 +2826,11 @@ 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
|
|
2829
|
+
*/const mo=new Set;let nn=class _o{static debounce(e,n,r){return e instanceof _o?e._cancelAsync():e=new _o,e.setConfig(n,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,n){this._asyncModule=e,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,mo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),mo.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 g0(t){mo.add(t)}/**
|
|
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(){h0()};let
|
|
2833
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){h0()};let Di;const oa=new Set,ad=t=>class extends qr(t){static finalize(){super.finalize();const{is:n}=this;n&&!oa.has(n)&&(window.Vaadin.registrations.push(this),oa.add(n),window.Vaadin.developmentModeCallback&&(Di=nn.debounce(Di,m0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),g0(Di)))}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/
|
|
@@ -2838,15 +2838,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 v0=0;function
|
|
2841
|
+
*/let v0=0;function ld(){return v0++}/**
|
|
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
|
|
2845
|
+
*/class Tt extends EventTarget{static generateId(e,n="default"){return`${n}-${e.localName}-${ld()}`}constructor(e,n,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=e,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(e,u||n))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const n=this.attachDefaultNode();n&&(this.nodes=[n],this.initNode(n))}else this.nodes=e,e.forEach(n=>{this.initAddedNode(n)})}attachDefaultNode(){const{host:e,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,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(n=>n.nodeType===Node.ELEMENT_NODE&&n.slot===e||n.nodeType===Node.TEXT_NODE&&n.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:n}=this;n&&n(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,n=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(n);this.__slotObserver=new b0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!Q_(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
|
|
2849
|
+
*/class ud extends Tt{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const n=this.node;n&&(n.ariaTarget=e)}setContext(e){this.context=e;const n=this.node;n&&(n.context=e)}setManual(e){this.manual=e;const n=this.node;n&&(n.manual=e)}setOpened(e){this.opened=e;const n=this.node;n&&(n.opened=e)}setPosition(e){this.position=e;const n=this.node;n&&(n._position=e)}setShouldShow(e){this.shouldShow=e;const n=this.node;n&&(n.shouldShow=e)}setTarget(e){this.target=e;const n=this.node;n&&(n.target=e)}__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/
|
|
@@ -2931,39 +2931,39 @@ 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 C0=t=>t,
|
|
2934
|
+
*/const C0=t=>t,dd=typeof document.head.style.touchAction=="string",go="__polymerGestures",Bi="__polymerGesturesHandled",bo="__polymerGesturesTouchAction",sa=25,aa=5,E0=2,A0=["mousedown","mousemove","mouseup","click"],x0=[0,1,4,2],T0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function Ho(t){return A0.indexOf(t)>-1}let P0=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){P0=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function S0(t){Ho(t)}const k0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),D0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function kt(t){const e=t.type;if(!Ho(e))return!1;if(e==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!T0&&(r=x0[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function B0(t){if(t.type==="click"){if(t.detail===0)return!0;const e=bt(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const n=e.getBoundingClientRect(),r=t.pageX,i=t.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}const it={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function M0(t){let e="auto";const n=hd(t);for(let r=0,i;r<n.length;r++)if(i=n[r],i[bo]){e=i[bo];break}return e}function cd(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function Xt(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const hd=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ro={},Pt=[];function O0(t,e){let n=document.elementFromPoint(t,e),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(t,e),i===r)break;r&&(n=r)}return n}function bt(t){const e=hd(t);return e.length>0?e[0]:t.target}function N0(t){const e=t.type,r=t.currentTarget[go];if(!r)return;const i=r[e];if(!i)return;if(!t[Bi]&&(t[Bi]={},e.startsWith("touch"))){const s=t.changedTouches[0];if(e==="touchstart"&&t.touches.length===1&&(it.touch.id=s.identifier),it.touch.id!==s.identifier)return;dd||(e==="touchstart"||e==="touchmove")&&I0(t)}const o=t[Bi];if(!o.skip){for(let s=0,a;s<Pt.length;s++)a=Pt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Pt.length;s++)a=Pt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](t))}}function I0(t){const e=t.changedTouches[0],n=t.type;if(n==="touchstart")it.touch.x=e.clientX,it.touch.y=e.clientY,it.touch.scrollDecided=!1;else if(n==="touchmove"){if(it.touch.scrollDecided)return;it.touch.scrollDecided=!0;const r=M0(t);let i=!1;const o=Math.abs(it.touch.x-e.clientX),s=Math.abs(it.touch.y-e.clientY);t.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?t.preventDefault():kr("track")}}function Qe(t,e,n){return Ro[e]?(L0(t,e,n),!0):!1}function L0(t,e,n){const r=Ro[e],i=r.deps,o=r.name;let s=t[go];s||(t[go]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(k0&&Ho(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,N0,S0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);t.addEventListener(e,n),r.touchAction&&fd(t,r.touchAction)}function zo(t){Pt.push(t),t.emits.forEach(e=>{Ro[e]=t})}function F0(t){for(let e=0,n;e<Pt.length;e++){n=Pt[e];for(let r=0,i;r<n.emits.length;r++)if(i=n.emits[r],i===t)return n}return null}function fd(t,e){dd&&t instanceof HTMLElement&&_0.run(()=>{t.style.touchAction=e}),t[bo]=e}function Uo(t,e,n){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,C0(t).dispatchEvent(r),r.defaultPrevented){const i=n.preventer||n.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function kr(t){const e=F0(t);e.info&&(e.info.prevent=!0)}zo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Xt(this.info)},mousedown(t){if(!kt(t))return;const e=bt(t),n=this,r=o=>{kt(o)||(vn("up",e,o),Xt(n.info))},i=o=>{kt(o)&&vn("up",e,o),Xt(n.info)};cd(this.info,r,i),vn("down",e,t)},touchstart(t){vn("down",bt(t),t.changedTouches[0],t)},touchend(t){vn("up",bt(t),t.changedTouches[0],t)}});function vn(t,e,n,r){e&&Uo(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent(i){return kr(i)}})}zo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>E0&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Xt(this.info)},mousedown(t){if(!kt(t))return;const e=bt(t),n=this,r=o=>{const s=o.clientX,a=o.clientY;la(n.info,s,a)&&(n.info.state=n.info.started?o.type==="mouseup"?"end":"track":"start",n.info.state==="start"&&kr("tap"),n.info.addMove({x:s,y:a}),kt(o)||(n.info.state="end",Xt(n.info)),e&&Mi(n.info,e,o),n.info.started=!0)},i=o=>{n.info.started&&r(o),Xt(n.info)};cd(this.info,r,i),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=bt(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;la(this.info,r,i)&&(this.info.state==="start"&&kr("tap"),this.info.addMove({x:r,y:i}),Mi(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend(t){const e=bt(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Mi(this.info,e,n))}});function la(t,e,n){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-e),i=Math.abs(t.y-n);return r>=aa||i>=aa}function Mi(t,e,n){if(!e)return;const r=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],o=i.x-t.x,s=i.y-t.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),Uo(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:n,hover(){return O0(n.clientX,n.clientY)}})}zo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){kt(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){kt(t)&&ua(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){ua(this.info,t.changedTouches[0],t)}});function ua(t,e,n){const r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),o=bt(n||e);!o||D0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=sa&&i<=sa||B0(e))&&(t.prevent||Uo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,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
|
|
2938
|
+
*/const pd=Be(t=>class extends t{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/
|
|
2942
|
-
*/const
|
|
2942
|
+
*/const Kr=Be(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",n=>{this._onKeyDown(n)}),this.addEventListener("keyup",n=>{this._onKeyUp(n)})}_onKeyDown(n){switch(n.key){case"Enter":this._onEnter(n);break;case"Escape":this._onEscape(n);break}}_onKeyUp(n){}_onEnter(n){}_onEscape(n){}});/**
|
|
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 H0=t=>class extends
|
|
2946
|
+
*/const H0=t=>class extends pd(Kr(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Qe(this,"down",n=>{this._shouldSetActive(n)&&this._setActive(!0)}),Qe(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
|
|
2950
|
+
*/const $o=Be(t=>class extends t{get _keyboardActive(){return Lo()}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
|
|
2954
|
+
*/const md=t=>class extends pd(t){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 R0=t=>class extends H0(
|
|
2958
|
+
*/const R0=t=>class extends H0(md($o(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(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
|
-
*/ke("vaadin-button",y0,{moduleId:"vaadin-button-styles"});class z0 extends R0(
|
|
2962
|
+
*/ke("vaadin-button",y0,{moduleId:"vaadin-button-styles"});class z0 extends R0(ad(Mt(un(yt)))){static get is(){return"vaadin-button"}static get template(){return w0(Nt)}ready(){super.ready(),this._tooltipController=new ud(this),this.addController(this._tooltipController)}}nt(z0);/**
|
|
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 U0(t){let e=t.getDay();e===0&&(e=7);const n=4-e,r=new Date(t.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
|
|
2966
|
+
*/function U0(t){let e=t.getDay();e===0&&(e=7);const n=4-e,r=new Date(t.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 vo(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function at(t,e,n=vo){return t instanceof Date&&e instanceof Date&&n(t).getTime()===n(e).getTime()}function Wo(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function rn(t,e,n,r){let i=!1;if(typeof r=="function"&&t){const o=Wo(t);i=r(o)}return(!e||t>=e)&&(!n||t<=n)&&!i}function _d(t,e){return e.filter(n=>n!==void 0).reduce((n,r)=>{if(!r)return n;if(!n)return r;const i=Math.abs(t.getTime()-r.getTime()),o=Math.abs(n.getTime()-t.getTime());return i<o?r:n})}function gd(t){const e=new Date,n=new Date(e);return n.setDate(1),n.setMonth(parseInt(t)+e.getMonth()),n}function $0(t,e,n=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(t.getFullYear()/100)*100;return t<new Date(i-50,n,r)?i-=100:t>new Date(i+50,n,r)&&(i+=100),i}function yn(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const n=new Date(0,0);return n.setFullYear(parseInt(e[1],10)),n.setMonth(parseInt(e[2],10)-1),n.setDate(parseInt(e[3],10)),n}function W0(t){const e=(l,u="00")=>(u+l).substr((u+l).length-u.length);let n="",r="0000",i=t.year;i<0?(i=-i,n="-",r="000000"):t.year>=1e4&&(n="+",r="000000");const o=n+e(i,r),s=e(t.month+1),a=e(t.day);return[o,s,a].join("-")}function V0(t){return t instanceof Date?W0({year:t.getFullYear(),month:t.getMonth(),day:t.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
|
|
2974
|
+
*/class Dr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,n){this._asyncModule=e,this._callback=n,this._timer=this._asyncModule.run(()=>{this._timer=null,Rn.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rn.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,n,r){return e instanceof Dr?e._cancelAsync():e=new Dr,e.setConfig(n,r),e}}let Rn=new Set;const j0=function(t){Rn.add(t)},G0=function(){const t=!!Rn.size;return Rn.forEach(e=>{try{e.flush()}catch(n){setTimeout(()=>{throw n})}}),t};/**
|
|
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
|
|
2982
|
+
*/const Vo=function(){let t,e;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=G0();while(t||e)};/**
|
|
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
|
|
2986
|
+
*/const bd=document.createElement("template");bd.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
|
|
3036
|
+
`;class vd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(bd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),n="background-position";this.$.fullHeight.style.setProperty(n,e);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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Vo()}_createElement(){}_updateElement(e,n){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(n=>{this._ensureStampedInstance(n._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const n=e?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 e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const n=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+n,i=e<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=nn.debounce(this._debouncerScrollFinish,Sr.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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=nn.debounce(this._debouncerUpdateClones,Sr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=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-${ld()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,n.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const n=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(n).forEach(r=>{e.instance[r]=n[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=e?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;(!e||this._isVisible(l,n))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(e,n){const r=e.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
|
|
3040
|
+
*/const yd=document.createElement("template");yd.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 Y0 extends
|
|
3052
|
+
`;class Y0 extends vd{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(yd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,n){e.month=gd(n)}}nt(Y0);/**
|
|
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
|
|
3056
|
+
*/const wd=document.createElement("template");wd.innerHTML=`
|
|
3057
3057
|
<style>
|
|
3058
3058
|
:host {
|
|
3059
3059
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3087,7 +3087,7 @@ 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 q0 extends
|
|
3090
|
+
`;class q0 extends vd{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(wd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,n){e.year=this._yearAfterXYears(n)}_yearAfterXYears(e){const n=new Date,r=new Date(n);return r.setFullYear(parseInt(e)+n.getFullYear()),r.getFullYear()}}nt(q0);/**
|
|
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/
|
|
@@ -3095,7 +3095,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Z0 extends
|
|
3098
|
+
*/class Z0 extends Mt(X0(yt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Nt`
|
|
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
|
-
`}}
|
|
3107
|
+
`}}nt(Z0);/**
|
|
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
|
|
3115
|
+
*/function jo(t,e,n,r,i){let o;i&&(o=typeof n=="object"&&n!==null,o&&(r=t.__dataTemp[e]));let s=r!==n&&(r===r||n===n);return o&&s&&(t.__dataTemp[e]=n),s}const Go=Be(t=>{class e extends t{_shouldPropertyChange(r,i,o){return jo(this,r,i,o,!0)}}return e}),K0=Be(t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return jo(this,r,i,o,this.mutableData)}}return e});Go._mutablePropertyChange=jo;/**
|
|
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
|
|
3123
|
+
*/let yo=null;function wo(){return yo}wo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wo,writable:!0}});const Cd=No(wo),J0=Go(Cd);function Q0(t,e){yo=t,Object.setPrototypeOf(t,e.prototype),new e,yo=null}const eg=No(class{});function tg(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),Ie(Ie(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Ie(Ie(i).parentNode).replaceChild(r,i)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class wt extends eg{constructor(e){super(),this._configureProperties(e),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;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,n){this._setPendingPropertyOrPath(e,n,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,n,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,n,r)}}_showHideChildren(e){tg(e,this.children)}_setUnmanagedPropertyToNode(e,n,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&n=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,n,r)}get parentModel(){let e=this.__parentModel;if(!e){let n;e=this;do e=e.__dataHost.__dataHost;while((n=e.__templatizeOptions)&&!n.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}wt.prototype.__dataHost;wt.prototype.__templatizeOptions;wt.prototype._methodHost;wt.prototype.__templatizeOwner;wt.prototype.__hostProps;const ng=Go(wt);function da(t){let e=t.__dataHost;return e&&e._methodHost||e}function rg(t,e,n){let r=n.mutableData?ng:wt;Co.mixin&&(r=Co.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(t),sg(i,t,e,n),i}function ig(t,e,n,r){let i=n.forwardHostProp;if(i&&e.hasHostProps){const o=t.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(o){let l=n.mutableData?J0:Cd;class u extends l{}s=e.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}s=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:og(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Pu&&r&&ug(e,n,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),o)Q0(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function og(t,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function sg(t,e,n,r){let i=n.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ag(o,s)})}if(r.forwardHostProp&&e.__dataHost)for(let o in i)n.hasHostProps||(n.hasHostProps=!0),t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lg()})}function ag(t,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function lg(){return function(e,n,r){e.__dataHost._setPendingPropertyOrPath("_host_"+n,r[n],!0,!0)}}function Co(t,e,n){if(Tr&&!da(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let i=(e?e.constructor:wt)._parseTemplate(t),o=i.templatizeInstanceClass;o||(o=rg(t,i,n),i.templatizeInstanceClass=o);const s=da(t);ig(t,i,n,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function ug(t,e,n){const r=n.constructor._properties,{propertyEffects:i}=t,{instanceProps:o}=e;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 dg(t,e){let n;for(;e;)if(n=e.__dataHost?e:e.__templatizeInstance)if(n.__dataHost!=t)e=n.__dataHost;else return n;else e=Ie(e).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
|
|
3131
|
+
*/let ca=!1;function cg(){if(Tu&&!xu){if(!ca){ca=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}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,11 +3136,11 @@ 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 hg=K0(
|
|
3139
|
+
*/const hg=K0(yt);class ha extends hg{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:!Hs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),cg()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Ie(Ie(this).parentNode);for(let n=0;n<this.__instances.length;n++)this.__attachInstance(n,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let n=this.template=e._templateInfo?e: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=Co(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(_m(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Ln(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let n=e,r=this.__getMethodHost();return function(){return r[n].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let n=this.__observePaths;for(let r=0;r<n.length;r++)e.indexOf(n[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,n=0){this.__renderDebouncer=Dr.debounce(this.__renderDebouncer,n>0?Cm.after(n):Fu,e.bind(this)),j0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Vo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const n=this.__sortAndFilterItems(e),r=this.__calculateLimit(n.length);this.__updateInstances(e,r,n),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Hs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=r;return this.__filterFn&&(n=n.filter((r,i,o)=>this.__filterFn(e[r],i,o))),this.__sortFn&&n.sort((r,i)=>this.__sortFn(e[r],e[i])),n}__calculateLimit(e){let n=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(e,this.initialCount),i=Math.max(n-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),n=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=n<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,n=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*n)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,n,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<n;o++){let s=this.__instances[o],a=r[o],l=e[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(e){let n=this.__instances[e];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(e,n){let r=this.__instances[e];n.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,n,r){let i={};return i[this.as]=e,i[this.indexAs]=n,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,n,r){const i=this.__stampInstance(e,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(e){for(let n=0;n<this.__instances.length;n++)this.__instances[n]._showHideChildren(e)}__handleItemPath(e,n){let r=e.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(e){let n=this.modelForElement(e);return n&&n[this.as]}indexForElement(e){let n=this.modelForElement(e);return n&&n[this.indexAs]}modelForElement(e){return dg(this.template,e)}}customElements.define(ha.is,ha);/**
|
|
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 fg=t=>class extends
|
|
3143
|
+
*/const fg=t=>class extends $o(t){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},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=>at(n.date,this.focusedDate))}ready(){super.ready(),Qe(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:!rn(o,r,i)&&!rn(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=>at(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 at(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 U0(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/
|
|
@@ -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
|
-
*/ke("vaadin-month-calendar",pg,{moduleId:"vaadin-month-calendar-styles"});class mg extends fg(
|
|
3207
|
+
*/ke("vaadin-month-calendar",pg,{moduleId:"vaadin-month-calendar-styles"});class mg extends fg(Mt(yt)){static get template(){return Nt`
|
|
3208
3208
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3209
3209
|
<table
|
|
3210
3210
|
id="monthGrid"
|
|
@@ -3246,15 +3246,15 @@ 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(e,n){e&&n&&n.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,n,r,i,o,s){const a=["date"],l=e>
|
|
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(e,n){e&&n&&n.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,n,r,i,o,s){const a=["date"],l=e>vo(new Date),u=e<vo(new Date);return this.__isDayDisabled(e,i,o,s)&&a.push("disabled"),this.__isDayFocused(e,n)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,n){return at(e,n)}__isDaySelected(e,n){return at(e,n)}__getDayAriaSelected(e,n){if(this.__isDaySelected(e,n))return"true"}__isDayDisabled(e,n,r,i){return!rn(e,n,r,i)}__getDayAriaDisabled(e,n,r,i){if(!(e===void 0||n===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,n,r,i))return"true"}__getDayTabindex(e,n){return this.__isDayFocused(e,n)?"0":"-1"}}nt(mg);/**
|
|
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
|
|
3253
|
+
*/class Ed{constructor(e,n){this.query=e,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(e){typeof this.callback=="function"&&this.callback(e.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 _g=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_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(){hd(this.$.scrollers,"pan-y"),Ke(this.$.scrollers,"track",this._track.bind(this)),Ke(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ke(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ke(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Cd(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)),Ke(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)),Ke(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"),Ke(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=nn.debounce(this._debouncer,Pr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(n,r,i){return n&&r&&typeof r.formatDate=="function"?r.formatDate(Uo(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 _d(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){lt(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&<(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(n,r){return We(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 We(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{Qu(this,()=>{$o(),r()})})),n&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(n){this.focusDate(md(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 rn(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 _g=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_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(){fd(this.$.scrollers,"pan-y"),Qe(this.$.scrollers,"track",this._track.bind(this)),Qe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Qe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Qe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ed(this._desktopMediaQuery,n=>{this._desktopMode=n})),this.addController(new Tt(this,"today-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Qe(n,"tap",this._onTodayTap.bind(this)),this._todayButton=n}})),this.addController(new Tt(this,"cancel-button","vaadin-button",{observe:!1,initializer:n=>{n.setAttribute("theme","tertiary"),n.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Qe(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 Tt(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 Tt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:n=>{n.setAttribute("aria-hidden","true"),Qe(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=nn.debounce(this._debouncer,Sr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(n,r,i){return n&&r&&typeof r.formatDate=="function"?r.formatDate(Wo(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 gd(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){at(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&&at(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(n,r){return Ve(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 Ve(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{ed(this,()=>{Vo(),r()})})),n&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(n){this.focusDate(_d(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 rn(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/
|
|
@@ -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
|
-
*/ke("vaadin-date-picker-overlay-content",gg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bg extends _g(un(
|
|
3325
|
+
*/ke("vaadin-date-picker-overlay-content",gg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bg extends _g(un(Mt(qr(yt)))){static get template(){return Nt`
|
|
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,51 +3342,51 @@ 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()}}
|
|
3345
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}nt(bg);/**
|
|
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
|
|
3349
|
+
*/const Ad=Be(t=>class extends $o(md(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(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
|
|
3353
|
+
*/const Oi=new WeakMap;function vg(t){return Oi.has(t)||Oi.set(t,new Set),Oi.get(t)}function yg(t,e){const n=document.createElement("style");n.textContent=t,e===document?document.head.appendChild(n):e.insertBefore(n,e.firstChild)}const wg=Be(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),r=vg(n);this.slotStyles.forEach(i=>{r.has(i)||(yg(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
|
|
3357
|
+
*/const xd=Be(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(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 Cg=t=>class extends
|
|
3361
|
+
*/const Cg=t=>class extends xd(Kr(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",n=>this._onClearButtonMouseDown(n)),this.clearElement.addEventListener("click",n=>this._onClearButtonClick(n)))}_onClearButtonClick(n){n.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(n){n.preventDefault(),U_||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
|
|
3365
|
+
*/const Ni=new Map;function Yo(t){return Ni.has(t)||Ni.set(t,new WeakMap),Ni.get(t)}function Td(t,e){t&&t.removeAttribute(e)}function Pd(t,e){if(!t||!e)return;const n=Yo(e);if(n.has(t))return;const r=Fo(t.getAttribute(e));n.set(t,new Set(r))}function Eg(t,e){if(!t||!e)return;const n=Yo(e),r=n.get(t);!r||r.size===0?t.removeAttribute(e):id(t,e,Zr(r)),n.delete(t)}function Ii(t,e,n={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:i,fromUser:o}=n,s=Yo(e),a=s.get(t);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(t):Pd(t,e),Td(t,e)),J_(t,e,i);const l=r||Zr(a);l&&id(t,e,l)}function Ag(t,e){Pd(t,e),Td(t,e)}/**
|
|
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 xg{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,n=!1){const r=n?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,n),n?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Ag(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Eg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,n,r){
|
|
3369
|
+
*/class xg{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,n=!1){const r=n?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,n),n?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Ag(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Eg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,n,r){Ii(this.__target,"aria-labelledby",{newId:e,oldId:n,fromUser:r})}__setErrorIdToAriaAttribute(e,n){Ii(this.__target,"aria-describedby",{newId:e,oldId:n,fromUser:!1})}__setHelperIdToAriaAttribute(e,n){Ii(this.__target,"aria-describedby",{newId:e,oldId:n,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?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
|
|
3373
|
+
*/const Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let sr;function Tg(t,e={}){const n=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;n==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),sr=nn.debounce(sr,p0,()=>{Xe.setAttribute("role","alert")})):(sr&&sr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",n)),Xe.textContent="",setTimeout(()=>{Xe.textContent=t},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
|
|
3377
|
+
*/class qo extends Tt{constructor(e,n,r,i={}){super(e,n,r,hn(ft({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const n=this.getSlotChild();n&&n!==this.defaultNode?this.__notifyChange(n):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(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(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const n=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||n)&&!e.id&&(e.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
|
|
3381
|
+
*/class Pg extends qo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:n,invalid:r}=this,i=!!(r&&n&&n.trim()!=="");e&&(e.textContent=i?n:"",e.hidden=!i,i&&Tg(n,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
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 Sg extends
|
|
3385
|
+
*/class Sg extends qo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
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 kg extends
|
|
3389
|
+
*/class kg extends qo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const n=this.attachDefaultNode();this.observeNode(n)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
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/
|
|
@@ -3394,11 +3394,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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
|
|
3397
|
+
*/const Sd=Be(t=>class extends t{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=t=>class extends
|
|
3401
|
+
*/const Bg=t=>class extends Sd(Dg(un(t))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new xg(this),this._helperController=new Sg(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)})}};/**
|
|
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/
|
|
@@ -3406,20 +3406,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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
|
|
3409
|
+
*/const kd=Be(t=>class extends Mg(Sd(xd(t))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(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 Og=t=>class extends wg(
|
|
3413
|
+
*/const Og=t=>class extends wg(Ad(kd(Bg(Cg(Kr(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3414
3414
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3415
3415
|
font: inherit;
|
|
3416
3416
|
color: inherit;
|
|
3417
3417
|
}
|
|
3418
|
-
`]}_onFocus(n){super._onFocus(n),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(n){n.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:n},bubbles:n.bubbles,cancelable:n.cancelable}))}_addInputListeners(n){super._addInputListeners(n),n.addEventListener("paste",this._boundOnPaste),n.addEventListener("drop",this._boundOnDrop),n.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(n){super._removeInputListeners(n),n.removeEventListener("paste",this._boundOnPaste),n.removeEventListener("drop",this._boundOnDrop),n.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(n){super._onKeyDown(n),this.allowedCharPattern&&!this.__shouldAcceptKey(n)&&n.target===this.inputElement&&(n.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=nn.debounce(this._preventInputDebouncer,
|
|
3418
|
+
`]}_onFocus(n){super._onFocus(n),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(n){n.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:n},bubbles:n.bubbles,cancelable:n.cancelable}))}_addInputListeners(n){super._addInputListeners(n),n.addEventListener("paste",this._boundOnPaste),n.addEventListener("drop",this._boundOnDrop),n.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(n){super._removeInputListeners(n),n.removeEventListener("paste",this._boundOnPaste),n.removeEventListener("drop",this._boundOnDrop),n.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(n){super._onKeyDown(n),this.allowedCharPattern&&!this.__shouldAcceptKey(n)&&n.target===this.inputElement&&(n.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=nn.debounce(this._preventInputDebouncer,Sr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(n){return n.metaKey||n.ctrlKey||!n.key||n.key.length!==1||this.__allowedCharRegExp.test(n.key)}_onPaste(n){if(this.allowedCharPattern){const r=n.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(n.preventDefault(),this._markInputPrevented())}}_onDrop(n){if(this.allowedCharPattern){const r=n.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(n.preventDefault(),this._markInputPrevented())}}_onBeforeInput(n){this.allowedCharPattern&&n.data&&!this.__allowedTextRegExp.test(n.data)&&(n.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(n){if(n)try{this.__allowedCharRegExp=new RegExp(`^${n}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${n}*$`,"u")}catch(r){console.error(r)}}};/**
|
|
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 Ng extends
|
|
3422
|
+
*/class Ng extends Tt{constructor(e,n,r={}){const{uniqueIdPrefix:i}=r;super(e,"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/
|
|
@@ -3506,7 +3506,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 $g=t=>class extends zg(un(Ed(Sd(Zr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled: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?bn(this.referenceDate):new Date;a=$0(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:ed},_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&&!No()&&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 Cd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Ug(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=bn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(n){if(this.i18n.formatDate)return this.i18n.formatDate(Uo(n))}checkValidity(){const n=this._inputElementValue,r=!n||!!this._selectedDate&&n===this.__formatDate(this._selectedDate),i=!this._selectedDate||rn(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 V0(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=bn(n);if(n&&!i){this.value=r;return}n?lt(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=td(s)}_getInitialPosition(){const n=bn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||n||new Date;return n||rn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?md(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,lt(n,this._focusedDate)||(this._focusedDate=n),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(n){return bn(n)}};/**
|
|
3509
|
+
*/const $g=t=>class extends zg(un(Ad(kd(Kr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled: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?yn(this.referenceDate):new Date;a=$0(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:td},_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&&!Lo()&&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 Ed(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Ug(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=yn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(n){if(this.i18n.formatDate)return this.i18n.formatDate(Wo(n))}checkValidity(){const n=this._inputElementValue,r=!n||!!this._selectedDate&&n===this.__formatDate(this._selectedDate),i=!this._selectedDate||rn(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 V0(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=yn(n);if(n&&!i){this.value=r;return}n?at(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=nd(s)}_getInitialPosition(){const n=yn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||n||new Date;return n||rn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?_d(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,at(n,this._focusedDate)||(this._focusedDate=n),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(n){return yn(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/
|
|
@@ -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
|
-
*/ke("vaadin-date-picker",[Rg,Wg],{moduleId:"vaadin-date-picker-styles"});class Vg extends $g(Og(
|
|
3530
|
+
*/ke("vaadin-date-picker",[Rg,Wg],{moduleId:"vaadin-date-picker-styles"});class Vg extends $g(Og(Mt(ad(yt)))){static get is(){return"vaadin-date-picker"}static get template(){return Nt`
|
|
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 Ng(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Ig(this.inputElement,this._labelController)),this._tooltipController=new ld(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}et(Vg);function jg(t){Dr(t,"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 Gg(t){let e,n,r;return{c(){e=E("span"),n=D(t[0]),r=D(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){I(i,e,o),p(e,n),p(e,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&O(e)}}}function Yg(t){let e,n,r,i,o,s,a,l,u;const d=t[10].default,c=zn(d,t,t[9],null),h=c||Gg(t);return{c(){e=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=z(),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",t[5]),m(i,"stroke-dashoffset",o=t[4]()),se(i,"Completed",t[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",t[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){I(f,e,b),p(e,n),p(n,r),p(n,i),t[11](i),p(n,s),p(e,a),p(e,l),h&&h.m(l,null),t[12](e),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)&&$n(c,d,f,f[9],u?Un(d,f[9],b,null):Wn(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Xe(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&O(e),t[11](null),h&&h.d(f),t[12](null)}}}let ha=64.5;function qg(t,e,n){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(ha*2),f,b;Br(()=>()=>{});function _(v){st[v?"unshift":"push"](()=>{c=v,n(3,c)})}function w(v){st[v?"unshift":"push"](()=>{f=v,n(2,f)})}return t.$$set=v=>{"value"in v&&n(0,s=v.value),"status"in v&&n(1,a=v.status),"mbsource"in v&&n(6,l=v.mbsource),"clientstyling"in v&&n(7,u=v.clientstyling),"clientstylingurl"in v&&n(8,d=v.clientstylingurl),"$$scope"in v&&n(9,o=v.$$scope)},t.$$.update=()=>{t.$$.dirty&132&&u&&f&&Ur(f,u),t.$$.dirty&260&&d&&f&&$r(f,d),t.$$.dirty&68&&l&&f&&Wr(f,`${l}.Style`,b),t.$$.dirty&1&&n(4,r=()=>{var v=Math.PI*(ha*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,_,w]}class Xg extends Nr{constructor(e){super(),Mr(this,e,qg,Yg,Rn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},jg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),ue()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-progress",Or(Xg,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const fa=t=>Zg[t],Zg={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 Kg(t){Dr(t,"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 pa(t,e,n){const r=t.slice();return r[82]=e[n],r[84]=n,r}function ma(t,e,n){const r=t.slice();return r[85]=e[n],r}function _a(t,e,n){const r=t.slice();return r[76]=e[n],r}function ga(t,e,n){const r=t.slice();return r[79]=e[n],r}function ba(t,e,n){const r=t.slice();return r[88]=e[n],r[90]=n,r}function va(t){var Q;let e,n,r,i,o,s=t[33](t[5]).indexOf("Casino")>-1,a,l=t[33](t[5]).indexOf("Sports")>-1,u,d=(t[5].name||((Q=t[5].presentation)==null?void 0:Q.name.content))+"",c,h,f,b,_,w,v,g=s&&ya(t),x=l&&wa(t),y=[t[41]("TitleIcon")],S={};for(let C=0;C<y.length;C+=1)S=k(S,y[C]);let A=[t[41]("BonusCardRowTitle")],F={};for(let C=0;C<A.length;C+=1)F=k(F,A[C]);function j(C,M){if(C[0]==="active")return Qg;if(C[0]==="completed")return Jg}let G=j(t),H=G&&G(t),B=[t[41]("BonusCardHeader")],$={};for(let C=0;C<B.length;C+=1)$=k($,B[C]);let X=eb(t),K=t[10]&&La(t);function L(C,M){return C[14]?yb:vb}let N=L(t),ne=N(t),_e=[t[41]("BonusCardFooter")],le={};for(let C=0;C<_e.length;C+=1)le=k(le,_e[C]);let Y=[t[41]("BonusCardInfo")],oe={};for(let C=0;C<Y.length;C+=1)oe=k(oe,Y[C]);let Z=t[9]&&ja(t),ie=[t[41]("BonusCard")],J={};for(let C=0;C<ie.length;C+=1)J=k(J,ie[C]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),x&&x.c(),u=z(),c=D(d),h=z(),H&&H.c(),f=z(),X&&X.c(),b=z(),_=E("div"),K&&K.c(),w=z(),ne.c(),v=z(),Z&&Z.c(),P(o,S),P(i,F),P(r,$),P(_,le),se(_,"Active",t[11]||t[12]),P(n,oe),P(e,J)},m(C,M){I(C,e,M),p(e,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),x&&x.m(o,null),p(i,u),p(i,c),p(r,h),H&&H.m(r,null),p(n,f),X&&X.m(n,null),p(n,b),p(n,_),K&&K.m(_,null),p(_,w),ne.m(_,null),p(e,v),Z&&Z.m(e,null),t[59](e)},p(C,M){var ce;M[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g?g.p(C,M):(g=ya(C),g.c(),g.m(o,a)):g&&(g.d(1),g=null),M[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?x?x.p(C,M):(x=wa(C),x.c(),x.m(o,null)):x&&(x.d(1),x=null),M[0]&32&&d!==(d=(C[5].name||((ce=C[5].presentation)==null?void 0:ce.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(C))&&H?H.p(C,M):(H&&H.d(1),H=G&&G(C),H&&(H.c(),H.m(r,null))),X.p(C,M),C[10]?K?K.p(C,M):(K=La(C),K.c(),K.m(_,w)):K&&(K.d(1),K=null),N===(N=L(C))&&ne?ne.p(C,M):(ne.d(1),ne=N(C),ne&&(ne.c(),ne.m(_,null))),M[0]&6144&&se(_,"Active",C[11]||C[12]),C[9]?Z?Z.p(C,M):(Z=ja(C),Z.c(),Z.m(e,null)):Z&&(Z.d(1),Z=null)},d(C){C&&O(e),g&&g.d(),x&&x.d(),H&&H.d(),X&&X.d(),K&&K.d(),ne.d(),Z&&Z.d(),t[59](null)}}}function ya(t){let e,n,r,i,o,s,a,l,u,d,c,h,f,b=[t[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let w=0;w<b.length;w+=1)_=k(_,b[w]);return{c(){e=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"),vl(e,_)},m(w,v){I(w,e,v),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},p:Pe,d(w){w&&O(e)}}}function wa(t){let e,n,r,i,o,s,a=[t[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=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"),vl(e,l)},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s)},p:Pe,d(u){u&&O(e)}}}function Jg(t){let e,n=t[25](`bonusCard.${t[5].status}`)+"",r,i=[t[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=D(n),P(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&re(r,n,o.contenteditable)},d(s){s&&O(e)}}}function Qg(t){let e,n,r,i,o,s=[t[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),n=ee("svg"),r=ee("path"),i=z(),o=D(t[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"),P(e,a)},m(l,u){I(l,e,u),p(e,n),p(n,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&re(o,l[18],a.contenteditable)},d(l){l&&O(e)}}}function eb(t){let e,n,r;function i(h,f){return h[0]==="claimable"?nb:tb}let o=i(t),s=o(t),a=[t[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(t[0]==="active"||t[0]==="completed")&&Oa(t),d=[t[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),n=E("div"),s.c(),r=z(),u&&u.c(),P(n,l),P(e,c)},m(h,f){I(h,e,f),p(e,n),s.m(n,null),p(e,r),u&&u.m(e,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=Oa(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&O(e),s.d(),u&&u.d()}}}function tb(t){let e,n,r=t[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=t[25]("bonusCard.bonusType")+"",h,f,b,_,w=t[25](`bonusType.${t[5].type}`)+"",v,g,x,y,S,A,F=[t[41]("BonusCardLabel")],j={};for(let C=0;C<F.length;C+=1)j=k(j,F[C]);function G(C,M){return C[0]==="active"?ib:rb}let H=G(t),B=H(t),$=[t[41]("BonusCardRowText")],X={};for(let C=0;C<$.length;C+=1)X=k(X,$[C]);let K=[t[41]("BonusCardRow")],L={};for(let C=0;C<K.length;C+=1)L=k(L,K[C]);let N=[t[41]("BonusCardLabel")],ne={};for(let C=0;C<N.length;C+=1)ne=k(ne,N[C]);let _e=[t[41]("BonusCardRowText","Type")],le={};for(let C=0;C<_e.length;C+=1)le=k(le,_e[C]);let Y=[t[41]("BonusCardRow")],oe={};for(let C=0;C<Y.length;C+=1)oe=k(oe,Y[C]);let Z=t[5].type==="standard"&&Ca(t),ie=t[5].type==="freeBet"&&Ea(t),J=t[5].type==="freeRound"&&Aa(t),Q=t[5].type==="wagering"&&Pa(t);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),B.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),b=z(),_=E("span"),v=D(w),g=z(),Z&&Z.c(),x=z(),ie&&ie.c(),y=z(),J&&J.c(),S=z(),Q&&Q.c(),A=Qe(),P(n,j),P(a,X),se(a,"StatusActive",t[0]==="active"),se(a,"StatusCompleted",t[0]==="completed"),se(a,"StatusClaimable",t[0]==="claimable"),P(e,L),P(d,ne),P(_,le),P(u,oe)},m(C,M){I(C,e,M),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),B.m(a,null),I(C,l,M),I(C,u,M),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,v),I(C,g,M),Z&&Z.m(C,M),I(C,x,M),ie&&ie.m(C,M),I(C,y,M),J&&J.m(C,M),I(C,S,M),Q&&Q.m(C,M),I(C,A,M)},p(C,M){M[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),H===(H=G(C))&&B?B.p(C,M):(B.d(1),B=H(C),B&&(B.c(),B.m(a,null))),M[0]&1&&se(a,"StatusActive",C[0]==="active"),M[0]&1&&se(a,"StatusCompleted",C[0]==="completed"),M[0]&1&&se(a,"StatusClaimable",C[0]==="claimable"),M[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&re(h,c,ne.contenteditable),M[0]&33554464&&w!==(w=C[25](`bonusType.${C[5].type}`)+"")&&re(v,w,le.contenteditable),C[5].type==="standard"?Z?Z.p(C,M):(Z=Ca(C),Z.c(),Z.m(x.parentNode,x)):Z&&(Z.d(1),Z=null),C[5].type==="freeBet"?ie?ie.p(C,M):(ie=Ea(C),ie.c(),ie.m(y.parentNode,y)):ie&&(ie.d(1),ie=null),C[5].type==="freeRound"?J?J.p(C,M):(J=Aa(C),J.c(),J.m(S.parentNode,S)):J&&(J.d(1),J=null),C[5].type==="wagering"?Q?Q.p(C,M):(Q=Pa(C),Q.c(),Q.m(A.parentNode,A)):Q&&(Q.d(1),Q=null)},d(C){C&&(O(e),O(l),O(u),O(g),O(x),O(y),O(S),O(A)),B.d(),Z&&Z.d(C),ie&&ie.d(C),J&&J.d(C),Q&&Q.d(C)}}}function nb(t){let e,n,r=t[25]("bonusCard.bonusType")+"",i,o,s,a,l=t[25](`bonusType.${t[5].type}`)+"",u,d,c,h,f,b,_,w,v=t[25]("bonusCard.validity")+"",g,x,y,S,A=t[32](t[5])+"",F,j,G,H,B=t[25]("bonusCard.validUntil")+"",$,X,K,L,N=t[39](t[5].trigger.endTime)+"",ne,_e=[t[41]("BonusCardLabel")],le={};for(let U=0;U<_e.length;U+=1)le=k(le,_e[U]);let Y=[t[41]("BonusCardRowText","Type")],oe={};for(let U=0;U<Y.length;U+=1)oe=k(oe,Y[U]);let Z=[t[41]("BonusCardRow")],ie={};for(let U=0;U<Z.length;U+=1)ie=k(ie,Z[U]);let J=t[5].type==="standard"&&ka(t),Q=t[5].type==="freeBet"&&Da(t),C=t[5].type==="freeRound"&&Ba(t),M=t[5].type==="wagering"&&Ma(t),ce=[t[41]("BonusCardLabel")],Me={};for(let U=0;U<ce.length;U+=1)Me=k(Me,ce[U]);let q=[t[41]("BonusCardRowText")],W={};for(let U=0;U<q.length;U+=1)W=k(W,q[U]);let xe=[t[41]("BonusCardRow")],Ce={};for(let U=0;U<xe.length;U+=1)Ce=k(Ce,xe[U]);let tt=[t[41]("BonusCardLabel")],ct={};for(let U=0;U<tt.length;U+=1)ct=k(ct,tt[U]);let je=[t[41]("BonusCardRowText")],ht={};for(let U=0;U<je.length;U+=1)ht=k(ht,je[U]);let Et=[t[41]("BonusCardRow")],nt={};for(let U=0;U<Et.length;U+=1)nt=k(nt,Et[U]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),J&&J.c(),c=z(),Q&&Q.c(),h=z(),C&&C.c(),f=z(),M&&M.c(),b=z(),_=E("p"),w=E("span"),g=D(v),x=D(":"),y=z(),S=E("span"),F=D(A),j=z(),G=E("p"),H=E("span"),$=D(B),X=D(":"),K=z(),L=E("span"),ne=D(N),P(n,le),P(a,oe),P(e,ie),P(w,Me),P(S,W),P(_,Ce),P(H,ct),P(L,ht),P(G,nt)},m(U,be){I(U,e,be),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(U,d,be),J&&J.m(U,be),I(U,c,be),Q&&Q.m(U,be),I(U,h,be),C&&C.m(U,be),I(U,f,be),M&&M.m(U,be),I(U,b,be),I(U,_,be),p(_,w),p(w,g),p(w,x),p(_,y),p(_,S),p(S,F),I(U,j,be),I(U,G,be),p(G,H),p(H,$),p(H,X),p(G,K),p(G,L),p(L,ne)},p(U,be){be[0]&33554432&&r!==(r=U[25]("bonusCard.bonusType")+"")&&re(i,r,le.contenteditable),be[0]&33554464&&l!==(l=U[25](`bonusType.${U[5].type}`)+"")&&re(u,l,oe.contenteditable),U[5].type==="standard"?J?J.p(U,be):(J=ka(U),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),U[5].type==="freeBet"?Q?Q.p(U,be):(Q=Da(U),Q.c(),Q.m(h.parentNode,h)):Q&&(Q.d(1),Q=null),U[5].type==="freeRound"?C?C.p(U,be):(C=Ba(U),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),U[5].type==="wagering"?M?M.p(U,be):(M=Ma(U),M.c(),M.m(b.parentNode,b)):M&&(M.d(1),M=null),be[0]&33554432&&v!==(v=U[25]("bonusCard.validity")+"")&&re(g,v,Me.contenteditable),be[0]&32&&A!==(A=U[32](U[5])+"")&&re(F,A,W.contenteditable),be[0]&33554432&&B!==(B=U[25]("bonusCard.validUntil")+"")&&re($,B,ct.contenteditable),be[0]&32&&N!==(N=U[39](U[5].trigger.endTime)+"")&&re(ne,N,ht.contenteditable)},d(U){U&&(O(e),O(d),O(c),O(h),O(f),O(b),O(_),O(j),O(G)),J&&J.d(U),Q&&Q.d(U),C&&C.d(U),M&&M.d(U)}}}function rb(t){let e=t[25](`bonusCard.${t[5].status}`)+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,e)},d(r){r&&O(n)}}}function ib(t){let e=t[25](`bonusCard.${t[0]}`)+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,e)},d(r){r&&O(n)}}}function Ca(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h,f,b=t[5].amount+"",_,w,v,g,x,y=t[25]("bonusCard.wageredAmount")+"",S,A,F,j,G=t[29](t[5])+t[17]+"",H,B,$=[t[41]("BonusCardLabel")],X={};for(let M=0;M<$.length;M+=1)X=k(X,$[M]);let K=[t[41]("BonusCardRowText")],L={};for(let M=0;M<K.length;M+=1)L=k(L,K[M]);let N=[t[41]("BonusCardRow")],ne={};for(let M=0;M<N.length;M+=1)ne=k(ne,N[M]);let _e=[t[41]("BonusCardLabel")],le={};for(let M=0;M<_e.length;M+=1)le=k(le,_e[M]);function Y(M,ce){return M[5].initialWagerRequirementAmount>=2147483647?sb:ob}let oe=Y(t),Z=oe(t),ie=[t[41]("BonusCardRowText")],J={};for(let M=0;M<ie.length;M+=1)J=k(J,ie[M]);let Q=[t[41]("BonusCardRow")],C={};for(let M=0;M<Q.length;M+=1)C=k(C,Q[M]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(t[17]),h=D(` /
|
|
3573
|
-
`),f=E("span"),_=D(b),
|
|
3574
|
-
`),Z.c(),P(n,
|
|
3575
|
-
`),a.c(),i=
|
|
3576
|
-
`),a=D(s),l=z(),u=D(t[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&&e!==(e=c[30](c[5])+"")&&fe(n,e),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&&(
|
|
3577
|
-
`),w.c(),P(n,f),P(o,g),P(e,y)},m(A,F){I(A,e,F),p(e,n),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),w.m(o,null)},p(A,F){var j;P(n,f=Se(h,[A[41]("CircularProgress"),F[0]&32&&r!==(r=A[31](A[5]))&&{value:r},F[0]&1&&{status:A[0]},F[0]&4&&{clientstyling:A[2]},F[0]&8&&{clientstylingurl:A[3]},F[0]&2&&{mbsource:A[1]}])),F[0]&33554432&&s!==(s=A[25]("bonusCard.level")+"")&&re(a,s,g.contenteditable),F[0]&32&&u!==(u=(((j=A[5].wageringProgress)==null?void 0:j.currentLevel)||1)+"")&&re(d,u,g.contenteditable),_===(_=b(A))&&w?w.p(A,F):(w.d(1),w=_(A),w&&(w.c(),w.m(o,null)))},d(A){A&&O(e),w.d()}}}function fb(t){let e;return{c(){e=D("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&O(e)}}}function pb(t){let e;return{c(){e=D(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&O(e)}}}function La(t){let e,n,r,i,o,s,a=t[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[t[41]("BonusCardAdditionalTitle")],_={};for(let H=0;H<b.length;H+=1)_=k(_,b[H]);function w(H,B){return H[11]?mb:_b}let v=w(t),g=v(t),x=[t[41]("BonusCardAdditionalButton")],y={};for(let H=0;H<x.length;H+=1)y=k(y,x[H]);let S=[t[41]("BonusCardAdditionalHeader")],A={};for(let H=0;H<S.length;H+=1)A=k(A,S[H]);let F=t[11]&&Fa(t),j=[t[41]("BonusCardAdditional")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=z(),l=D(a),u=z(),d=E("span"),g.c(),c=z(),F&&F.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"),P(r,_),P(d,y),P(n,A),se(n,"Active",t[11]),P(e,G)},m(H,B){I(H,e,B),p(e,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(e,c),F&&F.m(e,null),h||(f=Ae(n,"click",t[57]),h=!0)},p(H,B){B[0]&33554432&&a!==(a=H[25]("bonusCard.rewards")+"")&&re(l,a,_.contenteditable),v!==(v=w(H))&&(g.d(1),g=v(H),g&&(g.c(),g.m(d,null))),B[0]&2048&&se(n,"Active",H[11]),H[11]?F?F.p(H,B):(F=Fa(H),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(H){H&&O(e),g.d(),F&&F.d(),h=!1,f()}}}function mb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&O(e)}}}function _b(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&O(e)}}}function Fa(t){let e,n=t[5].type==="wagering"&&Ha(t),r=[t[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),n&&n.c(),P(e,i)},m(o,s){I(o,e,s),n&&n.m(e,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Ha(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&O(e),n&&n.d()}}}function Ha(t){let e,n=t[5].levels.length>Number(t[4]),r;function i(l,u){if(l[5].status)return bb;if(l[5].levels)return gb}let o=i(t),s=o&&o(t),a=n&&Wa(t);return{c(){s&&s.c(),e=z(),a&&a.c(),r=Qe()},m(l,u){s&&s.m(l,u),I(l,e,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(e.parentNode,e))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Wa(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(O(e),O(r)),s&&s.d(l),a&&a.d(l)}}}function gb(t){let e,n=Fe(t[5].levels.slice(0,t[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=za(pa(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Qe()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,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=pa(i,n,s);r[s]?r[s].p(a,o):(r[s]=za(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&O(e),yt(r,i)}}}function bb(t){let e,n=Fe(t[40](t[5],t[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=$a(_a(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Qe()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,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=_a(i,n,s);r[s]?r[s].p(a,o):(r[s]=$a(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&O(e),yt(r,i)}}}function Ra(t){let e=t[35](t[82],t[85])+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(n,e)},d(r){r&&O(n)}}}function za(t){let e,n,r=t[25]("bonusCard.level")+"",i,o,s=t[34](t[5].levels,t[84])+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Fe(t[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Ra(ma(t,b,g));let w=[t[41]("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),n=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),P(n,f),P(e,v)},m(g,x){I(g,e,x),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,x){if(x[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&re(i,r,f.contenteditable),x[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&re(a,s,f.contenteditable),x[0]&48|x[1]&16){b=Fe(g[82].bonuses);let y;for(y=0;y<b.length;y+=1){const S=ma(g,b,y);_[y]?_[y].p(S,x):(_[y]=Ra(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&O(e),yt(_,g)}}}function Ua(t){let e=t[79]+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(n,e)},d(r){r&&O(n)}}}function $a(t){let e,n,r=t[25](`bonusCard.${t[76].label}`)+"",i,o,s=t[25]("bonusCard.level")+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Fe(t[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=Ua(ga(t,b,g));let w=[t[41]("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[g]);return{c(){e=E("p"),n=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),P(n,f),P(e,v)},m(g,x){I(g,e,x),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,x){if(x[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&re(i,r,f.contenteditable),x[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&re(a,s,f.contenteditable),x[0]&160|x[1]&512){b=Fe(g[76].desc);let y;for(y=0;y<b.length;y+=1){const S=ga(g,b,y);_[y]?_[y].p(S,x):(_[y]=Ua(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&O(e),yt(_,g)}}}function Wa(t){let e,n=t[25]("bonusCard.allRewards")+"",r,i,o,s=[t[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=D(n),P(e,a)},m(l,u){I(l,e,u),p(e,r),i||(o=Ae(e,"click",t[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&re(r,n,a.contenteditable)},d(l){l&&O(e),i=!1,o()}}}function vb(t){let e,n,r,i,o,s,a,l,u,d,c=t[25]("bonusCard.terms")+"",h,f=[t[41]("BonusCardTermsLink"),{href:t[20]},{target:"__blank"}],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[t[41]("BonusCardTerms")],w={};for(let v=0;v<_.length;v+=1)w=k(w,_[v]);return{c(){e=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=z(),h=D(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"),P(n,b),P(e,w)},m(v,g){I(v,e,g),p(e,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(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&re(h,c,b.contenteditable),P(n,b=Se(f,[v[41]("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&O(e)}}}function yb(t){let e,n,r,i,o,s,a,l,u,d,c,h=t[25]("bonusCard.terms")+"",f,b,_,w,v,g,x=[t[41]("BonusCardTermsTitle")],y={};for(let L=0;L<x.length;L+=1)y=k(y,x[L]);function S(L,N){return L[12]?wb:Cb}let A=S(t),F=A(t),j=[t[41]("BonusCardTermsButton")],G={};for(let L=0;L<j.length;L+=1)G=k(G,j[L]);let H=[t[41]("BonusCardTermsHeader")],B={};for(let L=0;L<H.length;L+=1)B=k(B,H[L]);let $=t[12]&&Va(t),X=[t[41]("BonusCardTerms")],K={};for(let L=0;L<X.length;L+=1)K=k(K,X[L]);return{c(){e=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=z(),f=D(h),b=z(),_=E("span"),F.c(),w=z(),$&&$.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"),P(r,y),P(_,G),P(n,B),se(n,"Active",t[12]),P(e,K)},m(L,N){I(L,e,N),p(e,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,_),F.m(_,null),p(e,w),$&&$.m(e,null),v||(g=Ae(n,"click",t[58]),v=!0)},p(L,N){N[0]&33554432&&h!==(h=L[25]("bonusCard.terms")+"")&&re(f,h,y.contenteditable),A!==(A=S(L))&&(F.d(1),F=A(L),F&&(F.c(),F.m(_,null))),N[0]&4096&&se(n,"Active",L[12]),L[12]?$?$.p(L,N):($=Va(L),$.c(),$.m(e,null)):$&&($.d(1),$=null)},d(L){L&&O(e),F.d(),$&&$.d(),v=!1,g()}}}function wb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&O(e)}}}function Cb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&O(e)}}}function Va(t){let e,n,r,i,o=[t[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),P(e,s)},m(a,l){I(a,e,l),r||(i=Hd(n=t[45].call(null,e,t[16].terms_and_conditions)),r=!0)},p(a,l){n&&Hn(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&O(e),r=!1,i()}}}function ja(t){let e,n,r,i=t[0]==="claimable"&&Ga(t),o=t[0]==="active"&&t[5].status==="active"&&qa(t),s=[t[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[t[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),n=E("div"),i&&i.c(),r=z(),o&&o.c(),P(n,a),P(e,u)},m(d,c){I(d,e,c),p(e,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=Ga(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=qa(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&O(e),i&&i.d(),o&&o.d()}}}function Ga(t){let e,n,r,i,o,s,a,l,u,d=t[25]("bonusCard.join")+"",c,h,f,b,_=t[15]===!0&&Ya(t),w=[t[41]("BonusCardJoinCountdown")],v={};for(let A=0;A<w.length;A+=1)v=k(v,w[A]);let g=[t[41]("BonusJoinButton"),{type:"button"},{disabled:h=!t[13]}],x={};for(let A=0;A<g.length;A+=1)x=k(x,g[A]);let y=[t[41]("BonusCardJoinWrapper")],S={};for(let A=0;A<y.length;A+=1)S=k(S,y[A]);return{c(){e=E("div"),_&&_.c(),n=z(),r=E("span"),i=ee("svg"),o=ee("path"),s=z(),a=D(t[19]),l=z(),u=E("button"),c=D(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"),P(r,v),P(u,x),P(e,S)},m(A,F){I(A,e,F),_&&_.m(e,null),p(e,n),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=Ae(u,"click",t[26]),f=!0)},p(A,F){A[15]===!0?_?_.p(A,F):(_=Ya(A),_.c(),_.m(e,n)):_&&(_.d(1),_=null),F[0]&524288&&re(a,A[19],v.contenteditable),F[0]&33554432&&d!==(d=A[25]("bonusCard.join")+"")&&re(c,d,x.contenteditable),P(u,x=Se(g,[A[41]("BonusJoinButton"),{type:"button"},F[0]&8192&&h!==(h=!A[13])&&{disabled:h}]))},d(A){A&&O(e),_&&_.d(),f=!1,b()}}}function Ya(t){let e,n=t[25]("bonusCard.error")+"",r,i=[t[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=D(n),P(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&re(r,n,o.contenteditable)},d(s){s&&O(e)}}}function qa(t){let e,n=t[25]("bonusCard.forfeit")+"",r,i,o,s,a=[t[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!t[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=D(n),P(e,l)},m(u,d){I(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Ae(e,"click",t[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&re(r,n,l.contenteditable),P(e,l=Se(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&O(e),o=!1,s()}}}function Eb(t){let e,n=t[5]&&va(t);return{c(){n&&n.c(),e=Qe()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5]?n?n.p(r,i):(n=va(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Pe,o:Pe,d(r){r&&O(e),n&&n.d(r)}}}function Ab(t,e,n){let r,i;gl(t,ql,T=>n(25,i=T));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_,w=[],v,g=!1,x=!1,y=!1,S=!1,A=!0,F=!1,j=!1,G={},H,B,$="",X=1e3*30,K,L,N="",ne=!1,_e,le=[],Y=0;const oe=()=>{fetch(h).then(R=>R.json()).then(R=>{Object.keys(R).forEach(te=>{gr(te,R[te])})}).catch(R=>{console.log(R)})};Object.keys(br).forEach(T=>{gr(T,br[T])}),Br(()=>(window.addEventListener("message",ce,!1),()=>{window.removeEventListener("message",ce)}));const Z=()=>{var T,R;try{n(5,_=JSON.parse(o))}catch(te){}_&&(_.type==="wagering"&&n(10,x=!0),n(17,H=fa(_.currency||b)),n(7,w=J(_.levels||((R=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:R.levels))),_.type==="freeRound"&&n(23,le=ie(_.freeSpin)),Ce())},ie=T=>{if(!T||!T.vendorGamesDetail)return[];let R=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(te=>{R=T.vendorGamesDetail[te]}),R},J=T=>{if(!T)return[];const R=[];let te=!1;return T.map((pe,ae)=>{const rt=pe,{maxRepeats:we,completedTime:He}=rt,Re=si(rt,["maxRepeats","completedTime"]);we===0&&(te=!0,R.push(pt({},Re)));for(let De=0;De<we;De++)R.push(pt({},Re))}),te?n(8,v=0):n(8,v=R.length),R},Q=()=>{n(13,A=!1),n(15,j=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},C=()=>{n(13,A=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},M=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},ce=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,A=!0);break;case"OnBonusForfeitedDone":n(13,A=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,j=!0);break}},Me=(T,R)=>({remainder:T%R,quotient:Math.floor(T/R)}),q=T=>{const R=new Date;return new Date(T).getTime()-R.getTime()},W=T=>{const R=q(T)/6e4,{quotient:te,remainder:pe}=Me(R,1440),{quotient:ae,remainder:we}=Me(pe,60),He=Math.floor(we),Re=De=>Math.abs(De)<10?`0${De}`:De;return[{value:te,symbol:"d"},{value:ae,symbol:"h"},{value:He,symbol:"m"}].map(De=>Re(De.value)+De.symbol).join(" ")},xe=(T,R,te,pe)=>{const ae=q(T);ae<0?te():(pe(W(T)),ae<R&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},ae))},Ce=()=>{var pe;if(!_)return;const T=(ae,we,He)=>{xe(ae,X,()=>we(He),we)},R=i("bonusCard.expired"),te=_.endTime||((pe=_.trigger)==null?void 0:pe.endTime);te&&T(te,ae=>{n(19,$=ae),n(18,B=ae)},R),_.expiryDate&&T(_.expiryDate,ae=>n(18,B=ae),R)},tt=T=>{let R=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&T.type==="wagering"&&(R=(Number(R)+T.remainingAmount).toFixed(2)),parseFloat(R).toString()},ct=T=>{var R,te;return(((R=T.wageringProgress)==null?void 0:R.currentLevelIncrement)-((te=T.wageringProgress)==null?void 0:te.gap)).toFixed(2)},je=T=>{var pe,ae,we;let R,te;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(te=(pe=T.wageringProgress)==null?void 0:pe.currentLevelIncrement,te!=0&&(R=((((ae=T.wageringProgress)==null?void 0:ae.currentLevelIncrement)-((we=T.wageringProgress)==null?void 0:we.gap))/te*100).toFixed(2))):T.status=="released"?R=100:(te=T.initialWagerRequirementAmount,te!=0&&(R=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/te*100).toFixed(2))),Number(R)},ht=T=>{if(!T.wallet)return"";const R=["freeBet","freeRound"].includes(T.type)?T.wallet[T.type]:T.wallet,{validityMinutes:te,expiryTime:pe}=R;if(te===0)return pe?Cn(new Date(pe),"yyyy-MM-dd HH:mm:ss"):i("bonusCard.infinite");const ae=Math.round(te/1440);return`${ae} ${i(ae===1?"bonusCard.day":"bonusCard.days")}`},Et=T=>{if(T.products)return T.products;{let R=[];return T.wallet&&(T.wallet.casino&&R.push("Casino"),T.wallet.sports&&R.push("Sports")),R}},nt=(T,R)=>{const te=i(`bonusType.${R.type}`),pe=fa(R.amountCurrency||_.currency||b);return R.mode==="percentage"?`${R.bonusAmount*100}% ${i("bonusCard.upTo")} ${pe}${R.capAmount} ${te}`:R.mode==="fixed"?`${pe}${R.bonusAmount} ${te}`:te},U=(T,R)=>{const te=Re=>Re===0?0:T.slice(0,Re).reduce((rt,De)=>rt+De.maxRepeats,0),pe=T[R],we=te(R)+1,He=we+pe.maxRepeats-1;return pe.maxRepeats>1?`${we}-${He}`:`${R+1}`},be=(T,R)=>{switch(R.type){case"standard":case"freeBet":return nt(T,R);case"freeRound":return i("bonusCard.freeSpins",{values:{count:R.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return i("bonusCard.enrollTo",{values:{name:i(`bonusType.${R.type}`)}});default:return""}},Yn=T=>{var R,te;return Number((te=(R=T==null?void 0:T[b])!=null?R:T==null?void 0:T.EUR)!=null?te:0)},Kr=T=>{var pe,ae,we,He;const R=Yn((we=(ae=(pe=T.wallet)==null?void 0:pe.standard)==null?void 0:ae.initialAmount)==null?void 0:we.fixedAmount),te=((He=T.wallet)==null?void 0:He.wageringRequirementCoefficient)||0;return Number((R*te).toFixed(2))},Jr=T=>{var pe,ae,we;const R=(ae=(pe=T.wallet)==null?void 0:pe.freeRound)==null?void 0:ae.vendor;if(!R)return 0;const te=Object.keys(R)[0];return((we=R[te])==null?void 0:we.roundNumber)||0},Qr=T=>T===void 0?"":Cn(new Date(T),"yyyy-MM-dd HH:mm:ss"),ei=(T,R)=>{var He,Re;const te=((He=T.wageringProgress)==null?void 0:He.currentLevel)-1||0,pe=R.length-1,ae=((Re=T.levels[0])==null?void 0:Re.maxRepeats)===0,we=rt=>rt.filter(De=>De.index>=0&&De.index<=pe||ae).map(De=>{const Yo=R[De.index]||R[0];return{label:De.label,desc:Yo.bonuses.map(Od=>be(Yo,Od))}});return T.status==="active"?we([{label:"current",index:te},{label:"next",index:te+1}]):T.status?we([{label:"last",index:pe},{label:"previous",index:pe-1}]):we([{label:"first",index:0},{label:"next",index:1}])},ti=T=>{var R,te;n(20,N=T.url?T.url:(te=(R=T.presentation)==null?void 0:R.url)==null?void 0:te.content)},ni=(T,R="")=>({part:T,class:[T,R].join(" ")}),qn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Xn=T=>{n(21,ne=!0),n(22,_e=T)},Zn=()=>{n(21,ne=!1),n(22,_e=-1)},ri=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(R=>R.json()).then(R=>{R&&R[T]&&(n(14,F=!0),n(16,G=R[T]))})},ii=(T,R)=>{let te=document.createElement("div");te.innerHTML=R,T.append(te)},V=()=>n(24,Y+=300),ve=T=>qn(T),Oe=T=>Xn(T),Ft=()=>Zn(),ft=()=>n(24,Y-=300),Dd=()=>{n(11,y=!y)},Bd=()=>{n(12,S=!S)};function Md(T){st[T?"unshift":"push"](()=>{K=T,n(6,K)})}return t.$$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)},t.$$.update=()=>{t.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),t.$$.dirty[0]&1|t.$$.dirty[1]&98304&&n(51,r=o&&s&&a),t.$$.dirty[1]&1048576&&r&&Z(),t.$$.dirty[0]&32|t.$$.dirty[1]&1245184&&r&&_&&(s&&Xl(s),c?ri(_.bonusId||_.id):ti(_)),t.$$.dirty[0]&68&&u&&K&&Ur(K,u),t.$$.dirty[0]&72&&d&&K&&$r(K,d),t.$$.dirty[0]&66&&l&&K&&Wr(K,`${l}.Style`,L),t.$$.dirty[1]&262144&&h&&oe()},[a,l,u,d,f,_,K,w,v,g,x,y,S,A,F,j,G,H,B,$,N,ne,_e,le,Y,i,Q,C,M,tt,ct,je,ht,Et,U,be,Yn,Kr,Jr,Qr,ei,ni,qn,Xn,Zn,ii,o,s,c,h,b,r,V,ve,Oe,Ft,ft,Dd,Bd,Md]}class xb extends Nr{constructor(e){super(),Mr(this,e,Ab,Eb,Rn,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},Kg,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(e){this.$$set({rawbonus:e}),ue()}get lang(){return this.$$.ctx[47]}set lang(e){this.$$set({lang:e}),ue()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get translationurl(){return this.$$.ctx[49]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get currency(){return this.$$.ctx[50]}set currency(e){this.$$set({currency:e}),ue()}}customElements.define("casino-bonus-card",Or(xb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Tb({totalItems:t,pageSize:e,currentPage:n,limit:r}){const i=Math.ceil(t/e),s=r&&i>kb(r)?Sb({totalPages:i,limit:r,currentPage:n}):Pb({totalPages:i});return[{type:"symbol",symbol:"<",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:">",value:n>=i?i:n+1}]}function Pb({totalPages:t}){return new Array(t).fill(null).map((e,n)=>({type:"number",value:n+1}))}function Sb({totalPages:t,limit:e,currentPage:n}){const r=e*2+2,i=1+r,o=t-r,s=i+2;return n<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+e?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-e&&n<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-e+(l-2)}:l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:n+e+1}:{type:"number",value:n-e+(l-2)}):[]}function kb(t){return t*2+3+2}function Db(t){Dr(t,"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 Xa(t,e,n){const r=t.slice();return r[29]=e[n],r}const Bb=t=>({}),Za=t=>({}),Mb=t=>({}),Ka=t=>({}),Ob=t=>({}),Ja=t=>({}),Nb=t=>({value:t[0]&32}),Qa=t=>({value:t[29].value});function Ib(t){let e;const n=t[21].next,r=zn(n,t,t[20],Za),i=r||Rb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&$n(r,n,o,o[20],e?Un(n,o[20],s,Bb):Wn(o[20]),Za)},i(o){e||(Xe(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Lb(t){let e;const n=t[21].prev,r=zn(n,t,t[20],Ka),i=r||zb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&$n(r,n,o,o[20],e?Un(n,o[20],s,Mb):Wn(o[20]),Ka)},i(o){e||(Xe(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Fb(t){let e;const n=t[21].ellipsis,r=zn(n,t,t[20],Ja),i=r||Ub();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&$n(r,n,o,o[20],e?Un(n,o[20],s,Ob):Wn(o[20]),Ja)},i(o){e||(Xe(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Hb(t){let e;const n=t[21].number,r=zn(n,t,t[20],Qa),i=r||$b(t);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&$n(r,n,o,o[20],e?Un(n,o[20],s,Nb):Wn(o[20]),Qa):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Xe(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Rb(t){let e;return{c(){e=D(">")},m(n,r){I(n,e,r)},d(n){n&&O(e)}}}function zb(t){let e;return{c(){e=D("<")},m(n,r){I(n,e,r)},d(n){n&&O(e)}}}function Ub(t){let e;return{c(){e=E("span"),e.textContent="..."},m(n,r){I(n,e,r)},p:Pe,d(n){n&&O(e)}}}function $b(t){let e,n=t[29].value+"",r;return{c(){e=E("span"),r=D(n)},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&O(e)}}}function el(t){let e,n,r,i,o,s,a,l;const u=[Hb,Fb,Lb,Ib],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==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?3:-1}~(n=c(t))&&(r=d[n]=u[n](t));function h(){return t[22](t[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1,m(e,"class","option"),m(e,"role","presentation"),se(e,"number",t[29].type==="number"),se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="<"),se(e,"next",t[29].type==="symbol"&&t[29].symbol===">"),se(e,"disabled",t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1),se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),se(e,"active",t[29].type==="number"&&t[29].value===t[1])},m(f,b){I(f,e,b),~n&&d[n].m(e,null),p(e,i),s=!0,a||(l=Ae(e,"click",h),a=!0)},p(f,b){t=f;let _=n;n=c(t),n===_?~n&&d[n].p(t,b):(r&&(wl(),ut(d[_],1,1,()=>{d[_]=null}),Cl()),~n?(r=d[n],r?r.p(t,b):(r=d[n]=u[n](t),r.c()),Xe(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&se(e,"number",t[29].type==="number"),(!s||b[0]&32)&&se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="<"),(!s||b[0]&32)&&se(e,"next",t[29].type==="symbol"&&t[29].symbol===">"),(!s||b[0]&98)&&se(e,"disabled",t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1),(!s||b[0]&32)&&se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),(!s||b[0]&34)&&se(e,"active",t[29].type==="number"&&t[29].value===t[1])},i(f){s||(Xe(r),s=!0)},o(f){ut(r),s=!1},d(f){f&&O(e),~n&&d[n].d(),a=!1,l()}}}function tl(t){let e,n,r,i,o,s,a,l;return{c(){e=E("div"),n=E("span"),n.textContent="Go To Page",r=z(),i=E("input"),o=z(),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(e,"class","PaginationInputWrapper")},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),fr(i,t[3]),p(e,o),p(e,s),a||(l=[Ae(i,"input",t[23]),Ae(i,"change",t[24]),Ae(s,"click",t[25])],a=!0)},p(u,d){d[0]&8&&yl(i.value)!==u[3]&&fr(i,u[3])},d(u){u&&O(e),a=!1,Ye(l)}}}function Wb(t){let e,n,r,i,o,s,a=Fe(t[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=el(Xa(t,a,c));const u=c=>ut(l[c],1,1,()=>{l[c]=null});let d=t[7]&&tl(t);return{c(){e=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){I(c,e,h),p(e,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(e,o),d&&d.m(e,null),t[26](e),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=Xa(c,a,f);l[f]?(l[f].p(b,h),Xe(l[f],1)):(l[f]=el(b),l[f].c(),Xe(l[f],1),l[f].m(n,null))}for(wl(),f=a.length;f<l.length;f+=1)u(f);Cl()}(!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=tl(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Xe(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)ut(l[h]);s=!1},d(c){c&&O(e),yt(l,c),d&&d.d(),t[26](null)}}}function Vb(t,e,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:w=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,x,y=!1,S;nu(g)&&(y=!0);let A,F,j;const G=N=>{window.postMessage({type:"PaginationChange",page:N.value})},H=N=>{n(4,F=N>a?a:N)};Br(()=>()=>{});const B=N=>G(N);function $(){A=yl(this.value),n(3,A)}const X=()=>H(A),K=()=>G({value:F});function L(N){st[N?"unshift":"push"](()=>{S=N,n(0,S)})}return t.$$set=N=>{"totalitems"in N&&n(10,d=N.totalitems),"pagesize"in N&&n(11,c=N.pagesize),"currentpage"in N&&n(12,h=N.currentpage),"limit"in N&&n(13,f=N.limit),"showinput"in N&&n(14,b=N.showinput),"mbsource"in N&&n(15,_=N.mbsource),"clientstyling"in N&&n(16,w=N.clientstyling),"clientstylingurl"in N&&n(17,v=N.clientstylingurl),"$$scope"in N&&n(20,u=N.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&65537&&w&&S&&Ur(S,w),t.$$.dirty[0]&131073&&v&&S&&$r(S,v),t.$$.dirty[0]&32769&&_&&S&&Wr(S,`${_}.Style`,x),t.$$.dirty[0]&1024&&n(19,r=Number(d)),t.$$.dirty[0]&16384&&n(7,i=b),t.$$.dirty[0]&4096&&n(1,o=Number(h)),t.$$.dirty[0]&2048&&n(18,s=c),t.$$.dirty[0]&794626&&n(5,j=Tb({totalItems:r,pageSize:s,currentPage:o,limit:f})),t.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[S,o,y,A,F,j,a,i,G,H,d,c,h,f,b,_,w,v,s,r,u,l,B,$,X,K,L]}class jb extends Nr{constructor(e){super(),Mr(this,e,Vb,Wb,Rn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Db,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),ue()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),ue()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),ue()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),ue()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),ue()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-pagination",Or(jb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Gb(t){Dr(t,"svelte-1vc0na6",':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:16px;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 nl(t,e,n){const r=t.slice();return r[68]=e[n],r}function rl(t,e,n){const r=t.slice();return r[71]=e[n],r}function il(t){let e,n=t[29](`bonusCard.${t[71]}`)+"",r,i,o,s,a=[{type:"button"},t[28]("BonusStatusFilter"),{disabled:t[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return t[44](t[71])}return{c(){e=E("button"),r=D(n),i=z(),P(e,l),se(e,"active",t[71]===t[25])},m(d,c){I(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Ae(e,"click",u),o=!0)},p(d,c){t=d,c[0]&536870912&&n!==(n=t[29](`bonusCard.${t[71]}`)+"")&&re(r,n,l.contenteditable),P(e,l=Se(a,[{type:"button"},c[0]&268435456&&t[28]("BonusStatusFilter"),c[0]&8192&&{disabled:t[13]}])),se(e,"active",t[71]===t[25])},d(d){d&&O(e),o=!1,s()}}}function Yb(t){let e,n,r=t[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=t[29]("bonus.from")+"",c,h,f,b,_,w,v=t[29]("bonus.to")+"",g,x,y,S,A,F=t[29]("bonus.filter")+"",j,G,H,B,$=[t[37]("BonusCalendarTitle")],X={};for(let q=0;q<$.length;q+=1)X=k(X,$[q]);let K=[{min:t[30]},{max:t[31]},{value:t[23]},{placeholder:"From"},t[37]("VaadinDatePicker")],L={};for(let q=0;q<K.length;q+=1)L=k(L,K[q]);let N=[t[28]("BonusCalendarStartDate")],ne={};for(let q=0;q<N.length;q+=1)ne=k(ne,N[q]);let _e=[{min:t[30]},{max:t[31]},{value:t[24]},{placeholder:"To"},t[37]("VaadinDatePicker")],le={};for(let q=0;q<_e.length;q+=1)le=k(le,_e[q]);let Y=[t[28]("BonusCalendarEndDate")],oe={};for(let q=0;q<Y.length;q+=1)oe=k(oe,Y[q]);let Z=[t[28]("BonusCalendarContainer")],ie={};for(let q=0;q<Z.length;q+=1)ie=k(ie,Z[q]);let J=[t[28]("BonusFilterButton"),{disabled:G=t[13]||t[21]}],Q={};for(let q=0;q<J.length;q+=1)Q=k(Q,J[q]);let C=[t[37]("BonusCalendarContent")],M={};for(let q=0;q<C.length;q+=1)M=k(M,C[q]);let ce=[t[28]("BonusCalendarWrapper")],Me={};for(let q=0;q<ce.length;q+=1)Me=k(Me,ce[q]);return{c(){e=E("div"),n=E("div"),i=D(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=D(d),h=z(),f=E("vaadin-date-picker"),b=z(),_=E("div"),w=E("label"),g=D(v),x=z(),y=E("vaadin-date-picker"),S=z(),A=E("button"),j=D(F),P(n,X),m(u,"for","BonusCalendarStartDate"),P(f,L),P(l,ne),m(w,"for","BonusCalendarEndDate"),P(y,le),P(_,oe),P(a,ie),P(A,Q),P(s,M),P(e,Me)},m(q,W){I(q,e,W),p(e,n),p(n,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),t[47](f),p(a,b),p(a,_),p(_,w),p(w,g),p(_,x),p(_,y),t[48](y),p(s,S),p(s,A),p(A,j),A.autofocus&&A.focus(),H||(B=[Ae(f,"validated",t[39]),Ae(y,"validated",t[39]),Ae(A,"click",t[49])],H=!0)},p(q,W){W[0]&536870912&&r!==(r=q[29]("bonus.canlendarTitle")+"")&&re(i,r,X.contenteditable),W[0]&536870912&&d!==(d=q[29]("bonus.from")+"")&&fe(c,d),P(f,L=Se(K,[{min:q[30]},{max:q[31]},W[0]&8388608&&{value:q[23]},{placeholder:"From"},q[37]("VaadinDatePicker")])),P(l,ne=Se(N,[W[0]&268435456&&q[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=q[29]("bonus.to")+"")&&fe(g,v),P(y,le=Se(_e,[{min:q[30]},{max:q[31]},W[0]&16777216&&{value:q[24]},{placeholder:"To"},q[37]("VaadinDatePicker")])),P(_,oe=Se(Y,[W[0]&268435456&&q[28]("BonusCalendarEndDate")])),P(a,ie=Se(Z,[W[0]&268435456&&q[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=q[29]("bonus.filter")+"")&&re(j,F,Q.contenteditable),P(A,Q=Se(J,[W[0]&268435456&&q[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=q[13]||q[21])&&{disabled:G}])),P(e,Me=Se(ce,[W[0]&268435456&&q[28]("BonusCalendarWrapper")]))},d(q){q&&O(e),t[47](null),t[48](null),H=!1,Ye(B)}}}function qb(t){let e,n,r,i=t[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=t[29]("bonus.claim")+"",f,b,_,w,v,g=[t[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=t[29]("bonus.placeholder")}],x={};for(let B=0;B<g.length;B+=1)x=k(x,g[B]);let y=[t[28]("BonusClaimButton"),{disabled:b=t[19]||!t[26]}],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let A=[t[28]("BonusCodeWrapper")],F={};for(let B=0;B<A.length;B+=1)F=k(F,A[B]);let j=t[20]&&ol(t),G=[t[28]("BonusCodeContainer")],H={};for(let B=0;B<G.length;B+=1)H=k(H,G[B]);return{c(){e=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=D(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=D(h),_=z(),j&&j.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),P(l,x),P(c,S),P(a,F),P(e,H)},m(B,$){I(B,e,$),p(e,n),p(n,r),p(n,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),fr(l,t[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),j&&j.m(e,null),w||(v=[Ae(l,"input",t[45]),Ae(l,"keyup",t[38]),Ae(c,"click",t[46])],w=!0)},p(B,$){$[0]&536870912&&i!==(i=B[29]("bonus.bonusCode")+"")&&fe(o,i),P(l,x=Se(g,[$[0]&268435456&&B[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&536870912&&u!==(u=B[29]("bonus.placeholder"))&&{placeholder:u}])),$[0]&262144&&l.value!==B[18]&&fr(l,B[18]),$[0]&536870912&&h!==(h=B[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),P(c,S=Se(y,[$[0]&268435456&&B[28]("BonusClaimButton"),$[0]&67633152&&b!==(b=B[19]||!B[26])&&{disabled:b}])),P(a,F=Se(A,[$[0]&268435456&&B[28]("BonusCodeWrapper")])),B[20]?j?j.p(B,$):(j=ol(B),j.c(),j.m(e,null)):j&&(j.d(1),j=null),P(e,H=Se(G,[$[0]&268435456&&B[28]("BonusCodeContainer")]))},d(B){B&&O(e),j&&j.d(),w=!1,Ye(v)}}}function ol(t){let e,n=t[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=D(n),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&n!==(n=i[29]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&O(e)}}}function Xb(t){let e,n;function r(a,l){return a[12].length>0?Qb:a[14]?Jb:Kb}let i=r(t),o=i(t),s=t[12].length!==0&&al(t);return{c(){o.c(),e=z(),s&&s.c(),n=Qe()},m(a,l){o.m(a,l),I(a,e,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(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=al(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(O(e),O(n)),o.d(a),s&&s.d(a)}}}function Zb(t){let e,n=[t[37]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=k(r,n[i]);return{c(){e=E("div"),P(e,r)},m(i,o){I(i,e,o)},p:Pe,d(i){i&&O(e)}}}function Kb(t){let e,n=t[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=D(n),m(e,"class","NoBonus")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&n!==(n=i[29]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&O(e)}}}function Jb(t){let e,n=t[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=D(n),i=D(": "),o=D(t[14]),m(e,"class","BonusError")},m(s,a){I(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&n!==(n=s[29]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&O(e)}}}function Qb(t){let e,n=Fe(t[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=sl(nl(t,n,s));let i=[t[37]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();P(e,o)},m(s,a){I(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){n=Fe(s[12]);let l;for(l=0;l<n.length;l+=1){const u=nl(s,n,l);r[l]?r[l].p(u,a):(r[l]=sl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&O(e),yt(r,s)}}}function sl(t){let e,n,r,i=[{rawbonus:JSON.stringify(t[68]),status:t[25],cmsendpoint:t[3],lang:t[0],clientstyling:t[5],clientstylingurl:t[6],mbsource:t[4],translationurl:t[7],levelcountlimit:t[8],currency:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[t[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),n=E("casino-bonus-card"),r=z(),P(n,o),P(e,a)},m(l,u){I(l,e,u),p(e,n),p(e,r)},p(l,u){P(n,o=Se(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[68]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),P(e,a=Se(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&O(e)}}}function al(t){let e;return{c(){e=E("casino-bonus-pagination"),Ue(e,"totalitems",t[16]),Ue(e,"currentpage",t[15]),Ue(e,"pagesize",t[2]),Ue(e,"limit",t[17]),Ue(e,"clientstyling",t[5]),Ue(e,"clientstylingurl",t[6]),Ue(e,"mbsource",t[4])},m(n,r){I(n,e,r)},p(n,r){r[0]&65536&&Ue(e,"totalitems",n[16]),r[0]&32768&&Ue(e,"currentpage",n[15]),r[0]&4&&Ue(e,"pagesize",n[2]),r[0]&131072&&Ue(e,"limit",n[17]),r[0]&32&&Ue(e,"clientstyling",n[5]),r[0]&64&&Ue(e,"clientstylingurl",n[6]),r[0]&16&&Ue(e,"mbsource",n[4])},d(n){n&&O(e)}}}function ll(t){let e,n,r,i,o=t[29]("bonus.forfeitMessage")+"",s,a,l,u,d=t[29]("bonus.forfeitCancel")+"",c,h,f,b=t[29]("bonus.forfeitConfirm")+"",_,w,v,g=[t[37]("ModalText")],x={};for(let N=0;N<g.length;N+=1)x=k(x,g[N]);let y=[t[37]("ModalCancel")],S={};for(let N=0;N<y.length;N+=1)S=k(S,y[N]);let A=[t[37]("ModalConfirm")],F={};for(let N=0;N<A.length;N+=1)F=k(F,A[N]);let j=[t[37]("ModalButtons")],G={};for(let N=0;N<j.length;N+=1)G=k(G,j[N]);let H=[t[37]("ModalBody")],B={};for(let N=0;N<H.length;N+=1)B=k(B,H[N]);let $=[t[37]("ModalContent")],X={};for(let N=0;N<$.length;N+=1)X=k(X,$[N]);let K=[t[28]("ModalWrapper")],L={};for(let N=0;N<K.length;N+=1)L=k(L,K[N]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),s=D(o),a=z(),l=E("div"),u=E("button"),c=D(d),h=z(),f=E("button"),_=D(b),P(i,x),P(u,S),P(f,F),P(l,G),P(r,B),P(n,X),P(e,L)},m(N,ne){I(N,e,ne),p(e,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(),w||(v=[Ae(u,"click",t[35]),Ae(f,"click",t[50])],w=!0)},p(N,ne){ne[0]&536870912&&o!==(o=N[29]("bonus.forfeitMessage")+"")&&re(s,o,x.contenteditable),ne[0]&536870912&&d!==(d=N[29]("bonus.forfeitCancel")+"")&&re(c,d,S.contenteditable),ne[0]&536870912&&b!==(b=N[29]("bonus.forfeitConfirm")+"")&&re(_,b,F.contenteditable),P(e,L=Se(K,[ne[0]&268435456&&N[28]("ModalWrapper")]))},d(N){N&&O(e),w=!1,Ye(v)}}}function ev(t){let e,n,r,i,o,s,a=Fe(t[32]),l=[];for(let y=0;y<a.length;y+=1)l[y]=il(rl(t,a,y));let u=[t[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]==="claimable")return qb;if(y[25]==="completed")return Yb}let h=c(t),f=h&&h(t);function b(y,S){return y[13]?Zb:Xb}let _=b(t),w=_(t),v=t[22]&&ll(t),g=[t[37]("BonusesController")],x={};for(let y=0;y<g.length;y+=1)x=k(x,g[y]);return{c(){e=E("div"),n=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),w.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),P(n,d),P(e,x)},m(y,S){I(y,e,S),p(e,n),p(n,r);for(let A=0;A<l.length;A+=1)l[A]&&l[A].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),w.m(e,null),p(e,s),v&&v.m(e,null),t[51](e)},p(y,S){if(S[0]&838868992|S[1]&34){a=Fe(y[32]);let A;for(A=0;A<a.length;A+=1){const F=rl(y,a,A);l[A]?l[A].p(F,S):(l[A]=il(F),l[A].c(),l[A].m(r,null))}for(;A<l.length;A+=1)l[A].d(1);l.length=a.length}P(n,d=Se(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),_===(_=b(y))&&w?w.p(y,S):(w.d(1),w=_(y),w&&(w.c(),w.m(e,s))),y[22]?v?v.p(y,S):(v=ll(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Pe,o:Pe,d(y){y&&O(e),yt(l,y),f&&f.d(),w.d(),v&&v.d(),t[51](null)}}}function tv(t,e,n){let r,i,o;gl(t,ql,V=>n(29,o=V));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:w="3"}=e,v=window.navigator.userAgent,g=!1,x=[],y=!0,S="",A="",F=1,j=0,G=2,H=Cn(As(new Date,6),"yyyy-MM-dd"),B=Cn(new Date,"yyyy-MM-dd"),$=Cn(As(new Date,3),"yyyy-MM-dd"),X,K,L="",N=!0,ne=!1,_e=!1,le=!1,Y=$,oe=B,Z,ie,J="active",Q=!0,C=["active","completed","claimable"],M="";nu(v)&&(g=!0,G=1);const ce=()=>{fetch(_).then(ve=>ve.json()).then(ve=>{Object.keys(ve).forEach(Oe=>{gr(Oe,ve[Oe])})}).catch(ve=>{console.log(ve)})};Object.keys(br).forEach(V=>{gr(V,br[V])}),Br(()=>(window.addEventListener("message",Me,!1),()=>{Z==null||Z.removeEventListener("change",U),ie==null||ie.removeEventListener("change",be),window.removeEventListener("message",Me)}));const Me=V=>{switch(V.data.type){case"PaginationChange":n(15,F=V.data.page),je(F);break;case"OnBonusClaimed":W(V.data.bonusCode);break;case"OnBonusForfeit":n(27,M=V.data.bonus.id),n(22,le=!0)}},q=()=>We(this,null,function*(){je(1)}),W=(V,ve)=>We(this,null,function*(){n(26,Q=!1);const Oe=yield xe(V);Oe.success?(n(20,ne=!1),je(1)):(A=Oe.errorMessage,ve?n(20,ne=!0):window.postMessage({type:"OnBonusClaimError",message:A,bonusCode:V})),window.postMessage({type:"OnBonusClaimedDone"}),n(26,Q=!0)}),xe=V=>We(this,null,function*(){return yield nt(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"}})}),Ce=V=>We(this,null,function*(){n(26,Q=!1);const ve=yield tt(V);ve.success?je(1):n(14,S=ve.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(26,Q=!0),n(22,le=!1)}),tt=V=>We(this,null,function*(){const ve=new URL(`${s}/v1/bonus/forfeit`),Oe={bonusID:V,lang:a};return Object.keys(Oe).map(Ft=>{ve.searchParams.append(Ft,Oe[Ft])}),yield nt(ve,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),ct=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(22,le=!1)},je=V=>We(this,null,function*(){F!==V&&n(15,F=V);const ve=(V-1)*Number(d);n(13,y=!0),n(12,x=[]);const Oe=yield ht(s,l,ve,{lang:a,limit:d});Oe.success?(n(16,j=Oe.total),n(12,x=Oe.items||Oe.bonuses)):n(14,S=Oe.errorMessage),n(13,y=!1)}),ht=(ft,Dd,Bd,...Md)=>We(this,[ft,Dd,Bd,...Md],function*(V,ve,Oe,Ft={}){const He=Ft,{limit:T,lang:R}=He,te=si(He,["limit","lang"]),pe=(()=>{switch(J){case"claimable":return J;default:return"granted"}})(),ae=dn(pt({pagination:`limit=${T},offset=${Oe}`,language:R},te),{sortOrder:"desc"});if(J==="completed"){const Re=Y!==""&&!_e?Y:$,rt=oe!==""&&!_e?oe:B,De=new Date(rt);De.setUTCHours(23,59,59),ae.startTime=new Date(Re).toISOString(),ae.endTime=new Date(De).toISOString(),ae.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ae.status="completed,released,forfeited,expired,closed"}J==="active"&&(ae.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ae.status="active");const we=new URL(`${V}/v1/bonus/${pe}`);return J!=="claimable"?we.searchParams.append("expand","freeSpin"):delete ae.sortOrder,Object.keys(ae).map(Re=>{we.searchParams.append(Re,ae[Re])}),yield nt(we,{headers:pt({},ve?{"x-SessionId":ve}:{})})}),Et=(V,ve="")=>({part:V,class:[V,ve].join(" ")}),nt=(Oe,...Ft)=>We(this,[Oe,...Ft],function*(V,ve={}){let ft;return ft=yield fetch(V,ve),ft.ok===!1?{errorMessage:ft.status}:(ft=yield ft.json(),ft)}),U=V=>{n(23,Y=V.target.value)},be=V=>{n(24,oe=V.target.value)},Yn=()=>{Z.addEventListener("change",U,!1),ie.addEventListener("change",be,!1)},Kr=()=>(n(20,ne=!1),!!L),Jr=()=>{n(19,N=!Kr())},Qr=V=>{const{valid:ve}=V.detail;oe<Y&&n(24,oe=Y),n(21,_e=oe===""||Y===""||!ve)},ei=V=>{n(25,J=V),je(1)};function ti(){L=this.value,n(18,L)}const ni=()=>{W(L,!0)};function qn(V){st[V?"unshift":"push"](()=>{Z=V,n(10,Z)})}function Xn(V){st[V?"unshift":"push"](()=>{ie=V,n(11,ie)})}const Zn=()=>je(1),ri=()=>Ce(M);function ii(V){st[V?"unshift":"push"](()=>{X=V,n(9,X)})}return t.$$set=V=>{"endpoint"in V&&n(40,s=V.endpoint),"lang"in V&&n(0,a=V.lang),"session"in V&&n(41,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,w=V.levelcountlimit)},t.$$.update=()=>{t.$$.dirty[0]&3072&&Z&&ie&&Yn(),t.$$.dirty[1]&2048&&n(28,r=(V,ve="")=>Et(`${V}${g?` ${V}Mobile`:""}`,ve)),t.$$.dirty[0]&1&&a&&Xl(a),t.$$.dirty[0]&5|t.$$.dirty[1]&1536&&n(43,i=s&&l&&a&&d),t.$$.dirty[1]&4096&&i&&q(),t.$$.dirty[0]&544&&f&&X&&Ur(X,f),t.$$.dirty[0]&576&&b&&X&&$r(X,b),t.$$.dirty[0]&528&&h&&X&&Wr(X,`${h}.Style`,K),t.$$.dirty[0]&128&&_&&ce()},[a,u,d,c,h,f,b,_,w,X,Z,ie,x,y,S,F,j,G,L,N,ne,_e,le,Y,oe,J,Q,M,r,o,H,B,C,W,Ce,ct,je,Et,Jr,Qr,s,l,g,i,ei,ti,ni,qn,Xn,Zn,ri,ii]}class kd extends Nr{constructor(e){super(),Mr(this,e,tv,ev,Rn,{endpoint:40,lang:0,session:41,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8},Gb,[-1,-1,-1])}get endpoint(){return this.$$.ctx[40]}set endpoint(e){this.$$set({endpoint:e}),ue()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),ue()}get session(){return this.$$.ctx[41]}set session(e){this.$$set({session:e}),ue()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),ue()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),ue()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}}Or(kd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{}},[],[],!0);exports.default=kd;
|
|
3572
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ng(this,n=>{this._setInputElement(n),this._setFocusElement(n),this.stateTarget=n,this.ariaTarget=n},{uniqueIdPrefix:"search-input"})),this.addController(new Ig(this.inputElement,this._labelController)),this._tooltipController=new ud(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}nt(Vg);function jg(t){Br(t,"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 Gg(t){let e,n,r;return{c(){e=E("span"),n=D(t[0]),r=D(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){I(i,e,o),p(e,n),p(e,r)},p(i,o){o&1&&fe(n,i[0])},d(i){i&&N(e)}}}function Yg(t){let e,n,r,i,o,s,a,l,u;const d=t[10].default,c=$n(d,t,t[9],null),h=c||Gg(t);return{c(){e=E("div"),n=ee("svg"),r=ee("circle"),i=ee("circle"),s=ee("circle"),a=z(),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",t[5]),m(i,"stroke-dashoffset",o=t[4]()),se(i,"Completed",t[1]==="completed"),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),se(s,"Completed",t[1]==="completed"),m(n,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){I(f,e,b),p(e,n),p(n,r),p(n,i),t[11](i),p(n,s),p(e,a),p(e,l),h&&h.m(l,null),t[12](e),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)&&Vn(c,d,f,f[9],u?Wn(d,f[9],b,null):jn(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){lt(h,f),u=!1},d(f){f&&N(e),t[11](null),h&&h.d(f),t[12](null)}}}let fa=64.5;function qg(t,e,n){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(fa*2),f,b;Mr(()=>()=>{});function _(v){ot[v?"unshift":"push"](()=>{c=v,n(3,c)})}function C(v){ot[v?"unshift":"push"](()=>{f=v,n(2,f)})}return t.$$set=v=>{"value"in v&&n(0,s=v.value),"status"in v&&n(1,a=v.status),"mbsource"in v&&n(6,l=v.mbsource),"clientstyling"in v&&n(7,u=v.clientstyling),"clientstylingurl"in v&&n(8,d=v.clientstylingurl),"$$scope"in v&&n(9,o=v.$$scope)},t.$$.update=()=>{t.$$.dirty&132&&u&&f&&$r(f,u),t.$$.dirty&260&&d&&f&&Wr(f,d),t.$$.dirty&68&&l&&f&&Vr(f,`${l}.Style`,b),t.$$.dirty&1&&n(4,r=()=>{var v=Math.PI*(fa*2);return s<0&&n(0,s=0),s>100&&n(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,_,C]}class Xg extends Ir{constructor(e){super(),Or(this,e,qg,Yg,Un,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},jg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),le()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),le()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),le()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),le()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),le()}}customElements.define("casino-bonus-progress",Nr(Xg,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const pa=t=>Zg[t],Zg={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 Kg(t){Br(t,"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 ma(t,e,n){const r=t.slice();return r[82]=e[n],r[84]=n,r}function _a(t,e,n){const r=t.slice();return r[85]=e[n],r}function ga(t,e,n){const r=t.slice();return r[76]=e[n],r}function ba(t,e,n){const r=t.slice();return r[79]=e[n],r}function va(t,e,n){const r=t.slice();return r[88]=e[n],r[90]=n,r}function ya(t){var K;let e,n,r,i,o,s=t[33](t[5]).indexOf("Casino")>-1,a,l=t[33](t[5]).indexOf("Sports")>-1,u,d=(t[5].name||((K=t[5].presentation)==null?void 0:K.name.content))+"",c,h,f,b,_,C,v,g=s&&wa(t),x=l&&Ca(t),y=[t[41]("TitleIcon")],S={};for(let w=0;w<y.length;w+=1)S=k(S,y[w]);let A=[t[41]("BonusCardRowTitle")],H={};for(let w=0;w<A.length;w+=1)H=k(H,A[w]);function V(w,O){if(w[0]==="active")return Qg;if(w[0]==="completed")return Jg}let G=V(t),F=G&&G(t),M=[t[41]("BonusCardHeader")],$={};for(let w=0;w<M.length;w+=1)$=k($,M[w]);let J=eb(t),q=t[10]&&Fa(t);function L(w,O){return w[14]?yb:vb}let B=L(t),re=B(t),_e=[t[41]("BonusCardFooter")],ae={};for(let w=0;w<_e.length;w+=1)ae=k(ae,_e[w]);let X=[t[41]("BonusCardInfo")],oe={};for(let w=0;w<X.length;w+=1)oe=k(oe,X[w]);let Z=t[9]&&Ga(t),ie=[t[41]("BonusCard")],Q={};for(let w=0;w<ie.length;w+=1)Q=k(Q,ie[w]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),x&&x.c(),u=z(),c=D(d),h=z(),F&&F.c(),f=z(),J&&J.c(),b=z(),_=E("div"),q&&q.c(),C=z(),re.c(),v=z(),Z&&Z.c(),P(o,S),P(i,H),P(r,$),P(_,ae),se(_,"Active",t[11]||t[12]),P(n,oe),P(e,Q)},m(w,O){I(w,e,O),p(e,n),p(n,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),x&&x.m(o,null),p(i,u),p(i,c),p(r,h),F&&F.m(r,null),p(n,f),J&&J.m(n,null),p(n,b),p(n,_),q&&q.m(_,null),p(_,C),re.m(_,null),p(e,v),Z&&Z.m(e,null),t[59](e)},p(w,O){var ue;O[0]&32&&(s=w[33](w[5]).indexOf("Casino")>-1),s?g?g.p(w,O):(g=wa(w),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=w[33](w[5]).indexOf("Sports")>-1),l?x?x.p(w,O):(x=Ca(w),x.c(),x.m(o,null)):x&&(x.d(1),x=null),O[0]&32&&d!==(d=(w[5].name||((ue=w[5].presentation)==null?void 0:ue.name.content))+"")&&ne(c,d,H.contenteditable),G===(G=V(w))&&F?F.p(w,O):(F&&F.d(1),F=G&&G(w),F&&(F.c(),F.m(r,null))),J.p(w,O),w[10]?q?q.p(w,O):(q=Fa(w),q.c(),q.m(_,C)):q&&(q.d(1),q=null),B===(B=L(w))&&re?re.p(w,O):(re.d(1),re=B(w),re&&(re.c(),re.m(_,null))),O[0]&6144&&se(_,"Active",w[11]||w[12]),w[9]?Z?Z.p(w,O):(Z=Ga(w),Z.c(),Z.m(e,null)):Z&&(Z.d(1),Z=null)},d(w){w&&N(e),g&&g.d(),x&&x.d(),F&&F.d(),J&&J.d(),q&&q.d(),re.d(),Z&&Z.d(),t[59](null)}}}function wa(t){let e,n,r,i,o,s,a,l,u,d,c,h,f,b=[t[41]("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=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"),yl(e,_)},m(C,v){I(C,e,v),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},p:Pe,d(C){C&&N(e)}}}function Ca(t){let e,n,r,i,o,s,a=[t[41]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=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"),yl(e,l)},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),p(e,o),p(e,s)},p:Pe,d(u){u&&N(e)}}}function Jg(t){let e,n=t[25](`bonusCard.${t[5].status}`)+"",r,i=[t[41]("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=D(n),P(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&n!==(n=s[25](`bonusCard.${s[5].status}`)+"")&&ne(r,n,o.contenteditable)},d(s){s&&N(e)}}}function Qg(t){let e,n,r,i,o,s=[t[41]("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),n=ee("svg"),r=ee("path"),i=z(),o=D(t[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"),P(e,a)},m(l,u){I(l,e,u),p(e,n),p(n,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&ne(o,l[18],a.contenteditable)},d(l){l&&N(e)}}}function eb(t){let e,n,r;function i(h,f){return h[0]==="claimable"?nb:tb}let o=i(t),s=o(t),a=[t[41]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(t[0]==="active"||t[0]==="completed")&&Na(t),d=[t[41]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),n=E("div"),s.c(),r=z(),u&&u.c(),P(n,l),P(e,c)},m(h,f){I(h,e,f),p(e,n),s.m(n,null),p(e,r),u&&u.m(e,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=Na(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&N(e),s.d(),u&&u.d()}}}function tb(t){let e,n,r=t[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=t[25]("bonusCard.bonusType")+"",h,f,b,_,C=t[25](`bonusType.${t[5].type}`)+"",v,g,x,y,S,A,H=[t[41]("BonusCardLabel")],V={};for(let w=0;w<H.length;w+=1)V=k(V,H[w]);function G(w,O){return w[0]==="active"?ib:rb}let F=G(t),M=F(t),$=[t[41]("BonusCardRowText")],J={};for(let w=0;w<$.length;w+=1)J=k(J,$[w]);let q=[t[41]("BonusCardRow")],L={};for(let w=0;w<q.length;w+=1)L=k(L,q[w]);let B=[t[41]("BonusCardLabel")],re={};for(let w=0;w<B.length;w+=1)re=k(re,B[w]);let _e=[t[41]("BonusCardRowText","Type")],ae={};for(let w=0;w<_e.length;w+=1)ae=k(ae,_e[w]);let X=[t[41]("BonusCardRow")],oe={};for(let w=0;w<X.length;w+=1)oe=k(oe,X[w]);let Z=t[5].type==="standard"&&Ea(t),ie=t[5].type==="freeBet"&&Aa(t),Q=t[5].type==="freeRound"&&xa(t),K=t[5].type==="wagering"&&Sa(t);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),M.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),b=z(),_=E("span"),v=D(C),g=z(),Z&&Z.c(),x=z(),ie&&ie.c(),y=z(),Q&&Q.c(),S=z(),K&&K.c(),A=tt(),P(n,V),P(a,J),se(a,"StatusActive",t[0]==="active"),se(a,"StatusCompleted",t[0]==="completed"),se(a,"StatusClaimable",t[0]==="claimable"),P(e,L),P(d,re),P(_,ae),P(u,oe)},m(w,O){I(w,e,O),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),M.m(a,null),I(w,l,O),I(w,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,v),I(w,g,O),Z&&Z.m(w,O),I(w,x,O),ie&&ie.m(w,O),I(w,y,O),Q&&Q.m(w,O),I(w,S,O),K&&K.m(w,O),I(w,A,O)},p(w,O){O[0]&33554432&&r!==(r=w[25]("bonusCard.bonusStatus")+"")&&ne(i,r,V.contenteditable),F===(F=G(w))&&M?M.p(w,O):(M.d(1),M=F(w),M&&(M.c(),M.m(a,null))),O[0]&1&&se(a,"StatusActive",w[0]==="active"),O[0]&1&&se(a,"StatusCompleted",w[0]==="completed"),O[0]&1&&se(a,"StatusClaimable",w[0]==="claimable"),O[0]&33554432&&c!==(c=w[25]("bonusCard.bonusType")+"")&&ne(h,c,re.contenteditable),O[0]&33554464&&C!==(C=w[25](`bonusType.${w[5].type}`)+"")&&ne(v,C,ae.contenteditable),w[5].type==="standard"?Z?Z.p(w,O):(Z=Ea(w),Z.c(),Z.m(x.parentNode,x)):Z&&(Z.d(1),Z=null),w[5].type==="freeBet"?ie?ie.p(w,O):(ie=Aa(w),ie.c(),ie.m(y.parentNode,y)):ie&&(ie.d(1),ie=null),w[5].type==="freeRound"?Q?Q.p(w,O):(Q=xa(w),Q.c(),Q.m(S.parentNode,S)):Q&&(Q.d(1),Q=null),w[5].type==="wagering"?K?K.p(w,O):(K=Sa(w),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null)},d(w){w&&(N(e),N(l),N(u),N(g),N(x),N(y),N(S),N(A)),M.d(),Z&&Z.d(w),ie&&ie.d(w),Q&&Q.d(w),K&&K.d(w)}}}function nb(t){let e,n,r=t[25]("bonusCard.bonusType")+"",i,o,s,a,l=t[25](`bonusType.${t[5].type}`)+"",u,d,c,h,f,b,_,C,v=t[25]("bonusCard.validity")+"",g,x,y,S,A=t[32](t[5])+"",H,V,G,F,M=t[25]("bonusCard.validUntil")+"",$,J,q,L,B=t[39](t[5].trigger.endTime)+"",re,_e=[t[41]("BonusCardLabel")],ae={};for(let U=0;U<_e.length;U+=1)ae=k(ae,_e[U]);let X=[t[41]("BonusCardRowText","Type")],oe={};for(let U=0;U<X.length;U+=1)oe=k(oe,X[U]);let Z=[t[41]("BonusCardRow")],ie={};for(let U=0;U<Z.length;U+=1)ie=k(ie,Z[U]);let Q=t[5].type==="standard"&&Da(t),K=t[5].type==="freeBet"&&Ba(t),w=t[5].type==="freeRound"&&Ma(t),O=t[5].type==="wagering"&&Oa(t),ue=[t[41]("BonusCardLabel")],Ne={};for(let U=0;U<ue.length;U+=1)Ne=k(Ne,ue[U]);let Y=[t[41]("BonusCardRowText")],j={};for(let U=0;U<Y.length;U+=1)j=k(j,Y[U]);let Ee=[t[41]("BonusCardRow")],Ce={};for(let U=0;U<Ee.length;U+=1)Ce=k(Ce,Ee[U]);let Je=[t[41]("BonusCardLabel")],dt={};for(let U=0;U<Je.length;U+=1)dt=k(dt,Je[U]);let It=[t[41]("BonusCardRowText")],ze={};for(let U=0;U<It.length;U+=1)ze=k(ze,It[U]);let Lt=[t[41]("BonusCardRow")],ct={};for(let U=0;U<Lt.length;U+=1)ct=k(ct,Lt[U]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),Q&&Q.c(),c=z(),K&&K.c(),h=z(),w&&w.c(),f=z(),O&&O.c(),b=z(),_=E("p"),C=E("span"),g=D(v),x=D(":"),y=z(),S=E("span"),H=D(A),V=z(),G=E("p"),F=E("span"),$=D(M),J=D(":"),q=z(),L=E("span"),re=D(B),P(n,ae),P(a,oe),P(e,ie),P(C,Ne),P(S,j),P(_,Ce),P(F,dt),P(L,ze),P(G,ct)},m(U,be){I(U,e,be),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(U,d,be),Q&&Q.m(U,be),I(U,c,be),K&&K.m(U,be),I(U,h,be),w&&w.m(U,be),I(U,f,be),O&&O.m(U,be),I(U,b,be),I(U,_,be),p(_,C),p(C,g),p(C,x),p(_,y),p(_,S),p(S,H),I(U,V,be),I(U,G,be),p(G,F),p(F,$),p(F,J),p(G,q),p(G,L),p(L,re)},p(U,be){be[0]&33554432&&r!==(r=U[25]("bonusCard.bonusType")+"")&&ne(i,r,ae.contenteditable),be[0]&33554464&&l!==(l=U[25](`bonusType.${U[5].type}`)+"")&&ne(u,l,oe.contenteditable),U[5].type==="standard"?Q?Q.p(U,be):(Q=Da(U),Q.c(),Q.m(c.parentNode,c)):Q&&(Q.d(1),Q=null),U[5].type==="freeBet"?K?K.p(U,be):(K=Ba(U),K.c(),K.m(h.parentNode,h)):K&&(K.d(1),K=null),U[5].type==="freeRound"?w?w.p(U,be):(w=Ma(U),w.c(),w.m(f.parentNode,f)):w&&(w.d(1),w=null),U[5].type==="wagering"?O?O.p(U,be):(O=Oa(U),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),be[0]&33554432&&v!==(v=U[25]("bonusCard.validity")+"")&&ne(g,v,Ne.contenteditable),be[0]&32&&A!==(A=U[32](U[5])+"")&&ne(H,A,j.contenteditable),be[0]&33554432&&M!==(M=U[25]("bonusCard.validUntil")+"")&&ne($,M,dt.contenteditable),be[0]&32&&B!==(B=U[39](U[5].trigger.endTime)+"")&&ne(re,B,ze.contenteditable)},d(U){U&&(N(e),N(d),N(c),N(h),N(f),N(b),N(_),N(V),N(G)),Q&&Q.d(U),K&&K.d(U),w&&w.d(U),O&&O.d(U)}}}function rb(t){let e=t[25](`bonusCard.${t[5].status}`)+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function ib(t){let e=t[25](`bonusCard.${t[0]}`)+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&fe(n,e)},d(r){r&&N(n)}}}function Ea(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h,f,b=t[5].amount+"",_,C,v,g,x,y=t[25]("bonusCard.wageredAmount")+"",S,A,H,V,G=t[29](t[5])+t[17]+"",F,M,$=[t[41]("BonusCardLabel")],J={};for(let O=0;O<$.length;O+=1)J=k(J,$[O]);let q=[t[41]("BonusCardRowText")],L={};for(let O=0;O<q.length;O+=1)L=k(L,q[O]);let B=[t[41]("BonusCardRow")],re={};for(let O=0;O<B.length;O+=1)re=k(re,B[O]);let _e=[t[41]("BonusCardLabel")],ae={};for(let O=0;O<_e.length;O+=1)ae=k(ae,_e[O]);function X(O,ue){return O[5].initialWagerRequirementAmount>=2147483647?sb:ob}let oe=X(t),Z=oe(t),ie=[t[41]("BonusCardRowText")],Q={};for(let O=0;O<ie.length;O+=1)Q=k(Q,ie[O]);let K=[t[41]("BonusCardRow")],w={};for(let O=0;O<K.length;O+=1)w=k(w,K[O]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(t[17]),h=D(` /
|
|
3573
|
+
`),f=E("span"),_=D(b),C=D(t[17]),v=z(),g=E("p"),x=E("span"),S=D(y),A=D(":"),H=z(),V=E("span"),F=D(G),M=D(` /
|
|
3574
|
+
`),Z.c(),P(n,J),se(l,"BonusAmount",t[0]==="active"),se(f,"Amount",t[0]==="active"),P(a,L),P(e,re),P(x,ae),P(V,Q),P(g,w)},m(O,ue){I(O,e,ue),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,C),I(O,v,ue),I(O,g,ue),p(g,x),p(x,S),p(x,A),p(g,H),p(g,V),p(V,F),p(V,M),Z.m(V,null)},p(O,ue){ue[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&ne(i,r,J.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(C,O[17]),ue[0]&1&&se(f,"Amount",O[0]==="active"),ue[0]&33554432&&y!==(y=O[25]("bonusCard.wageredAmount")+"")&&ne(S,y,ae.contenteditable),ue[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&ne(F,G,Q.contenteditable),oe===(oe=X(O))&&Z?Z.p(O,ue):(Z.d(1),Z=oe(O),Z&&(Z.c(),Z.m(V,null)))},d(O){O&&(N(e),N(v),N(g)),Z.d()}}}function ob(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function sb(t){let e;return{c(){e=D("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function Aa(t){let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[5].remainingAmount+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=[t[41]("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=k(_,b[g]);let C=[t[41]("BonusCardRow")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(t[17]),P(n,f),se(l,"BonusAmount",t[0]==="active"),P(a,_),P(e,v)},m(g,x){I(g,e,x),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,x){x[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&ne(i,r,f.contenteditable),x[0]&32&&u!==(u=g[5].remainingAmount+"")&&fe(d,u),x[0]&131072&&fe(c,g[17]),x[0]&1&&se(l,"BonusAmount",g[0]==="active")},d(g){g&&N(e)}}}function xa(t){let e,n=t[5].status==="active"&&Ta(t);return{c(){n&&n.c(),e=tt()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5].status==="active"?n?n.p(r,i):(n=Ta(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&N(e),n&&n.d(r)}}}function Ta(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[5].numberOfFreeSpin+"",u,d,c,h,f=t[25]("bonusCard.game")+"",b,_,C,v,g,x,y,S,A,H,V,G,F,M,$,J,q,L,B,re=[t[41]("BonusCardLabel")],_e={};for(let j=0;j<re.length;j+=1)_e=k(_e,re[j]);let ae=[t[41]("BonusCardRowText")],X={};for(let j=0;j<ae.length;j+=1)X=k(X,ae[j]);let oe=[t[41]("BonusCardRow")],Z={};for(let j=0;j<oe.length;j+=1)Z=k(Z,oe[j]);let ie=[t[41]("BonusCardLabel")],Q={};for(let j=0;j<ie.length;j+=1)Q=k(Q,ie[j]);let K=He(t[23]),w=[];for(let j=0;j<K.length;j+=1)w[j]=Pa(va(t,K,j));let O=[t[41]("BonusCardRowText")],ue={};for(let j=0;j<O.length;j+=1)ue=k(ue,O[j]);let Ne=[t[41]("BonusCardRow")],Y={};for(let j=0;j<Ne.length;j+=1)Y=k(Y,Ne[j]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("div"),h=E("div"),b=D(f),_=D(":"),C=z(),v=E("div"),g=E("div"),x=E("button"),y=ee("svg"),S=ee("path"),H=z(),V=E("div"),G=E("span");for(let j=0;j<w.length;j+=1)w[j].c();F=z(),M=E("button"),$=ee("svg"),J=ee("path"),P(n,_e),P(a,X),P(e,Z),P(h,Q),m(S,"stroke-linecap","round"),m(S,"stroke-linejoin","round"),m(S,"stroke-width","2"),m(S,"d","M15 19l-7-7 7-7"),m(y,"fill","none"),m(y,"stroke","currentColor"),m(y,"viewBox","0 0 24 24"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(x,"class","SliderNavButton"),m(x,"part","SliderNavButton"),x.disabled=A=t[24]==0,se(x,"Hide",t[23].length<=3),m(G,"class","Games"),Qo(G,"transform","translateX("+t[24]+"px)"),m(V,"class","Main"),m(J,"stroke-linecap","round"),m(J,"stroke-linejoin","round"),m(J,"stroke-width","2"),m(J,"d","M9 5l7 7-7 7"),m($,"fill","none"),m($,"stroke","currentColor"),m($,"viewBox","0 0 24 24"),m($,"xmlns","http://www.w3.org/2000/svg"),m(M,"class","SliderNavButton"),m(M,"part","SliderNavButton"),M.disabled=q=t[24]<=-(t[23].length-3)*100,se(M,"Hide",t[23].length<=3),m(g,"class","BonusGamesSlider"),P(v,ue),P(c,Y)},m(j,Ee){I(j,e,Ee),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(j,d,Ee),I(j,c,Ee),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),p(v,g),p(g,x),p(x,y),p(y,S),p(g,H),p(g,V),p(V,G);for(let Ce=0;Ce<w.length;Ce+=1)w[Ce]&&w[Ce].m(G,null);p(g,F),p(g,M),p(M,$),p($,J),L||(B=[xe(x,"click",t[52]),xe(M,"click",t[56])],L=!0)},p(j,Ee){if(Ee[0]&33554432&&r!==(r=j[25]("bonusCard.roundNumber")+"")&&ne(i,r,_e.contenteditable),Ee[0]&32&&l!==(l=j[5].numberOfFreeSpin+"")&&ne(u,l,X.contenteditable),Ee[0]&33554432&&f!==(f=j[25]("bonusCard.game")+"")&&ne(b,f,Q.contenteditable),Ee[0]&16777216&&A!==(A=j[24]==0)&&(x.disabled=A),Ee[0]&8388608&&se(x,"Hide",j[23].length<=3),Ee[0]&48234496|Ee[1]&14336){K=He(j[23]);let Ce;for(Ce=0;Ce<K.length;Ce+=1){const Je=va(j,K,Ce);w[Ce]?w[Ce].p(Je,Ee):(w[Ce]=Pa(Je),w[Ce].c(),w[Ce].m(G,null))}for(;Ce<w.length;Ce+=1)w[Ce].d(1);w.length=K.length}Ee[0]&16777216&&Qo(G,"transform","translateX("+j[24]+"px)"),Ee[0]&25165824&&q!==(q=j[24]<=-(j[23].length-3)*100)&&(M.disabled=q),Ee[0]&8388608&&se(M,"Hide",j[23].length<=3)},d(j){j&&(N(e),N(d),N(c)),vt(w,j),L=!1,qe(B)}}}function Pa(t){let e,n,r=t[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return t[53](t[88])}function C(){return t[54](t[90])}return{c(){e=E("span"),n=E("span"),i=D(r),a=z(),l=E("img"),h=z(),m(n,"class",o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":"")),m(n,"part",s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":"")),Jo(l.src,u=t[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=t[88].name),m(l,"title",c=t[88].name),m(e,"class","Game"),m(e,"part","Game")},m(v,g){I(v,e,g),p(e,n),p(n,i),p(e,a),p(e,l),p(e,h),f||(b=[xe(e,"click",_),xe(e,"mouseenter",C),xe(e,"mouseleave",t[55])],f=!0)},p(v,g){t=v,g[0]&33554432&&r!==(r=t[25]("bonusCard.playNow")+"")&&fe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(t[21]&&t[22]==t[90]?"ItemHover":""))&&m(n,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(t[21]&&t[22]==t[90]?"itemHover":""))&&m(n,"part",s),g[0]&8388608&&!Jo(l.src,u=t[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=t[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=t[88].name)&&m(l,"title",c)},d(v){v&&N(e),f=!1,qe(b)}}}function Sa(t){let e,n,r=t[25]("bonusCard.wageringType")+"",i,o,s,a,l=t[25](`bonusCard.${t[5].wageringType}`)+"",u,d,c,h,f=t[25]("bonusCard.wagered")+"",b,_,C,v,g=[t[41]("BonusCardLabel")],x={};for(let L=0;L<g.length;L+=1)x=k(x,g[L]);let y=[t[41]("BonusCardRowText")],S={};for(let L=0;L<y.length;L+=1)S=k(S,y[L]);let A=[t[41]("BonusCardRow")],H={};for(let L=0;L<A.length;L+=1)H=k(H,A[L]);let V=[t[41]("BonusCardLabel")],G={};for(let L=0;L<V.length;L+=1)G=k(G,V[L]);let F=t[5].wageringType==="money"&&ka(t),M=[t[41]("BonusCardRowText")],$={};for(let L=0;L<M.length;L+=1)$=k($,M[L]);let J=[t[41]("BonusCardRow")],q={};for(let L=0;L<J.length;L+=1)q=k(q,J[L]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("p"),h=E("span"),b=D(f),_=D(":"),C=z(),v=E("span"),F&&F.c(),P(n,x),P(a,S),P(e,H),P(h,G),P(v,$),P(c,q)},m(L,B){I(L,e,B),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u),I(L,d,B),I(L,c,B),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),F&&F.m(v,null)},p(L,B){B[0]&33554432&&r!==(r=L[25]("bonusCard.wageringType")+"")&&ne(i,r,x.contenteditable),B[0]&33554464&&l!==(l=L[25](`bonusCard.${L[5].wageringType}`)+"")&&ne(u,l,S.contenteditable),B[0]&33554432&&f!==(f=L[25]("bonusCard.wagered")+"")&&ne(b,f,G.contenteditable),L[5].wageringType==="money"?F?F.p(L,B):(F=ka(L),F.c(),F.m(v,null)):F&&(F.d(1),F=null)},d(L){L&&(N(e),N(d),N(c)),F&&F.d()}}}function ka(t){let e;function n(o,s){return o[0]==="active"?lb:ab}let r=n(t),i=r(t);return{c(){i.c(),e=tt()},m(o,s){i.m(o,s),I(o,e,s)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&N(e),i.d(o)}}}function ab(t){let e=t[29](t[5])+t[17]+"",n,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?db:ub}let s=o(t),a=s(t);return{c(){n=D(e),r=D(` /
|
|
3575
|
+
`),a.c(),i=tt()},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&&e!==(e=l[29](l[5])+l[17]+"")&&fe(n,e),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 lb(t){var d;let e=t[30](t[5])+"",n,r,i,o,s=((d=t[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){n=D(e),r=z(),i=D(t[17]),o=D(` /
|
|
3576
|
+
`),a=D(s),l=z(),u=D(t[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&&e!==(e=c[30](c[5])+"")&&fe(n,e),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 ub(t){let e=t[5].initialWagerRequirementAmount+t[17]+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&fe(n,e)},d(r){r&&N(n)}}}function db(t){let e;return{c(){e=D("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function Da(t){var _e,ae;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((ae=(_e=t[5].wallet.standard)==null?void 0:_e.initialAmount)==null?void 0:ae.fixedAmount)+"",d,c,h,f,b,_=t[25]("bonusCard.wageringRequirement")+"",C,v,g,x,y=t[37](t[5])+t[17]+"",S,A=[t[41]("BonusCardLabel")],H={};for(let X=0;X<A.length;X+=1)H=k(H,A[X]);let V=[t[41]("BonusCardRowText")],G={};for(let X=0;X<V.length;X+=1)G=k(G,V[X]);let F=[t[41]("BonusCardRow")],M={};for(let X=0;X<F.length;X+=1)M=k(M,F[X]);let $=[t[41]("BonusCardLabel")],J={};for(let X=0;X<$.length;X+=1)J=k(J,$[X]);let q=[t[41]("BonusCardRowText")],L={};for(let X=0;X<q.length;X+=1)L=k(L,q[X]);let B=[t[41]("BonusCardRow")],re={};for(let X=0;X<B.length;X+=1)re=k(re,B[X]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(t[17]),h=z(),f=E("p"),b=E("span"),C=D(_),v=D(":"),g=z(),x=E("span"),S=D(y),P(n,H),P(a,G),P(e,M),P(b,J),P(x,L),P(f,re)},m(X,oe){I(X,e,oe),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),I(X,h,oe),I(X,f,oe),p(f,b),p(b,C),p(b,v),p(f,g),p(f,x),p(x,S)},p(X,oe){var Z,ie;oe[0]&33554432&&r!==(r=X[25]("bonusCard.bonusAmount")+"")&&ne(i,r,H.contenteditable),oe[0]&32&&u!==(u=X[36]((ie=(Z=X[5].wallet.standard)==null?void 0:Z.initialAmount)==null?void 0:ie.fixedAmount)+"")&&fe(d,u),oe[0]&131072&&fe(c,X[17]),oe[0]&33554432&&_!==(_=X[25]("bonusCard.wageringRequirement")+"")&&ne(C,_,J.contenteditable),oe[0]&131104&&y!==(y=X[37](X[5])+X[17]+"")&&ne(S,y,L.contenteditable)},d(X){X&&(N(e),N(h),N(f))}}}function Ba(t){var g,x;let e,n,r=t[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=t[36]((x=(g=t[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:x.fixedAmount)+"",d,c,h=[t[41]("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=k(f,h[y]);let b=[t[41]("BonusCardRowText")],_={};for(let y=0;y<b.length;y+=1)_=k(_,b[y]);let C=[t[41]("BonusCardRow")],v={};for(let y=0;y<C.length;y+=1)v=k(v,C[y]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(t[17]),P(n,f),P(a,_),P(e,v)},m(y,S){I(y,e,S),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(y,S){var A,H;S[0]&33554432&&r!==(r=y[25]("bonusCard.bonusAmount")+"")&&ne(i,r,f.contenteditable),S[0]&32&&u!==(u=y[36]((H=(A=y[5].wallet.freeBet)==null?void 0:A.initialAmount)==null?void 0:H.fixedAmount)+"")&&fe(d,u),S[0]&131072&&fe(c,y[17])},d(y){y&&N(e)}}}function Ma(t){let e,n,r=t[25]("bonusCard.roundNumber")+"",i,o,s,a,l=t[38](t[5])+"",u,d=[t[41]("BonusCardLabel")],c={};for(let C=0;C<d.length;C+=1)c=k(c,d[C]);let h=[t[41]("BonusCardRowText")],f={};for(let C=0;C<h.length;C+=1)f=k(f,h[C]);let b=[t[41]("BonusCardRow")],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),P(n,c),P(a,f),P(e,_)},m(C,v){I(C,e,v),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),p(a,u)},p(C,v){v[0]&33554432&&r!==(r=C[25]("bonusCard.roundNumber")+"")&&ne(i,r,c.contenteditable),v[0]&32&&l!==(l=C[38](C[5])+"")&&ne(u,l,f.contenteditable)},d(C){C&&N(e)}}}function Oa(t){let e,n,r=t[25]("bonusCard.levels")+"",i,o,s,a,l=[t[41]("BonusCardLabel")],u={};for(let v=0;v<l.length;v+=1)u=k(u,l[v]);function d(v,g){return v[8]>0?hb:cb}let c=d(t),h=c(t),f=[t[41]("BonusCardRowText")],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[t[41]("BonusCardRow")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=E("p"),n=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),h.c(),P(n,u),P(a,b),P(e,C)},m(v,g){I(v,e,g),p(e,n),p(n,i),p(n,o),p(e,s),p(e,a),h.m(a,null)},p(v,g){g[0]&33554432&&r!==(r=v[25]("bonusCard.levels")+"")&&ne(i,r,u.contenteditable),c===(c=d(v))&&h?h.p(v,g):(h.d(1),h=c(v),h&&(h.c(),h.m(a,null)))},d(v){v&&N(e),h.d()}}}function cb(t){let e;return{c(){e=D("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function hb(t){let e;return{c(){e=D(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Na(t){let e,n,r=t[5].type==="standard"&&Ia(t),i=t[5].type==="wagering"&&La(t);return{c(){r&&r.c(),e=z(),i&&i.c(),n=tt()},m(o,s){r&&r.m(o,s),I(o,e,s),i&&i.m(o,s),I(o,n,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=Ia(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=La(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(N(e),N(n)),r&&r.d(o),i&&i.d(o)}}}function Ia(t){let e,n,r,i=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[t[41]("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("div"),n=E("casino-bonus-progress"),P(n,o),P(e,a)},m(l,u){I(l,e,u),p(e,n)},p(l,u){P(n,o=Se(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(e)}}}function La(t){var S;let e,n,r,i,o,s=t[25]("bonusCard.level")+"",a,l,u=(((S=t[5].wageringProgress)==null?void 0:S.currentLevel)||1)+"",d,c,h=[t[41]("CircularProgress"),{value:r=t[31](t[5])},{status:t[0]},{clientstyling:t[2]},{clientstylingurl:t[3]},{mbsource:t[1]}],f={};for(let A=0;A<h.length;A+=1)f=k(f,h[A]);function b(A,H){return A[8]>0?pb:fb}let _=b(t),C=_(t),v=[t[41]("CircularProgressText")],g={};for(let A=0;A<v.length;A+=1)g=k(g,v[A]);let x=[t[41]("BonusCardProgress")],y={};for(let A=0;A<x.length;A+=1)y=k(y,x[A]);return{c(){e=E("div"),n=E("casino-bonus-progress"),i=z(),o=E("div"),a=D(s),l=D(": "),d=D(u),c=D(` /
|
|
3577
|
+
`),C.c(),P(n,f),P(o,g),P(e,y)},m(A,H){I(A,e,H),p(e,n),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),C.m(o,null)},p(A,H){var V;P(n,f=Se(h,[A[41]("CircularProgress"),H[0]&32&&r!==(r=A[31](A[5]))&&{value:r},H[0]&1&&{status:A[0]},H[0]&4&&{clientstyling:A[2]},H[0]&8&&{clientstylingurl:A[3]},H[0]&2&&{mbsource:A[1]}])),H[0]&33554432&&s!==(s=A[25]("bonusCard.level")+"")&&ne(a,s,g.contenteditable),H[0]&32&&u!==(u=(((V=A[5].wageringProgress)==null?void 0:V.currentLevel)||1)+"")&&ne(d,u,g.contenteditable),_===(_=b(A))&&C?C.p(A,H):(C.d(1),C=_(A),C&&(C.c(),C.m(o,null)))},d(A){A&&N(e),C.d()}}}function fb(t){let e;return{c(){e=D("∞")},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function pb(t){let e;return{c(){e=D(t[8])},m(n,r){I(n,e,r)},p(n,r){r[0]&256&&fe(e,n[8])},d(n){n&&N(e)}}}function Fa(t){let e,n,r,i,o,s,a=t[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[t[41]("BonusCardAdditionalTitle")],_={};for(let F=0;F<b.length;F+=1)_=k(_,b[F]);function C(F,M){return F[11]?mb:_b}let v=C(t),g=v(t),x=[t[41]("BonusCardAdditionalButton")],y={};for(let F=0;F<x.length;F+=1)y=k(y,x[F]);let S=[t[41]("BonusCardAdditionalHeader")],A={};for(let F=0;F<S.length;F+=1)A=k(A,S[F]);let H=t[11]&&Ha(t),V=[t[41]("BonusCardAdditional")],G={};for(let F=0;F<V.length;F+=1)G=k(G,V[F]);return{c(){e=E("div"),n=E("div"),r=E("span"),i=ee("svg"),o=ee("path"),s=z(),l=D(a),u=z(),d=E("span"),g.c(),c=z(),H&&H.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"),P(r,_),P(d,y),P(n,A),se(n,"Active",t[11]),P(e,G)},m(F,M){I(F,e,M),p(e,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(e,c),H&&H.m(e,null),h||(f=xe(n,"click",t[57]),h=!0)},p(F,M){M[0]&33554432&&a!==(a=F[25]("bonusCard.rewards")+"")&&ne(l,a,_.contenteditable),v!==(v=C(F))&&(g.d(1),g=v(F),g&&(g.c(),g.m(d,null))),M[0]&2048&&se(n,"Active",F[11]),F[11]?H?H.p(F,M):(H=Ha(F),H.c(),H.m(e,null)):H&&(H.d(1),H=null)},d(F){F&&N(e),g.d(),H&&H.d(),h=!1,f()}}}function mb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function _b(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Ha(t){let e,n=t[5].type==="wagering"&&Ra(t),r=[t[41]("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),n&&n.c(),P(e,i)},m(o,s){I(o,e,s),n&&n.m(e,null)},p(o,s){o[5].type==="wagering"?n?n.p(o,s):(n=Ra(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&N(e),n&&n.d()}}}function Ra(t){let e,n=t[5].levels.length>Number(t[4]),r;function i(l,u){if(l[5].status)return bb;if(l[5].levels)return gb}let o=i(t),s=o&&o(t),a=n&&Va(t);return{c(){s&&s.c(),e=z(),a&&a.c(),r=tt()},m(l,u){s&&s.m(l,u),I(l,e,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(e.parentNode,e))),u[0]&48&&(n=l[5].levels.length>Number(l[4])),n?a?a.p(l,u):(a=Va(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(N(e),N(r)),s&&s.d(l),a&&a.d(l)}}}function gb(t){let e,n=He(t[5].levels.slice(0,t[4])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Ua(ma(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=tt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&1048){n=He(i[5].levels.slice(0,i[4]));let s;for(s=0;s<n.length;s+=1){const a=ma(i,n,s);r[s]?r[s].p(a,o):(r[s]=Ua(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),vt(r,i)}}}function bb(t){let e,n=He(t[40](t[5],t[7])),r=[];for(let i=0;i<n.length;i+=1)r[i]=Wa(ga(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=tt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);I(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&1536){n=He(i[40](i[5],i[7]));let s;for(s=0;s<n.length;s+=1){const a=ga(i,n,s);r[s]?r[s].p(a,o):(r[s]=Wa(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&N(e),vt(r,i)}}}function za(t){let e=t[35](t[82],t[85])+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(n,e)},d(r){r&&N(n)}}}function Ua(t){let e,n,r=t[25]("bonusCard.level")+"",i,o,s=t[34](t[5].levels,t[84])+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=He(t[82].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=za(_a(t,b,g));let C=[t[41]("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),n=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),P(n,f),P(e,v)},m(g,x){I(g,e,x),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,x){if(x[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&ne(i,r,f.contenteditable),x[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&ne(a,s,f.contenteditable),x[0]&48|x[1]&16){b=He(g[82].bonuses);let y;for(y=0;y<b.length;y+=1){const S=_a(g,b,y);_[y]?_[y].p(S,x):(_[y]=za(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&N(e),vt(_,g)}}}function $a(t){let e=t[79]+"",n;return{c(){n=D(e)},m(r,i){I(r,n,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(n,e)},d(r){r&&N(n)}}}function Wa(t){let e,n,r=t[25](`bonusCard.${t[76].label}`)+"",i,o,s=t[25]("bonusCard.level")+"",a,l,u,d,c,h=[t[41]("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=He(t[76].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=$a(ba(t,b,g));let C=[t[41]("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),n=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),P(n,f),P(e,v)},m(g,x){I(g,e,x),p(e,n),p(n,i),p(n,o),p(n,a),p(n,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,x){if(x[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&ne(i,r,f.contenteditable),x[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&ne(a,s,f.contenteditable),x[0]&160|x[1]&512){b=He(g[76].desc);let y;for(y=0;y<b.length;y+=1){const S=ba(g,b,y);_[y]?_[y].p(S,x):(_[y]=$a(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&N(e),vt(_,g)}}}function Va(t){let e,n=t[25]("bonusCard.allRewards")+"",r,i,o,s=[t[41]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=D(n),P(e,a)},m(l,u){I(l,e,u),p(e,r),i||(o=xe(e,"click",t[28]),i=!0)},p(l,u){u[0]&33554432&&n!==(n=l[25]("bonusCard.allRewards")+"")&&ne(r,n,a.contenteditable)},d(l){l&&N(e),i=!1,o()}}}function vb(t){let e,n,r,i,o,s,a,l,u,d,c=t[25]("bonusCard.terms")+"",h,f=[t[41]("BonusCardTermsLink"),{href:t[20]},{target:"__blank"}],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[t[41]("BonusCardTerms")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=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=z(),h=D(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"),P(n,b),P(e,C)},m(v,g){I(v,e,g),p(e,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(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&ne(h,c,b.contenteditable),P(n,b=Se(f,[v[41]("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&N(e)}}}function yb(t){let e,n,r,i,o,s,a,l,u,d,c,h=t[25]("bonusCard.terms")+"",f,b,_,C,v,g,x=[t[41]("BonusCardTermsTitle")],y={};for(let L=0;L<x.length;L+=1)y=k(y,x[L]);function S(L,B){return L[12]?wb:Cb}let A=S(t),H=A(t),V=[t[41]("BonusCardTermsButton")],G={};for(let L=0;L<V.length;L+=1)G=k(G,V[L]);let F=[t[41]("BonusCardTermsHeader")],M={};for(let L=0;L<F.length;L+=1)M=k(M,F[L]);let $=t[12]&&ja(t),J=[t[41]("BonusCardTerms")],q={};for(let L=0;L<J.length;L+=1)q=k(q,J[L]);return{c(){e=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=z(),f=D(h),b=z(),_=E("span"),H.c(),C=z(),$&&$.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"),P(r,y),P(_,G),P(n,M),se(n,"Active",t[12]),P(e,q)},m(L,B){I(L,e,B),p(e,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,_),H.m(_,null),p(e,C),$&&$.m(e,null),v||(g=xe(n,"click",t[58]),v=!0)},p(L,B){B[0]&33554432&&h!==(h=L[25]("bonusCard.terms")+"")&&ne(f,h,y.contenteditable),A!==(A=S(L))&&(H.d(1),H=A(L),H&&(H.c(),H.m(_,null))),B[0]&4096&&se(n,"Active",L[12]),L[12]?$?$.p(L,B):($=ja(L),$.c(),$.m(e,null)):$&&($.d(1),$=null)},d(L){L&&N(e),H.d(),$&&$.d(),v=!1,g()}}}function wb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function Cb(t){let e,n;return{c(){e=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(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){I(r,e,i),p(e,n)},d(r){r&&N(e)}}}function ja(t){let e,n,r,i,o=[t[41]("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),P(e,s)},m(a,l){I(a,e,l),r||(i=Hd(n=t[45].call(null,e,t[16].terms_and_conditions)),r=!0)},p(a,l){n&&zn(n.update)&&l[0]&65536&&n.update.call(null,a[16].terms_and_conditions)},d(a){a&&N(e),r=!1,i()}}}function Ga(t){let e,n,r,i=t[0]==="claimable"&&Ya(t),o=t[0]==="active"&&t[5].status==="active"&&Xa(t),s=[t[41]("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[t[41]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),n=E("div"),i&&i.c(),r=z(),o&&o.c(),P(n,a),P(e,u)},m(d,c){I(d,e,c),p(e,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=Ya(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=Xa(d),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},d(d){d&&N(e),i&&i.d(),o&&o.d()}}}function Ya(t){let e,n,r,i,o,s,a,l,u,d=t[25]("bonusCard.join")+"",c,h,f,b,_=t[15]===!0&&qa(t),C=[t[41]("BonusCardJoinCountdown")],v={};for(let A=0;A<C.length;A+=1)v=k(v,C[A]);let g=[t[41]("BonusJoinButton"),{type:"button"},{disabled:h=!t[13]}],x={};for(let A=0;A<g.length;A+=1)x=k(x,g[A]);let y=[t[41]("BonusCardJoinWrapper")],S={};for(let A=0;A<y.length;A+=1)S=k(S,y[A]);return{c(){e=E("div"),_&&_.c(),n=z(),r=E("span"),i=ee("svg"),o=ee("path"),s=z(),a=D(t[19]),l=z(),u=E("button"),c=D(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"),P(r,v),P(u,x),P(e,S)},m(A,H){I(A,e,H),_&&_.m(e,null),p(e,n),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=xe(u,"click",t[26]),f=!0)},p(A,H){A[15]===!0?_?_.p(A,H):(_=qa(A),_.c(),_.m(e,n)):_&&(_.d(1),_=null),H[0]&524288&&ne(a,A[19],v.contenteditable),H[0]&33554432&&d!==(d=A[25]("bonusCard.join")+"")&&ne(c,d,x.contenteditable),P(u,x=Se(g,[A[41]("BonusJoinButton"),{type:"button"},H[0]&8192&&h!==(h=!A[13])&&{disabled:h}]))},d(A){A&&N(e),_&&_.d(),f=!1,b()}}}function qa(t){let e,n=t[25]("bonusCard.error")+"",r,i=[t[41]("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=D(n),P(e,o)},m(s,a){I(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&n!==(n=s[25]("bonusCard.error")+"")&&ne(r,n,o.contenteditable)},d(s){s&&N(e)}}}function Xa(t){let e,n=t[25]("bonusCard.forfeit")+"",r,i,o,s,a=[t[41]("BonusForfeitButton"),{type:"button"},{disabled:i=!t[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=D(n),P(e,l)},m(u,d){I(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=xe(e,"click",t[27]),o=!0)},p(u,d){d[0]&33554432&&n!==(n=u[25]("bonusCard.forfeit")+"")&&ne(r,n,l.contenteditable),P(e,l=Se(a,[u[41]("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&N(e),o=!1,s()}}}function Eb(t){let e,n=t[5]&&ya(t);return{c(){n&&n.c(),e=tt()},m(r,i){n&&n.m(r,i),I(r,e,i)},p(r,i){r[5]?n?n.p(r,i):(n=ya(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Pe,o:Pe,d(r){r&&N(e),n&&n.d(r)}}}function Ab(t,e,n){let r,i;bl(t,Xl,T=>n(25,i=T));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_,C=[],v,g=!1,x=!1,y=!1,S=!1,A=!0,H=!1,V=!1,G={},F,M,$="",J=1e3*30,q,L,B="",re=!1,_e,ae=[],X=0;const oe=()=>{fetch(h).then(R=>R.json()).then(R=>{Object.keys(R).forEach(te=>{br(te,R[te])})}).catch(R=>{console.log(R)})};Object.keys(vr).forEach(T=>{br(T,vr[T])}),Mr(()=>(window.addEventListener("message",ue,!1),()=>{window.removeEventListener("message",ue)}));const Z=()=>{var T,R;try{n(5,_=JSON.parse(o))}catch(te){}_&&(_.type==="wagering"&&n(10,x=!0),n(17,F=pa(_.currency||b)),n(7,C=Q(_.levels||((R=(T=_.wallet)==null?void 0:T.wagering)==null?void 0:R.levels))),_.type==="freeRound"&&n(23,ae=ie(_.freeSpin)),Ce())},ie=T=>{if(!T||!T.vendorGamesDetail)return[];let R=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(te=>{R=T.vendorGamesDetail[te]}),R},Q=T=>{if(!T)return[];const R=[];let te=!1;return T.map((pe,ve)=>{const Ge=pe,{maxRepeats:ce,completedTime:Fe}=Ge,We=li(Ge,["maxRepeats","completedTime"]);ce===0&&(te=!0,R.push(ft({},We)));for(let De=0;De<ce;De++)R.push(ft({},We))}),te?n(8,v=0):n(8,v=R.length),R},K=()=>{n(13,A=!1),n(15,V=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},w=()=>{n(13,A=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},O=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},ue=T=>{switch(T.data.type){case"OnBonusClaimedDone":n(13,A=!0);break;case"OnBonusForfeitedDone":n(13,A=!0);case"OnBonusClaimError":T.data.bonusCode===_.code&&n(15,V=!0);break}},Ne=(T,R)=>({remainder:T%R,quotient:Math.floor(T/R)}),Y=T=>{const R=new Date;return new Date(T).getTime()-R.getTime()},j=T=>{const R=Y(T)/6e4,{quotient:te,remainder:pe}=Ne(R,1440),{quotient:ve,remainder:ce}=Ne(pe,60),Fe=Math.floor(ce),We=De=>Math.abs(De)<10?`0${De}`:De;return[{value:te,symbol:"d"},{value:ve,symbol:"h"},{value:Fe,symbol:"m"}].map(De=>We(De.value)+De.symbol).join(" ")},Ee=(T,R,te,pe)=>{const ve=Y(T);ve<0?te():(pe(j(T)),ve<R&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},ve))},Ce=()=>{var pe;if(!_)return;const T=(ve,ce,Fe)=>{Ee(ve,J,()=>ce(Fe),ce)},R=i("bonusCard.expired"),te=_.endTime||((pe=_.trigger)==null?void 0:pe.endTime);te&&T(te,ve=>{n(19,$=ve),n(18,M=ve)},R),_.expiryDate&&T(_.expiryDate,ve=>n(18,M=ve),R)},Je=T=>{let R=(T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount).toFixed(2);return T.status==="released"&&T.type==="wagering"&&(R=(Number(R)+T.remainingAmount).toFixed(2)),parseFloat(R).toString()},dt=T=>{var R,te;return(((R=T.wageringProgress)==null?void 0:R.currentLevelIncrement)-((te=T.wageringProgress)==null?void 0:te.gap)).toFixed(2)},It=T=>{var pe,ve,ce;let R,te;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(te=(pe=T.wageringProgress)==null?void 0:pe.currentLevelIncrement,te!=0&&(R=((((ve=T.wageringProgress)==null?void 0:ve.currentLevelIncrement)-((ce=T.wageringProgress)==null?void 0:ce.gap))/te*100).toFixed(2))):T.status=="released"?R=100:(te=T.initialWagerRequirementAmount,te!=0&&(R=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/te*100).toFixed(2))),Number(R)},ze=T=>{if(!T.wallet)return"";const R=["freeBet","freeRound"].includes(T.type)?T.wallet[T.type]:T.wallet,{validityMinutes:te,expiryTime:pe}=R;if(te===0)return pe?An(new Date(pe),"yyyy-MM-dd HH:mm:ss"):i("bonusCard.infinite");const ve=Math.round(te/1440);return`${ve} ${i(ve===1?"bonusCard.day":"bonusCard.days")}`},Lt=T=>{if(T.products)return T.products;{let R=[];return T.wallet&&(T.wallet.casino&&R.push("Casino"),T.wallet.sports&&R.push("Sports")),R}},ct=(T,R)=>{const te=i(`bonusType.${R.type}`),pe=pa(R.amountCurrency||_.currency||b);return R.mode==="percentage"?`${R.bonusAmount*100}% ${i("bonusCard.upTo")} ${pe}${R.capAmount} ${te}`:R.mode==="fixed"?`${pe}${R.bonusAmount} ${te}`:te},U=(T,R)=>{const te=We=>We===0?0:T.slice(0,We).reduce((Ge,De)=>Ge+De.maxRepeats,0),pe=T[R],ce=te(R)+1,Fe=ce+pe.maxRepeats-1;return pe.maxRepeats>1?`${ce}-${Fe}`:`${R+1}`},be=(T,R)=>{switch(R.type){case"standard":case"freeBet":return ct(T,R);case"freeRound":return i("bonusCard.freeSpins",{values:{count:R.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return i("bonusCard.enrollTo",{values:{name:i(`bonusType.${R.type}`)}});default:return""}},dn=T=>{var R,te;return Number((te=(R=T==null?void 0:T[b])!=null?R:T==null?void 0:T.EUR)!=null?te:0)},Jr=T=>{var pe,ve,ce,Fe;const R=dn((ce=(ve=(pe=T.wallet)==null?void 0:pe.standard)==null?void 0:ve.initialAmount)==null?void 0:ce.fixedAmount),te=((Fe=T.wallet)==null?void 0:Fe.wageringRequirementCoefficient)||0;return Number((R*te).toFixed(2))},Qr=T=>{var pe,ve,ce;const R=(ve=(pe=T.wallet)==null?void 0:pe.freeRound)==null?void 0:ve.vendor;if(!R)return 0;const te=Object.keys(R)[0];return((ce=R[te])==null?void 0:ce.roundNumber)||0},ei=T=>T===void 0?"":An(new Date(T),"yyyy-MM-dd HH:mm:ss"),ti=(T,R)=>{var Fe,We;const te=((Fe=T.wageringProgress)==null?void 0:Fe.currentLevel)-1||0,pe=R.length-1,ve=((We=T.levels[0])==null?void 0:We.maxRepeats)===0,ce=Ge=>Ge.filter(De=>De.index>=0&&De.index<=pe||ve).map(De=>{const cn=R[De.index]||R[0];return{label:De.label,desc:cn.bonuses.map(Od=>be(cn,Od))}});return T.status==="active"?ce([{label:"current",index:te},{label:"next",index:te+1}]):T.status?ce([{label:"last",index:pe},{label:"previous",index:pe-1}]):ce([{label:"first",index:0},{label:"next",index:1}])},ni=T=>{var R,te;n(20,B=T.url?T.url:(te=(R=T.presentation)==null?void 0:R.url)==null?void 0:te.content)},ri=(T,R="")=>({part:T,class:[T,R].join(" ")}),Xn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Zn=T=>{n(21,re=!0),n(22,_e=T)},Kn=()=>{n(21,re=!1),n(22,_e=-1)},ii=T=>{fetch(`${c}/${s}/bonuses-information/${T}`).then(R=>R.json()).then(R=>{R&&R[T]&&(n(14,H=!0),n(16,G=R[T]))})},oi=(T,R)=>{let te=document.createElement("div");te.innerHTML=R,T.append(te)},si=()=>n(24,X+=300),W=T=>Xn(T),ye=T=>Zn(T),Me=()=>Kn(),Ft=()=>n(24,X-=300),ht=()=>{n(11,y=!y)},Bd=()=>{n(12,S=!S)};function Md(T){ot[T?"unshift":"push"](()=>{q=T,n(6,q)})}return t.$$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)},t.$$.update=()=>{t.$$.dirty[0]&1&&(a==="claimable"&&n(9,g=!0),a==="active"&&n(9,g=!0)),t.$$.dirty[0]&1|t.$$.dirty[1]&98304&&n(51,r=o&&s&&a),t.$$.dirty[1]&1048576&&r&&Z(),t.$$.dirty[0]&32|t.$$.dirty[1]&1245184&&r&&_&&(s&&Zl(s),c?ii(_.bonusId||_.id):ni(_)),t.$$.dirty[0]&68&&u&&q&&$r(q,u),t.$$.dirty[0]&72&&d&&q&&Wr(q,d),t.$$.dirty[0]&66&&l&&q&&Vr(q,`${l}.Style`,L),t.$$.dirty[1]&262144&&h&&oe()},[a,l,u,d,f,_,q,C,v,g,x,y,S,A,H,V,G,F,M,$,B,re,_e,ae,X,i,K,w,O,Je,dt,It,ze,Lt,U,be,dn,Jr,Qr,ei,ti,ri,Xn,Zn,Kn,oi,o,s,c,h,b,r,si,W,ye,Me,Ft,ht,Bd,Md]}class xb extends Ir{constructor(e){super(),Or(this,e,Ab,Eb,Un,{rawbonus:46,lang:47,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:48,translationurl:49,levelcountlimit:4,currency:50},Kg,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[46]}set rawbonus(e){this.$$set({rawbonus:e}),le()}get lang(){return this.$$.ctx[47]}set lang(e){this.$$set({lang:e}),le()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),le()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),le()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),le()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),le()}get cmsendpoint(){return this.$$.ctx[48]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),le()}get translationurl(){return this.$$.ctx[49]}set translationurl(e){this.$$set({translationurl:e}),le()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),le()}get currency(){return this.$$.ctx[50]}set currency(e){this.$$set({currency:e}),le()}}customElements.define("casino-bonus-card",Nr(xb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Tb({totalItems:t,pageSize:e,currentPage:n,limit:r}){const i=Math.ceil(t/e),s=r&&i>kb(r)?Sb({totalPages:i,limit:r,currentPage:n}):Pb({totalPages:i});return[{type:"symbol",symbol:"<",value:n<=1?1:n-1},...s||[],{type:"symbol",symbol:">",value:n>=i?i:n+1}]}function Pb({totalPages:t}){return new Array(t).fill(null).map((e,n)=>({type:"number",value:n+1}))}function Sb({totalPages:t,limit:e,currentPage:n}){const r=e*2+2,i=1+r,o=t-r,s=i+2;return n<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):n>=o+e?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-e&&n<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:n-e+(l-2)}:l===s-1?{type:"number",value:t}:l===s-2?{type:"symbol",symbol:".",value:n+e+1}:{type:"number",value:n-e+(l-2)}):[]}function kb(t){return t*2+3+2}function Db(t){Br(t,"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 Za(t,e,n){const r=t.slice();return r[29]=e[n],r}const Bb=t=>({}),Ka=t=>({}),Mb=t=>({}),Ja=t=>({}),Ob=t=>({}),Qa=t=>({}),Nb=t=>({value:t[0]&32}),el=t=>({value:t[29].value});function Ib(t){let e;const n=t[21].next,r=$n(n,t,t[20],Ka),i=r||Rb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Vn(r,n,o,o[20],e?Wn(n,o[20],s,Bb):jn(o[20]),Ka)},i(o){e||(Ze(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Lb(t){let e;const n=t[21].prev,r=$n(n,t,t[20],Ja),i=r||zb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Vn(r,n,o,o[20],e?Wn(n,o[20],s,Mb):jn(o[20]),Ja)},i(o){e||(Ze(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Fb(t){let e;const n=t[21].ellipsis,r=$n(n,t,t[20],Qa),i=r||Ub();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Vn(r,n,o,o[20],e?Wn(n,o[20],s,Ob):jn(o[20]),Qa)},i(o){e||(Ze(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Hb(t){let e;const n=t[21].number,r=$n(n,t,t[20],el),i=r||$b(t);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&Vn(r,n,o,o[20],e?Wn(n,o[20],s,Nb):jn(o[20]),el):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ze(i,o),e=!0)},o(o){lt(i,o),e=!1},d(o){i&&i.d(o)}}}function Rb(t){let e;return{c(){e=D(">")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function zb(t){let e;return{c(){e=D("<")},m(n,r){I(n,e,r)},d(n){n&&N(e)}}}function Ub(t){let e;return{c(){e=E("span"),e.textContent="..."},m(n,r){I(n,e,r)},p:Pe,d(n){n&&N(e)}}}function $b(t){let e,n=t[29].value+"",r;return{c(){e=E("span"),r=D(n)},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&32&&n!==(n=i[29].value+"")&&fe(r,n)},d(i){i&&N(e)}}}function tl(t){let e,n,r,i,o,s,a,l;const u=[Hb,Fb,Lb,Ib],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==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?3:-1}~(n=c(t))&&(r=d[n]=u[n](t));function h(){return t[22](t[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1,m(e,"class","option"),m(e,"role","presentation"),se(e,"number",t[29].type==="number"),se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="<"),se(e,"next",t[29].type==="symbol"&&t[29].symbol===">"),se(e,"disabled",t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1),se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),se(e,"active",t[29].type==="number"&&t[29].value===t[1])},m(f,b){I(f,e,b),~n&&d[n].m(e,null),p(e,i),s=!0,a||(l=xe(e,"click",h),a=!0)},p(f,b){t=f;let _=n;n=c(t),n===_?~n&&d[n].p(t,b):(r&&(Cl(),lt(d[_],1,1,()=>{d[_]=null}),El()),~n?(r=d[n],r?r.p(t,b):(r=d[n]=u[n](t),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&se(e,"number",t[29].type==="number"),(!s||b[0]&32)&&se(e,"prev",t[29].type==="symbol"&&t[29].symbol==="<"),(!s||b[0]&32)&&se(e,"next",t[29].type==="symbol"&&t[29].symbol===">"),(!s||b[0]&98)&&se(e,"disabled",t[29].type==="symbol"&&t[29].symbol===">"&&t[1]>=t[6]||t[29].type==="symbol"&&t[29].symbol==="<"&&t[1]<=1),(!s||b[0]&32)&&se(e,"ellipsis",t[29].type==="symbol"&&t[29].symbol==="."),(!s||b[0]&34)&&se(e,"active",t[29].type==="number"&&t[29].value===t[1])},i(f){s||(Ze(r),s=!0)},o(f){lt(r),s=!1},d(f){f&&N(e),~n&&d[n].d(),a=!1,l()}}}function nl(t){let e,n,r,i,o,s,a,l;return{c(){e=E("div"),n=E("span"),n.textContent="Go To Page",r=z(),i=E("input"),o=z(),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(e,"class","PaginationInputWrapper")},m(u,d){I(u,e,d),p(e,n),p(e,r),p(e,i),pr(i,t[3]),p(e,o),p(e,s),a||(l=[xe(i,"input",t[23]),xe(i,"change",t[24]),xe(s,"click",t[25])],a=!0)},p(u,d){d[0]&8&&wl(i.value)!==u[3]&&pr(i,u[3])},d(u){u&&N(e),a=!1,qe(l)}}}function Wb(t){let e,n,r,i,o,s,a=He(t[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=tl(Za(t,a,c));const u=c=>lt(l[c],1,1,()=>{l[c]=null});let d=t[7]&&nl(t);return{c(){e=E("div"),n=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(n,"class",r="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(n,"part",i="PaginationWrapper "+(t[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){I(c,e,h),p(e,n);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(n,null);p(e,o),d&&d.m(e,null),t[26](e),s=!0},p(c,h){if(h[0]&1048930){a=He(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Za(c,a,f);l[f]?(l[f].p(b,h),Ze(l[f],1)):(l[f]=tl(b),l[f].c(),Ze(l[f],1),l[f].m(n,null))}for(Cl(),f=a.length;f<l.length;f+=1)u(f);El()}(!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=nl(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ze(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)lt(l[h]);s=!1},d(c){c&&N(e),vt(l,c),d&&d.d(),t[26](null)}}}function Vb(t,e,n){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:C=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,x,y=!1,S;ru(g)&&(y=!0);let A,H,V;const G=B=>{window.postMessage({type:"PaginationChange",page:B.value})},F=B=>{n(4,H=B>a?a:B)};Mr(()=>()=>{});const M=B=>G(B);function $(){A=wl(this.value),n(3,A)}const J=()=>F(A),q=()=>G({value:H});function L(B){ot[B?"unshift":"push"](()=>{S=B,n(0,S)})}return t.$$set=B=>{"totalitems"in B&&n(10,d=B.totalitems),"pagesize"in B&&n(11,c=B.pagesize),"currentpage"in B&&n(12,h=B.currentpage),"limit"in B&&n(13,f=B.limit),"showinput"in B&&n(14,b=B.showinput),"mbsource"in B&&n(15,_=B.mbsource),"clientstyling"in B&&n(16,C=B.clientstyling),"clientstylingurl"in B&&n(17,v=B.clientstylingurl),"$$scope"in B&&n(20,u=B.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&65537&&C&&S&&$r(S,C),t.$$.dirty[0]&131073&&v&&S&&Wr(S,v),t.$$.dirty[0]&32769&&_&&S&&Vr(S,`${_}.Style`,x),t.$$.dirty[0]&1024&&n(19,r=Number(d)),t.$$.dirty[0]&16384&&n(7,i=b),t.$$.dirty[0]&4096&&n(1,o=Number(h)),t.$$.dirty[0]&2048&&n(18,s=c),t.$$.dirty[0]&794626&&n(5,V=Tb({totalItems:r,pageSize:s,currentPage:o,limit:f})),t.$$.dirty[0]&786432&&n(6,a=Math.ceil(r/s))},[S,o,y,A,H,V,a,i,G,F,d,c,h,f,b,_,C,v,s,r,u,l,M,$,J,q,L]}class jb extends Ir{constructor(e){super(),Or(this,e,Vb,Wb,Un,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Db,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),le()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),le()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),le()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),le()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),le()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),le()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),le()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),le()}}customElements.define("casino-bonus-pagination",Nr(jb,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Gb(t){Br(t,"svelte-1vc0na6",':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:16px;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 rl(t,e,n){const r=t.slice();return r[69]=e[n],r}function il(t,e,n){const r=t.slice();return r[72]=e[n],r}function ol(t){let e,n=t[29](`bonusCard.${t[72]}`)+"",r,i,o,s,a=[{type:"button"},t[28]("BonusStatusFilter"),{disabled:t[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return t[45](t[72])}return{c(){e=E("button"),r=D(n),i=z(),P(e,l),se(e,"active",t[72]===t[25])},m(d,c){I(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=xe(e,"click",u),o=!0)},p(d,c){t=d,c[0]&536870912&&n!==(n=t[29](`bonusCard.${t[72]}`)+"")&&ne(r,n,l.contenteditable),P(e,l=Se(a,[{type:"button"},c[0]&268435456&&t[28]("BonusStatusFilter"),c[0]&8192&&{disabled:t[13]}])),se(e,"active",t[72]===t[25])},d(d){d&&N(e),o=!1,s()}}}function Yb(t){let e,n,r=t[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=t[29]("bonus.from")+"",c,h,f,b,_,C,v=t[29]("bonus.to")+"",g,x,y,S,A,H=t[29]("bonus.filter")+"",V,G,F,M,$=[t[37]("BonusCalendarTitle")],J={};for(let Y=0;Y<$.length;Y+=1)J=k(J,$[Y]);let q=[{min:t[30]},{max:t[31]},{value:t[23]},{placeholder:"From"},t[37]("VaadinDatePicker")],L={};for(let Y=0;Y<q.length;Y+=1)L=k(L,q[Y]);let B=[t[28]("BonusCalendarStartDate")],re={};for(let Y=0;Y<B.length;Y+=1)re=k(re,B[Y]);let _e=[{min:t[30]},{max:t[31]},{value:t[24]},{placeholder:"To"},t[37]("VaadinDatePicker")],ae={};for(let Y=0;Y<_e.length;Y+=1)ae=k(ae,_e[Y]);let X=[t[28]("BonusCalendarEndDate")],oe={};for(let Y=0;Y<X.length;Y+=1)oe=k(oe,X[Y]);let Z=[t[28]("BonusCalendarContainer")],ie={};for(let Y=0;Y<Z.length;Y+=1)ie=k(ie,Z[Y]);let Q=[t[28]("BonusFilterButton"),{disabled:G=t[13]||t[21]}],K={};for(let Y=0;Y<Q.length;Y+=1)K=k(K,Q[Y]);let w=[t[37]("BonusCalendarContent")],O={};for(let Y=0;Y<w.length;Y+=1)O=k(O,w[Y]);let ue=[t[28]("BonusCalendarWrapper")],Ne={};for(let Y=0;Y<ue.length;Y+=1)Ne=k(Ne,ue[Y]);return{c(){e=E("div"),n=E("div"),i=D(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=D(d),h=z(),f=E("vaadin-date-picker"),b=z(),_=E("div"),C=E("label"),g=D(v),x=z(),y=E("vaadin-date-picker"),S=z(),A=E("button"),V=D(H),P(n,J),m(u,"for","BonusCalendarStartDate"),P(f,L),P(l,re),m(C,"for","BonusCalendarEndDate"),P(y,ae),P(_,oe),P(a,ie),P(A,K),P(s,O),P(e,Ne)},m(Y,j){I(Y,e,j),p(e,n),p(n,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),t[48](f),p(a,b),p(a,_),p(_,C),p(C,g),p(_,x),p(_,y),t[49](y),p(s,S),p(s,A),p(A,V),A.autofocus&&A.focus(),F||(M=[xe(f,"validated",t[39]),xe(y,"validated",t[39]),xe(A,"click",t[50])],F=!0)},p(Y,j){j[0]&536870912&&r!==(r=Y[29]("bonus.canlendarTitle")+"")&&ne(i,r,J.contenteditable),j[0]&536870912&&d!==(d=Y[29]("bonus.from")+"")&&fe(c,d),P(f,L=Se(q,[{min:Y[30]},{max:Y[31]},j[0]&8388608&&{value:Y[23]},{placeholder:"From"},Y[37]("VaadinDatePicker")])),P(l,re=Se(B,[j[0]&268435456&&Y[28]("BonusCalendarStartDate")])),j[0]&536870912&&v!==(v=Y[29]("bonus.to")+"")&&fe(g,v),P(y,ae=Se(_e,[{min:Y[30]},{max:Y[31]},j[0]&16777216&&{value:Y[24]},{placeholder:"To"},Y[37]("VaadinDatePicker")])),P(_,oe=Se(X,[j[0]&268435456&&Y[28]("BonusCalendarEndDate")])),P(a,ie=Se(Z,[j[0]&268435456&&Y[28]("BonusCalendarContainer")])),j[0]&536870912&&H!==(H=Y[29]("bonus.filter")+"")&&ne(V,H,K.contenteditable),P(A,K=Se(Q,[j[0]&268435456&&Y[28]("BonusFilterButton"),j[0]&2105344&&G!==(G=Y[13]||Y[21])&&{disabled:G}])),P(e,Ne=Se(ue,[j[0]&268435456&&Y[28]("BonusCalendarWrapper")]))},d(Y){Y&&N(e),t[48](null),t[49](null),F=!1,qe(M)}}}function qb(t){let e,n,r,i=t[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=t[29]("bonus.claim")+"",f,b,_,C,v,g=[t[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=t[29]("bonus.placeholder")}],x={};for(let M=0;M<g.length;M+=1)x=k(x,g[M]);let y=[t[28]("BonusClaimButton"),{disabled:b=t[19]||!t[26]}],S={};for(let M=0;M<y.length;M+=1)S=k(S,y[M]);let A=[t[28]("BonusCodeWrapper")],H={};for(let M=0;M<A.length;M+=1)H=k(H,A[M]);let V=t[20]&&sl(t),G=[t[28]("BonusCodeContainer")],F={};for(let M=0;M<G.length;M+=1)F=k(F,G[M]);return{c(){e=E("div"),n=E("label"),r=E("span"),r.textContent="*",o=D(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=D(h),_=z(),V&&V.c(),m(r,"class","Asterisk"),m(n,"for","BonusCode"),P(l,x),P(c,S),P(a,H),P(e,F)},m(M,$){I(M,e,$),p(e,n),p(n,r),p(n,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),pr(l,t[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),V&&V.m(e,null),C||(v=[xe(l,"input",t[46]),xe(l,"keyup",t[38]),xe(c,"click",t[47])],C=!0)},p(M,$){$[0]&536870912&&i!==(i=M[29]("bonus.bonusCode")+"")&&fe(o,i),P(l,x=Se(g,[$[0]&268435456&&M[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&536870912&&u!==(u=M[29]("bonus.placeholder"))&&{placeholder:u}])),$[0]&262144&&l.value!==M[18]&&pr(l,M[18]),$[0]&536870912&&h!==(h=M[29]("bonus.claim")+"")&&ne(f,h,S.contenteditable),P(c,S=Se(y,[$[0]&268435456&&M[28]("BonusClaimButton"),$[0]&67633152&&b!==(b=M[19]||!M[26])&&{disabled:b}])),P(a,H=Se(A,[$[0]&268435456&&M[28]("BonusCodeWrapper")])),M[20]?V?V.p(M,$):(V=sl(M),V.c(),V.m(e,null)):V&&(V.d(1),V=null),P(e,F=Se(G,[$[0]&268435456&&M[28]("BonusCodeContainer")]))},d(M){M&&N(e),V&&V.d(),C=!1,qe(v)}}}function sl(t){let e,n=t[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=D(n),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&n!==(n=i[29]("bonus.invalidBonusCode")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Xb(t){let e,n;function r(a,l){return a[12].length>0?Qb:a[14]?Jb:Kb}let i=r(t),o=i(t),s=t[12].length!==0&&ll(t);return{c(){o.c(),e=z(),s&&s.c(),n=tt()},m(a,l){o.m(a,l),I(a,e,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(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=ll(a),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(a){a&&(N(e),N(n)),o.d(a),s&&s.d(a)}}}function Zb(t){let e,n=[t[37]("ModalLoader")],r={};for(let i=0;i<n.length;i+=1)r=k(r,n[i]);return{c(){e=E("div"),P(e,r)},m(i,o){I(i,e,o)},p:Pe,d(i){i&&N(e)}}}function Kb(t){let e,n=t[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=D(n),m(e,"class","NoBonus")},m(i,o){I(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&n!==(n=i[29]("bonus.noBonus")+"")&&fe(r,n)},d(i){i&&N(e)}}}function Jb(t){let e,n=t[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=D(n),i=D(": "),o=D(t[14]),m(e,"class","BonusError")},m(s,a){I(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&n!==(n=s[29]("bonus.error")+"")&&fe(r,n),a[0]&16384&&fe(o,s[14])},d(s){s&&N(e)}}}function Qb(t){let e,n=He(t[12]),r=[];for(let s=0;s<n.length;s+=1)r[s]=al(rl(t,n,s));let i=[t[37]("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();P(e,o)},m(s,a){I(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){n=He(s[12]);let l;for(l=0;l<n.length;l+=1){const u=rl(s,n,l);r[l]?r[l].p(u,a):(r[l]=al(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(s){s&&N(e),vt(r,s)}}}function al(t){let e,n,r,i=[{rawbonus:JSON.stringify(t[69]),status:t[25],cmsendpoint:t[3],lang:t[0],clientstyling:t[5],clientstylingurl:t[6],mbsource:t[4],translationurl:t[7],levelcountlimit:t[8],currency:t[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[t[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),n=E("casino-bonus-card"),r=z(),P(n,o),P(e,a)},m(l,u){I(l,e,u),p(e,n),p(e,r)},p(l,u){P(n,o=Se(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[69]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),P(e,a=Se(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&N(e)}}}function ll(t){let e;return{c(){e=E("casino-bonus-pagination"),Ue(e,"totalitems",t[16]),Ue(e,"currentpage",t[15]),Ue(e,"pagesize",t[2]),Ue(e,"limit",t[17]),Ue(e,"clientstyling",t[5]),Ue(e,"clientstylingurl",t[6]),Ue(e,"mbsource",t[4])},m(n,r){I(n,e,r)},p(n,r){r[0]&65536&&Ue(e,"totalitems",n[16]),r[0]&32768&&Ue(e,"currentpage",n[15]),r[0]&4&&Ue(e,"pagesize",n[2]),r[0]&131072&&Ue(e,"limit",n[17]),r[0]&32&&Ue(e,"clientstyling",n[5]),r[0]&64&&Ue(e,"clientstylingurl",n[6]),r[0]&16&&Ue(e,"mbsource",n[4])},d(n){n&&N(e)}}}function ul(t){let e,n,r,i,o=t[29]("bonus.forfeitMessage")+"",s,a,l,u,d=t[29]("bonus.forfeitCancel")+"",c,h,f,b=t[29]("bonus.forfeitConfirm")+"",_,C,v,g=[t[37]("ModalText")],x={};for(let B=0;B<g.length;B+=1)x=k(x,g[B]);let y=[t[37]("ModalCancel")],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let A=[t[37]("ModalConfirm")],H={};for(let B=0;B<A.length;B+=1)H=k(H,A[B]);let V=[t[37]("ModalButtons")],G={};for(let B=0;B<V.length;B+=1)G=k(G,V[B]);let F=[t[37]("ModalBody")],M={};for(let B=0;B<F.length;B+=1)M=k(M,F[B]);let $=[t[37]("ModalContent")],J={};for(let B=0;B<$.length;B+=1)J=k(J,$[B]);let q=[t[28]("ModalWrapper")],L={};for(let B=0;B<q.length;B+=1)L=k(L,q[B]);return{c(){e=E("div"),n=E("div"),r=E("div"),i=E("p"),s=D(o),a=z(),l=E("div"),u=E("button"),c=D(d),h=z(),f=E("button"),_=D(b),P(i,x),P(u,S),P(f,H),P(l,G),P(r,M),P(n,J),P(e,L)},m(B,re){I(B,e,re),p(e,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(),C||(v=[xe(u,"click",t[35]),xe(f,"click",t[51])],C=!0)},p(B,re){re[0]&536870912&&o!==(o=B[29]("bonus.forfeitMessage")+"")&&ne(s,o,x.contenteditable),re[0]&536870912&&d!==(d=B[29]("bonus.forfeitCancel")+"")&&ne(c,d,S.contenteditable),re[0]&536870912&&b!==(b=B[29]("bonus.forfeitConfirm")+"")&&ne(_,b,H.contenteditable),P(e,L=Se(q,[re[0]&268435456&&B[28]("ModalWrapper")]))},d(B){B&&N(e),C=!1,qe(v)}}}function ev(t){let e,n,r,i,o,s,a=He(t[32]),l=[];for(let y=0;y<a.length;y+=1)l[y]=ol(il(t,a,y));let u=[t[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]==="claimable")return qb;if(y[25]==="completed")return Yb}let h=c(t),f=h&&h(t);function b(y,S){return y[13]?Zb:Xb}let _=b(t),C=_(t),v=t[22]&&ul(t),g=[t[37]("BonusesController")],x={};for(let y=0;y<g.length;y+=1)x=k(x,g[y]);return{c(){e=E("div"),n=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),C.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),P(n,d),P(e,x)},m(y,S){I(y,e,S),p(e,n),p(n,r);for(let A=0;A<l.length;A+=1)l[A]&&l[A].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),C.m(e,null),p(e,s),v&&v.m(e,null),t[52](e)},p(y,S){if(S[0]&838868992|S[1]&34){a=He(y[32]);let A;for(A=0;A<a.length;A+=1){const H=il(y,a,A);l[A]?l[A].p(H,S):(l[A]=ol(H),l[A].c(),l[A].m(r,null))}for(;A<l.length;A+=1)l[A].d(1);l.length=a.length}P(n,d=Se(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),_===(_=b(y))&&C?C.p(y,S):(C.d(1),C=_(y),C&&(C.c(),C.m(e,s))),y[22]?v?v.p(y,S):(v=ul(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Pe,o:Pe,d(y){y&&N(e),vt(l,y),f&&f.d(),C.d(),v&&v.d(),t[52](null)}}}function tv(t,e,n){let r,i,o;bl(t,Xl,W=>n(29,o=W));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:C="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,x=!1,y=[],S=!0,A="",H="",V=1,G=0,F=2,M=An(xs(new Date,6),"yyyy-MM-dd"),$=An(new Date,"yyyy-MM-dd"),J=An(xs(new Date,3),"yyyy-MM-dd"),q,L,B="",re=!0,_e=!1,ae=!1,X=!1,oe=J,Z=$,ie,Q,K="active",w=!0,O=["active","completed","claimable"],ue="";ru(g)&&(x=!0,F=1);const Ne=()=>{fetch(_).then(ye=>ye.json()).then(ye=>{Object.keys(ye).forEach(Me=>{br(Me,ye[Me])})}).catch(ye=>{console.log(ye)})};Object.keys(vr).forEach(W=>{br(W,vr[W])}),Mr(()=>(window.addEventListener("message",Y,!1),()=>{ie==null||ie.removeEventListener("change",be),Q==null||Q.removeEventListener("change",dn),window.removeEventListener("message",Y)}));const Y=W=>{switch(W.data.type){case"PaginationChange":n(15,V=W.data.page),ze(V);break;case"OnBonusClaimed":Ee(W.data.bonusCode);break;case"OnBonusForfeit":n(27,ue=W.data.bonus.id),n(22,X=!0)}},j=()=>Ve(this,null,function*(){ze(1)}),Ee=(W,ye)=>Ve(this,null,function*(){n(26,w=!1);const Me=yield Ce(W);Me.success?(n(20,_e=!1),ze(1)):(H=Me.errorMessage,ye?n(20,_e=!0):window.postMessage({type:"OnBonusClaimError",message:H,bonusCode:W})),window.postMessage({type:"OnBonusClaimedDone"}),n(26,w=!0)}),Ce=W=>Ve(this,null,function*(){return yield U(s+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:W,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),Je=W=>Ve(this,null,function*(){n(26,w=!1);const ye=yield dt(W);ye.success?ze(1):n(14,A=ye.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),n(26,w=!0),n(22,X=!1)}),dt=W=>Ve(this,null,function*(){const ye=new URL(`${s}/v1/bonus/forfeit`),Me={bonusID:W,lang:a};return Object.keys(Me).map(Ft=>{ye.searchParams.append(Ft,Me[Ft])}),yield U(ye,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),It=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),n(22,X=!1)},ze=W=>Ve(this,null,function*(){V!==W&&n(15,V=W);const ye=(W-1)*Number(d);n(13,S=!0),n(12,y=[]);const Me=yield Lt(s,l,ye,{lang:a,limit:d});Me.success?(n(16,G=Me.total),n(12,y=Me.items||Me.bonuses)):n(14,A=Me.errorMessage),n(13,S=!1)}),Lt=(ht,Bd,Md,...T)=>Ve(this,[ht,Bd,Md,...T],function*(W,ye,Me,Ft={}){const We=Ft,{limit:R,lang:te}=We,pe=li(We,["limit","lang"]),ve=(()=>{switch(K){case"claimable":return K;default:return"granted"}})(),ce=hn(ft({pagination:`limit=${R},offset=${Me}`,language:te},pe),{sortOrder:"desc"});if(K==="claimable"&&v===!0&&(ce.selectable=v),K==="completed"){const Ge=oe!==""&&!ae?oe:J,De=Z!==""&&!ae?Z:$,cn=new Date(De);cn.setUTCHours(23,59,59),ce.startTime=new Date(Ge).toISOString(),ce.endTime=new Date(cn).toISOString(),ce.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ce.status="completed,released,forfeited,expired,closed"}K==="active"&&(ce.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",ce.status="active");const Fe=new URL(`${W}/v1/bonus/${ve}`);return K!=="claimable"?Fe.searchParams.append("expand","freeSpin"):delete ce.sortOrder,Object.keys(ce).map(Ge=>{Fe.searchParams.append(Ge,ce[Ge])}),yield U(Fe,{headers:ft({},ye?{"x-SessionId":ye}:{})})}),ct=(W,ye="")=>({part:W,class:[W,ye].join(" ")}),U=(Me,...Ft)=>Ve(this,[Me,...Ft],function*(W,ye={}){let ht;return ht=yield fetch(W,ye),ht.ok===!1?{errorMessage:ht.status}:(ht=yield ht.json(),ht)}),be=W=>{n(23,oe=W.target.value)},dn=W=>{n(24,Z=W.target.value)},Jr=()=>{ie.addEventListener("change",be,!1),Q.addEventListener("change",dn,!1)},Qr=()=>(n(20,_e=!1),!!B),ei=()=>{n(19,re=!Qr())},ti=W=>{const{valid:ye}=W.detail;Z<oe&&n(24,Z=oe),n(21,ae=Z===""||oe===""||!ye)},ni=W=>{n(25,K=W),ze(1)};function ri(){B=this.value,n(18,B)}const Xn=()=>{Ee(B,!0)};function Zn(W){ot[W?"unshift":"push"](()=>{ie=W,n(10,ie)})}function Kn(W){ot[W?"unshift":"push"](()=>{Q=W,n(11,Q)})}const ii=()=>ze(1),oi=()=>Je(ue);function si(W){ot[W?"unshift":"push"](()=>{q=W,n(9,q)})}return t.$$set=W=>{"endpoint"in W&&n(40,s=W.endpoint),"lang"in W&&n(0,a=W.lang),"session"in W&&n(41,l=W.session),"currency"in W&&n(1,u=W.currency),"limit"in W&&n(2,d=W.limit),"cmsendpoint"in W&&n(3,c=W.cmsendpoint),"mbsource"in W&&n(4,h=W.mbsource),"clientstyling"in W&&n(5,f=W.clientstyling),"clientstylingurl"in W&&n(6,b=W.clientstylingurl),"translationurl"in W&&n(7,_=W.translationurl),"levelcountlimit"in W&&n(8,C=W.levelcountlimit),"onlyoneclick"in W&&n(42,v=W.onlyoneclick)},t.$$.update=()=>{t.$$.dirty[0]&3072&&ie&&Q&&Jr(),t.$$.dirty[1]&4096&&n(28,r=(W,ye="")=>ct(`${W}${x?` ${W}Mobile`:""}`,ye)),t.$$.dirty[0]&1&&a&&Zl(a),t.$$.dirty[0]&5|t.$$.dirty[1]&1536&&n(44,i=s&&l&&a&&d),t.$$.dirty[1]&8192&&i&&j(),t.$$.dirty[0]&544&&f&&q&&$r(q,f),t.$$.dirty[0]&576&&b&&q&&Wr(q,b),t.$$.dirty[0]&528&&h&&q&&Vr(q,`${h}.Style`,L),t.$$.dirty[0]&128&&_&&Ne()},[a,u,d,c,h,f,b,_,C,q,ie,Q,y,S,A,V,G,F,B,re,_e,ae,X,oe,Z,K,w,ue,r,o,M,$,O,Ee,Je,It,ze,ct,ei,ti,s,l,v,x,i,ni,ri,Xn,Zn,Kn,ii,oi,si]}class Dd extends Ir{constructor(e){super(),Or(this,e,tv,ev,Un,{endpoint:40,lang:0,session:41,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8,onlyoneclick:42},Gb,[-1,-1,-1])}get endpoint(){return this.$$.ctx[40]}set endpoint(e){this.$$set({endpoint:e}),le()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),le()}get session(){return this.$$.ctx[41]}set session(e){this.$$set({session:e}),le()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),le()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),le()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),le()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),le()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),le()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),le()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),le()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),le()}get onlyoneclick(){return this.$$.ctx[42]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),le()}}Nr(Dd,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Dd;
|