@everymatrix/player-account-controller 1.19.6 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(s){"use strict";(u=s)&&"object"==typeof u&&0 in u;function se(){}const w=e=>e;function h(e){return e()}function m(){return Object.create(null)}function ai(e){e.forEach(h)}function ue(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l;function _(e,t){return(l=l||document.createElement("a")).href=t,e===l.href}function d(e,...t){if(null==e)return se;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Ae(e,t,i){e.$$.on_destroy.push(d(t,i))}function c(e){return e&&ue(e.destroy)?e.destroy:se}var u="undefined"!=typeof window;let x=u?()=>window.performance.now():()=>Date.now(),P=u?e=>requestAnimationFrame(e):se;const T=new Set;function A(t){T.forEach(e=>{e.c(t)||(T.delete(e),e.f())}),0!==T.size&&P(A)}u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function si(e,t){e.appendChild(t)}function E(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function li(e,t,i){e.insertBefore(t,i||null)}function ci(e){e.parentNode&&e.parentNode.removeChild(e)}function ui(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function di(e){return document.createElement(e)}function pi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function hi(e){return document.createTextNode(e)}function mi(){return hi(" ")}function I(){return hi("")}function fi(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)}function G(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gi(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function le(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:gi(e,t,i)}function de(e){return""===e?null:+e}function yi(e,t){e.data!==(t=""+t)&&(e.data=t)}function vi(e,t){e.value=null==t?"":t}function L(e,t,i,r){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,r?"important":"")}function bi(t,i,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===i)return r.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function pe(e){e=e.querySelector(":checked");return e&&e.__value}function M(e,t,i){e.classList[i?"add":"remove"](t)}function r(e){var t={};for(const i of e)t[i.name]=i.value;return t}const $=new Map;let D,S=0;function k(e,t,i,r,n,o,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(i-t)*o(e);c+=100*e+`%{${a(r,1-r)}}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(s){"use strict";(u=s)&&"object"==typeof u&&0 in u;function se(){}const b=e=>e;function h(e){return e()}function m(){return Object.create(null)}function ai(e){e.forEach(h)}function ue(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l;function _(e,t){return(l=l||document.createElement("a")).href=t,e===l.href}function d(e,...t){if(null==e)return se;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Ee(e,t,i){e.$$.on_destroy.push(d(t,i))}function c(e){return e&&ue(e.destroy)?e.destroy:se}var u="undefined"!=typeof window;let x=u?()=>window.performance.now():()=>Date.now(),P=u?e=>requestAnimationFrame(e):se;const T=new Set;function E(t){T.forEach(e=>{e.c(t)||(T.delete(e),e.f())}),0!==T.size&&P(E)}u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function si(e,t){e.appendChild(t)}function A(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function li(e,t,i){e.insertBefore(t,i||null)}function ci(e){e.parentNode&&e.parentNode.removeChild(e)}function ui(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function di(e){return document.createElement(e)}function pi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function hi(e){return document.createTextNode(e)}function mi(){return hi(" ")}function I(){return hi("")}function fi(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)}function G(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gi(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function le(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:gi(e,t,i)}function de(e){return""===e?null:+e}function yi(e,t){e.data!==(t=""+t)&&(e.data=t)}function vi(e,t){e.value=null==t?"":t}function L(e,t,i,r){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,r?"important":"")}function wi(t,i,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===i)return r.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function pe(e){e=e.querySelector(":checked");return e&&e.__value}function M(e,t,i){e.classList[i?"add":"remove"](t)}function r(e){var t={};for(const i of e)t[i.name]=i.value;return t}const $=new Map;let D,S=0;function k(e,t,i,r,n,o,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(i-t)*o(e);c+=100*e+`%{${a(r,1-r)}}
2
2
  `}var u,d=c+`100% {${a(i,1-i)}}
3
- }`,s=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,p=E(e),{stylesheet:h,rules:m}=$.get(p)||(p=p,u={stylesheet:(u=e,m=di("style"),u=E(u),h=m,si(u.head||u,h),h.sheet,m.sheet),rules:{}},$.set(p,u),u),p=(m[s]||(m[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(p?p+", ":"")+s+` ${r}ms linear ${n}ms 1 both`,S+=1,s}function N(e){D=e}function De(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],Ee=[];let O=[];const R=[],H=Promise.resolve();let z=!1;function Se(){z||(z=!0,H.then(p))}function wi(e){O.push(e)}const j=new Set;let U,Y=0;function p(){if(0===Y){const r=D;do{try{for(;Y<F.length;){const r=F[Y];Y++,N(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),ai(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wi))}}catch(r){throw F.length=0,Y=0,r}for(N(null),F.length=0,Y=0;Ee.length;)Ee.pop()();for(let e=0;e<O.length;e+=1){var i=O[e];j.has(i)||(j.add(i),i())}}while(O.length=0,F.length);for(;R.length;)R.pop()();z=!1,j.clear(),N(r)}}function V(e,t,i){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),r))}const q=new Set;let Z;function X(){Z={r:0,c:[],p:Z}}function K(){Z.r||ai(Z.c),Z=Z.p}function J(e,t){e&&e.i&&(q.delete(e),e.i(t))}function Q(e,t,i,r){e&&e.o?q.has(e)||(q.add(e),Z.c.push(()=>{q.delete(e),r&&(i&&e.d(1),r())}),e.o(t)):r&&r()}const ee={duration:0};function te(l,e,t,i){const r={direction:"both"};let c=e(l,t,r),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,r;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),r=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-r.length)||(e.style.animation=r.join(", "),S-=i)||P(()=>{S||($.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),$.clear())}))}function f(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:r=w,tick:n=se,css:o}=c||ee,a={start:x()+t,b:e};if(e||((a.group=Z).r+=1),d||p)p=a;else{o&&(m(),h=k(l,u,e,i,t,r,o)),e&&n(0,1),d=f(a,i),wi(()=>V(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,i),p=null,V(l,d.b,"start"),o)&&(m(),h=k(l,u,d.b,d.duration,0,r,c.css)),d)if(e>=d.end)n(u=d.b,1-u),V(l,d.b,"end"),p||(d.b?m():--d.group.r||ai(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*r(l/d.duration),n(u,1-u)}return!(!d&&!p)};let t;0===T.size&&P(A),new Promise(e=>{T.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(U||(U=Promise.resolve()).then(()=>{U=null}),U.then(()=>{c=c(r),n(e)})):n(e)},end(){m(),d=p=null}}}function n(r,e,t,i,n,o,a,s=[-1]){var l=D;N(r);const c=r.$$={fragment:null,ctx:[],props:o,update:se,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:m(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=r).$$.dirty[0]&&(F.push(e),Se(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],c.update(),u=!0,ai(c.before_update),c.fragment=!!i&&i(c.ctx),e.target){if(e.hydrate){o=e.target;const r=Array.from(o.childNodes);c.fragment&&c.fragment.l(r),r.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&J(r.$$.fragment);var d=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:i,after_update:o}=d.$$;i&&i.m(s,a),t||wi(()=>{var e=d.$$.on_mount.map(h).filter(ue);d.$$.on_destroy?d.$$.on_destroy.push(...e):ai(e),d.$$.on_mount=[]}),o.forEach(wi),p()}N(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(ue);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){ai(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const r=[],n=[];O.forEach(e=>(-1===i.indexOf(e)?r:n).push(e)),n.forEach(e=>e()),O=r}ai(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=se}$on(e,t){if(!ue(t))return se;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ie,re,ne="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},oe="URLSearchParams"in ne,ae="Symbol"in ne&&"iterator"in Symbol,he="FileReader"in ne&&"Blob"in ne&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in ne,fe="ArrayBuffer"in ne;function ge(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ye(e){return e="string"!=typeof e?String(e):e}function ve(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ae&&(e[Symbol.iterator]=function(){return e}),e}function be(t){this.map={},t instanceof be?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function we(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function _e(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function xe(e){var t=new FileReader,i=_e(t);return t.readAsArrayBuffer(e),i}function Ce(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Pe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:he&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:oe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&he&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ce(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||re(e))?this._bodyArrayBuffer=Ce(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):oe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},he&&(this.blob=function(){var e=we(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return we(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(he)return this.blob().then(xe);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r=we(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=_e(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?i[1]:"utf-8",e.readAsText(r,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Be)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),be.prototype.append=function(e,t){e=ge(e),t=ye(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},be.prototype.delete=function(e){delete this.map[ge(e)]},be.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},be.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},be.prototype.set=function(e,t){this.map[ge(e)]=ye(t)},be.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},be.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),ve(i)},be.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ve(t)},be.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),ve(i)},ae&&(be.prototype[Symbol.iterator]=be.prototype.entries);var Te=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ke(e,t){if(!(this instanceof ke))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,r=(t=t||{}).body;if(e instanceof ke){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new be(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new be(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Te.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in ne)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Be(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function Ie(e,t){if(!(this instanceof Ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new be(t.headers),this.url=t.url||"",this._initBody(e)}ke.prototype.clone=function(){return new ke(this,{body:this._bodyInit})},Pe.call(ke.prototype),Pe.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new be(this.headers),url:this.url})},Ie.error=function(){var e=new Ie(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ne=[301,302,303,307,308],Fe=(Ie.redirect=function(e,t){if(-1===Ne.indexOf(t))throw new RangeError("Invalid status code");return new Ie(null,{status:t,headers:{location:e}})},ne.DOMException);try{new Fe}catch(s){(Fe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe}function Oe(r,s){return new Promise(function(n,e){var o=new ke(r,s);if(o.signal&&o.signal.aborted)return e(new Fe("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,r,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new be,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),i=t.shift().trim();if(i){t=t.join(":").trim();try{r.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),r)},i=(o.url.startsWith("file://")&&(a.status<200||599<a.status)?t.status=200:t.status=a.status,t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){n(new Ie(i,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){e(new Fe("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&ne.location.href?ne.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(he?a.responseType="blob":fe&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof be||ne.Headers&&s.headers instanceof ne.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(ge(e)),a.setRequestHeader(e,ye(s.headers[e]))}),o.headers.forEach(function(e,t){-1===i.indexOf(t)&&a.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",t)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}function $i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Oe.polyfill=!0,ne.fetch||(ne.fetch=Oe,ne.Headers=be,ne.Request=ke,ne.Response=Ie),self.fetch.bind(self);var Re=function(e,t){return(Re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Re(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function ze(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function We(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function je(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function Ue(e){return"function"==typeof e}function Ye(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ge=Ye(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Ve(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Xe.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ze(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Ue(o))try{o()}catch(e){n=e instanceof Ge?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=ze(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Je(u)}catch(e){n=null!=n?n:[],e instanceof Ge?n=je(je([],We(n)),We(e.errors)):n.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}if(n)throw new Ge(n)}},Xe.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Je(e);else{if(e instanceof Xe){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Xe.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Xe.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Xe.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Xe.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Xe&&e._removeParent(this)},Xe.EMPTY=((t=new Xe).closed=!0,t);var qe=Xe,Ze=qe.EMPTY;function Xe(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ke(e){return e instanceof qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Je(e){Ue(e)?e():e.unsubscribe()}var Qe=void 0,et=!1,tt=!1,it={setTimeout:function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n=it.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,je([e,t],We(i))):setTimeout.apply(void 0,je([e,t],We(i)))},clearTimeout:function(e){var t=it.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function rt(){}var nt=null;function ot(e){if(et){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var t=nt,i=t.errorThrown,t=t.error;if(nt=null,i)throw t}}else e()}He(ct,at=qe),ct.create=function(e,t,i){return new ht(e,t,i)},ct.prototype.next=function(e){this.isStopped||this._next(e)},ct.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ct.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ct.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,at.prototype.unsubscribe.call(this),this.destination=null)},ct.prototype._next=function(e){this.destination.next(e)},ct.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ct.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var at,st=ct,lt=Function.prototype.bind;function ct(e){var t=at.call(this)||this;return t.isStopped=!1,e?Ke(t.destination=e)&&e.add(t):t.destination=yt,t}function ut(e,t){return lt.call(e,t)}ft.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){gt(e)}},ft.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){gt(e)}else gt(e)},ft.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){gt(e)}};var dt,pt=ft,ht=(He(mt,dt=st),mt);function mt(e,t,i){var r=dt.call(this)||this,i=Ue(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:r&&tt?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ut(e.next,t),error:e.error&&ut(e.error,t),complete:e.complete&&ut(e.complete,t)}):e;return r.destination=new pt(i),r}function ft(e){this.partialObserver=e}function gt(e){var t=e;it.setTimeout(function(){throw t})}var yt={closed:!0,next:rt,error:function(e){throw e},complete:rt},t="function"==typeof Symbol&&Symbol.observable||"@@observable";bt.prototype.lift=function(e){var t=new bt;return t.source=this,t.operator=e,t},bt.prototype.subscribe=function(e,t,i){var r,n=this,o=(r=e)&&r instanceof st||r&&Ue(r.next)&&Ue(r.error)&&Ue(r.complete)&&Ke(r)?e:new ht(e,t,i);return ot(function(){var e=n.operator,t=n.source;o.add(e?e.call(o,t):t?n._subscribe(o):n._trySubscribe(o))}),o},bt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},bt.prototype.forEach=function(r,e){var n=this;return new(e=wt(e))(function(e,t){var i=new ht({next:function(e){try{r(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});n.subscribe(i)})},bt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},bt.prototype[t]=function(){return this},bt.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},bt.prototype.toPromise=function(e){var r=this;return new(e=wt(e))(function(e,t){var i;r.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},bt.create=function(e){return new bt(e)};var vt=bt;function bt(e){e&&(this._subscribe=e)}function wt(e){return null!=(e=null!=e?e:Qe)?e:Promise}var _t,xt,Ct,Pt=Ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),t=(He($t,Ct=vt),$t.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},$t.prototype._throwIfClosed=function(){if(this.closed)throw new Pt},$t.prototype.next=function(n){var o=this;ot(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=ze(o.currentObservers),r=i.next();!r.done;r=i.next())r.value.next(n)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},$t.prototype.error=function(t){var i=this;ot(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},$t.prototype.complete=function(){var t=this;ot(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},$t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty($t.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),$t.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ct.prototype._trySubscribe.call(this,e)},$t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},$t.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,r=this.isStopped,n=this.observers;return i||r?Ze:(this.currentObservers=null,n.push(e),new qe(function(){t.currentObservers=null,Ve(n,e)}))},$t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,r=this.isStopped;t?e.error(i):r&&e.complete()},$t.prototype.asObservable=function(){var e=new vt;return e.source=this,e},$t.create=function(e,t){return new Tt(e,t)},$t),Tt=(He(Mt,xt=t),Mt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Mt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Mt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Mt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ze},Mt),At={now:function(){return(At.delegate||Date).now()},delegate:void 0},Et=(He(Lt,_t=t),Lt.prototype.next=function(e){var t=this,i=t.isStopped,r=t._buffer,n=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(r.push(e),n)||r.push(o.now()+t),this._trimBuffer(),_t.prototype.next.call(this,e)},Lt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,r=this._buffer.slice(),n=0;n<r.length&&!e.closed;n+=i?1:2)e.next(r[n]);return this._checkFinalizedStatuses(e),t},Lt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,r=this._infiniteTimeWindow,n=(r?1:2)*e;if(e<1/0&&n<i.length&&i.splice(0,i.length-n),!r){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},Lt);function Lt(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=At);var r=_t.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=i,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Mt(e,t){var i=xt.call(this)||this;return i.destination=e,i.source=t,i}function $t(){var e=Ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Dt=[],St={};const kt=[];function Bt(r,n=se){let o;const a=new Set;function s(e){if(i(r,e)&&(r=e,o)){const e=!kt.length;for(const e of a)e[1](),kt.push(e,r);if(e){for(let e=0;e<kt.length;e+=2)kt[e][0](kt[e+1]);kt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=se){const i=[e,t];return a.add(i),1===a.size&&(o=n(s)||se),e(r),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function It(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Bt(t,t=>{let i=!1;const r=[];let n=0,o=se;const a=()=>{var e;n||(o(),e=s(l?r[0]:r,t),u?t(e):o=ue(e)?e:se)},e=c.map((e,t)=>d(e,e=>{r[t]=e,n&=~(1<<t),i&&a()},()=>{n|=1<<t}));return i=!0,a(),function(){ai(e),o(),i=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Ft);var t}var Ft="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ot(e,t){return!1!==t.clone&&t.isMergeableObject(e)?jt(Array.isArray(e)?[]:{},e,t):e}function Rt(e,t,i){return e.concat(t).map(function(e){return Ot(e,i)})}function Ht(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function zt(e,t){try{return t in e}catch(e){return!1}}function Wt(r,n,o){var a={};return o.isMergeableObject(r)&&Ht(r).forEach(function(e){a[e]=Ot(r[e],o)}),Ht(n).forEach(function(e){var t,i;(!zt(t=r,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(zt(r,e)&&o.isMergeableObject(n[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:jt)(r[e],n[e],o):a[e]=Ot(n[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Ot;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):Wt(e,t,i):Ot(t,i)}jt.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return jt(e,t,i)},{});throw new Error("first argument should be an array")};var Ut=jt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,g=function(){return(g=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function qt(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function Zt(e){return e.type===y.literal}function Xt(e){return e.type===y.number}function Kt(e){return e.type===y.date}function Jt(e){return e.type===y.time}function Qt(e){return e.type===y.select}function ei(e){return e.type===y.plural}function ti(e){return e.type===y.tag}function ii(e){return e&&"object"==typeof e&&e.type===Vt.number}function ri(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(t=f=f||{})[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",(t=y=y||{})[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",(t=Vt=Vt||{})[t.number=0]="number",t[t.dateTime=1]="dateTime";var t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ni=/(?:[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;var oi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_i=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xi=/^(@+)?(\+|#+)?[rs]?$/g,Ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Pi=/^(0+)$/;function Ti(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(xi,function(e,t,i){return"string"!=typeof i?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===i?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),r}function Ai(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ei(e){return Ai(e)||{}}function Li(e){for(var a={},t=0,i=e;t<i.length;t++){var r,n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=g(g(g({},a),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),Ei(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),Ei(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Ci,function(e,t,i,r,n,o){if(t)a.minimumIntegerDigits=i.length;else{if(r&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pi.test(n.stem))a.minimumIntegerDigits=n.stem.length;else if(_i.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(_i,function(e,t,i,r,n,o){return"*"===i?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:n&&o?(a.minimumFractionDigits=n.length,a.maximumFractionDigits=n.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Ti(o)))}else xi.test(n.stem)?a=g(g({},a),Ti(n.stem)):((o=Ai(n.stem))&&(a=g(g({},a),o)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!Pi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(a=g(g({},a),r)))}return a}var Mi={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Di=new RegExp("^".concat(t.source,"*")),Si=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,ki=!!String.fromCodePoint,Bi=!!Object.fromEntries,Ii=!!String.prototype.codePointAt,Ni=!!String.prototype.trimStart,Fi=!!String.prototype.trimEnd,Oi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ri=!0;try{Ri="a"===(null==(ar=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:ar[0])}catch(yo){Ri=!1}var Hi,zi,Wi=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},ji=ki?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;o<n;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Ui=Bi?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];t[o]=n}return t},Yi=Ii?function(e,t){return e.codePointAt(t)}:function(e,t){var i,r=e.length;if(!(t<0||r<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536},Gi=Ni?function(e){return e.trimStart()}:function(e){return e.replace(Di,"")},Vi=Fi?function(e){return e.trimEnd()}:function(e){return e.replace(Si,"")};function qi(e,t){return new RegExp(e,t)}zi=Ri?(Hi=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Hi.lastIndex=t,null!=(t=Hi.exec(e)[1])?t:""}):function(e,t){for(var i,r=[];;){var n=Yi(e,t);if(void 0===n||Ki(n)||33<=(i=n)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094)break;r.push(n),t+=65536<=n?2:1}return ji.apply(void 0,r)};o.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},o.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n,o=this.char();if(123===o){if((n=this.parseArgument(e,i)).err)return n;r.push(n.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xi(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;r.push(n.val)}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:r,err:null}},o.prototype.parseTag=function(e,t){var i,r=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Xi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(r,this.clonePosition()))):this.error(f.INVALID_TAG,v(r,this.clonePosition()))},o.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},o.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{n=this.tryParseUnquoted(e,t);if(n)r+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:r,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},o.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return ji.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var i;return this.isEOF()||60===(i=this.char())||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),ji(i))},o.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:v(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=zi(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=Vi(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(h=v(r,this.clonePosition()),l&&Wi(null==l?void 0:l.style,"::",0)?(m=Gi(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,h):(u=m,this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(Mi[t||""]||Mi[i||""]||Mi["".concat(i,"-001")]||Mi["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===n?"H":n}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(ni,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"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":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<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""}),n):{}},{val:{type:"date"===a?y.date:y.time,value:i,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,p=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),p=this.parseIdentifierIfPossible(),h=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,a,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(m=v(r,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Ui(l.val),location:m},err:null}:{val:{type:y.plural,value:i,options:Ui(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(o,s))}},o.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},o.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},o.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,r=e.split(oi).filter(function(e){return 0<e.length});i<r.length;i++){var n=r[i].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var o=n[0],n=n.slice(1),a=0,s=n;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Li(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n=!1,o=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,i);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([s,{value:c.val,location:v(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;n=!0,o=10*o+(a-48),this.bump()}r=v(r,this.clonePosition());return n?Oi(o*=i)?{val:o,err:null}:this.error(t,r):this.error(e,r)},o.prototype.offset=function(){return this.position.offset},o.prototype.isEOF=function(){return this.offset()===this.message.length},o.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},o.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Yi(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},o.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},o.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},o.prototype.bumpIf=function(e){if(Wi(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},o.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},o.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},o.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ki(this.char());)this.bump()},o.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Zi=o;function o(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Xi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ki(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ji(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Zi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Qt(e)||ei(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Xt(e)&&ii(e.style)||(Kt(e)||Jt(e))&&ri(e.style)?delete e.style.location:ti(e)&&i(e.children)})}(e.val),e.val}function Qi(e,t){var i=t&&t.cache?t.cache:sr,r=t&&t.serializer?t.serializer:rr;return(t&&t.strategy?t.strategy:function(e,t){return ir(e,this,1===e.length?er:tr,t.cache.create(),t.serializer)})(e,{cache:i,serializer:r})}function er(e,t,i,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:i(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function tr(e,t,i){var r=Array.prototype.slice.call(arguments,3),i=i(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function ir(e,t,i,r,n){return i.bind(t,e,r,n)}var rr=function(){return JSON.stringify(arguments)};function nr(){this.cache=Object.create(null)}nr.prototype.get=function(e){return this.cache[e]},nr.prototype.set=function(e,t){this.cache[e]=t};var or,ar,sr={create:function(){return new nr}},lr={variadic:function(e,t){return ir(e,this,tr,t.cache.create(),t.serializer)},monadic:function(e,t){return ir(e,this,er,t.cache.create(),t.serializer)}};(ar=or=or||{}).MISSING_VALUE="MISSING_VALUE",ar.INVALID_VALUE="INVALID_VALUE",ar.MISSING_INTL_API="MISSING_INTL_API";Gt(_r,hr=Error),_r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var cr,ur,dr,pr,hr,mr=_r,fr=(Gt(wr,pr=mr),wr),gr=(Gt(br,dr=mr),br),yr=(Gt(vr,ur=mr),vr);function vr(e,t){return ur.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),or.MISSING_VALUE,t)||this}function br(e,t,i){return dr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),or.INVALID_VALUE,i)||this}function wr(e,t,i,r){return pr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),or.INVALID_VALUE,r)||this}function _r(e,t,i){e=hr.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function xr(e,t,i,r,n,o,a){if(1===e.length&&Zt(e[0]))return[{type:cr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Zt(u))s.push({type:cr.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:cr.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(n&&d in n))throw new yr(d,a);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?cr.literal:cr.object,value:d});else if(Kt(u)){var p="string"==typeof u.style?r.date[u.style]:ri(u.style)?u.style.parsedOptions:void 0;s.push({type:cr.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Jt(u))p="string"==typeof u.style?r.time[u.style]:ri(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:cr.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Xt(u))(p="string"==typeof u.style?r.number[u.style]:ii(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:cr.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ti(u)){var h=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new gr(m,"function",a);m=f(xr(h,t,i,r,n,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?cr.literal:cr.object,value:e}}))}if(Qt(u)){if(!(g=u.options[d]||u.options.other))throw new fr(u.value,d,Object.keys(u.options),a);s.push.apply(s,xr(g.value,t,i,r,n))}else if(ei(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new mr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',or.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new fr(u.value,d,Object.keys(u.options),a);s.push.apply(s,xr(g.value,t,i,r,n,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===cr.literal&&t.type===cr.literal?i.value+=t.value:e.push(t),e},[])}function Cr(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=cr=cr||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(Tr,"defaultLocale",{get:function(){return Tr.memoizedDefaultLocale||(Tr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Tr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Tr.memoizedDefaultLocale=null,Tr.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},Tr.__parse=Ji,Tr.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"}}};var Pr=Tr;function Tr(e,t,i,r){var n,o,a=this;if(void 0===t&&(t=Tr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===cr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return xr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=Tr.resolveLocale(t),"string"==typeof e){if(this.message=e,!Tr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Tr.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(n=Tr.formats,(o=i)?Object.keys(n).reduce(function(e,t){var i,r;return e[t]=(i=n[t],(r=o[t])?g(g(g({},i||{}),r||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),r[t]||{}),e},{})):i),e},g({},n)):n),this.formatters=r&&r.formatters||{getNumberFormat:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:lr.variadic}),getDateTimeFormat:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr(t.dateTime),strategy:lr.variadic}),getPluralRules:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr(t.pluralRules),strategy:lr.variadic})}}const Ar={},Er=(e,t,i)=>i&&(t in Ar||(Ar[t]={}),e in Ar[t]||(Ar[t][e]=i),i),Lr=(t,i)=>{if(null!=i){if(i in Ar&&t in Ar[i])return Ar[i][t];var r=Zr(i);for(let e=0;e<r.length;e++){var n=function(e,t){if(!Dr(e))return null;e=function(e){return Mr[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var r=i.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const i=r.slice(e,r.length).join(".");if(i in t){t=t[i];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(n)return Er(t,i,n)}}};let Mr;const $r=Bt({});function Dr(e){return e in Mr}function B(t,...i){delete Ar[t],$r.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}It([$r],([e])=>Object.keys(e)),$r.subscribe(e=>Mr=e);const Sr={};function kr(e){return Sr[e]}function Br(e){return null!=e&&Zr(e).some(e=>{return null==(e=kr(e))?void 0:e.size})}function Ir(r,e){return Promise.all(e.map(e=>{return t=r,i=e,Sr[t].delete(i),0===Sr[t].size&&delete Sr[t],e().then(e=>e.default||e);var t,i})).then(e=>B(r,...e))}const Nr={};function Fr(e){var t;return Br(e)?(t=Zr(e).map(e=>{var t=kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Nr[e]=Promise.all(t.map(([e,t])=>Ir(e,t))).then(()=>{if(Br(e))return Fr(e);delete Nr[e]}),Nr[e]):e in Nr?Nr[e]:Promise.resolve()}const Or={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Rr(){return Or}const Hr=Bt(!1);var zr=Object.defineProperty,ki=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Yr=(e,t,i)=>t in e?zr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Gr;const Vr=Bt(null);function qr(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Zr(e,t=Or.fallbackLocale){e=qr(e);return t?[...new Set([...e,...qr(t)])]:e}function Xr(){return null!=Gr?Gr:void 0}Vr.subscribe(e=>{Gr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});Ii=((e,t)=>{for(var i in t=t||{})jr.call(t,i)&&Yr(e,i,t[i]);if(Wr)for(var i of Wr(t))Ur.call(t,i)&&Yr(e,i,t[i]);return e})({},Vr);const Le=ki(Ii,Bi({set:t=>{if(t&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const i=t[e];if(Dr(i))return i}}(t)&&Br(t)){const{loadingDelay:i}=Rr();let e;return"undefined"!=typeof window&&null!=Xr()&&i?e=window.setTimeout(()=>Hr.set(!0),i):Hr.set(!0),Fr(t).then(()=>{Vr.set(t)}).finally(()=>{clearTimeout(e),Hr.set(!1)})}return Vr.set(t)}})),Kr=i=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=i(e)}};var Jr=Object.defineProperty,Qr=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,rn=(e,t,i)=>t in e?Jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,nn=(e,t)=>{for(var i in t=t||{})en.call(t,i)&&rn(e,i,t[i]);if(Qr)for(var i of Qr(t))tn.call(t,i)&&rn(e,i,t[i]);return e},on=(e,t)=>{var i={};for(r in e)en.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Qr)for(var r of Qr(e))t.indexOf(r)<0&&tn.call(e,r)&&(i[r]=e[r]);return i};const an=(e,t)=>{var i=Or["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sn=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=an("number",i)),new Intl.NumberFormat(t,e)}),ln=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=an("date",i):0===Object.keys(e).length&&(e=an("date","short")),new Intl.DateTimeFormat(t,e)}),cn=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=an("time",i):0===Object.keys(e).length&&(e=an("time","short")),new Intl.DateTimeFormat(t,e)}),un=Kr((e,t=Xr())=>new Pr(e,t,Or.formats,{ignoreTag:Or.ignoreTag})),Me=It([Le,$r],()=>(e,t={})=>{var i,r;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:o,locale:a=Xr(),default:s}=n;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Lr(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(i=null==(i=(r=Or).handleMissingMessage)?void 0:i.call(r,{locale:a,id:e,defaultValue:s}))?i:s)?r:e;if(!o)return l;let c=l;try{c=un(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),dn=(It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return cn(nn({locale:t},e))})(t).format(e)),It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return ln(nn({locale:t},e))})(t).format(e)),It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return sn(nn({locale:t},e))})(t).format(e)),It([Le,$r],()=>(e,t=Xr())=>Lr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new Et(t),St[e]=t,Dt.push(e)),St[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),$e=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pn(e,t){B(e,t)}const hn={en:{profileUpdateSuccess:"Profile updated!",timeoutSuccess:"Timeout active",selfExclusionSuccess:"Self exclusion active",accountClosureSuccess:"Account closed",limitsUpdateSuccess:"Limits updated",limitsDeleteSuccess:"Limits deleted",passwordChangedSuccess:"Password changed successfully",realityCheckSuccess:"Reality check options saved"},"zh-hk":{profileUpdateSuccess:"資料更新!",timeoutSuccess:"超時有效",selfExclusionSuccess:"自我排斥活躍",accountClosureSuccess:"賬戶關閉",limitsUpdateSuccess:"限制已更新",limitsDeleteSuccess:"已刪除限制",passwordChangedSuccess:"密碼修改成功",realityCheckSuccess:"現實檢查選項已保存"},fr:{profileUpdateSuccess:"Mise à jour du profil!",timeoutSuccess:"Délai d'attente actif",selfExclusionSuccess:"Auto exclusion active",accountClosureSuccess:"Compte fermé",limitsUpdateSuccess:"Limites des mises à jour",limitsDeleteSuccess:"Limites supprimées",passwordChangedSuccess:"Le mot de passe a été modifié avec succés",realityCheckSuccess:"Options de contrôle de la réalité sauvegardées"},ro:{profileUpdateSuccess:"Profil updatat!",timeoutSuccess:"Timeout activ",selfExclusionSuccess:"Auto-excludere activa",accountClosureSuccess:"Cont inchis",limitsUpdateSuccess:"Limite updatate",limitsDeleteSuccess:"Limite sterse",passwordChangedSuccess:"Parola schimbata cu success",realityCheckSuccess:"Optiunile de verificare de timp salvate"},es:{profileUpdateSuccess:"Perfil actualizado!",timeoutSuccess:"Pausa activa",selfExclusionSuccess:"Auto Exclusión activa.",accountClosureSuccess:"Cuenta cerrada",limitsUpdateSuccess:"Limites actualizados",limitsDeleteSuccess:"Limites delegados",passwordChangedSuccess:"Cambio de Contraseña satisfactorio",realityCheckSuccess:"Opciones de verificación de realidad guardadas"},pt:{profileUpdateSuccess:"Perfil atualizado!",timeoutSuccess:"Tempo Limite ativo",selfExclusionSuccess:"Autoexclusão ativa",accountClosureSuccess:"Conta encerrada",limitsUpdateSuccess:"Limites atualizados",limitsDeleteSuccess:"Limites excluídos",passwordChangedSuccess:"Senha alterada com sucesso",realityCheckSuccess:"Opções de verificação de realidade salvas"}};function mn(e,t){B(e,t)}const fn={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"}};function gn(e,t){B(e,t)}const yn={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"}};function vn(i){let r,n,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){r=di("div"),n=di("button"),o=di("span"),a=hi(c),gi(r,"class","GeneralLogout")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),s||(l=fi(n,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(r),s=!1,l()}}}function bn(o){let i,r,n,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,r,n=o[2]("logoutButton")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&n!==(n=e[2]("logoutButton")+"")&&yi(r,n)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),r=di("span"),n=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=pi("path"),u=pi("path"),d=mi(),m&&m.c(),gi(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(c,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),gi(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),gi(n,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(n,"data-name","Layer 1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"viewBox","0 0 150 150"),L(r,"width",o[3]?o[4].matches?"50px":"24px":"20px"),gi(i,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,a),si(a,s),si(s,l),si(n,c),si(n,u),si(i,d),m&&m.m(i,null),p||(h=fi(i,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&ci(i),m&&m.d(),p=!1,h()}}}function wn(i){let r;function n(e){return"PlayerAccountMenu"===e[0]?bn:vn}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[14](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[14](null)}}}function _n(t,e,i){let r;Ae(t,Me,e=>i(2,r=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{buttonlocation:s=""}=e,{lang:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p="",h=!1,m=window.navigator.userAgent,f="PC"!==$e(m);e=window.matchMedia("(min-width: 768px)");Object.keys(yn).forEach(e=>{gn(e,yn[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"buttonlocation"in e&&i(0,s=e.buttonlocation),"lang"in e&&i(8,l=e.lang),"clientstyling"in e&&i(9,c=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,d=e.translationurl)},t.$$.update=()=>{if(193&t.$$.dirty&&o&&a&&s&&(o||(p="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(p)),a||(p="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(p))),256&t.$$.dirty&&l&&(e=l,Le.set(e)),514&t.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),1026&t.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gn(e,t[e])})}).catch(e=>{console.log(e)})},[s,n,r,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}function xn(e,t,i){e=e.slice();return e[32]=t[i],e}function Cn(i){let r,n,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){r=di("div"),n=di("p"),o=di("img"),s=mi(),l=di("span"),c=hi(m),u=mi(),gi(o,"class","PlayerAccountMenuItemIcon "+(i[10]?"PlayerAccountMenuItemIconMobile":"")),_(o.src,a=i[32].img)||gi(o,"src",a),gi(l,"class","PlayerAccountMenuItemTitle"),gi(n,"class","PlayerAccountMenuItemWrapper"),gi(r,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(n,s),si(n,l),si(l,c),si(r,u),p||(h=fi(r,"click",f),p=!0)},p(e,t){i=e,32&t[0]&&!_(o.src,a=i[32].img)&&gi(o,"src",a),32&t[0]&&m!==(m=i[32].label+"")&&yi(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))&&gi(r,"class",d)},d(e){e&&ci(r),p=!1,h()}}}function Pn(i){let r,n=function(t){let i,r,n,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h3"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(r,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=[fi(n,"click",i[12]),fi(p,"click",i[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,r;return{c(){i=di("div"),le(r=di("general-logout"),"endpoint",e[1]),le(r,"session",e[0]),le(r,"buttonlocation","PlayerAccountMenu"),le(r,"clientstyling",e[2]),le(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&le(r,"endpoint",e[1]),1&t[0]&&le(r,"session",e[0]),4&t[0]&&le(r,"clientstyling",e[2]),8&t[0]&&le(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=Cn(xn(t,g,e));let v=!t[10]&&function(e){let i,r;return{c(){i=di("div"),le(r=di("general-logout"),"endpoint",e[1]),le(r,"session",e[0]),le(r,"buttonlocation","PlayerAccountMenu"),le(r,"clientstyling",e[2]),le(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&le(r,"endpoint",e[1]),1&t[0]&&le(r,"session",e[0]),4&t[0]&&le(r,"clientstyling",e[2]),8&t[0]&&le(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),r=di("div"),m&&m.c(),n=mi(),o=di("p"),a=hi(t[7]),s=mi(),l=di("p"),c=hi(t[8]),u=mi(),f&&f.c(),d=mi(),p=di("div");for(let e=0;e<y.length;e+=1)y[e].c();h=mi(),v&&v.c(),gi(o,"class","PlayerAccountMenuUser"),gi(l,"class","PlayerAccountMenuEmail"),gi(r,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),gi(p,"class","PlayerAccountMenuList"),gi(i,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){li(e,i,t),si(i,r),m&&m.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(r,u),f&&f.m(r,null),si(i,d),si(i,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);si(i,h),v&&v.m(i,null)},p(t,i){if(t[10]&&m.p(t,i),128&i[0]&&yi(a,t[7]),256&i[0]&&yi(c,t[8]),t[10]&&f.p(t,i),9312&i[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var r=xn(t,g,e);y[e]?y[e].p(r,i):(y[e]=Cn(r),y[e].c(),y[e].m(p,null))}for(;e<y.length;e+=1)y[e].d(1);y.length=g.length}t[10]||v.p(t,i)},d(e){e&&ci(i),m&&m.d(),f&&f.d(),ui(y,e),v&&v.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[20](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[20](null)}}}function Tn(i,e,r){let t;Ae(i,Me,e=>r(9,t=e));let n,o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{selecteditem:u=""}=e,{userroles:d=""}=e,{clientstyling:p=""}=e,{clientstylingurl:h=""}=e,{translationurl:m=""}=e,f=[],g=window.navigator.userAgent,y="PC"!==$e(g),v="",b="";e=window.matchMedia("(min-width: 768px)");Object.keys(fn).forEach(e=>{mn(e,fn[e])});const w=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":r(5,f=e.data.accountMenuInfo);break;case"UserSessionID":r(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),r(6,o=e.id)},x=()=>{r(6,o=u)};return De(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&r(1,a=e.endpoint),"session"in e&&r(0,s=e.session),"playerid"in e&&r(14,l=e.playerid),"lang"in e&&r(15,c=e.lang),"selecteditem"in e&&r(16,u=e.selecteditem),"userroles"in e&&r(17,d=e.userroles),"clientstyling"in e&&r(2,p=e.clientstyling),"clientstylingurl"in e&&r(3,h=e.clientstylingurl),"translationurl"in e&&r(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,Le.set(t)),49155&i.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(7,v=e.username),r(8,b=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&x(),24&i.$$.dirty[0]&&h&&n){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&n&&((e=document.createElement("style")).innerHTML=p,n.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,n,f,o,v,b,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(4,n)})}]}function An(e,t,i){e=e.slice();return e[14]=t[i],e}function En(t){let n,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ln(An(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(n,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var r=An(t,o,e);a[e]?a[e].p(r,i):(a[e]=Ln(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function Ln(e){let i,r,n,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),r=di("div"),n=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(n,"class","PlayerAccountNotificationIcon"),_(n.src,o=e[14].icon)||gi(n,"src",o),gi(n,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(r,"class","PlayerAccountNotificationBoxHeader"),gi(d,"class","PlayerAccountNotificationText"),gi(i,"class","PlayerAccountNotificationBox"),L(i,"background",e[14].backgroundColor)},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,s),si(r,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!_(n.src,o=e[14].icon)&&gi(n,"src",o),2&t&&a!==(a=e[14].title)&&gi(n,"alt",a),2&t&&h!==(h=e[14].title+"")&&yi(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&L(i,"background",e[14].backgroundColor)},d(e){e&&ci(i)}}}function Mn(i){let r;function n(e){if(e[1].length)return En}let o=n(i),a=o&&o(i);return{c(){r=di("div"),a&&a.c(),this.c=se},m(e,t){li(e,r,t),a&&a.m(r,null),i[7](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a&&a.d(),i[7](null)}}}function $n(t,e,i){let r,{customnotif:n=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==$e(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(i(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{n.replace(" ",""),u=n.split(",")};return De(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,n=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&n&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&r){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&r&&((e=document.createElement("style")).innerHTML=o,r.appendChild(e))},[r,c,l,d,n,o,a,function(e){Ee[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Dn(e,t){B(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},_n,wn,i,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","buttonlocation","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-menu")||customElements.define("player-account-menu",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Tn,Pn,i,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","selecteditem","userroles","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),p()}get selecteditem(){return this.$$.ctx[16]}set selecteditem(e){this.$$set({selecteditem:e}),p()}get userroles(){return this.$$.ctx[17]}set userroles(e){this.$$set({userroles:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-notifications")||customElements.define("player-account-notifications",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},$n,Mn,i,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["customnotif","clientstyling","clientstylingurl"]}get customnotif(){return this.$$.ctx[4]}set customnotif(e){this.$$set({customnotif:e}),p()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const Sn={en:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"},"zh-hk":{title:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",cooloff24:"冷卻 24 小時",cooloff7:"冷卻 7 天",cooloff30:"冷卻 30 天",cooloff3:"冷靜3個月",cooloff24Text:"24小時",cooloff7Text:"7天",cooloff30Text:"30天",cooloff3Text:"3個月"},fr:{title:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:'Veuillez noter que l\'"installation du temps mort" ne remplace en aucun cas "l\'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d\'auto exclusion" ou nous contacter dès que possible.',save:"Savez",cooloff24:"Pause de 24 heures",cooloff7:"Pause de 7 jours",cooloff30:"Pause de 30 jours",cooloff3:"Pause de 3 mois",cooloff24Text:"24 heures",cooloff7Text:"7 jours",cooloff30Text:"30 jours",cooloff3Text:"3 mois"},ro:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"},es:{title:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",cooloff24:"CoolOffPor24Horas",cooloff7:"CoolOffPor7Días",cooloff30:"CoolOffPor30Días",cooloff3:"CoolOffPor3Meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"},pt:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"}};function kn(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function Bn(e){let i,r,t=e[22]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function In(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,e=i[3]("title")+"",P=i[3]("timeoutTextFirst",{values:{operatorname:i[0]}})+"",T=i[3]("timeoutTextSecondary")+"",A=i[3]("save")+"",E=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),L=i[5],M=[];for(let e=0;e<L.length;e+=1)M[e]=Bn(kn(i,L,e));return{c(){r=di("div"),n=di("form"),E&&E.c(),o=mi(),a=di("h2"),s=hi(e),l=mi(),c=di("div"),u=di("p"),d=hi(P),p=mi(),h=di("p"),m=hi(T),f=mi(),g=di("div"),y=di("select");for(let e=0;e<M.length;e+=1)M[e].c();v=mi(),b=di("div"),w=di("button"),_=hi(A),this.c=se,gi(a,"class","TimeoutTitle "+(i[4]?"TimeoutTitleNone":"")),gi(c,"class","TimeoutDescription "+(i[4]?"TimeoutDescriptionMobile":"")),gi(y,"class","TimeoutSelect "+(i[4]?"TimeoutSelectMobile":"")),void 0===i[2]&&wi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(w,"class","TimeoutSave"),gi(b,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(n,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),E&&E.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),si(n,f),si(n,g),si(g,y);for(let e=0;e<M.length;e+=1)M[e]&&M[e].m(y,null);bi(y,i[2],!0),si(n,v),si(n,b),si(b,w),si(w,_),i[15](r),x||(C=[fi(y,"change",i[13]),fi(w,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&E.p(t,i),8&i&&e!==(e=t[3]("title")+"")&&yi(s,e),9&i&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&yi(d,P),8&i&&T!==(T=t[3]("timeoutTextSecondary")+"")&&yi(m,T),32&i){let e;for(L=t[5],e=0;e<L.length;e+=1){var r=kn(t,L,e);M[e]?M[e].p(r,i):(M[e]=Bn(r),M[e].c(),M[e].m(y,null))}for(;e<M.length;e+=1)M[e].d(1);M.length=L.length}36&i&&bi(y,t[2]),8&i&&A!==(A=t[3]("save")+"")&&yi(_,A)},i:se,o:se,d(e){e&&ci(r),E&&E.d(),ui(M,e),i[15](null),x=!1,ai(C)}}}function Nn(t,e,i){let r;Ae(t,Me,e=>i(3,r=e));let n,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=(Object.keys(Sn).forEach(e=>{Dn(e,Sn[e])}),[{value:r("cooloff24"),text:r("cooloff24Text")},{value:r("cooloff7"),text:r("cooloff7Text")},{value:r("cooloff30"),text:r("cooloff30Text")},{value:r("cooloff3"),text:r("cooloff3Text")}]),h=p[0].value;const m=e=>{e.preventDefault(),window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:h},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)};return t.$$set=e=>{"operator"in e&&i(0,o=e.operator),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,Le.set(e)),1026&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;514&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Dn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,h,r,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nn,In,i,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["operator","lang","clientstyling","clientstylingurl","translationurl"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});On=Fn={path:void 0,exports:{},require:function(e,t){return $i(null==t&&Fn.path)}},Fn.exports,On.exports=function(){var N;function m(){return N.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function s(e){return void 0===e}function R(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function H(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function z(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function W(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,r){return Dt(e,t,i,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){if(null==e._isValid){var t=g(e),i=Y.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function U(e){var t=c(NaN);return null!=e?W(g(t),e):g(t).userInvalidated=!0,t}var Y=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var i,r,n,o=G.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(n=t[r=G[i]])||(e[r]=n);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return W(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,r=W({},e);for(i in t)f(t,i)&&(F(e[i])&&F(t[i])?(r[i]={},W(r[i],e[i]),W(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)f(e,i)&&!f(t,i)&&F(e[i])&&(r[i]=W({},r[i]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},oe={};function r(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=n),t&&(oe[t[0]]=function(){return o(n.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),ne[t]=ne[t]||function(r){for(var e,n=r.match(ie),t=0,o=n.length;t<o;t++)oe[n[t]]?n[t]=oe[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(n[i])?n[i].call(e,r):n[i];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=i&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,i,r={};for(i in e)f(e,i)&&(t=d(i))&&(r[t]=e[i]);return r}var ue={};function i(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?p(e):t}function pe(t,i){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=h(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Be(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ce=/\d+/,Pe=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,b=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,i,r){Le[e]=u(i)?i:function(e,t){return e&&r?r:i}}function Ee(e,t){return f(Le,e)?Le[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Le={},Me={};function x(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),R(i)&&(n=function(e,t){t[i]=h(e)}),r=e.length,t=0;t<r;t++)Me[e[t]]=n}function $e(e,n){x(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var C,P=0,T=1,A=2,E=3,L=4,M=5,De=6,Se=7,ke=8;function Be(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),w("M",v),w("MM",v,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[T]=h(e)-1}),x(["MMM","MMMM"],function(e,t,i,r){r=i._locale.monthsParse(e,r,i._strict);null!=r?t[T]=r:g(i).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=b,Re=b;function He(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function ze(e){return null!=e?(He(this,e),m.updateOffset(this,!0),this):he(this,"Month")}function We(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),o=0;o<12;o++)i[o]=_(i[o]),r[o]=_(r[o]);for(o=0;o<24;o++)n[o]=_(n[o]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),w("Y",Pe),w("YY",v,y),w("YYYY",_e,ge),w("YYYYY",xe,ye),w("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],P),x("YYYY",function(e,t){t[P]=2===e.length?m.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[P]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[P]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ue=pe("FullYear",!0);function Ye(e,t,i,r,n,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,o,a),s}function Ge(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,i){i=7+t-i;return-(7+Ge(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,r,n){var o,t=1+7*(t-1)+(7+i-r)%7+Ve(e,r,n),i=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var r,n,o=Ve(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+$(n=e.year()-1,t,i):o>$(e.year(),t,i)?(r=o-$(e.year(),t,i),n=e.year()+1):(n=e.year(),r=o),{week:r,year:n}}function $(e,t,i){var r=Ve(e,t,i),t=Ve(e+1,t,i);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),w("w",v),w("ww",v,y),w("W",v),w("WW",v,y),$e(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=h(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),w("d",v),w("e",v),w("E",v),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),$e(["dd","ddd","dddd"],function(e,t,i,r){r=i._locale.weekdaysParse(e,r,i._strict);null!=r?t.d=r:g(i).invalidWeekday=e}),$e(["d","e","E"],function(e,t,i,r){t[r]=h(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,it=b;function rt(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],o=[],a=[],s=[],l=0;l<7;l++)r=c([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),i=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),n.push(t),o.push(i),a.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nt),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),w("a",at),w("A",at),w("H",v),w("h",v),w("k",v),w("HH",v,y),w("hh",v,y),w("kk",v,y),w("hmm",ve),w("hmmss",be),w("Hmm",ve),w("Hmmss",be),x(["H","HH"],E),x(["k","kk"],function(e,t,i){e=h(e);t[E]=24===e?0:e}),x(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),x(["h","hh"],function(e,t,i){t[E]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var r=e.length-2;t[E]=h(e.substr(0,r)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[E]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var r=e.length-2;t[E]=h(e.substr(0,r)),t[L]=h(e.substr(r))}),x("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[E]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n))});b=pe("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,r,n,o=0;o<e.length;){for(t=(n=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(r=pt(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===D[t]&&On&&On.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,$i(),ht(e)}catch(e){D[t]=null}return D[t]}function ht(e,t){return e&&((t=s(t)?S(e):mt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function mt(e,t){if(null===t)return delete D[e],null;var i,r=lt;if(t.abbr=e,null!=D[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])r=D[t.parentLocale]._config;else{if(null==(i=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=i._config}return D[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),D[e]}function S(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=pt(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[T]<0||11<t[T]?T:t[A]<1||t[A]>Be(t[P],t[T])?A:t[E]<0||24<t[E]||24===t[E]&&(0!==t[L]||0!==t[M]||0!==t[De])?E:t[L]<0||59<t[L]?L:t[M]<0||59<t[M]?M:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<P||A<t)&&(t=A),g(e)._overflowWeeks&&-1===t&&(t=Se),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e){var t,i,r,n,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=bt.length,c=wt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(bt[t][1].exec(l[1])){n=bt[t][0],r=!1!==bt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,i=c;t<i;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=n+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Tt(e,t,i,r,n,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(n,10)];return o&&e.push(parseInt(o,10)),e}function At(e){var t,i,r,n,o=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Tt(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],r=t,n=e,i&&Je.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=o[8],r=o[9],n=o[10],i?Ct[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Et(e,t,i){return null!=e?e:null!=t?t:i}function Lt(e){var t,i,r,n,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),i=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[A]&&null==e._a[T]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,r=Et(d.GG,u._a[P],Ze(k(),1,4).year),n=Et(d.W,1),((o=Et(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Ze(k(),a,s),r=Et(d.gg,u._a[P],c.year),n=Et(d.w,c.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+a,(d.e<0||6<d.e)&&(l=!0)):o=a),n<1||n>$(r,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(r,n,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=Et(e._a[P],i[P]),(e._dayOfYear>je(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ge(d,0,e._dayOfYear),e._a[T]=l.getUTCMonth(),e._a[A]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=i[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[E]&&0===e._a[L]&&0===e._a[M]&&0===e._a[De]&&(e._nextDay=!0,e._a[E]=0),e._d=(e._useUTC?Ge:Ye).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[E]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,r,n=""+e._i,o=n.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)r=i[l],(t=(n.match(Ee(r,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),a+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),d=r,h=e,null!=(p=t)&&f(Me,d)&&Me[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-a,0<n.length&&g(e).unusedInput.push(n),e._a[E]<=12&&!0===g(e).bigHour&&0<e._a[E]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[E]=(o=e._locale,c=e._a[E],null==(u=e._meridiem)?c:null!=o.meridiemHour?o.meridiemHour(c,u):null!=o.isPM?((o=o.isPM(u))&&c<12&&(c+=12),c=o||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Lt(e),ft(e)}else At(e);else Pt(e);var c,u,d,p,h}function $t(e){var t,i=e._i,r=e._f;{var n,o;return(e._locale=e._locale||S(e._l),null===i||void 0===r&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(H(i)?e._d=i:a(r)?function(e){var t,i,r,n,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Mt(t),j(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,i=t):(null==r||o<r||a)&&(r=o,i=t,a)&&(s=!0);W(e,i||t)}(e):r?Mt(e):s(r=(i=e)._i)?i._d=new Date(m.now()):H(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null===(o=_t.exec(n._i))?(Pt(n),!1===n._isValid&&(delete n._isValid,At(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n))):n._d=new Date(+o[1])):a(r)?(i._a=z(r.slice(0),function(e){return parseInt(e,10)}),Lt(i)):F(r)?(n=i)._d||(t=void 0===(o=ce(n._i)).day?o.date:o.day,n._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Lt(n)):R(r)?i._d=new Date(r):m.createFromInputFallback(i),j(e)||(e._d=null),e))}}function Dt(e,t,i,r,n){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(F(e)&&O(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=i,o._i=e,o._f=t,o._strict=r,(n=new Z(ft($t(n=o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function k(e,t,i,r){return Dt(e,t,i,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),be=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function St(e,t){var i,r;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return k();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}var kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=ce(e),t=e.year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,s=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=kt.length;for(t in e)if(f(e,t)&&(-1===C.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[kt[i]]){if(r)return!1;parseFloat(e[kt[i]])!==h(e[kt[i]])&&(r=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=S(),this._bubble()}function It(e){return e instanceof Bt}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,i){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),w("Z",Ae),w("ZZ",Ae),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Ae,e)});var Ot=/([\+\-]|\d\d)/gi;function Rt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ot)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||H(e)?e:k(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):k(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var i,r,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=jt.exec(e))?(i="-"===t[1]?-1:1,n={y:0,d:h(t[A])*i,h:h(t[E])*i,m:h(t[L])*i,s:h(t[M])*i,ms:h(Nt(1e3*t[De]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,n={y:Yt(t[2],i),M:Yt(t[3],i),w:Yt(t[4],i),d:Yt(t[5],i),h:Yt(t[6],i),m:Yt(t[7],i),s:Yt(t[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=k(n.from),i=k(n.to),t=t.isValid()&&i.isValid()?(i=Ht(i,t),t.isBefore(i)?r=Gt(t,i):((r=Gt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),r=new Bt(n),It(e)&&f(e,"_locale")&&(r._locale=e._locale),It(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Gt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Vt(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(J(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),qt(this,B(e,t),r),this}}function qt(e,t,i,r){var n=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&He(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),n&&e._d.setTime(e._d.valueOf()+n*i),r)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||H(e)||Zt(e)||R(e)||(i=a(t=e),r=!1,i&&(r=0===t.filter(function(e){return!R(e)&&Zt(t)}).length),i&&r)||function(e){var t,i,r=F(e)&&!O(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)i=o[t],n=n||f(e,i);return r&&n}(e)||null==e;var t,i,r}function Kt(e,t){var i,r;return e.date()<t.date()?-Kt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(i,"months"))<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=S(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ri(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ni(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],r=[],n=this.eras(),o=0,a=n.length;o<a;++o)t.push(_(n[o].name)),e.push(_(n[o].abbr)),i.push(_(n[o].narrow)),r.push(_(n[o].name)),r.push(_(n[o].abbr)),r.push(_(n[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){r(0,[e,e.length],0,t)}function si(e,t,i,r,n){var o;return null==e?Ze(this,r,n).year:(t>(o=$(e,r,n))&&(t=o),function(e,t,i,r,n){e=qe(e,t,i,r,n),t=Ge(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,r,n))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",ni),w("NN",ni),w("NNN",ni),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){r=i._locale.erasParse(e,r,i._strict);r?g(i).era=r:g(i).invalidEra=e}),w("y",Ce),w("yy",Ce),w("yyy",Ce),w("yyyy",Ce),w("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,n):t[P]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),w("G",Pe),w("g",Pe),w("GG",v,y),w("gg",v,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",xe,ye),w("ggggg",xe,ye),$e(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=h(e)}),$e(["gg","GG"],function(e,t,i,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),w("Q",n),x("Q",function(e,t){t[T]=3*(h(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),i("date",9),w("D",v),w("DD",v,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],A),x("Do",function(e,t){t[A]=h(e.match(v)[0])});_e=pe("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),w("DDD",we),w("DDDD",fe),x(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),w("m",v),w("mm",v,y),x(["m","mm"],L);ge=pe("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),i("second",15),w("s",v),w("ss",v,y),x(["s","ss"],M);var li,xe=pe("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),w("S",we,n),w("SS",we,y),w("SSS",we,fe),li="SSSS";li.length<=9;li+="S")w(li,Ce);function ci(e,t){t[De]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")x(li,ci);ye=pe("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");n=Z.prototype;function ui(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!O(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||f(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||k(),i=Ht(e,this).startOf("day"),i=m.calendarFormat(this,i)||"sameElse",t=t&&(u(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,k(e)))},n.clone=function(){return new Z(this)},n.diff=function(e,t,i){var r,n,o;if(!this.isValid())return NaN;if(!(r=Ht(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-n)/864e5;break;case"week":o=(this-r-n)/6048e5;break;default:o=this-r}return i?o:p(o)},n.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(k(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(k(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,i,r){return e=l(e)?e:k(e),t=l(t)?t:k(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},n.isSame=function(e,t){var e=l(e)?e:k(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return j(this)},n.lang=Qe,n.locale=Jt,n.localeData=Qt,n.max=be,n.min=ve,n.parsingFlags=function(){return W({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ue[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ce(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.subtract=Ke,n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?ae(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ae(t,"Z")):ae(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,i;return this.isValid()?(t="moment",i="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},n.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-m(i[r].since).year())*e+i[r].offset;return this.year()},n.year=Ue,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=ze,n.daysInMonth=function(){return Be(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return $(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return $(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return $(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return $(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,i,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,r=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=r.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=b,n.minute=n.minutes=ge,n.second=n.seconds=xe,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:zt(this);if("string"==typeof e){if(null===(e=Rt(Ae,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?qt(this,B(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Rt(Te,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Wt,n.isUTC=Wt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",ze),n.years=e("years accessor is deprecated. Use year instead",Ue),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return s(this._isDSTShifted)&&(q(t={},this),(t=$t(t))._a?(e=(t._isUTC?c:k)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,a=0;a<r;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,r){var n=S(),r=c().set(r,t);return n[i](r,e)}function pi(e,t,i){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=di(e,n,i,"month");return r}function hi(e,t,i,r){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var n,o=S(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,r,"day");for(n=0;n<7;n++)s[n]=di(t,(n+a)%7,r,"day");return s}y.calendar=function(e,t,i){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ui,y.postformat=ui,y.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return u(n)?n(e,t,i,r):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(u(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,r=this._eras||S("en")._eras,n=0,o=r.length;n<o;++n)switch("string"==typeof r[n].since&&(i=m(r[n].since).startOf("day"),r[n].since=i.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=m(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}return r},y.erasParse=function(e,t,i){var r,n,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,n=l.length;r<n;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if(0<=[o,a,s].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))||-1!==(n=C.call(this._longMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))||-1!==(n=C.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=c([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=c([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",S);var mi=Math.abs;function fi(e,t,i,r){t=B(t,i);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function bi(e){return function(){return this.as(e)}}we=bi("ms"),fe=bi("s"),Ie=bi("m"),be=bi("h"),ve=bi("d"),Ke=bi("w"),b=bi("M"),ge=bi("Q"),xe=bi("y");function wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wi("milliseconds"),_e=wi("seconds"),Ue=wi("minutes"),y=wi("hours"),_i=wi("days"),xi=wi("months"),Ci=wi("years");var Pi=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ai(e,t,i,r){var n=B(e).abs(),o=Pi(n.as("s")),a=Pi(n.as("m")),s=Pi(n.as("h")),l=Pi(n.as("d")),c=Pi(n.as("M")),u=Pi(n.as("w")),n=Pi(n.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(a<=1?["m"]:a<i.m&&["mm",a])||(s<=1?["h"]:s<i.h&&["hh",s])||(l<=1?["d"]:l<i.d&&["dd",l]);return(o=(o=null!=i.w?o||(u<=1?["w"]:u<i.w&&["ww",u]):o)||(c<=1?["M"]:c<i.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,o)}var Ei=Math.abs;function Li(e){return(0<e)-(e<0)||+e}function Mi(){var e,t,i,r,n,o,a,s,l,c,u;return this.isValid()?(s=Ei(this._milliseconds)/1e3,l=Ei(this._days),c=Ei(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=Li(this._months)!==Li(u)?"-":"",o=Li(this._days)!==Li(u)?"-":"",a=Li(this._milliseconds)!==Li(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(c?n+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+r+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Bt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),e.milliseconds=mi(e.milliseconds),e.seconds=mi(e.seconds),e.minutes=mi(e.minutes),e.hours=mi(e.hours),e.months=mi(e.months),e.years=mi(e.years),this},I.add=function(e,t){return fi(this,e,t,1)},I.subtract=function(e,t){return fi(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Ke,I.asMonths=b,I.asQuarters=ge,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),r.milliseconds=e%1e3,e=p(e/1e3),r.seconds=e%60,e=p(e/60),r.minutes=e%60,e=p(e/60),r.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},I.clone=function(){return B(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=Ue,I.hours=y,I.days=_i,I.weeks=function(){return p(this.days()/7)},I.months=xi,I.years=Ci,I.humanize=function(e,t){var i,r;return this.isValid()?(i=!1,r=Ti,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Ti,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Ai(this,!i,r,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Mi,I.toString=Mi,I.toJSON=Mi,I.locale=Jt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mi),I.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",Pe),w("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,i){i._d=new Date(h(e))}),m.version="2.29.4",N=k,m.fn=n,m.min=function(){return St("isBefore",[].slice.call(arguments,0))},m.max=function(){return St("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return k(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=U,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},m.parseZone=function(){return k.apply(null,arguments).parseZone()},m.localeData=S,m.isDuration=It,m.monthsShort=function(e,t){return pi(e,t,"monthsShort")},m.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var i,r;return null!=t?(r=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(r=null!=(i=pt(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new ee(t)).parentLocale=D[e],D[e]=r),ht(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===ht()&&ht(e)):null!=D[e]&&delete D[e]),D[e]},m.locales=function(){return te(D)},m.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Pi:"function"==typeof e&&(Pi=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=n,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Fn,On,W=Fn.exports;function Rn(e,t){B(e,t)}const Hn={en:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."}};class zn extends HTMLElement{static get version(){return"23.1.16"}}customElements.define("vaadin-lumo-styles",zn);const Wn=window,jn=Wn.ShadowRoot&&(void 0===Wn.ShadyCSS||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Un=Symbol(),Yn=new WeakMap;class Gn{constructor(e,t,i){if(this._$cssResult$=!0,i!==Un)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return jn&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?Yn.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yn.set(i,e),e}toString(){return this.cssText}}const a=(r,...e)=>{e=1===r.length?r[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+r[i+1],r[0]);return new Gn(e,r,Un)},Vn=jn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const i of t.cssRules)e+=i.cssText;return t=e,new Gn("string"==typeof t?t:t+"",void 0,Un)}},qn=window,Zn=qn.trustedTypes,Xn=Zn?Zn.emptyScript:"",Kn=qn.reactiveElementPolyfillSupport,Jn={toAttribute(e,t){switch(t){case Boolean:e=e?Xn:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Qn=(e,t)=>t!==e&&(t==t||e==e),eo={attribute:!0,type:String,converter:Jn,reflect:!1,hasChanged:Qn},to="finalized";class io extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=eo){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,r,n){return{get(){return this[r]},set(e){var t=this[i];this[r]=e,this.requestUpdate(i,t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||eo}static finalize(){if(this.hasOwnProperty(to))return!1;this[to]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Vn(e))}else void 0!==e&&t.push(Vn(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,jn?r.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=Wn.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,r.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=eo){var r,n=this.constructor._$Ep(e,i);void 0!==n&&!0===i.reflect&&(r=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:Jn).toAttribute(t,i.type),this._$El=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null)}_$AK(e,t){var i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(i=e.converter)?void 0:i.fromAttribute)?e.converter:Jn;this._$El=r,this[r]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Qn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}io[to]=!0,io.elementProperties=new Map,io.elementStyles=[],io.shadowRootOptions={mode:"open"},null!=Kn&&Kn({ReactiveElement:io}),(null!=(Ni=qn.reactiveElementVersions)?Ni:qn.reactiveElementVersions=[]).push("1.6.3");const ro=window,no=ro.trustedTypes,oo=no?no.createPolicy("lit-html",{createHTML:e=>e}):void 0,ao="$lit$",so=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+so,co=`<${lo}>`,uo=document,po=()=>uo.createComment(""),ho=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mo=Array.isArray,fo="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,vo=/>/g,bo=RegExp(`>|${fo}(?:([^\\s"'>=/]+)(${fo}*=${fo}*(?:[^
4
- \r"'\`<>=]|("|')|))|$)`,"g"),wo=/'/g,_o=/"/g,xo=/^(?:script|style|textarea|title)$/i,Co=Symbol.for("lit-noChange"),Po=Symbol.for("lit-nothing"),To=new WeakMap,Ao=uo.createTreeWalker(uo,129,null,!1);function Eo(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==oo?oo.createHTML(t):t;throw Error("invalid template strings array")}class Lo{constructor({strings:t,_$litType$:i},e){var r;this.parts=[];let n=0,o=0;var a=t.length-1,s=this.parts,[t,l]=((o,e)=>{const a=o.length-1,s=[];let l,c=2===e?"<svg>":"",u=go;for(let n=0;n<a;n++){const a=o[n];let e,t,i=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===go?"!--"===t[1]?u=yo:void 0!==t[1]?u=vo:void 0!==t[2]?(xo.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=bo):void 0!==t[3]&&(u=bo):u===bo?">"===t[0]?(u=null!=l?l:go,i=-1):void 0===t[1]?i=-2:(i=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?bo:'"'===t[3]?_o:wo):u===_o||u===wo?u=bo:u===yo||u===vo?u=go:(u=bo,l=void 0);var d=u===bo&&o[n+1].startsWith("/>")?" ":"";c+=u===go?a+co:0<=i?(s.push(e),a.slice(0,i)+ao+a.slice(i)+so+d):a+so+(-2===i?(s.push(void 0),n):d)}return[Eo(o,c+(o[a]||"<?>")+(2===e?"</svg>":"")),s]})(t,i);if(this.el=Lo.createElement(t,e),Ao.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(r=Ao.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const i of r.getAttributeNames())if(i.endsWith(ao)||i.startsWith(so)){const e=l[o++];if(t.push(i),void 0!==e){const t=r.getAttribute(e.toLowerCase()+ao).split(so),i=/([.?@])?(.*)/.exec(e);s.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ko:"?"===i[1]?Io:"@"===i[1]?No:So})}else s.push({type:6,index:n})}for(const i of t)r.removeAttribute(i)}if(xo.test(r.tagName)){const t=r.textContent.split(so),i=t.length-1;if(0<i){r.textContent=no?no.emptyScript:"";for(let e=0;e<i;e++)r.append(t[e],po()),Ao.nextNode(),s.push({type:2,index:++n});r.append(t[i],po())}}}else if(8===r.nodeType)if(r.data===lo)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=r.data.indexOf(so,e+1));)s.push({type:7,index:n}),e+=so.length-1}n++}}static createElement(e,t){var i=uo.createElement("template");return i.innerHTML=e,i}}function Mo(t,i,r=t,n){var o;if(i!==Co){let e=void 0!==n?null==(a=r._$Co)?void 0:a[n]:r._$Cl;var a=ho(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,n),void 0!==n?(null!=(o=r._$Co)?o:r._$Co=[])[n]=e:r._$Cl=e),void 0!==e&&(i=Mo(t,e._$AS(t,i.values),e,n))}return i}class $o{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:i}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:uo).importNode(e,!0);Ao.currentNode=r;let n=Ao.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new Do(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new Fo(n,this,t)),this._$AV.push(e),s=i[++a]}o!==(null==s?void 0:s.index)&&(n=Ao.nextNode(),o++)}return Ao.currentNode=uo,r}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Do{constructor(e,t,i,r){this.type=2,this._$AH=Po,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=null==(e=null==r?void 0:r.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Mo(this,e,t),ho(e)?e===Po||null==e||""===e?(this._$AH!==Po&&this._$AR(),this._$AH=Po):e!==this._$AH&&e!==Co&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,mo(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Po&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.$(uo.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Lo.createElement(Eo(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(i);else{const e=new $o(r,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=To.get(e.strings);return void 0===t&&To.set(e.strings,t=new Lo(e)),t}T(e){mo(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new Do(this.k(po()),this.k(po()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class So{constructor(e,t,i,r,n){this.type=1,this._$AH=Po,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Po}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,r=this,n,o){var a=this.strings;let s=!1;if(void 0===a)i=Mo(this,i,r,0),(s=!ho(i)||i!==this._$AH&&i!==Co)&&(this._$AH=i);else{const o=i;let e,t;for(i=a[0],e=0;e<a.length-1;e++)(t=Mo(this,o[n+e],r,e))===Co&&(t=this._$AH[e]),s=s||!ho(t)||t!==this._$AH[e],t===Po?i=Po:i!==Po&&(i+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!o&&this.j(i)}j(e){e===Po?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ko extends So{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Po?void 0:e}}const Bo=no?no.emptyScript:"";class Io extends So{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Po?this.element.setAttribute(this.name,Bo):this.element.removeAttribute(this.name)}}class No extends So{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){var i,r;(e=null!=(t=Mo(this,e,t,0))?t:Po)!==Co&&(t=this._$AH,i=e===Po&&t!==Po||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==Po&&(t===Po||i),i&&this.element.removeEventListener(this.name,this,t),r&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Fo{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mo(this,e)}}Fi=ro.litHtmlPolyfillSupport;null!=Fi&&Fi(Lo,Do),(null!=(Ri=ro.litHtmlVersions)?Ri:ro.litHtmlVersions=[]).push("2.8.0");class Oo extends io{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var r,n=null!=(n=null==i?void 0:i.renderBefore)?n:t;let o=n._$litPart$;if(void 0===o){const e=null!=(r=null==i?void 0:i.renderBefore)?r:null;n._$litPart$=o=new Do(t.insertBefore(po(),e),e,void 0,null!=i?i:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return Co}}Oo.finalized=!0,Oo._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:Oo});ki=globalThis.litElementPolyfillSupport;null!=ki&&ki({LitElement:Oo}),(null!=(Ii=globalThis.litElementVersions)?Ii:globalThis.litElementVersions=[]).push("3.3.3");const Ro=[];function Ho(e,t,i={}){var r;e&&jo(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
3
+ }`,s=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,p=A(e),{stylesheet:h,rules:m}=$.get(p)||(p=p,u={stylesheet:(u=e,m=di("style"),u=A(u),h=m,si(u.head||u,h),h.sheet,m.sheet),rules:{}},$.set(p,u),u),p=(m[s]||(m[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(p?p+", ":"")+s+` ${r}ms linear ${n}ms 1 both`,S+=1,s}function N(e){D=e}function De(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],Ae=[];let O=[];const R=[],H=Promise.resolve();let z=!1;function Se(){z||(z=!0,H.then(p))}function bi(e){O.push(e)}const j=new Set;let U,Y=0;function p(){if(0===Y){const r=D;do{try{for(;Y<F.length;){const r=F[Y];Y++,N(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),ai(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bi))}}catch(r){throw F.length=0,Y=0,r}for(N(null),F.length=0,Y=0;Ae.length;)Ae.pop()();for(let e=0;e<O.length;e+=1){var i=O[e];j.has(i)||(j.add(i),i())}}while(O.length=0,F.length);for(;R.length;)R.pop()();z=!1,j.clear(),N(r)}}function V(e,t,i){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),r))}const q=new Set;let Z;function X(){Z={r:0,c:[],p:Z}}function K(){Z.r||ai(Z.c),Z=Z.p}function J(e,t){e&&e.i&&(q.delete(e),e.i(t))}function Q(e,t,i,r){e&&e.o?q.has(e)||(q.add(e),Z.c.push(()=>{q.delete(e),r&&(i&&e.d(1),r())}),e.o(t)):r&&r()}const ee={duration:0};function te(l,e,t,i){const r={direction:"both"};let c=e(l,t,r),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,r;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),r=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-r.length)||(e.style.animation=r.join(", "),S-=i)||P(()=>{S||($.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),$.clear())}))}function f(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:r=b,tick:n=se,css:o}=c||ee,a={start:x()+t,b:e};if(e||((a.group=Z).r+=1),d||p)p=a;else{o&&(m(),h=k(l,u,e,i,t,r,o)),e&&n(0,1),d=f(a,i),bi(()=>V(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,i),p=null,V(l,d.b,"start"),o)&&(m(),h=k(l,u,d.b,d.duration,0,r,c.css)),d)if(e>=d.end)n(u=d.b,1-u),V(l,d.b,"end"),p||(d.b?m():--d.group.r||ai(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*r(l/d.duration),n(u,1-u)}return!(!d&&!p)};let t;0===T.size&&P(E),new Promise(e=>{T.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(U||(U=Promise.resolve()).then(()=>{U=null}),U.then(()=>{c=c(r),n(e)})):n(e)},end(){m(),d=p=null}}}function n(r,e,t,i,n,o,a,s=[-1]){var l=D;N(r);const c=r.$$={fragment:null,ctx:[],props:o,update:se,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:m(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=r).$$.dirty[0]&&(F.push(e),Se(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],c.update(),u=!0,ai(c.before_update),c.fragment=!!i&&i(c.ctx),e.target){if(e.hydrate){o=e.target;const r=Array.from(o.childNodes);c.fragment&&c.fragment.l(r),r.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&J(r.$$.fragment);var d=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:i,after_update:o}=d.$$;i&&i.m(s,a),t||bi(()=>{var e=d.$$.on_mount.map(h).filter(ue);d.$$.on_destroy?d.$$.on_destroy.push(...e):ai(e),d.$$.on_mount=[]}),o.forEach(bi),p()}N(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(ue);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){ai(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const r=[],n=[];O.forEach(e=>(-1===i.indexOf(e)?r:n).push(e)),n.forEach(e=>e()),O=r}ai(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=se}$on(e,t){if(!ue(t))return se;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ie,re,ne="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},oe="URLSearchParams"in ne,ae="Symbol"in ne&&"iterator"in Symbol,he="FileReader"in ne&&"Blob"in ne&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in ne,fe="ArrayBuffer"in ne;function ge(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ye(e){return e="string"!=typeof e?String(e):e}function ve(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ae&&(e[Symbol.iterator]=function(){return e}),e}function we(t){this.map={},t instanceof we?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function be(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function _e(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function xe(e){var t=new FileReader,i=_e(t);return t.readAsArrayBuffer(e),i}function Ce(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Pe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:he&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:oe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&he&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ce(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||re(e))?this._bodyArrayBuffer=Ce(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):oe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},he&&(this.blob=function(){var e=be(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return be(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(he)return this.blob().then(xe);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r=be(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=_e(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?i[1]:"utf-8",e.readAsText(r,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},me&&(this.formData=function(){return this.text().then(Be)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),we.prototype.append=function(e,t){e=ge(e),t=ye(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},we.prototype.delete=function(e){delete this.map[ge(e)]},we.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},we.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},we.prototype.set=function(e,t){this.map[ge(e)]=ye(t)},we.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},we.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),ve(i)},we.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ve(t)},we.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),ve(i)},ae&&(we.prototype[Symbol.iterator]=we.prototype.entries);var Te=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function ke(e,t){if(!(this instanceof ke))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,r=(t=t||{}).body;if(e instanceof ke){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new we(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new we(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Te.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in ne)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Be(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function Ie(e,t){if(!(this instanceof Ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new we(t.headers),this.url=t.url||"",this._initBody(e)}ke.prototype.clone=function(){return new ke(this,{body:this._bodyInit})},Pe.call(ke.prototype),Pe.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new we(this.headers),url:this.url})},Ie.error=function(){var e=new Ie(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ne=[301,302,303,307,308],Fe=(Ie.redirect=function(e,t){if(-1===Ne.indexOf(t))throw new RangeError("Invalid status code");return new Ie(null,{status:t,headers:{location:e}})},ne.DOMException);try{new Fe}catch(s){(Fe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe}function Oe(r,s){return new Promise(function(n,e){var o=new ke(r,s);if(o.signal&&o.signal.aborted)return e(new Fe("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,r,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new we,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),i=t.shift().trim();if(i){t=t.join(":").trim();try{r.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),r)},i=(o.url.startsWith("file://")&&(a.status<200||599<a.status)?t.status=200:t.status=a.status,t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){n(new Ie(i,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){e(new Fe("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&ne.location.href?ne.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(he?a.responseType="blob":fe&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof we||ne.Headers&&s.headers instanceof ne.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(ge(e)),a.setRequestHeader(e,ye(s.headers[e]))}),o.headers.forEach(function(e,t){-1===i.indexOf(t)&&a.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",t)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}function $i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Oe.polyfill=!0,ne.fetch||(ne.fetch=Oe,ne.Headers=we,ne.Request=ke,ne.Response=Ie),self.fetch.bind(self);var Re=function(e,t){return(Re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Re(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function ze(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function We(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function je(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function Ue(e){return"function"==typeof e}function Ye(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ge=Ye(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Ve(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Xe.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ze(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Ue(o))try{o()}catch(e){n=e instanceof Ge?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=ze(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Je(u)}catch(e){n=null!=n?n:[],e instanceof Ge?n=je(je([],We(n)),We(e.errors)):n.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}if(n)throw new Ge(n)}},Xe.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Je(e);else{if(e instanceof Xe){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Xe.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Xe.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Xe.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Xe.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Xe&&e._removeParent(this)},Xe.EMPTY=((t=new Xe).closed=!0,t);var qe=Xe,Ze=qe.EMPTY;function Xe(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ke(e){return e instanceof qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Je(e){Ue(e)?e():e.unsubscribe()}var Qe=void 0,et=!1,tt=!1,it={setTimeout:function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n=it.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,je([e,t],We(i))):setTimeout.apply(void 0,je([e,t],We(i)))},clearTimeout:function(e){var t=it.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function rt(){}var nt=null;function ot(e){if(et){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var t=nt,i=t.errorThrown,t=t.error;if(nt=null,i)throw t}}else e()}He(ct,at=qe),ct.create=function(e,t,i){return new ht(e,t,i)},ct.prototype.next=function(e){this.isStopped||this._next(e)},ct.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ct.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ct.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,at.prototype.unsubscribe.call(this),this.destination=null)},ct.prototype._next=function(e){this.destination.next(e)},ct.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ct.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var at,st=ct,lt=Function.prototype.bind;function ct(e){var t=at.call(this)||this;return t.isStopped=!1,e?Ke(t.destination=e)&&e.add(t):t.destination=yt,t}function ut(e,t){return lt.call(e,t)}ft.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){gt(e)}},ft.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){gt(e)}else gt(e)},ft.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){gt(e)}};var dt,pt=ft,ht=(He(mt,dt=st),mt);function mt(e,t,i){var r=dt.call(this)||this,i=Ue(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:r&&tt?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ut(e.next,t),error:e.error&&ut(e.error,t),complete:e.complete&&ut(e.complete,t)}):e;return r.destination=new pt(i),r}function ft(e){this.partialObserver=e}function gt(e){var t=e;it.setTimeout(function(){throw t})}var yt={closed:!0,next:rt,error:function(e){throw e},complete:rt},t="function"==typeof Symbol&&Symbol.observable||"@@observable";wt.prototype.lift=function(e){var t=new wt;return t.source=this,t.operator=e,t},wt.prototype.subscribe=function(e,t,i){var r,n=this,o=(r=e)&&r instanceof st||r&&Ue(r.next)&&Ue(r.error)&&Ue(r.complete)&&Ke(r)?e:new ht(e,t,i);return ot(function(){var e=n.operator,t=n.source;o.add(e?e.call(o,t):t?n._subscribe(o):n._trySubscribe(o))}),o},wt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},wt.prototype.forEach=function(r,e){var n=this;return new(e=bt(e))(function(e,t){var i=new ht({next:function(e){try{r(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});n.subscribe(i)})},wt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},wt.prototype[t]=function(){return this},wt.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},wt.prototype.toPromise=function(e){var r=this;return new(e=bt(e))(function(e,t){var i;r.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},wt.create=function(e){return new wt(e)};var vt=wt;function wt(e){e&&(this._subscribe=e)}function bt(e){return null!=(e=null!=e?e:Qe)?e:Promise}var _t,xt,Ct,Pt=Ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),t=(He($t,Ct=vt),$t.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},$t.prototype._throwIfClosed=function(){if(this.closed)throw new Pt},$t.prototype.next=function(n){var o=this;ot(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=ze(o.currentObservers),r=i.next();!r.done;r=i.next())r.value.next(n)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},$t.prototype.error=function(t){var i=this;ot(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},$t.prototype.complete=function(){var t=this;ot(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},$t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty($t.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),$t.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ct.prototype._trySubscribe.call(this,e)},$t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},$t.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,r=this.isStopped,n=this.observers;return i||r?Ze:(this.currentObservers=null,n.push(e),new qe(function(){t.currentObservers=null,Ve(n,e)}))},$t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,r=this.isStopped;t?e.error(i):r&&e.complete()},$t.prototype.asObservable=function(){var e=new vt;return e.source=this,e},$t.create=function(e,t){return new Tt(e,t)},$t),Tt=(He(Mt,xt=t),Mt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Mt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Mt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Mt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ze},Mt),Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0},At=(He(Lt,_t=t),Lt.prototype.next=function(e){var t=this,i=t.isStopped,r=t._buffer,n=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(r.push(e),n)||r.push(o.now()+t),this._trimBuffer(),_t.prototype.next.call(this,e)},Lt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,r=this._buffer.slice(),n=0;n<r.length&&!e.closed;n+=i?1:2)e.next(r[n]);return this._checkFinalizedStatuses(e),t},Lt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,r=this._infiniteTimeWindow,n=(r?1:2)*e;if(e<1/0&&n<i.length&&i.splice(0,i.length-n),!r){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},Lt);function Lt(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Et);var r=_t.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=i,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Mt(e,t){var i=xt.call(this)||this;return i.destination=e,i.source=t,i}function $t(){var e=Ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Dt=[],St={};const kt=[];function Bt(r,n=se){let o;const a=new Set;function s(e){if(i(r,e)&&(r=e,o)){const e=!kt.length;for(const e of a)e[1](),kt.push(e,r);if(e){for(let e=0;e<kt.length;e+=2)kt[e][0](kt[e+1]);kt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=se){const i=[e,t];return a.add(i),1===a.size&&(o=n(s)||se),e(r),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function It(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Bt(t,t=>{let i=!1;const r=[];let n=0,o=se;const a=()=>{var e;n||(o(),e=s(l?r[0]:r,t),u?t(e):o=ue(e)?e:se)},e=c.map((e,t)=>d(e,e=>{r[t]=e,n&=~(1<<t),i&&a()},()=>{n|=1<<t}));return i=!0,a(),function(){ai(e),o(),i=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Ft);var t}var Ft="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ot(e,t){return!1!==t.clone&&t.isMergeableObject(e)?jt(Array.isArray(e)?[]:{},e,t):e}function Rt(e,t,i){return e.concat(t).map(function(e){return Ot(e,i)})}function Ht(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function zt(e,t){try{return t in e}catch(e){return!1}}function Wt(r,n,o){var a={};return o.isMergeableObject(r)&&Ht(r).forEach(function(e){a[e]=Ot(r[e],o)}),Ht(n).forEach(function(e){var t,i;(!zt(t=r,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(zt(r,e)&&o.isMergeableObject(n[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:jt)(r[e],n[e],o):a[e]=Ot(n[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Ot;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):Wt(e,t,i):Ot(t,i)}jt.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return jt(e,t,i)},{});throw new Error("first argument should be an array")};var Ut=jt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,g=function(){return(g=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function qt(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function Zt(e){return e.type===y.literal}function Xt(e){return e.type===y.number}function Kt(e){return e.type===y.date}function Jt(e){return e.type===y.time}function Qt(e){return e.type===y.select}function ei(e){return e.type===y.plural}function ti(e){return e.type===y.tag}function ii(e){return e&&"object"==typeof e&&e.type===Vt.number}function ri(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(t=f=f||{})[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",(t=y=y||{})[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",(t=Vt=Vt||{})[t.number=0]="number",t[t.dateTime=1]="dateTime";var t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ni=/(?:[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;var oi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_i=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xi=/^(@+)?(\+|#+)?[rs]?$/g,Ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Pi=/^(0+)$/;function Ti(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(xi,function(e,t,i){return"string"!=typeof i?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===i?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),r}function Ei(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ai(e){return Ei(e)||{}}function Li(e){for(var a={},t=0,i=e;t<i.length;t++){var r,n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=g(g(g({},a),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),Ai(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),Ai(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Ci,function(e,t,i,r,n,o){if(t)a.minimumIntegerDigits=i.length;else{if(r&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Pi.test(n.stem))a.minimumIntegerDigits=n.stem.length;else if(_i.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(_i,function(e,t,i,r,n,o){return"*"===i?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:n&&o?(a.minimumFractionDigits=n.length,a.maximumFractionDigits=n.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Ti(o)))}else xi.test(n.stem)?a=g(g({},a),Ti(n.stem)):((o=Ei(n.stem))&&(a=g(g({},a),o)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!Pi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(a=g(g({},a),r)))}return a}var Mi={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Di=new RegExp("^".concat(t.source,"*")),Si=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,ki=!!String.fromCodePoint,Bi=!!Object.fromEntries,Ii=!!String.prototype.codePointAt,Ni=!!String.prototype.trimStart,Fi=!!String.prototype.trimEnd,Oi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ri=!0;try{Ri="a"===(null==(ar=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:ar[0])}catch(yo){Ri=!1}var Hi,zi,Wi=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},ji=ki?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;o<n;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Ui=Bi?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];t[o]=n}return t},Yi=Ii?function(e,t){return e.codePointAt(t)}:function(e,t){var i,r=e.length;if(!(t<0||r<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536},Gi=Ni?function(e){return e.trimStart()}:function(e){return e.replace(Di,"")},Vi=Fi?function(e){return e.trimEnd()}:function(e){return e.replace(Si,"")};function qi(e,t){return new RegExp(e,t)}zi=Ri?(Hi=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Hi.lastIndex=t,null!=(t=Hi.exec(e)[1])?t:""}):function(e,t){for(var i,r=[];;){var n=Yi(e,t);if(void 0===n||Ki(n)||33<=(i=n)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094)break;r.push(n),t+=65536<=n?2:1}return ji.apply(void 0,r)};o.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},o.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n,o=this.char();if(123===o){if((n=this.parseArgument(e,i)).err)return n;r.push(n.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xi(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;r.push(n.val)}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:r,err:null}},o.prototype.parseTag=function(e,t){var i,r=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Xi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(r,this.clonePosition()))):this.error(f.INVALID_TAG,v(r,this.clonePosition()))},o.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},o.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{n=this.tryParseUnquoted(e,t);if(n)r+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:r,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},o.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return ji.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var i;return this.isEOF()||60===(i=this.char())||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),ji(i))},o.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:v(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=zi(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=Vi(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(h=v(r,this.clonePosition()),l&&Wi(null==l?void 0:l.style,"::",0)?(m=Gi(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,h):(u=m,this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(Mi[t||""]||Mi[i||""]||Mi["".concat(i,"-001")]||Mi["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===n?"H":n}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(ni,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"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":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<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""}),n):{}},{val:{type:"date"===a?y.date:y.time,value:i,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,p=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),p=this.parseIdentifierIfPossible(),h=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,a,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(m=v(r,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Ui(l.val),location:m},err:null}:{val:{type:y.plural,value:i,options:Ui(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(o,s))}},o.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},o.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},o.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,r=e.split(oi).filter(function(e){return 0<e.length});i<r.length;i++){var n=r[i].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var o=n[0],n=n.slice(1),a=0,s=n;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Li(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n=!1,o=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,i);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([s,{value:c.val,location:v(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;n=!0,o=10*o+(a-48),this.bump()}r=v(r,this.clonePosition());return n?Oi(o*=i)?{val:o,err:null}:this.error(t,r):this.error(e,r)},o.prototype.offset=function(){return this.position.offset},o.prototype.isEOF=function(){return this.offset()===this.message.length},o.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},o.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Yi(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},o.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},o.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},o.prototype.bumpIf=function(e){if(Wi(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},o.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},o.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},o.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ki(this.char());)this.bump()},o.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Zi=o;function o(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Xi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ki(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ji(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Zi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Qt(e)||ei(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Xt(e)&&ii(e.style)||(Kt(e)||Jt(e))&&ri(e.style)?delete e.style.location:ti(e)&&i(e.children)})}(e.val),e.val}function Qi(e,t){var i=t&&t.cache?t.cache:sr,r=t&&t.serializer?t.serializer:rr;return(t&&t.strategy?t.strategy:function(e,t){return ir(e,this,1===e.length?er:tr,t.cache.create(),t.serializer)})(e,{cache:i,serializer:r})}function er(e,t,i,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:i(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function tr(e,t,i){var r=Array.prototype.slice.call(arguments,3),i=i(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function ir(e,t,i,r,n){return i.bind(t,e,r,n)}var rr=function(){return JSON.stringify(arguments)};function nr(){this.cache=Object.create(null)}nr.prototype.get=function(e){return this.cache[e]},nr.prototype.set=function(e,t){this.cache[e]=t};var or,ar,sr={create:function(){return new nr}},lr={variadic:function(e,t){return ir(e,this,tr,t.cache.create(),t.serializer)},monadic:function(e,t){return ir(e,this,er,t.cache.create(),t.serializer)}};(ar=or=or||{}).MISSING_VALUE="MISSING_VALUE",ar.INVALID_VALUE="INVALID_VALUE",ar.MISSING_INTL_API="MISSING_INTL_API";Gt(_r,hr=Error),_r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var cr,ur,dr,pr,hr,mr=_r,fr=(Gt(br,pr=mr),br),gr=(Gt(wr,dr=mr),wr),yr=(Gt(vr,ur=mr),vr);function vr(e,t){return ur.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),or.MISSING_VALUE,t)||this}function wr(e,t,i){return dr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),or.INVALID_VALUE,i)||this}function br(e,t,i,r){return pr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),or.INVALID_VALUE,r)||this}function _r(e,t,i){e=hr.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function xr(e,t,i,r,n,o,a){if(1===e.length&&Zt(e[0]))return[{type:cr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Zt(u))s.push({type:cr.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:cr.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(n&&d in n))throw new yr(d,a);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?cr.literal:cr.object,value:d});else if(Kt(u)){var p="string"==typeof u.style?r.date[u.style]:ri(u.style)?u.style.parsedOptions:void 0;s.push({type:cr.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Jt(u))p="string"==typeof u.style?r.time[u.style]:ri(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:cr.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Xt(u))(p="string"==typeof u.style?r.number[u.style]:ii(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:cr.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ti(u)){var h=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new gr(m,"function",a);m=f(xr(h,t,i,r,n,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?cr.literal:cr.object,value:e}}))}if(Qt(u)){if(!(g=u.options[d]||u.options.other))throw new fr(u.value,d,Object.keys(u.options),a);s.push.apply(s,xr(g.value,t,i,r,n))}else if(ei(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new mr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',or.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new fr(u.value,d,Object.keys(u.options),a);s.push.apply(s,xr(g.value,t,i,r,n,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===cr.literal&&t.type===cr.literal?i.value+=t.value:e.push(t),e},[])}function Cr(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=cr=cr||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(Tr,"defaultLocale",{get:function(){return Tr.memoizedDefaultLocale||(Tr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Tr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Tr.memoizedDefaultLocale=null,Tr.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},Tr.__parse=Ji,Tr.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"}}};var Pr=Tr;function Tr(e,t,i,r){var n,o,a=this;if(void 0===t&&(t=Tr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===cr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return xr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=Tr.resolveLocale(t),"string"==typeof e){if(this.message=e,!Tr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Tr.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(n=Tr.formats,(o=i)?Object.keys(n).reduce(function(e,t){var i,r;return e[t]=(i=n[t],(r=o[t])?g(g(g({},i||{}),r||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),r[t]||{}),e},{})):i),e},g({},n)):n),this.formatters=r&&r.formatters||{getNumberFormat:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:lr.variadic}),getDateTimeFormat:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr(t.dateTime),strategy:lr.variadic}),getPluralRules:Qi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,qt([void 0],t,!1)))},{cache:Cr(t.pluralRules),strategy:lr.variadic})}}const Er={},Ar=(e,t,i)=>i&&(t in Er||(Er[t]={}),e in Er[t]||(Er[t][e]=i),i),Lr=(t,i)=>{if(null!=i){if(i in Er&&t in Er[i])return Er[i][t];var r=Zr(i);for(let e=0;e<r.length;e++){var n=function(e,t){if(!Dr(e))return null;e=function(e){return Mr[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var r=i.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const i=r.slice(e,r.length).join(".");if(i in t){t=t[i];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(n)return Ar(t,i,n)}}};let Mr;const $r=Bt({});function Dr(e){return e in Mr}function B(t,...i){delete Er[t],$r.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}It([$r],([e])=>Object.keys(e)),$r.subscribe(e=>Mr=e);const Sr={};function kr(e){return Sr[e]}function Br(e){return null!=e&&Zr(e).some(e=>{return null==(e=kr(e))?void 0:e.size})}function Ir(r,e){return Promise.all(e.map(e=>{return t=r,i=e,Sr[t].delete(i),0===Sr[t].size&&delete Sr[t],e().then(e=>e.default||e);var t,i})).then(e=>B(r,...e))}const Nr={};function Fr(e){var t;return Br(e)?(t=Zr(e).map(e=>{var t=kr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Nr[e]=Promise.all(t.map(([e,t])=>Ir(e,t))).then(()=>{if(Br(e))return Fr(e);delete Nr[e]}),Nr[e]):e in Nr?Nr[e]:Promise.resolve()}const Or={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Rr(){return Or}const Hr=Bt(!1);var zr=Object.defineProperty,ki=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Yr=(e,t,i)=>t in e?zr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Gr;const Vr=Bt(null);function qr(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Zr(e,t=Or.fallbackLocale){e=qr(e);return t?[...new Set([...e,...qr(t)])]:e}function Xr(){return null!=Gr?Gr:void 0}Vr.subscribe(e=>{Gr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});Ii=((e,t)=>{for(var i in t=t||{})jr.call(t,i)&&Yr(e,i,t[i]);if(Wr)for(var i of Wr(t))Ur.call(t,i)&&Yr(e,i,t[i]);return e})({},Vr);const Le=ki(Ii,Bi({set:t=>{if(t&&function(e){if(null==e)return;const t=Zr(e);for(let e=0;e<t.length;e++){const i=t[e];if(Dr(i))return i}}(t)&&Br(t)){const{loadingDelay:i}=Rr();let e;return"undefined"!=typeof window&&null!=Xr()&&i?e=window.setTimeout(()=>Hr.set(!0),i):Hr.set(!0),Fr(t).then(()=>{Vr.set(t)}).finally(()=>{clearTimeout(e),Hr.set(!1)})}return Vr.set(t)}})),Kr=i=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=i(e)}};var Jr=Object.defineProperty,Qr=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,rn=(e,t,i)=>t in e?Jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,nn=(e,t)=>{for(var i in t=t||{})en.call(t,i)&&rn(e,i,t[i]);if(Qr)for(var i of Qr(t))tn.call(t,i)&&rn(e,i,t[i]);return e},on=(e,t)=>{var i={};for(r in e)en.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Qr)for(var r of Qr(e))t.indexOf(r)<0&&tn.call(e,r)&&(i[r]=e[r]);return i};const an=(e,t)=>{var i=Or["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sn=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=an("number",i)),new Intl.NumberFormat(t,e)}),ln=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=an("date",i):0===Object.keys(e).length&&(e=an("date","short")),new Intl.DateTimeFormat(t,e)}),cn=Kr(e=>{var{locale:t,format:i}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=an("time",i):0===Object.keys(e).length&&(e=an("time","short")),new Intl.DateTimeFormat(t,e)}),un=Kr((e,t=Xr())=>new Pr(e,t,Or.formats,{ignoreTag:Or.ignoreTag})),Me=It([Le,$r],()=>(e,t={})=>{var i,r;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:o,locale:a=Xr(),default:s}=n;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Lr(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(i=null==(i=(r=Or).handleMissingMessage)?void 0:i.call(r,{locale:a,id:e,defaultValue:s}))?i:s)?r:e;if(!o)return l;let c=l;try{c=un(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),dn=(It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return cn(nn({locale:t},e))})(t).format(e)),It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return ln(nn({locale:t},e))})(t).format(e)),It([Le],()=>(e,t)=>((e={})=>{var{locale:t=Xr()}=e,e=on(e,["locale"]);return sn(nn({locale:t},e))})(t).format(e)),It([Le,$r],()=>(e,t=Xr())=>Lr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new At(t),St[e]=t,Dt.push(e)),St[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),$e=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pn(e,t){B(e,t)}const hn={en:{profileUpdateSuccess:"Profile updated!",timeoutSuccess:"Timeout active",selfExclusionSuccess:"Self exclusion active",accountClosureSuccess:"Account closed",limitsUpdateSuccess:"Limits updated",limitsDeleteSuccess:"Limits deleted",passwordChangedSuccess:"Password changed successfully",realityCheckSuccess:"Reality check options saved"},"zh-hk":{profileUpdateSuccess:"資料更新!",timeoutSuccess:"超時有效",selfExclusionSuccess:"自我排斥活躍",accountClosureSuccess:"賬戶關閉",limitsUpdateSuccess:"限制已更新",limitsDeleteSuccess:"已刪除限制",passwordChangedSuccess:"密碼修改成功",realityCheckSuccess:"現實檢查選項已保存"},fr:{profileUpdateSuccess:"Mise à jour du profil!",timeoutSuccess:"Délai d'attente actif",selfExclusionSuccess:"Auto exclusion active",accountClosureSuccess:"Compte fermé",limitsUpdateSuccess:"Limites des mises à jour",limitsDeleteSuccess:"Limites supprimées",passwordChangedSuccess:"Le mot de passe a été modifié avec succés",realityCheckSuccess:"Options de contrôle de la réalité sauvegardées"},ro:{profileUpdateSuccess:"Profil updatat!",timeoutSuccess:"Timeout activ",selfExclusionSuccess:"Auto-excludere activa",accountClosureSuccess:"Cont inchis",limitsUpdateSuccess:"Limite updatate",limitsDeleteSuccess:"Limite sterse",passwordChangedSuccess:"Parola schimbata cu success",realityCheckSuccess:"Optiunile de verificare de timp salvate"},es:{profileUpdateSuccess:"Perfil actualizado!",timeoutSuccess:"Pausa activa",selfExclusionSuccess:"Auto Exclusión activa.",accountClosureSuccess:"Cuenta cerrada",limitsUpdateSuccess:"Limites actualizados",limitsDeleteSuccess:"Limites delegados",passwordChangedSuccess:"Cambio de Contraseña satisfactorio",realityCheckSuccess:"Opciones de verificación de realidad guardadas"},pt:{profileUpdateSuccess:"Perfil atualizado!",timeoutSuccess:"Tempo Limite ativo",selfExclusionSuccess:"Autoexclusão ativa",accountClosureSuccess:"Conta encerrada",limitsUpdateSuccess:"Limites atualizados",limitsDeleteSuccess:"Limites excluídos",passwordChangedSuccess:"Senha alterada com sucesso",realityCheckSuccess:"Opções de verificação de realidade salvas"}};function mn(e,t){B(e,t)}const fn={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"}};function gn(e,t){B(e,t)}const yn={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"}};function vn(i){let r,n,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){r=di("div"),n=di("button"),o=di("span"),a=hi(c),gi(r,"class","GeneralLogout")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),s||(l=fi(n,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(r),s=!1,l()}}}function wn(o){let i,r,n,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,r,n=o[2]("logoutButton")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&n!==(n=e[2]("logoutButton")+"")&&yi(r,n)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),r=di("span"),n=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=pi("path"),u=pi("path"),d=mi(),m&&m.c(),gi(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(c,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),gi(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),gi(n,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(n,"data-name","Layer 1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"viewBox","0 0 150 150"),L(r,"width",o[3]?o[4].matches?"50px":"24px":"20px"),gi(i,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,a),si(a,s),si(s,l),si(n,c),si(n,u),si(i,d),m&&m.m(i,null),p||(h=fi(i,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&ci(i),m&&m.d(),p=!1,h()}}}function bn(i){let r;function n(e){return"PlayerAccountMenu"===e[0]?wn:vn}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[14](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[14](null)}}}function _n(t,e,i){let r;Ee(t,Me,e=>i(2,r=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{buttonlocation:s=""}=e,{lang:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p="",h=!1,m=window.navigator.userAgent,f="PC"!==$e(m);e=window.matchMedia("(min-width: 768px)");Object.keys(yn).forEach(e=>{gn(e,yn[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/v1/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"buttonlocation"in e&&i(0,s=e.buttonlocation),"lang"in e&&i(8,l=e.lang),"clientstyling"in e&&i(9,c=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,d=e.translationurl)},t.$$.update=()=>{if(193&t.$$.dirty&&o&&a&&s&&(o||(p="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(p)),a||(p="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(p))),256&t.$$.dirty&&l&&(e=l,Le.set(e)),514&t.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),1026&t.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gn(e,t[e])})}).catch(e=>{console.log(e)})},[s,n,r,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}function xn(e,t,i){e=e.slice();return e[32]=t[i],e}function Cn(i){let r,n,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){r=di("div"),n=di("p"),o=di("img"),s=mi(),l=di("span"),c=hi(m),u=mi(),gi(o,"class","PlayerAccountMenuItemIcon "+(i[10]?"PlayerAccountMenuItemIconMobile":"")),_(o.src,a=i[32].img)||gi(o,"src",a),gi(l,"class","PlayerAccountMenuItemTitle"),gi(n,"class","PlayerAccountMenuItemWrapper"),gi(r,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(n,s),si(n,l),si(l,c),si(r,u),p||(h=fi(r,"click",f),p=!0)},p(e,t){i=e,32&t[0]&&!_(o.src,a=i[32].img)&&gi(o,"src",a),32&t[0]&&m!==(m=i[32].label+"")&&yi(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))&&gi(r,"class",d)},d(e){e&&ci(r),p=!1,h()}}}function Pn(i){let r,n=function(t){let i,r,n,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h3"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(r,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=[fi(n,"click",i[12]),fi(p,"click",i[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,r;return{c(){i=di("div"),le(r=di("general-logout"),"endpoint",e[1]),le(r,"session",e[0]),le(r,"buttonlocation","PlayerAccountMenu"),le(r,"clientstyling",e[2]),le(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&le(r,"endpoint",e[1]),1&t[0]&&le(r,"session",e[0]),4&t[0]&&le(r,"clientstyling",e[2]),8&t[0]&&le(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=Cn(xn(t,g,e));let v=!t[10]&&function(e){let i,r;return{c(){i=di("div"),le(r=di("general-logout"),"endpoint",e[1]),le(r,"session",e[0]),le(r,"buttonlocation","PlayerAccountMenu"),le(r,"clientstyling",e[2]),le(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&le(r,"endpoint",e[1]),1&t[0]&&le(r,"session",e[0]),4&t[0]&&le(r,"clientstyling",e[2]),8&t[0]&&le(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),r=di("div"),m&&m.c(),n=mi(),o=di("p"),a=hi(t[7]),s=mi(),l=di("p"),c=hi(t[8]),u=mi(),f&&f.c(),d=mi(),p=di("div");for(let e=0;e<y.length;e+=1)y[e].c();h=mi(),v&&v.c(),gi(o,"class","PlayerAccountMenuUser"),gi(l,"class","PlayerAccountMenuEmail"),gi(r,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),gi(p,"class","PlayerAccountMenuList"),gi(i,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){li(e,i,t),si(i,r),m&&m.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(r,u),f&&f.m(r,null),si(i,d),si(i,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);si(i,h),v&&v.m(i,null)},p(t,i){if(t[10]&&m.p(t,i),128&i[0]&&yi(a,t[7]),256&i[0]&&yi(c,t[8]),t[10]&&f.p(t,i),9312&i[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var r=xn(t,g,e);y[e]?y[e].p(r,i):(y[e]=Cn(r),y[e].c(),y[e].m(p,null))}for(;e<y.length;e+=1)y[e].d(1);y.length=g.length}t[10]||v.p(t,i)},d(e){e&&ci(i),m&&m.d(),f&&f.d(),ui(y,e),v&&v.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[20](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[20](null)}}}function Tn(i,e,r){let t;Ee(i,Me,e=>r(9,t=e));let n,o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{selecteditem:u=""}=e,{userroles:d=""}=e,{clientstyling:p=""}=e,{clientstylingurl:h=""}=e,{translationurl:m=""}=e,f=[],g=window.navigator.userAgent,y="PC"!==$e(g),v="",w="";e=window.matchMedia("(min-width: 768px)");Object.keys(fn).forEach(e=>{mn(e,fn[e])});const b=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":r(5,f=e.data.accountMenuInfo);break;case"UserSessionID":r(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),r(6,o=e.id)},x=()=>{r(6,o=u)};return De(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),i.$$set=e=>{"endpoint"in e&&r(1,a=e.endpoint),"session"in e&&r(0,s=e.session),"playerid"in e&&r(14,l=e.playerid),"lang"in e&&r(15,c=e.lang),"selecteditem"in e&&r(16,u=e.selecteditem),"userroles"in e&&r(17,d=e.userroles),"clientstyling"in e&&r(2,p=e.clientstyling),"clientstylingurl"in e&&r(3,h=e.clientstylingurl),"translationurl"in e&&r(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,Le.set(t)),49155&i.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/v1/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(7,v=e.username),r(8,w=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&x(),24&i.$$.dirty[0]&&h&&n){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&n&&((e=document.createElement("style")).innerHTML=p,n.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,n,f,o,v,w,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(4,n)})}]}function En(e,t,i){e=e.slice();return e[14]=t[i],e}function An(t){let n,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ln(En(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(n,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var r=En(t,o,e);a[e]?a[e].p(r,i):(a[e]=Ln(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function Ln(e){let i,r,n,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),r=di("div"),n=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(n,"class","PlayerAccountNotificationIcon"),_(n.src,o=e[14].icon)||gi(n,"src",o),gi(n,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(r,"class","PlayerAccountNotificationBoxHeader"),gi(d,"class","PlayerAccountNotificationText"),gi(i,"class","PlayerAccountNotificationBox"),L(i,"background",e[14].backgroundColor)},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,s),si(r,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!_(n.src,o=e[14].icon)&&gi(n,"src",o),2&t&&a!==(a=e[14].title)&&gi(n,"alt",a),2&t&&h!==(h=e[14].title+"")&&yi(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&L(i,"background",e[14].backgroundColor)},d(e){e&&ci(i)}}}function Mn(i){let r;function n(e){if(e[1].length)return An}let o=n(i),a=o&&o(i);return{c(){r=di("div"),a&&a.c(),this.c=se},m(e,t){li(e,r,t),a&&a.m(r,null),i[7](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a&&a.d(),i[7](null)}}}function $n(t,e,i){let r,{customnotif:n=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==$e(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(i(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{n.replace(" ",""),u=n.split(",")};return De(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,n=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&n&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&r){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&r&&((e=document.createElement("style")).innerHTML=o,r.appendChild(e))},[r,c,l,d,n,o,a,function(e){Ae[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Dn(e,t){B(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},_n,bn,i,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","buttonlocation","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-menu")||customElements.define("player-account-menu",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Tn,Pn,i,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","selecteditem","userroles","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),p()}get selecteditem(){return this.$$.ctx[16]}set selecteditem(e){this.$$set({selecteditem:e}),p()}get userroles(){return this.$$.ctx[17]}set userroles(e){this.$$set({userroles:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-notifications")||customElements.define("player-account-notifications",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},$n,Mn,i,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["customnotif","clientstyling","clientstylingurl"]}get customnotif(){return this.$$.ctx[4]}set customnotif(e){this.$$set({customnotif:e}),p()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const Sn={en:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"},"zh-hk":{title:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",cooloff24:"冷卻 24 小時",cooloff7:"冷卻 7 天",cooloff30:"冷卻 30 天",cooloff3:"冷靜3個月",cooloff24Text:"24小時",cooloff7Text:"7天",cooloff30Text:"30天",cooloff3Text:"3個月"},fr:{title:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:'Veuillez noter que l\'"installation du temps mort" ne remplace en aucun cas "l\'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d\'auto exclusion" ou nous contacter dès que possible.',save:"Savez",cooloff24:"Pause de 24 heures",cooloff7:"Pause de 7 jours",cooloff30:"Pause de 30 jours",cooloff3:"Pause de 3 mois",cooloff24Text:"24 heures",cooloff7Text:"7 jours",cooloff30Text:"30 jours",cooloff3Text:"3 mois"},ro:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"},es:{title:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",cooloff24:"CoolOffPor24Horas",cooloff7:"CoolOffPor7Días",cooloff30:"CoolOffPor30Días",cooloff3:"CoolOffPor3Meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"},pt:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"}};function kn(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function Bn(e){let i,r,t=e[22]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function In(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,e=i[3]("title")+"",P=i[3]("timeoutTextFirst",{values:{operatorname:i[0]}})+"",T=i[3]("timeoutTextSecondary")+"",E=i[3]("save")+"",A=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),L=i[5],M=[];for(let e=0;e<L.length;e+=1)M[e]=Bn(kn(i,L,e));return{c(){r=di("div"),n=di("form"),A&&A.c(),o=mi(),a=di("h2"),s=hi(e),l=mi(),c=di("div"),u=di("p"),d=hi(P),p=mi(),h=di("p"),m=hi(T),f=mi(),g=di("div"),y=di("select");for(let e=0;e<M.length;e+=1)M[e].c();v=mi(),w=di("div"),b=di("button"),_=hi(E),this.c=se,gi(a,"class","TimeoutTitle "+(i[4]?"TimeoutTitleNone":"")),gi(c,"class","TimeoutDescription "+(i[4]?"TimeoutDescriptionMobile":"")),gi(y,"class","TimeoutSelect "+(i[4]?"TimeoutSelectMobile":"")),void 0===i[2]&&bi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(b,"class","TimeoutSave"),gi(w,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(n,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),A&&A.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),si(n,f),si(n,g),si(g,y);for(let e=0;e<M.length;e+=1)M[e]&&M[e].m(y,null);wi(y,i[2],!0),si(n,v),si(n,w),si(w,b),si(b,_),i[15](r),x||(C=[fi(y,"change",i[13]),fi(b,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&A.p(t,i),8&i&&e!==(e=t[3]("title")+"")&&yi(s,e),9&i&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&yi(d,P),8&i&&T!==(T=t[3]("timeoutTextSecondary")+"")&&yi(m,T),32&i){let e;for(L=t[5],e=0;e<L.length;e+=1){var r=kn(t,L,e);M[e]?M[e].p(r,i):(M[e]=Bn(r),M[e].c(),M[e].m(y,null))}for(;e<M.length;e+=1)M[e].d(1);M.length=L.length}36&i&&wi(y,t[2]),8&i&&E!==(E=t[3]("save")+"")&&yi(_,E)},i:se,o:se,d(e){e&&ci(r),A&&A.d(),ui(M,e),i[15](null),x=!1,ai(C)}}}function Nn(t,e,i){let r;Ee(t,Me,e=>i(3,r=e));let n,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=(Object.keys(Sn).forEach(e=>{Dn(e,Sn[e])}),[{value:r("cooloff24"),text:r("cooloff24Text")},{value:r("cooloff7"),text:r("cooloff7Text")},{value:r("cooloff30"),text:r("cooloff30Text")},{value:r("cooloff3"),text:r("cooloff3Text")}]),h=p[0].value;const m=e=>{e.preventDefault(),window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:h},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)};return t.$$set=e=>{"operator"in e&&i(0,o=e.operator),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,Le.set(e)),1026&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;514&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Dn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,h,r,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nn,In,i,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["operator","lang","clientstyling","clientstylingurl","translationurl"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});On=Fn={path:void 0,exports:{},require:function(e,t){return $i(null==t&&Fn.path)}},Fn.exports,On.exports=function(){var N;function m(){return N.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function s(e){return void 0===e}function R(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function H(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function z(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function W(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,r){return Dt(e,t,i,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){if(null==e._isValid){var t=g(e),i=Y.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function U(e){var t=c(NaN);return null!=e?W(g(t),e):g(t).userInvalidated=!0,t}var Y=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var i,r,n,o=G.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(n=t[r=G[i]])||(e[r]=n);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return W(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,r=W({},e);for(i in t)f(t,i)&&(F(e[i])&&F(t[i])?(r[i]={},W(r[i],e[i]),W(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)f(e,i)&&!f(t,i)&&F(e[i])&&(r[i]=W({},r[i]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},oe={};function r(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=n),t&&(oe[t[0]]=function(){return o(n.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),ne[t]=ne[t]||function(r){for(var e,n=r.match(ie),t=0,o=n.length;t<o;t++)oe[n[t]]?n[t]=oe[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(n[i])?n[i].call(e,r):n[i];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=i&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,i,r={};for(i in e)f(e,i)&&(t=d(i))&&(r[t]=e[i]);return r}var ue={};function i(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?p(e):t}function pe(t,i){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=h(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Be(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ce=/\d+/,Pe=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,r){Le[e]=u(i)?i:function(e,t){return e&&r?r:i}}function Ae(e,t){return f(Le,e)?Le[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Le={},Me={};function x(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),R(i)&&(n=function(e,t){t[i]=h(e)}),r=e.length,t=0;t<r;t++)Me[e[t]]=n}function $e(e,n){x(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var C,P=0,T=1,E=2,A=3,L=4,M=5,De=6,Se=7,ke=8;function Be(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[T]=h(e)-1}),x(["MMM","MMMM"],function(e,t,i,r){r=i._locale.monthsParse(e,r,i._strict);null!=r?t[T]=r:g(i).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=w,Re=w;function He(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function ze(e){return null!=e?(He(this,e),m.updateOffset(this,!0),this):he(this,"Month")}function We(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),o=0;o<12;o++)i[o]=_(i[o]),r[o]=_(r[o]);for(o=0;o<24;o++)n[o]=_(n[o]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),b("Y",Pe),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],P),x("YYYY",function(e,t){t[P]=2===e.length?m.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[P]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[P]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ue=pe("FullYear",!0);function Ye(e,t,i,r,n,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,o,a),s}function Ge(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,i){i=7+t-i;return-(7+Ge(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,r,n){var o,t=1+7*(t-1)+(7+i-r)%7+Ve(e,r,n),i=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var r,n,o=Ve(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+$(n=e.year()-1,t,i):o>$(e.year(),t,i)?(r=o-$(e.year(),t,i),n=e.year()+1):(n=e.year(),r=o),{week:r,year:n}}function $(e,t,i){var r=Ve(e,t,i),t=Ve(e+1,t,i);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),$e(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=h(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),$e(["dd","ddd","dddd"],function(e,t,i,r){r=i._locale.weekdaysParse(e,r,i._strict);null!=r?t.d=r:g(i).invalidWeekday=e}),$e(["d","e","E"],function(e,t,i,r){t[r]=h(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function rt(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],o=[],a=[],s=[],l=0;l<7;l++)r=c([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),i=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),n.push(t),o.push(i),a.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nt),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),x(["H","HH"],A),x(["k","kk"],function(e,t,i){e=h(e);t[A]=24===e?0:e}),x(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),x(["h","hh"],function(e,t,i){t[A]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var r=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var r=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r))}),x("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n))});w=pe("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,r,n,o=0;o<e.length;){for(t=(n=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(r=pt(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===D[t]&&On&&On.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,$i(),ht(e)}catch(e){D[t]=null}return D[t]}function ht(e,t){return e&&((t=s(t)?S(e):mt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function mt(e,t){if(null===t)return delete D[e],null;var i,r=lt;if(t.abbr=e,null!=D[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])r=D[t.parentLocale]._config;else{if(null==(i=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=i._config}return D[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),D[e]}function S(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=pt(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[T]<0||11<t[T]?T:t[E]<1||t[E]>Be(t[P],t[T])?E:t[A]<0||24<t[A]||24===t[A]&&(0!==t[L]||0!==t[M]||0!==t[De])?A:t[L]<0||59<t[L]?L:t[M]<0||59<t[M]?M:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<P||E<t)&&(t=E),g(e)._overflowWeeks&&-1===t&&(t=Se),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e){var t,i,r,n,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,c=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){n=wt[t][0],r=!1!==wt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,i=c;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=n+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Tt(e,t,i,r,n,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(n,10)];return o&&e.push(parseInt(o,10)),e}function Et(e){var t,i,r,n,o=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Tt(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],r=t,n=e,i&&Je.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=o[8],r=o[9],n=o[10],i?Ct[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function At(e,t,i){return null!=e?e:null!=t?t:i}function Lt(e){var t,i,r,n,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),i=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[E]&&null==e._a[T]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,r=At(d.GG,u._a[P],Ze(k(),1,4).year),n=At(d.W,1),((o=At(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Ze(k(),a,s),r=At(d.gg,u._a[P],c.year),n=At(d.w,c.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+a,(d.e<0||6<d.e)&&(l=!0)):o=a),n<1||n>$(r,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(r,n,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=At(e._a[P],i[P]),(e._dayOfYear>je(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ge(d,0,e._dayOfYear),e._a[T]=l.getUTCMonth(),e._a[E]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=i[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[A]&&0===e._a[L]&&0===e._a[M]&&0===e._a[De]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ge:Ye).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,r,n=""+e._i,o=n.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)r=i[l],(t=(n.match(Ae(r,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),a+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),d=r,h=e,null!=(p=t)&&f(Me,d)&&Me[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-a,0<n.length&&g(e).unusedInput.push(n),e._a[A]<=12&&!0===g(e).bigHour&&0<e._a[A]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[A]=(o=e._locale,c=e._a[A],null==(u=e._meridiem)?c:null!=o.meridiemHour?o.meridiemHour(c,u):null!=o.isPM?((o=o.isPM(u))&&c<12&&(c+=12),c=o||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Lt(e),ft(e)}else Et(e);else Pt(e);var c,u,d,p,h}function $t(e){var t,i=e._i,r=e._f;{var n,o;return(e._locale=e._locale||S(e._l),null===i||void 0===r&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(H(i)?e._d=i:a(r)?function(e){var t,i,r,n,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Mt(t),j(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,i=t):(null==r||o<r||a)&&(r=o,i=t,a)&&(s=!0);W(e,i||t)}(e):r?Mt(e):s(r=(i=e)._i)?i._d=new Date(m.now()):H(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null===(o=_t.exec(n._i))?(Pt(n),!1===n._isValid&&(delete n._isValid,Et(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n))):n._d=new Date(+o[1])):a(r)?(i._a=z(r.slice(0),function(e){return parseInt(e,10)}),Lt(i)):F(r)?(n=i)._d||(t=void 0===(o=ce(n._i)).day?o.date:o.day,n._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Lt(n)):R(r)?i._d=new Date(r):m.createFromInputFallback(i),j(e)||(e._d=null),e))}}function Dt(e,t,i,r,n){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(F(e)&&O(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=i,o._i=e,o._f=t,o._strict=r,(n=new Z(ft($t(n=o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function k(e,t,i,r){return Dt(e,t,i,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function St(e,t){var i,r;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return k();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}var kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=ce(e),t=e.year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,s=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=kt.length;for(t in e)if(f(e,t)&&(-1===C.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[kt[i]]){if(r)return!1;parseFloat(e[kt[i]])!==h(e[kt[i]])&&(r=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=S(),this._bubble()}function It(e){return e instanceof Bt}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,i){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),b("Z",Ee),b("ZZ",Ee),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Ee,e)});var Ot=/([\+\-]|\d\d)/gi;function Rt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ot)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||H(e)?e:k(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):k(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var i,r,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=jt.exec(e))?(i="-"===t[1]?-1:1,n={y:0,d:h(t[E])*i,h:h(t[A])*i,m:h(t[L])*i,s:h(t[M])*i,ms:h(Nt(1e3*t[De]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,n={y:Yt(t[2],i),M:Yt(t[3],i),w:Yt(t[4],i),d:Yt(t[5],i),h:Yt(t[6],i),m:Yt(t[7],i),s:Yt(t[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=k(n.from),i=k(n.to),t=t.isValid()&&i.isValid()?(i=Ht(i,t),t.isBefore(i)?r=Gt(t,i):((r=Gt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),r=new Bt(n),It(e)&&f(e,"_locale")&&(r._locale=e._locale),It(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Gt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Vt(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(J(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),qt(this,B(e,t),r),this}}function qt(e,t,i,r){var n=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&He(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),n&&e._d.setTime(e._d.valueOf()+n*i),r)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||H(e)||Zt(e)||R(e)||(i=a(t=e),r=!1,i&&(r=0===t.filter(function(e){return!R(e)&&Zt(t)}).length),i&&r)||function(e){var t,i,r=F(e)&&!O(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)i=o[t],n=n||f(e,i);return r&&n}(e)||null==e;var t,i,r}function Kt(e,t){var i,r;return e.date()<t.date()?-Kt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(i,"months"))<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=S(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ri(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ni(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],r=[],n=this.eras(),o=0,a=n.length;o<a;++o)t.push(_(n[o].name)),e.push(_(n[o].abbr)),i.push(_(n[o].narrow)),r.push(_(n[o].name)),r.push(_(n[o].abbr)),r.push(_(n[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){r(0,[e,e.length],0,t)}function si(e,t,i,r,n){var o;return null==e?Ze(this,r,n).year:(t>(o=$(e,r,n))&&(t=o),function(e,t,i,r,n){e=qe(e,t,i,r,n),t=Ge(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,r,n))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",ni),b("NN",ni),b("NNN",ni),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){r=i._locale.erasParse(e,r,i._strict);r?g(i).era=r:g(i).invalidEra=e}),b("y",Ce),b("yy",Ce),b("yyy",Ce),b("yyyy",Ce),b("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,n):t[P]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),b("G",Pe),b("g",Pe),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",xe,ye),b("ggggg",xe,ye),$e(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=h(e)}),$e(["gg","GG"],function(e,t,i,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",n),x("Q",function(e,t){t[T]=3*(h(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],E),x("Do",function(e,t){t[E]=h(e.match(v)[0])});_e=pe("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),x(["m","mm"],L);ge=pe("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),x(["s","ss"],M);var li,xe=pe("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),b("S",be,n),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,Ce);function ci(e,t){t[De]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")x(li,ci);ye=pe("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");n=Z.prototype;function ui(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!O(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||f(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||k(),i=Ht(e,this).startOf("day"),i=m.calendarFormat(this,i)||"sameElse",t=t&&(u(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,k(e)))},n.clone=function(){return new Z(this)},n.diff=function(e,t,i){var r,n,o;if(!this.isValid())return NaN;if(!(r=Ht(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-n)/864e5;break;case"week":o=(this-r-n)/6048e5;break;default:o=this-r}return i?o:p(o)},n.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(k(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(k(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,i,r){return e=l(e)?e:k(e),t=l(t)?t:k(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},n.isSame=function(e,t){var e=l(e)?e:k(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return j(this)},n.lang=Qe,n.locale=Jt,n.localeData=Qt,n.max=we,n.min=ve,n.parsingFlags=function(){return W({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ue[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ce(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.subtract=Ke,n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?ae(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ae(t,"Z")):ae(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,i;return this.isValid()?(t="moment",i="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},n.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-m(i[r].since).year())*e+i[r].offset;return this.year()},n.year=Ue,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=ze,n.daysInMonth=function(){return Be(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return $(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return $(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return $(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return $(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,i,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,r=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=r.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=w,n.minute=n.minutes=ge,n.second=n.seconds=xe,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:zt(this);if("string"==typeof e){if(null===(e=Rt(Ee,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?qt(this,B(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Rt(Te,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Wt,n.isUTC=Wt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",ze),n.years=e("years accessor is deprecated. Use year instead",Ue),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return s(this._isDSTShifted)&&(q(t={},this),(t=$t(t))._a?(e=(t._isUTC?c:k)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,a=0;a<r;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,r){var n=S(),r=c().set(r,t);return n[i](r,e)}function pi(e,t,i){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=di(e,n,i,"month");return r}function hi(e,t,i,r){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var n,o=S(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,r,"day");for(n=0;n<7;n++)s[n]=di(t,(n+a)%7,r,"day");return s}y.calendar=function(e,t,i){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ui,y.postformat=ui,y.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return u(n)?n(e,t,i,r):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(u(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,r=this._eras||S("en")._eras,n=0,o=r.length;n<o;++n)switch("string"==typeof r[n].since&&(i=m(r[n].since).startOf("day"),r[n].since=i.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=m(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}return r},y.erasParse=function(e,t,i){var r,n,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,n=l.length;r<n;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if(0<=[o,a,s].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))||-1!==(n=C.call(this._longMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))||-1!==(n=C.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=c([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=c([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",S);var mi=Math.abs;function fi(e,t,i,r){t=B(t,i);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ie=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),xe=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),Ue=bi("minutes"),y=bi("hours"),_i=bi("days"),xi=bi("months"),Ci=bi("years");var Pi=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ei(e,t,i,r){var n=B(e).abs(),o=Pi(n.as("s")),a=Pi(n.as("m")),s=Pi(n.as("h")),l=Pi(n.as("d")),c=Pi(n.as("M")),u=Pi(n.as("w")),n=Pi(n.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(a<=1?["m"]:a<i.m&&["mm",a])||(s<=1?["h"]:s<i.h&&["hh",s])||(l<=1?["d"]:l<i.d&&["dd",l]);return(o=(o=null!=i.w?o||(u<=1?["w"]:u<i.w&&["ww",u]):o)||(c<=1?["M"]:c<i.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,o)}var Ai=Math.abs;function Li(e){return(0<e)-(e<0)||+e}function Mi(){var e,t,i,r,n,o,a,s,l,c,u;return this.isValid()?(s=Ai(this._milliseconds)/1e3,l=Ai(this._days),c=Ai(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=Li(this._months)!==Li(u)?"-":"",o=Li(this._days)!==Li(u)?"-":"",a=Li(this._milliseconds)!==Li(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(c?n+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+r+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Bt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),e.milliseconds=mi(e.milliseconds),e.seconds=mi(e.seconds),e.minutes=mi(e.minutes),e.hours=mi(e.hours),e.months=mi(e.months),e.years=mi(e.years),this},I.add=function(e,t){return fi(this,e,t,1)},I.subtract=function(e,t){return fi(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=be,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=we,I.asDays=ve,I.asWeeks=Ke,I.asMonths=w,I.asQuarters=ge,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),r.milliseconds=e%1e3,e=p(e/1e3),r.seconds=e%60,e=p(e/60),r.minutes=e%60,e=p(e/60),r.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},I.clone=function(){return B(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=Ue,I.hours=y,I.days=_i,I.weeks=function(){return p(this.days()/7)},I.months=xi,I.years=Ci,I.humanize=function(e,t){var i,r;return this.isValid()?(i=!1,r=Ti,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Ti,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Ei(this,!i,r,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Mi,I.toString=Mi,I.toJSON=Mi,I.locale=Jt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mi),I.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Pe),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,i){i._d=new Date(h(e))}),m.version="2.29.4",N=k,m.fn=n,m.min=function(){return St("isBefore",[].slice.call(arguments,0))},m.max=function(){return St("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return k(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=U,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},m.parseZone=function(){return k.apply(null,arguments).parseZone()},m.localeData=S,m.isDuration=It,m.monthsShort=function(e,t){return pi(e,t,"monthsShort")},m.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var i,r;return null!=t?(r=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(r=null!=(i=pt(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new ee(t)).parentLocale=D[e],D[e]=r),ht(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===ht()&&ht(e)):null!=D[e]&&delete D[e]),D[e]},m.locales=function(){return te(D)},m.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Pi:"function"==typeof e&&(Pi=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=n,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Fn,On,W=Fn.exports;function Rn(e,t){B(e,t)}const Hn={en:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."}};class zn extends HTMLElement{static get version(){return"23.1.16"}}customElements.define("vaadin-lumo-styles",zn);const Wn=window,jn=Wn.ShadowRoot&&(void 0===Wn.ShadyCSS||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Un=Symbol(),Yn=new WeakMap;class Gn{constructor(e,t,i){if(this._$cssResult$=!0,i!==Un)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return jn&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?Yn.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yn.set(i,e),e}toString(){return this.cssText}}const a=(r,...e)=>{e=1===r.length?r[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+r[i+1],r[0]);return new Gn(e,r,Un)},Vn=jn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const i of t.cssRules)e+=i.cssText;return t=e,new Gn("string"==typeof t?t:t+"",void 0,Un)}},qn=window,Zn=qn.trustedTypes,Xn=Zn?Zn.emptyScript:"",Kn=qn.reactiveElementPolyfillSupport,Jn={toAttribute(e,t){switch(t){case Boolean:e=e?Xn:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Qn=(e,t)=>t!==e&&(t==t||e==e),eo={attribute:!0,type:String,converter:Jn,reflect:!1,hasChanged:Qn},to="finalized";class io extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=eo){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,r,n){return{get(){return this[r]},set(e){var t=this[i];this[r]=e,this.requestUpdate(i,t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||eo}static finalize(){if(this.hasOwnProperty(to))return!1;this[to]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Vn(e))}else void 0!==e&&t.push(Vn(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,jn?r.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=Wn.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,r.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=eo){var r,n=this.constructor._$Ep(e,i);void 0!==n&&!0===i.reflect&&(r=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:Jn).toAttribute(t,i.type),this._$El=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null)}_$AK(e,t){var i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(i=e.converter)?void 0:i.fromAttribute)?e.converter:Jn;this._$El=r,this[r]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Qn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}io[to]=!0,io.elementProperties=new Map,io.elementStyles=[],io.shadowRootOptions={mode:"open"},null!=Kn&&Kn({ReactiveElement:io}),(null!=(Ni=qn.reactiveElementVersions)?Ni:qn.reactiveElementVersions=[]).push("1.6.3");const ro=window,no=ro.trustedTypes,oo=no?no.createPolicy("lit-html",{createHTML:e=>e}):void 0,ao="$lit$",so=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+so,co=`<${lo}>`,uo=document,po=()=>uo.createComment(""),ho=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mo=Array.isArray,fo="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,vo=/>/g,wo=RegExp(`>|${fo}(?:([^\\s"'>=/]+)(${fo}*=${fo}*(?:[^
4
+ \r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,_o=/"/g,xo=/^(?:script|style|textarea|title)$/i,Co=Symbol.for("lit-noChange"),Po=Symbol.for("lit-nothing"),To=new WeakMap,Eo=uo.createTreeWalker(uo,129,null,!1);function Ao(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==oo?oo.createHTML(t):t;throw Error("invalid template strings array")}class Lo{constructor({strings:t,_$litType$:i},e){var r;this.parts=[];let n=0,o=0;var a=t.length-1,s=this.parts,[t,l]=((o,e)=>{const a=o.length-1,s=[];let l,c=2===e?"<svg>":"",u=go;for(let n=0;n<a;n++){const a=o[n];let e,t,i=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===go?"!--"===t[1]?u=yo:void 0!==t[1]?u=vo:void 0!==t[2]?(xo.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=wo):void 0!==t[3]&&(u=wo):u===wo?">"===t[0]?(u=null!=l?l:go,i=-1):void 0===t[1]?i=-2:(i=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?wo:'"'===t[3]?_o:bo):u===_o||u===bo?u=wo:u===yo||u===vo?u=go:(u=wo,l=void 0);var d=u===wo&&o[n+1].startsWith("/>")?" ":"";c+=u===go?a+co:0<=i?(s.push(e),a.slice(0,i)+ao+a.slice(i)+so+d):a+so+(-2===i?(s.push(void 0),n):d)}return[Ao(o,c+(o[a]||"<?>")+(2===e?"</svg>":"")),s]})(t,i);if(this.el=Lo.createElement(t,e),Eo.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(r=Eo.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const i of r.getAttributeNames())if(i.endsWith(ao)||i.startsWith(so)){const e=l[o++];if(t.push(i),void 0!==e){const t=r.getAttribute(e.toLowerCase()+ao).split(so),i=/([.?@])?(.*)/.exec(e);s.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ko:"?"===i[1]?Io:"@"===i[1]?No:So})}else s.push({type:6,index:n})}for(const i of t)r.removeAttribute(i)}if(xo.test(r.tagName)){const t=r.textContent.split(so),i=t.length-1;if(0<i){r.textContent=no?no.emptyScript:"";for(let e=0;e<i;e++)r.append(t[e],po()),Eo.nextNode(),s.push({type:2,index:++n});r.append(t[i],po())}}}else if(8===r.nodeType)if(r.data===lo)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=r.data.indexOf(so,e+1));)s.push({type:7,index:n}),e+=so.length-1}n++}}static createElement(e,t){var i=uo.createElement("template");return i.innerHTML=e,i}}function Mo(t,i,r=t,n){var o;if(i!==Co){let e=void 0!==n?null==(a=r._$Co)?void 0:a[n]:r._$Cl;var a=ho(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,n),void 0!==n?(null!=(o=r._$Co)?o:r._$Co=[])[n]=e:r._$Cl=e),void 0!==e&&(i=Mo(t,e._$AS(t,i.values),e,n))}return i}class $o{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:i}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:uo).importNode(e,!0);Eo.currentNode=r;let n=Eo.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new Do(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new Fo(n,this,t)),this._$AV.push(e),s=i[++a]}o!==(null==s?void 0:s.index)&&(n=Eo.nextNode(),o++)}return Eo.currentNode=uo,r}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Do{constructor(e,t,i,r){this.type=2,this._$AH=Po,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=null==(e=null==r?void 0:r.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Mo(this,e,t),ho(e)?e===Po||null==e||""===e?(this._$AH!==Po&&this._$AR(),this._$AH=Po):e!==this._$AH&&e!==Co&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,mo(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Po&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.$(uo.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Lo.createElement(Ao(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(i);else{const e=new $o(r,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=To.get(e.strings);return void 0===t&&To.set(e.strings,t=new Lo(e)),t}T(e){mo(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new Do(this.k(po()),this.k(po()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class So{constructor(e,t,i,r,n){this.type=1,this._$AH=Po,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Po}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,r=this,n,o){var a=this.strings;let s=!1;if(void 0===a)i=Mo(this,i,r,0),(s=!ho(i)||i!==this._$AH&&i!==Co)&&(this._$AH=i);else{const o=i;let e,t;for(i=a[0],e=0;e<a.length-1;e++)(t=Mo(this,o[n+e],r,e))===Co&&(t=this._$AH[e]),s=s||!ho(t)||t!==this._$AH[e],t===Po?i=Po:i!==Po&&(i+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!o&&this.j(i)}j(e){e===Po?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ko extends So{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Po?void 0:e}}const Bo=no?no.emptyScript:"";class Io extends So{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Po?this.element.setAttribute(this.name,Bo):this.element.removeAttribute(this.name)}}class No extends So{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){var i,r;(e=null!=(t=Mo(this,e,t,0))?t:Po)!==Co&&(t=this._$AH,i=e===Po&&t!==Po||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==Po&&(t===Po||i),i&&this.element.removeEventListener(this.name,this,t),r&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Fo{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mo(this,e)}}Fi=ro.litHtmlPolyfillSupport;null!=Fi&&Fi(Lo,Do),(null!=(Ri=ro.litHtmlVersions)?Ri:ro.litHtmlVersions=[]).push("2.8.0");class Oo extends io{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var r,n=null!=(n=null==i?void 0:i.renderBefore)?n:t;let o=n._$litPart$;if(void 0===o){const e=null!=(r=null==i?void 0:i.renderBefore)?r:null;n._$litPart$=o=new Do(t.insertBefore(po(),e),e,void 0,null!=i?i:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return Co}}Oo.finalized=!0,Oo._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:Oo});ki=globalThis.litElementPolyfillSupport;null!=ki&&ki({LitElement:Oo}),(null!=(Ii=globalThis.litElementVersions)?Ii:globalThis.litElementVersions=[]).push("3.3.3");const Ro=[];function Ho(e,t,i={}){var r;e&&jo(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
5
5
  was finalized before a style module was registered.
6
6
  Make sure to add component specific style modules before
7
7
  importing the corresponding custom element.`),[r=[]]=[t],t=[r].flat(1/0).filter(e=>e instanceof Gn||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):Ro.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId})}function zo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ro}function Wo(i){const r=i+"-default-theme",e=zo().filter(e=>{return e.moduleId!==r&&(e=e.themeFor,t=i,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`).test(t)));var t}).map(e=>({...e,styles:[...function i(e){const r=[];return e.include&&[].concat(e.include).forEach(t=>{var e=zo().find(e=>e.moduleId===t);e?r.push(...i(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),r}(e),...e.styles],includePriority:function(e=""){let t=0;return 0===e.indexOf("lumo-")||0===e.indexOf("material-")?t=1:0===e.indexOf("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:zo().filter(e=>e.moduleId===r)}function jo(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}Bi=e=>{return class extends(e=e,class extends e{static get properties(){return{theme:{type:String,reflectToAttribute:!0,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:!0}}}__deprecatedThemePropertyChanged(e){this._set_theme(e)}}){static finalize(){var e,t,i;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!jo(this)&&(e=this.getStylesForThis(),t=t,(i=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(i))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...Wo(this.is)];const i=this.__themes.flatMap(e=>e.styles);return i.filter((e,t)=>t===i.lastIndexOf(e))}}},Ni=a`
@@ -500,7 +500,7 @@
500
500
  --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
501
501
  }
502
502
  }
503
- `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let Uo,Yo,Go=/(url\()([^)]*)(\))/g,Vo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function qo(e,t){if(e&&Vo.test(e))return e;if("//"===e)return e;if(void 0===Uo){Uo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Uo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Uo)try{return new URL(e,t).href}catch(t){return e}return Yo||((Yo=document.implementation.createHTMLDocument("temp")).base=Yo.createElement("base"),Yo.head.appendChild(Yo.base),Yo.anchor=Yo.createElement("a"),Yo.body.appendChild(Yo.anchor)),Yo.base.href=t,Yo.anchor.href=e,Yo.anchor.href||e}function Zo(e,n){return e.replace(Go,function(e,t,i,r){return t+"'"+qo(i.replace(/["']/g,""),n)+"'"+r})}function Xo(e){return e.substring(0,e.lastIndexOf("/")+1)}const Ko=!window.ShadyDOM||!window.ShadyDOM.inUse,Jo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Ko&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Qo=window.Polymer&&window.Polymer.rootPath||Xo(document.baseURI||window.location.href),ea=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ta=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),ia=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ra=window.Polymer&&window.Polymer.legacyOptimizations||!1,na=window.Polymer&&window.Polymer.legacyWarnings||!1,oa=window.Polymer&&window.Polymer.syncInitialRender||!1,aa=window.Polymer&&window.Polymer.legacyUndefined||!1,sa=window.Polymer&&window.Polymer.orderedComputed||!1,la=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ca=window.Polymer&&window.Polymer.fastDomIf||!1,ua=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,da=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),pa=0;function ha(n){let o=n.__mixinApplications,a=(o||(o=new WeakMap,n.__mixinApplications=o),pa++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,r=i.get(e);return r||(r=n(e),i.set(e,r),(e=Object.create(r.__mixinSet||t||null))[a]=!0,r.__mixinSet=e),r}}let ma={},fa={};function ga(e,t){ma[e]=fa[e.toLowerCase()]=t}function ya(e){return ma[e]||fa[e.toLowerCase()]}class va extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=ya(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=qo(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Xo(e)),this.__assetpath}register(e){if(e=e||this.id){if(ta&&void 0!==ya(e))throw ga(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ga(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}va.prototype.modules=ma,customElements.define("dom-module",va);const ba="link[rel=import][type~=css]",wa="include",_a="shady-unscoped";function xa(e){return va.import(e)}function Ca(e){var e=Zo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Pa(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=xa(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Aa(t));var i=t.querySelector("template");i&&e.push(...Ta(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ta(e,t){if(!e._styles){var i=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var n=r[e],o=n.getAttribute(wa);o&&i.push(...Pa(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(n.textContent=Zo(n.textContent,t)),i.push(n)}e._styles=i}return e._styles}function Aa(t){const i=[],r=t.querySelectorAll(ba);for(let e=0;e<r.length;e++){var n=r[e];if(n.import){const t=n.import,r=n.hasAttribute(_a);if(r&&!t._unscopedStyle){const i=Ca(t);i.setAttribute(_a,""),t._unscopedStyle=i}else t._style||(t._style=Ca(t));i.push(r?t._unscopedStyle:t._style)}}return i}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Ea(e){return 0<=e.indexOf(".")}function La(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Ma(e,t){return 0===e.indexOf(t+".")}function $a(e,t){return 0===t.indexOf(e+".")}function Da(e,t,i){return t+i.slice(e.length)}function Sa(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)i.push(r[e])}return i.join(".")}return t}function ka(e){return(Array.isArray(e)?Sa(e):e.toString()).split(".")}function Ba(e,t,i){let r=e,n=ka(t);for(let e=0;e<n.length;e++){if(!r)return;r=r[n[e]]}return i&&(i.path=n.join(".")),r}function Ia(e,t,i){let r=e,n=ka(t),o=n[n.length-1];if(1<n.length){for(let e=0;e<n.length-1;e++)if(!(r=r[n[e]]))return;r[o]=i}else r[t]=i;return n.join(".")}const Na={},Fa=/-[a-z]/g,Oa=/([A-Z])/g;function Ra(e){return Na[e]||(Na[e]=e.indexOf("-")<0?e:e.replace(Fa,e=>e[1].toUpperCase()))}function Ha(e){return Na[e]||(Na[e]=e.replace(Oa,"-$1").toLowerCase())}let za=0,Wa=0,ja=[],Ua=0,Ya=!1,Ga=document.createTextNode("");new window.MutationObserver(function(){Ya=!1;var t=ja.length;for(let e=0;e<t;e++){var i=ja[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}ja.splice(0,t),Wa+=t}).observe(Ga,{characterData:!0});const Va={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},qa={run:e=>(Ya||(Ya=!0,Ga.textContent=Ua++),ja.push(e),za++),cancel(e){var t=e-Wa;if(0<=t){if(!ja[t])throw new Error("invalid async handle: "+e);ja[t]=null}}},Za=qa,Xa=ha(e=>class extends e{static createProperties(e){var t,i=this.prototype;for(t in e)t in i||i._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){var r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Za.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++;var e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){t=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=b(e)),void 0===t?e.removeAttribute(i):e.setAttribute(i,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Ka={};let Ja=HTMLElement.prototype;for(;Ja;){var Qa=Object.getOwnPropertyNames(Ja);for(let e=0;e<Qa.length;e++)Ka[Qa[e]]=!0;Ja=Object.getPrototypeOf(Ja)}const es=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ts=ha(e=>{return class extends Xa(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Ra(t[e]))}static attributeNameForProperty(e){return Ha(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(es(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=(isNaN(e)?String:Number)(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){var i,r,n;i=this,r=e,Ka[r]||void 0!==(n=i[r])&&(i.__data?i._setPendingProperty(r,n):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[r]=n)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),is={"dom-if":!0,"dom-repeat":!0};let rs=!1,ns=!1;const os=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);r&&i.startsWith("on-")?e.setAttribute(i,r.createScript(t,i)):e.setAttribute(i,t)}})();const as=ha(e=>class extends e{static _parseTemplate(e,t){var i;return e._templateInfo||((i=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let r=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(n,t,i)||r,e=n,rs||(rs=!0,(o=document.createElement("textarea")).placeholder="a",ns=o.placeholder===o.textContent),ns&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),n.firstChild&&this._parseTemplateChildNodes(n,t,i),(r=n.hasAttributes&&n.hasAttributes()?this._parseTemplateNodeAttributes(n,t,i)||r:r)||i.noted;var o}static _parseTemplateChildNodes(r,n,o){if("script"!==r.localName&&"style"!==r.localName)for(let t,i=r.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&is[t]){var i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const t=i.attributes[0]["name"];os(e,i,t),i.removeAttribute(t)}}return e}(i)),t=i.nextSibling,i.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)i.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(n.stripWhiteSpace&&!i.textContent.trim()){r.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,n,a)&&(a.infoIndex=n.nodeInfoList.push(a)-1),i.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,i){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),i.templateInfo=t,!0}static _parseTemplateNodeAttributes(i,r,n){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,r,n,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,r,n){return"on-"===r.slice(0,3)?(e.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:n}),!0):"id"===r&&(i.id=n,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var n,o,a=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!r.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++){var c=l[t]=function e(t,i){var r=i.parentInfo&&e(t,i.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(n=s.$,o=c,(p=e).id&&(n[p.id]=o),n=c,p=e,o=r,p.templateInfo&&(n._templateInfo=p.templateInfo,n._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,i=p.events;t<i.length&&(e=i[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,i,r){function n(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=r=r||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let ss=0;const ls=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cs="__computeInfo",us=/[A-Z]/;function ds(e,t,i){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),i))for(var n in r){var o=r[n],a=r[n]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else r=e[t]={};return r}function ps(n,e,o,a,s,l){if(e){let r=!1;var c,u=ss++;for(c in o){var d=e[s?La(c):c];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!hs(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(n,c,o,a,e.info,s,l),r=!0)}return r}}function hs(e,t){var i;return!t||(i=t.name)==e||t.structured&&Ma(i,e)||t.wildcard&&$a(i,e)}function ms(e,t,i,r,n){var o="string"==typeof n.method?e[n.method]:n.method,a=n.property;o?o.call(e,e.__data[a],r[a]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function fs(e,t,i,r){i={value:i,queueProperty:!0};r&&(i.path=r),b(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function gs(e,t,i,r,n,o){let a=(o?La(t):t)!=t?t:null,s=a?Ba(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),fs(e,n.eventName,s,a)}function ys(e,t,i,r,n){let o=e.__data[t];ea&&(o=ea(o,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,o)}const vs=(e,t,i)=>{let r=0,n=t.length-1,o=-1;for(;r<=n;){var a=r+n>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)r=1+a;else{if(!(0<s)){o=a;break}n=a-1}}o<0&&(o=n+1),t.splice(o,0,e)},bs=(t,e,i,r,n)=>{var o=e[n?La(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===ss||n&&!hs(t,a.trigger)||(a.info.lastRun=ss,vs(a.info,i,r))}};function ws(e,t,i,r,n){t=Ts(e,t,i,0,n);return t!==ls&&(i=n.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function _s(t,i,e,r,n,o,a){e.bindings=e.bindings||[];var s={kind:r,target:n,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),r=s,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||Ha(n)+"-changed",s.listenerNegate=o),i.nodeInfoList.length);for(let e=0;e<s.parts.length;e++){var c=s.parts[e],u=(c.compoundIndex=e,g=f=m=h=p=d=u=void 0,t),d=i,p=s,h=c,m=l;if(!h.literal)if("attribute"===p.kind&&"-"===p.target[0])console.warn("Cannot set attribute "+p.target+' because "-" is not a valid attribute starting character');else{var f=h.dependencies,g={index:m,binding:p,part:h,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Ss(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:xs,info:g,trigger:e})}}}}function xs(e,t,i,r,n,o,a){var s,a=a[n.index],l=n.binding,c=n.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=i[t],t=Da(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=n.evaluator._evaluateBinding(e,c,t,i,r,o))!==ls&&(n=e,t=c,r=i=a,e=o=s,(a=c=l).isCompound&&((l=r.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,ea&&(o=ea(o,c.target,c.kind,i)),"attribute"==c.kind?n._valueToNodeAttribute(i,o,c.target):(t=c.target,i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[t]?i[C.READ_ONLY]&&i[C.READ_ONLY][t]||i._setPendingProperty(t,o)&&n._enqueueClient(i):n._setUnmanagedPropertyToNode(i,t,o)))}function Cs(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var n=c,o=u.target,a=l.source,s=l.negate;let e,t=r.detail,i=t&&t.path;e=i?(a=Da(o,a,i),t&&t.value):r.currentTarget[o],e=s?!e:e,n[C.READ_ONLY]&&n[C.READ_ONLY][a]||!n._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||n._invalidateProperties()}})}}function Ps(i,r,n,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var a={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,n,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(r.methodName,n,{fn:o,info:a}),a}function Ts(e,t,i,r,n){var o=e._methodHost||e,a=o[n.methodName];if(a)return(e=e._marshalArgs(n.args,t,i))===ls?ls:a.apply(o,e);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const As=[],Es="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ls="(?:("+Es+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ms=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Es+"\\s*(?:\\(\\s*(?:(?:"+Ls+"(?:,\\s*"+Ls+")*)?)\\)\\s*)?)(?:]]|}})","g");function $s(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function Ds(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:As},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ss(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Ss(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=La(t),i.structured=Ea(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function ks(e,t,i){let r=Ba(e,i);return r=void 0===r?t[i]:r}function Bs(e,t,i,r){r={indexSplices:r};aa&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),aa&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Is(e,t,i,r,n,o){Bs(e,t,i,[{index:r,addedCount:n,removed:o,object:t,type:"splice"}])}const Ns=ha(e=>{const c=as(ts(e));return class extends c{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 C}_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(){var e;Fs.length&&((e=Fs[Fs.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,i=this[C.READ_ONLY];for(t in e)i&&i[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=ds(this,t,!0)[e];(r=r||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=ds(this,t,!0)[e],e=t.indexOf(i);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,i,r){if(r||La(Array.isArray(e)?e[0]:e)!==e){if(!r){r=Ba(this,e);if(!(e=Ia(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var n=this;var o=e;var a=t;var s=n.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];$a(l,o)?(e=Da(l,c,o),n._setPendingPropertyOrPath(e,a,!0,!0)):$a(c,o)&&(e=Da(c,l,o),n._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||((e="className"===t?b(e):e)[t]=i)}_setPendingProperty(e,t,i){var r=this.__dataHasPaths&&Ea(e),n=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var i in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,n,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=n,r=o,d=u,p=t[C.COMPUTE];if(p)if(sa){ss++;var h,m,f=function(n){let o=n.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=n[C.COMPUTE];let e,{counts:t,ready:i,total:r}=function(e){const t=e[cs],i={},r=e[C.COMPUTE],n=[];let o=0;for(var a in t){const r=t[a];o+=i[a]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var s in r)t[s]||n.push(s);return{counts:i,ready:n,total:o}}(n);for(;e=i.shift();){o.set(e,o.size);const n=a[e];n&&n.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&i.push(e)})}if(0!==r){const o=n;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}n.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)bs(h,p,g,f,d);for(;m=g.shift();)ws(t,"",i,0,m)&&bs(m.methodInfo,p,g,f,d);Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;ps(t,p,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,u),this._flushClients(),ps(this,this[C.REFLECT],n,o,u),ps(this,this[C.OBSERVE],n,o,u),a){var y=this,v=a,b=n,w=o,_=u,x;let e,t,i=y[C.NOTIFY],r=ss++;for(x in v)v[x]&&(i&&function(r,e,n,o,a,s,l,c){let u=!1,d=e[l?La(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===n||l&&!hs(o,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(r,o,a,s,e.info,l,c),u=!0);return u}(y,i,r,x,b,w,_)||_&&(s=y,x=x,l=b,c=void 0,c=La(x),c!==x)&&(fs(s,Ha(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[C.PROPAGATE]&&ps(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(r,e,n,t){var i=(t,i)=>{ps(this,r.propertyEffects,t,n,i,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,n,i)};r.runEffects?r.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=Sa(e),t=Sa(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Sa(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};Bs(this,Ba(this,e,i),i.path,t)}get(e,t){return Ba(t||this,e)}set(e,t,i){i?Ia(i,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var i={path:""},e=Ba(this,e,i),r=e.length,n=e.push(...t);return t.length&&Is(this,e,i.path,r,t.length,[]),n}pop(e){var t={path:""},e=Ba(this,e,t),i=Boolean(e.length),r=e.pop();return i&&Is(this,e,t.path,e.length,0,[r]),r}splice(e,t,i,...r){var n={path:""},e=Ba(this,e,n);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...r),(r.length||i.length)&&Is(this,e,n.path,t,r.length,i),i}shift(e){var t={path:""},e=Ba(this,e,t),i=Boolean(e.length),r=e.shift();return i&&Is(this,e,t.path,0,0,[r]),r}unshift(e,...t){var i={path:""},e=Ba(this,e,i),r=e.unshift(...t);return t.length&&Is(this,e,i.path,0,t.length,[]),r}notifyPath(e,t){let i;var r;i=1==arguments.length?(t=Ba(this,e,r={path:""}),r.path):Array.isArray(e)?Sa(e):e,this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,i){var r={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:ms,info:r,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:ms,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var i=Ds(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ps(this,i,C.OBSERVE,Ts,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:gs,info:{eventName:Ha(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,C.REFLECT,{fn:ys,info:{attrName:t}})}_createComputedProperty(e,t,i){var r=Ds(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Ps(this,r,C.COMPUTE,ws,e,i);ds(this,cs)[e]=t}_marshalArgs(a,s,l){const c=this.__data,u=[];for(let o=0,e=a.length;o<e;o++){let{name:e,structured:t,wildcard:i,value:r,literal:n}=a[o];if(!n)if(i){const a=$a(e,s),u=ks(c,l,a?s:e);r={path:a?s:e,value:u,base:a?Ba(c,e):u}}else r=t?ks(c,l,e):c[e];if(aa&&!this._overrideLegacyUndefined&&void 0===r&&1<a.length)return ls;u[o]=r}return u}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==i;if(!r)for(var n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if((i=Object.create(i)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=r)?r.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Fs.push(this);t=super._stampTemplate(t,e);if(Fs.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var i=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)i.push(e)}t.templateInfo=e;var r=this,{nodeList:n,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=n[e],l=a.bindings;if(l)for(let e=0;e<l.length;e++){var c=l[e],u=(f=m=h=p=d=u=void 0,s),d=c;if(d.isCompound){var p=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),h=d.parts,m=new Array(h.length);for(let e=0;e<h.length;e++)m[e]=h[e].literal;var f=d.target;p[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?b(u):u)[f]=d.literal)}Cs(s,r,c)}s.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:r}=e,n=(t?t.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<n.length;e++){var o=n[e];b(b(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let r=c._parseTemplateNode.call(this,e,t,i);var n;return e.nodeType===Node.TEXT_NODE&&(n=this._parseBindings(e.textContent,t))&&(e.textContent=$s(n)||" ",_s(this,t,i,"text","textContent",n),r=!0),r}static _parseTemplateNodeAttribute(r,n,o,a,e){var s=this._parseBindings(e,n);if(s){let e=a,t="property",i=(us.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),$s(s));return i&&"attribute"==t&&("class"==a&&r.hasAttribute("class")&&(i+=" "+r.getAttribute(a)),r.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(a,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(a=Ra(a)),_s(this,n,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,r,n,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let r=c._parseTemplateNestedTemplate.call(this,e,t,i);var n=e.parentNode,o=i.templateInfo,a="dom-if"===n.localName,s="dom-repeat"===n.localName,s=(la&&(a||s)&&(n.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,r=!1),o.hostProps);if(ca&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),la||(i.parentInfo.noted=!0));else for(var l in s)_s(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ms.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),i=l[3].trim(),r=!1,n="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(n=i.substring(o+2),i=i.substring(0,o),r=!0);var d=Ds(i),p=[];if(d){var{args:h,methodName:m}=d;for(let e=0;e<h.length;e++){var f=h[e];f.literal||p.push(f)}var g=s.dynamicFns;(g&&g[m]||d.static)&&(p.push(m),d.dynamicFn=!0)}else p.push(i);c.push({source:i,mode:e,negate:t,customEvent:r,signature:d,dependencies:p,event:n}),u=Ms.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,i,r,n,o){let a;return a=t.signature?Ts(e,i,r,0,t.signature):i!=t.source?Ba(e,t.source):o&&Ea(i)?Ba(e,i):e.__data[i],a=t.negate?!a:a}}}),Fs=[],Os=ha(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var i;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(i=t.properties)&&(e=function(e){var t,i={};for(t in e){var r=e[t];i[t]="function"==typeof r?{type:r}:r}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class r extends Xa(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=i(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,i(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),Rs=window.ShadyCSS&&window.ShadyCSS.cssBuild,Hs=ha(e=>{const r=Os(Ns(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):ra||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,r=t,t=e[t],n=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):i._createComputedProperty(r,t.computed,n)),t.readOnly&&!i._hasReadOnlyEffect(r)?i._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(r)?i._createReflectedProperty(r):!1===t.reflectToAttribute&&i._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!i._hasNotifyEffect(r)?i._createNotifyingProperty(r):!1===t.notify&&i._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&i._createPropertyObserver(r,t.observer,n[t.observer]),i._addPropertyToAttributeMap(r);var i,r,n}static createObservers(t,i){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],i)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||ta&&!ia||(t=va.import(e,"template"),!ta)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Xo(e.url):(e=va.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=Qo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,i=e._properties;for(t in i){var r=i[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var i=e[t];this._canApplyPropertyDefault(t)&&(i="function"==typeof i.value?i.value.call(this):i.value,this._hasAccessor(t)?this._setPendingProperty(t,i,!0):this[t]=i)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,n=this,o=t,a=e,s=i?qo(i):"";if(!Rs){var l=o.content.querySelectorAll("style"),c=Ta(o),u=(e=xa(a))?Aa(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=n._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let r=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=n._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),da&&Rs&&Jo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),n._styleSheet=new CSSStyleSheet,n._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=b(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=qo(this.importPath)),qo(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!na||t in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,i)}}}),zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ws(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function js(r,...e){Us(r,e);var t=document.createElement("template");let i=e.reduce((e,t,i)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ws(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[i+1],r[0]);return zs&&(i=zs.createHTML(i)),t.innerHTML=i,t}const Us=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Ys=Hs(HTMLElement);class Gs{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,i){var r=i["scrollLeft"];if("rtl"!==t||!e)return r;switch(e){case"negative":return i.scrollWidth-i.clientWidth+r;case"reverse":return i.scrollWidth-i.clientWidth-r;default:return r}}static setNormalizedScrollLeft(e,t,i,r){if("rtl"===t&&e)switch(e){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+r;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-r;break;default:i.scrollLeft=r}else i.scrollLeft=r}}const Vs=[];let qs;function Zs(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function Xs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Xs();Vs.forEach(e=>{Zs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ks=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}static finalize(){super.finalize(),qs=qs||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Zs(this,Xs(),null))}attributeChangedCallback(e,t,i){var r,n;super.attributeChangedCallback(e,t,i),"dir"===e&&(r=i===(e=Xs())&&-1===Vs.indexOf(this),n=!i&&t&&-1===Vs.indexOf(this),t=i!==e&&t===e,r||n?(this.__subscribe(),Zs(this,e,i)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Vs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){"dir"===i&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){Vs.includes(this)||Vs.push(this)}__unsubscribe(){Vs.includes(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e,t)}};class Js extends Bi(Ks(Ys)){static get is(){return"vaadin-input-container"}static get template(){return js`
503
+ `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let Uo,Yo,Go=/(url\()([^)]*)(\))/g,Vo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function qo(e,t){if(e&&Vo.test(e))return e;if("//"===e)return e;if(void 0===Uo){Uo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Uo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Uo)try{return new URL(e,t).href}catch(t){return e}return Yo||((Yo=document.implementation.createHTMLDocument("temp")).base=Yo.createElement("base"),Yo.head.appendChild(Yo.base),Yo.anchor=Yo.createElement("a"),Yo.body.appendChild(Yo.anchor)),Yo.base.href=t,Yo.anchor.href=e,Yo.anchor.href||e}function Zo(e,n){return e.replace(Go,function(e,t,i,r){return t+"'"+qo(i.replace(/["']/g,""),n)+"'"+r})}function Xo(e){return e.substring(0,e.lastIndexOf("/")+1)}const Ko=!window.ShadyDOM||!window.ShadyDOM.inUse,Jo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Ko&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Qo=window.Polymer&&window.Polymer.rootPath||Xo(document.baseURI||window.location.href),ea=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ta=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),ia=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ra=window.Polymer&&window.Polymer.legacyOptimizations||!1,na=window.Polymer&&window.Polymer.legacyWarnings||!1,oa=window.Polymer&&window.Polymer.syncInitialRender||!1,aa=window.Polymer&&window.Polymer.legacyUndefined||!1,sa=window.Polymer&&window.Polymer.orderedComputed||!1,la=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ca=window.Polymer&&window.Polymer.fastDomIf||!1,ua=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,da=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),pa=0;function ha(n){let o=n.__mixinApplications,a=(o||(o=new WeakMap,n.__mixinApplications=o),pa++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,r=i.get(e);return r||(r=n(e),i.set(e,r),(e=Object.create(r.__mixinSet||t||null))[a]=!0,r.__mixinSet=e),r}}let ma={},fa={};function ga(e,t){ma[e]=fa[e.toLowerCase()]=t}function ya(e){return ma[e]||fa[e.toLowerCase()]}class va extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=ya(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=qo(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Xo(e)),this.__assetpath}register(e){if(e=e||this.id){if(ta&&void 0!==ya(e))throw ga(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ga(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}va.prototype.modules=ma,customElements.define("dom-module",va);const wa="link[rel=import][type~=css]",ba="include",_a="shady-unscoped";function xa(e){return va.import(e)}function Ca(e){var e=Zo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Pa(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=xa(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Ea(t));var i=t.querySelector("template");i&&e.push(...Ta(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ta(e,t){if(!e._styles){var i=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var n=r[e],o=n.getAttribute(ba);o&&i.push(...Pa(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(n.textContent=Zo(n.textContent,t)),i.push(n)}e._styles=i}return e._styles}function Ea(t){const i=[],r=t.querySelectorAll(wa);for(let e=0;e<r.length;e++){var n=r[e];if(n.import){const t=n.import,r=n.hasAttribute(_a);if(r&&!t._unscopedStyle){const i=Ca(t);i.setAttribute(_a,""),t._unscopedStyle=i}else t._style||(t._style=Ca(t));i.push(r?t._unscopedStyle:t._style)}}return i}const w=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Aa(e){return 0<=e.indexOf(".")}function La(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Ma(e,t){return 0===e.indexOf(t+".")}function $a(e,t){return 0===t.indexOf(e+".")}function Da(e,t,i){return t+i.slice(e.length)}function Sa(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)i.push(r[e])}return i.join(".")}return t}function ka(e){return(Array.isArray(e)?Sa(e):e.toString()).split(".")}function Ba(e,t,i){let r=e,n=ka(t);for(let e=0;e<n.length;e++){if(!r)return;r=r[n[e]]}return i&&(i.path=n.join(".")),r}function Ia(e,t,i){let r=e,n=ka(t),o=n[n.length-1];if(1<n.length){for(let e=0;e<n.length-1;e++)if(!(r=r[n[e]]))return;r[o]=i}else r[t]=i;return n.join(".")}const Na={},Fa=/-[a-z]/g,Oa=/([A-Z])/g;function Ra(e){return Na[e]||(Na[e]=e.indexOf("-")<0?e:e.replace(Fa,e=>e[1].toUpperCase()))}function Ha(e){return Na[e]||(Na[e]=e.replace(Oa,"-$1").toLowerCase())}let za=0,Wa=0,ja=[],Ua=0,Ya=!1,Ga=document.createTextNode("");new window.MutationObserver(function(){Ya=!1;var t=ja.length;for(let e=0;e<t;e++){var i=ja[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}ja.splice(0,t),Wa+=t}).observe(Ga,{characterData:!0});const Va={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},qa={run:e=>(Ya||(Ya=!0,Ga.textContent=Ua++),ja.push(e),za++),cancel(e){var t=e-Wa;if(0<=t){if(!ja[t])throw new Error("invalid async handle: "+e);ja[t]=null}}},Za=qa,Xa=ha(e=>class extends e{static createProperties(e){var t,i=this.prototype;for(t in e)t in i||i._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){var r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Za.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++;var e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){t=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=w(e)),void 0===t?e.removeAttribute(i):e.setAttribute(i,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Ka={};let Ja=HTMLElement.prototype;for(;Ja;){var Qa=Object.getOwnPropertyNames(Ja);for(let e=0;e<Qa.length;e++)Ka[Qa[e]]=!0;Ja=Object.getPrototypeOf(Ja)}const es=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ts=ha(e=>{return class extends Xa(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Ra(t[e]))}static attributeNameForProperty(e){return Ha(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(es(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=(isNaN(e)?String:Number)(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){var i,r,n;i=this,r=e,Ka[r]||void 0!==(n=i[r])&&(i.__data?i._setPendingProperty(r,n):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[r]=n)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),is={"dom-if":!0,"dom-repeat":!0};let rs=!1,ns=!1;const os=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);r&&i.startsWith("on-")?e.setAttribute(i,r.createScript(t,i)):e.setAttribute(i,t)}})();const as=ha(e=>class extends e{static _parseTemplate(e,t){var i;return e._templateInfo||((i=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let r=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(n,t,i)||r,e=n,rs||(rs=!0,(o=document.createElement("textarea")).placeholder="a",ns=o.placeholder===o.textContent),ns&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),n.firstChild&&this._parseTemplateChildNodes(n,t,i),(r=n.hasAttributes&&n.hasAttributes()?this._parseTemplateNodeAttributes(n,t,i)||r:r)||i.noted;var o}static _parseTemplateChildNodes(r,n,o){if("script"!==r.localName&&"style"!==r.localName)for(let t,i=r.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&is[t]){var i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const t=i.attributes[0]["name"];os(e,i,t),i.removeAttribute(t)}}return e}(i)),t=i.nextSibling,i.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)i.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(n.stripWhiteSpace&&!i.textContent.trim()){r.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,n,a)&&(a.infoIndex=n.nodeInfoList.push(a)-1),i.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,i){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),i.templateInfo=t,!0}static _parseTemplateNodeAttributes(i,r,n){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,r,n,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,r,n){return"on-"===r.slice(0,3)?(e.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:n}),!0):"id"===r&&(i.id=n,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var n,o,a=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!r.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++){var c=l[t]=function e(t,i){var r=i.parentInfo&&e(t,i.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(n=s.$,o=c,(p=e).id&&(n[p.id]=o),n=c,p=e,o=r,p.templateInfo&&(n._templateInfo=p.templateInfo,n._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,i=p.events;t<i.length&&(e=i[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,i,r){function n(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=r=r||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let ss=0;const ls=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cs="__computeInfo",us=/[A-Z]/;function ds(e,t,i){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),i))for(var n in r){var o=r[n],a=r[n]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else r=e[t]={};return r}function ps(n,e,o,a,s,l){if(e){let r=!1;var c,u=ss++;for(c in o){var d=e[s?La(c):c];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!hs(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(n,c,o,a,e.info,s,l),r=!0)}return r}}function hs(e,t){var i;return!t||(i=t.name)==e||t.structured&&Ma(i,e)||t.wildcard&&$a(i,e)}function ms(e,t,i,r,n){var o="string"==typeof n.method?e[n.method]:n.method,a=n.property;o?o.call(e,e.__data[a],r[a]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function fs(e,t,i,r){i={value:i,queueProperty:!0};r&&(i.path=r),w(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function gs(e,t,i,r,n,o){let a=(o?La(t):t)!=t?t:null,s=a?Ba(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),fs(e,n.eventName,s,a)}function ys(e,t,i,r,n){let o=e.__data[t];ea&&(o=ea(o,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,o)}const vs=(e,t,i)=>{let r=0,n=t.length-1,o=-1;for(;r<=n;){var a=r+n>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)r=1+a;else{if(!(0<s)){o=a;break}n=a-1}}o<0&&(o=n+1),t.splice(o,0,e)},ws=(t,e,i,r,n)=>{var o=e[n?La(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===ss||n&&!hs(t,a.trigger)||(a.info.lastRun=ss,vs(a.info,i,r))}};function bs(e,t,i,r,n){t=Ts(e,t,i,0,n);return t!==ls&&(i=n.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function _s(t,i,e,r,n,o,a){e.bindings=e.bindings||[];var s={kind:r,target:n,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),r=s,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||Ha(n)+"-changed",s.listenerNegate=o),i.nodeInfoList.length);for(let e=0;e<s.parts.length;e++){var c=s.parts[e],u=(c.compoundIndex=e,g=f=m=h=p=d=u=void 0,t),d=i,p=s,h=c,m=l;if(!h.literal)if("attribute"===p.kind&&"-"===p.target[0])console.warn("Cannot set attribute "+p.target+' because "-" is not a valid attribute starting character');else{var f=h.dependencies,g={index:m,binding:p,part:h,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Ss(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:xs,info:g,trigger:e})}}}}function xs(e,t,i,r,n,o,a){var s,a=a[n.index],l=n.binding,c=n.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=i[t],t=Da(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=n.evaluator._evaluateBinding(e,c,t,i,r,o))!==ls&&(n=e,t=c,r=i=a,e=o=s,(a=c=l).isCompound&&((l=r.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,ea&&(o=ea(o,c.target,c.kind,i)),"attribute"==c.kind?n._valueToNodeAttribute(i,o,c.target):(t=c.target,i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[t]?i[C.READ_ONLY]&&i[C.READ_ONLY][t]||i._setPendingProperty(t,o)&&n._enqueueClient(i):n._setUnmanagedPropertyToNode(i,t,o)))}function Cs(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var n=c,o=u.target,a=l.source,s=l.negate;let e,t=r.detail,i=t&&t.path;e=i?(a=Da(o,a,i),t&&t.value):r.currentTarget[o],e=s?!e:e,n[C.READ_ONLY]&&n[C.READ_ONLY][a]||!n._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||n._invalidateProperties()}})}}function Ps(i,r,n,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var a={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,n,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(r.methodName,n,{fn:o,info:a}),a}function Ts(e,t,i,r,n){var o=e._methodHost||e,a=o[n.methodName];if(a)return(e=e._marshalArgs(n.args,t,i))===ls?ls:a.apply(o,e);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const Es=[],As="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ls="(?:("+As+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ms=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+As+"\\s*(?:\\(\\s*(?:(?:"+Ls+"(?:,\\s*"+Ls+")*)?)\\)\\s*)?)(?:]]|}})","g");function $s(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function Ds(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Es},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ss(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Ss(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=La(t),i.structured=Aa(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function ks(e,t,i){let r=Ba(e,i);return r=void 0===r?t[i]:r}function Bs(e,t,i,r){r={indexSplices:r};aa&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),aa&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Is(e,t,i,r,n,o){Bs(e,t,i,[{index:r,addedCount:n,removed:o,object:t,type:"splice"}])}const Ns=ha(e=>{const c=as(ts(e));return class extends c{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 C}_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(){var e;Fs.length&&((e=Fs[Fs.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,i=this[C.READ_ONLY];for(t in e)i&&i[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=ds(this,t,!0)[e];(r=r||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=ds(this,t,!0)[e],e=t.indexOf(i);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,i,r){if(r||La(Array.isArray(e)?e[0]:e)!==e){if(!r){r=Ba(this,e);if(!(e=Ia(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var n=this;var o=e;var a=t;var s=n.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];$a(l,o)?(e=Da(l,c,o),n._setPendingPropertyOrPath(e,a,!0,!0)):$a(c,o)&&(e=Da(c,l,o),n._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||((e="className"===t?w(e):e)[t]=i)}_setPendingProperty(e,t,i){var r=this.__dataHasPaths&&Aa(e),n=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var i in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,n,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=n,r=o,d=u,p=t[C.COMPUTE];if(p)if(sa){ss++;var h,m,f=function(n){let o=n.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=n[C.COMPUTE];let e,{counts:t,ready:i,total:r}=function(e){const t=e[cs],i={},r=e[C.COMPUTE],n=[];let o=0;for(var a in t){const r=t[a];o+=i[a]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var s in r)t[s]||n.push(s);return{counts:i,ready:n,total:o}}(n);for(;e=i.shift();){o.set(e,o.size);const n=a[e];n&&n.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&i.push(e)})}if(0!==r){const o=n;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}n.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)ws(h,p,g,f,d);for(;m=g.shift();)bs(t,"",i,0,m)&&ws(m.methodInfo,p,g,f,d);Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;ps(t,p,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,u),this._flushClients(),ps(this,this[C.REFLECT],n,o,u),ps(this,this[C.OBSERVE],n,o,u),a){var y=this,v=a,w=n,b=o,_=u,x;let e,t,i=y[C.NOTIFY],r=ss++;for(x in v)v[x]&&(i&&function(r,e,n,o,a,s,l,c){let u=!1,d=e[l?La(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===n||l&&!hs(o,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(r,o,a,s,e.info,l,c),u=!0);return u}(y,i,r,x,w,b,_)||_&&(s=y,x=x,l=w,c=void 0,c=La(x),c!==x)&&(fs(s,Ha(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[C.PROPAGATE]&&ps(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(r,e,n,t){var i=(t,i)=>{ps(this,r.propertyEffects,t,n,i,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,n,i)};r.runEffects?r.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=Sa(e),t=Sa(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Sa(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};Bs(this,Ba(this,e,i),i.path,t)}get(e,t){return Ba(t||this,e)}set(e,t,i){i?Ia(i,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var i={path:""},e=Ba(this,e,i),r=e.length,n=e.push(...t);return t.length&&Is(this,e,i.path,r,t.length,[]),n}pop(e){var t={path:""},e=Ba(this,e,t),i=Boolean(e.length),r=e.pop();return i&&Is(this,e,t.path,e.length,0,[r]),r}splice(e,t,i,...r){var n={path:""},e=Ba(this,e,n);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...r),(r.length||i.length)&&Is(this,e,n.path,t,r.length,i),i}shift(e){var t={path:""},e=Ba(this,e,t),i=Boolean(e.length),r=e.shift();return i&&Is(this,e,t.path,0,0,[r]),r}unshift(e,...t){var i={path:""},e=Ba(this,e,i),r=e.unshift(...t);return t.length&&Is(this,e,i.path,0,t.length,[]),r}notifyPath(e,t){let i;var r;i=1==arguments.length?(t=Ba(this,e,r={path:""}),r.path):Array.isArray(e)?Sa(e):e,this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,i){var r={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:ms,info:r,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:ms,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var i=Ds(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ps(this,i,C.OBSERVE,Ts,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:gs,info:{eventName:Ha(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,C.REFLECT,{fn:ys,info:{attrName:t}})}_createComputedProperty(e,t,i){var r=Ds(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Ps(this,r,C.COMPUTE,bs,e,i);ds(this,cs)[e]=t}_marshalArgs(a,s,l){const c=this.__data,u=[];for(let o=0,e=a.length;o<e;o++){let{name:e,structured:t,wildcard:i,value:r,literal:n}=a[o];if(!n)if(i){const a=$a(e,s),u=ks(c,l,a?s:e);r={path:a?s:e,value:u,base:a?Ba(c,e):u}}else r=t?ks(c,l,e):c[e];if(aa&&!this._overrideLegacyUndefined&&void 0===r&&1<a.length)return ls;u[o]=r}return u}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==i;if(!r)for(var n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if((i=Object.create(i)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=r)?r.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Fs.push(this);t=super._stampTemplate(t,e);if(Fs.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var i=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)i.push(e)}t.templateInfo=e;var r=this,{nodeList:n,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=n[e],l=a.bindings;if(l)for(let e=0;e<l.length;e++){var c=l[e],u=(f=m=h=p=d=u=void 0,s),d=c;if(d.isCompound){var p=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),h=d.parts,m=new Array(h.length);for(let e=0;e<h.length;e++)m[e]=h[e].literal;var f=d.target;p[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?w(u):u)[f]=d.literal)}Cs(s,r,c)}s.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:r}=e,n=(t?t.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<n.length;e++){var o=n[e];w(w(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let r=c._parseTemplateNode.call(this,e,t,i);var n;return e.nodeType===Node.TEXT_NODE&&(n=this._parseBindings(e.textContent,t))&&(e.textContent=$s(n)||" ",_s(this,t,i,"text","textContent",n),r=!0),r}static _parseTemplateNodeAttribute(r,n,o,a,e){var s=this._parseBindings(e,n);if(s){let e=a,t="property",i=(us.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),$s(s));return i&&"attribute"==t&&("class"==a&&r.hasAttribute("class")&&(i+=" "+r.getAttribute(a)),r.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(a,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(a=Ra(a)),_s(this,n,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,r,n,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let r=c._parseTemplateNestedTemplate.call(this,e,t,i);var n=e.parentNode,o=i.templateInfo,a="dom-if"===n.localName,s="dom-repeat"===n.localName,s=(la&&(a||s)&&(n.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,r=!1),o.hostProps);if(ca&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),la||(i.parentInfo.noted=!0));else for(var l in s)_s(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ms.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),i=l[3].trim(),r=!1,n="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(n=i.substring(o+2),i=i.substring(0,o),r=!0);var d=Ds(i),p=[];if(d){var{args:h,methodName:m}=d;for(let e=0;e<h.length;e++){var f=h[e];f.literal||p.push(f)}var g=s.dynamicFns;(g&&g[m]||d.static)&&(p.push(m),d.dynamicFn=!0)}else p.push(i);c.push({source:i,mode:e,negate:t,customEvent:r,signature:d,dependencies:p,event:n}),u=Ms.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,i,r,n,o){let a;return a=t.signature?Ts(e,i,r,0,t.signature):i!=t.source?Ba(e,t.source):o&&Aa(i)?Ba(e,i):e.__data[i],a=t.negate?!a:a}}}),Fs=[],Os=ha(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var i;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(i=t.properties)&&(e=function(e){var t,i={};for(t in e){var r=e[t];i[t]="function"==typeof r?{type:r}:r}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class r extends Xa(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=i(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,i(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),Rs=window.ShadyCSS&&window.ShadyCSS.cssBuild,Hs=ha(e=>{const r=Os(Ns(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):ra||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,r=t,t=e[t],n=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):i._createComputedProperty(r,t.computed,n)),t.readOnly&&!i._hasReadOnlyEffect(r)?i._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(r)?i._createReflectedProperty(r):!1===t.reflectToAttribute&&i._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!i._hasNotifyEffect(r)?i._createNotifyingProperty(r):!1===t.notify&&i._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&i._createPropertyObserver(r,t.observer,n[t.observer]),i._addPropertyToAttributeMap(r);var i,r,n}static createObservers(t,i){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],i)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||ta&&!ia||(t=va.import(e,"template"),!ta)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Xo(e.url):(e=va.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=Qo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,i=e._properties;for(t in i){var r=i[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var i=e[t];this._canApplyPropertyDefault(t)&&(i="function"==typeof i.value?i.value.call(this):i.value,this._hasAccessor(t)?this._setPendingProperty(t,i,!0):this[t]=i)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,n=this,o=t,a=e,s=i?qo(i):"";if(!Rs){var l=o.content.querySelectorAll("style"),c=Ta(o),u=(e=xa(a))?Ea(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=n._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let r=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=n._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),da&&Rs&&Jo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),n._styleSheet=new CSSStyleSheet,n._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=w(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=qo(this.importPath)),qo(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!na||t in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,i)}}}),zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ws(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function js(r,...e){Us(r,e);var t=document.createElement("template");let i=e.reduce((e,t,i)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ws(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[i+1],r[0]);return zs&&(i=zs.createHTML(i)),t.innerHTML=i,t}const Us=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Ys=Hs(HTMLElement);class Gs{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,i){var r=i["scrollLeft"];if("rtl"!==t||!e)return r;switch(e){case"negative":return i.scrollWidth-i.clientWidth+r;case"reverse":return i.scrollWidth-i.clientWidth-r;default:return r}}static setNormalizedScrollLeft(e,t,i,r){if("rtl"===t&&e)switch(e){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+r;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-r;break;default:i.scrollLeft=r}else i.scrollLeft=r}}const Vs=[];let qs;function Zs(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function Xs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Xs();Vs.forEach(e=>{Zs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ks=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}static finalize(){super.finalize(),qs=qs||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Zs(this,Xs(),null))}attributeChangedCallback(e,t,i){var r,n;super.attributeChangedCallback(e,t,i),"dir"===e&&(r=i===(e=Xs())&&-1===Vs.indexOf(this),n=!i&&t&&-1===Vs.indexOf(this),t=i!==e&&t===e,r||n?(this.__subscribe(),Zs(this,e,i)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Vs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){"dir"===i&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){Vs.includes(this)||Vs.push(this)}__unsubscribe(){Vs.includes(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e,t)}};class Js extends Bi(Ks(Ys)){static get is(){return"vaadin-input-container"}static get template(){return js`
504
504
  <style>
505
505
  :host {
506
506
  display: flex;
@@ -637,7 +637,7 @@
637
637
  opacity: 1;
638
638
  }
639
639
  }
640
- `;function Qs(e,t,i){return{index:e,removed:t,addedCount:i}}Ho("",Ii,{moduleId:"lumo-overlay"}),Ho("vaadin-overlay",Ii,{moduleId:"lumo-vaadin-overlay"});function el(e){return"slot"===e.localName}let tl=class{static getFlattenedNodes(e){var t=b(e);return el(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>el(e)?b(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){el(this._target)?this._listenSlots([this._target]):b(this._target).children&&(this._listenSlots(b(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){el(this._target)?this._unlistenSlots([this._target]):b(this._target).children&&(this._unlistenSlots(b(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,qa.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var i=t[e];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var r={target:this._target,addedNodes:[],removedNodes:[]},i=this.constructor.getFlattenedNodes(this._target),n=function(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,i=0,r=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,i,r){for(let e=0;e<r;e++)if(t[e]!==i[e])return e;return r}(c,p,r)),d==c.length&&m==p.length&&(i=function(e,t,i){let r=e.length,n=t.length,o=0;for(;o<i&&e[--r]===t[--n];)o++;return o}(c,p,r-e)),h+=e,m-=i,(d-=i)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=Qs(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[Qs(u,[],d-u)];var f=function(e){let t=e.length-1,i=e[0].length-1,r=e[t][i],n=[];for(;0<t||0<i;){var o,a,s,l;0==t?(n.push(2),i--):0==i?(n.push(3),t--):(o=e[t-1][i-1],(l=(a=e[t-1][i])<(s=e[t][i-1])?a<o?a:o:s<o?s:o)==o?(o==r?n.push(0):(n.push(1),r=o),t--,i--):r=l==a?(n.push(3),t--,a):(n.push(2),i--,s))}return n.reverse(),n}(function(i,r,n,o){var a,s,l=m-o+1,c=d-r+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(c),u[e][0]=e;for(let e=0;e<c;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<c;e++)i[r+e-1]===n[o+t-1]?u[t][e]=u[t-1][e-1]:(a=u[t-1][e]+1,s=u[t][e-1]+1,u[t][e]=a<s?a:s);return u}(c,u,p,h));t=void 0;let n=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case 0:t&&(n.push(t),t=void 0),o++,a++;break;case 1:(t=t||Qs(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case 2:(t=t||Qs(o,[],0)).addedCount++,o++;break;case 3:(t=t||Qs(o,[],0)).removed.push(p[a]),a++}return t&&n.push(t),n}}(i,this._effectiveNodes);for(let i,e=0;e<n.length&&(i=n[e]);e++)for(let e,t=0;t<i.removed.length&&(e=i.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<n.length&&(t=n[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(i[e]);this._effectiveNodes=i;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];el(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];el(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}},il=!1,rl=[],nl=[];function ol(){il=!0,requestAnimationFrame(function(){il=!1;for(var e=rl;e.length;)al(e.shift());setTimeout(function(){var i=nl;for(let e=0,t=i.length;e<t;e++)al(i.shift())})})}function al(e){var t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function sl(e,t,i){il||ol(),nl.push([e,t,i])}function ll(e,t,i,r,n){let o;n=(r=n&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:r)!==i&&(r==r||i==i);return o&&n&&(e.__dataTemp[t]=i),n}Ni=ha(e=>class extends e{_shouldPropertyChange(e,t,i){return ll(this,e,t,i,!0)}}),Fi=ha(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return ll(this,e,t,i,this.mutableData)}});Ni._mutablePropertyChange=ll;let cl=null;function ul(){return cl}ul.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ul,writable:!0}});const dl=Ns(ul),pl=Ni(dl);class hl extends Ns(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var i in e)this._setPendingProperty(i,e[i])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,i)}_showHideChildren(e){var t=e,i=this.children;for(let e=0;e<i.length;e++){var r=i[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),b(b(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(r,t)}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)}}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}hl.prototype.__dataHost,hl.prototype.__templatizeOptions,hl.prototype._methodHost,hl.prototype.__templatizeOwner,hl.prototype.__hostProps;const ml=Ni(hl);function fl(e){e=e.__dataHost;return e&&e._methodHost||e}function gl(e,t,i){let r=i.mutableData?ml:hl;var n,o=class extends(r=vl.mixin?vl.mixin(r):r){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(n in l.instanceProps){delete c[n];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(n,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,e,t,i[t])}}((n,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in c)s.hasHostProps||(s.hasHostProps=!0),a.prototype._addPropertyEffect(d,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}});return o}function yl(t,i,r,n){var o=r.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class n extends(r.mutableData?pl:dl){}e=i.templatizeTemplateClass=n}else{const r=t.constructor;class n extends r{}e=i.templatizeTemplateClass=n}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(na&&n){var l=r;const d=n.constructor._properties,p=i["propertyEffects"],h=l["instanceProps"];for(var c in p)if(!(d[c]||h&&h[c])){const l=p[c];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)r=e,cl=t,Object.setPrototypeOf(t,r.prototype),new r,cl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=i.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function vl(e,t,i){if(ta&&!fl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:hl)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=gl(e,r,i),r.templatizeInstanceClass=n);var o=fl(e),i=(yl(e,r,i,o),class extends n{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=r.hostProps,i}Ri=e=>e.test(navigator.userAgent),t=e=>e.test(navigator.platform);Ri(/Android/),Ri(/Chrome/)&&/Google Inc/.test(navigator.vendor);const bl=Ri(/Firefox/),wl=t(/^iPad/)||t(/^Mac/)&&1<navigator.maxTouchPoints,_l=t(/^iPhone/)||wl,xl=(Ri(/^((?!chrome|android).)*safari/i),(()=>{try{document.createEvent("TouchEvent")}catch(e){return}})(),ha(e=>class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}));function Cl(e){var t=e.length;if(t<2)return e;for(var i,r,t=Math.ceil(t/2),n=Cl(e.slice(0,t)),o=Cl(e.slice(t)),a=[];0<n.length&&0<o.length;)i=n[0],r=o[0],i=Math.max(i.tabIndex,0),r=Math.max(r.tabIndex,0),a.push(((0===i||0===r?i<r:r<i)?o:n).shift());return a.concat(n,o)}function Pl(e){return e.getRootNode().activeElement===e}const Tl=[];class Al{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Tl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Tl.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Tl).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,i=this.__focusedElementIndex,i=t[(t.length+i+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}get __focusableElements(){return function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(n=e.style).visibility||"none"===n.display||"hidden"===(n=window.getComputedStyle(e)).visibility||"none"===n.display)return!1;var r,n=e,e=!(r=e=n).matches('[tabindex="-1"]')&&(r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(r=e.getAttribute("tabindex")||0,Number(r)):-1;let o=0<e;0<=e&&i.push(n);return[..."slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children].forEach(e=>{o=t(e,i)||o}),o}(this.__trapNode,e=[])?Cl(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(Pl).pop())}}class El extends Bi(Ks(xl(Ys))){static get template(){return js`
640
+ `;function Qs(e,t,i){return{index:e,removed:t,addedCount:i}}Ho("",Ii,{moduleId:"lumo-overlay"}),Ho("vaadin-overlay",Ii,{moduleId:"lumo-vaadin-overlay"});function el(e){return"slot"===e.localName}let tl=class{static getFlattenedNodes(e){var t=w(e);return el(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>el(e)?w(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){el(this._target)?this._listenSlots([this._target]):w(this._target).children&&(this._listenSlots(w(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){el(this._target)?this._unlistenSlots([this._target]):w(this._target).children&&(this._unlistenSlots(w(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,qa.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var i=t[e];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var r={target:this._target,addedNodes:[],removedNodes:[]},i=this.constructor.getFlattenedNodes(this._target),n=function(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,i=0,r=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,i,r){for(let e=0;e<r;e++)if(t[e]!==i[e])return e;return r}(c,p,r)),d==c.length&&m==p.length&&(i=function(e,t,i){let r=e.length,n=t.length,o=0;for(;o<i&&e[--r]===t[--n];)o++;return o}(c,p,r-e)),h+=e,m-=i,(d-=i)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=Qs(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[Qs(u,[],d-u)];var f=function(e){let t=e.length-1,i=e[0].length-1,r=e[t][i],n=[];for(;0<t||0<i;){var o,a,s,l;0==t?(n.push(2),i--):0==i?(n.push(3),t--):(o=e[t-1][i-1],(l=(a=e[t-1][i])<(s=e[t][i-1])?a<o?a:o:s<o?s:o)==o?(o==r?n.push(0):(n.push(1),r=o),t--,i--):r=l==a?(n.push(3),t--,a):(n.push(2),i--,s))}return n.reverse(),n}(function(i,r,n,o){var a,s,l=m-o+1,c=d-r+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(c),u[e][0]=e;for(let e=0;e<c;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<c;e++)i[r+e-1]===n[o+t-1]?u[t][e]=u[t-1][e-1]:(a=u[t-1][e]+1,s=u[t][e-1]+1,u[t][e]=a<s?a:s);return u}(c,u,p,h));t=void 0;let n=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case 0:t&&(n.push(t),t=void 0),o++,a++;break;case 1:(t=t||Qs(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case 2:(t=t||Qs(o,[],0)).addedCount++,o++;break;case 3:(t=t||Qs(o,[],0)).removed.push(p[a]),a++}return t&&n.push(t),n}}(i,this._effectiveNodes);for(let i,e=0;e<n.length&&(i=n[e]);e++)for(let e,t=0;t<i.removed.length&&(e=i.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<n.length&&(t=n[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(i[e]);this._effectiveNodes=i;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];el(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];el(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}},il=!1,rl=[],nl=[];function ol(){il=!0,requestAnimationFrame(function(){il=!1;for(var e=rl;e.length;)al(e.shift());setTimeout(function(){var i=nl;for(let e=0,t=i.length;e<t;e++)al(i.shift())})})}function al(e){var t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function sl(e,t,i){il||ol(),nl.push([e,t,i])}function ll(e,t,i,r,n){let o;n=(r=n&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:r)!==i&&(r==r||i==i);return o&&n&&(e.__dataTemp[t]=i),n}Ni=ha(e=>class extends e{_shouldPropertyChange(e,t,i){return ll(this,e,t,i,!0)}}),Fi=ha(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return ll(this,e,t,i,this.mutableData)}});Ni._mutablePropertyChange=ll;let cl=null;function ul(){return cl}ul.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ul,writable:!0}});const dl=Ns(ul),pl=Ni(dl);class hl extends Ns(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var i in e)this._setPendingProperty(i,e[i])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,i)}_showHideChildren(e){var t=e,i=this.children;for(let e=0;e<i.length;e++){var r=i[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),w(w(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&w(w(t).parentNode).replaceChild(r,t)}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)}}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}hl.prototype.__dataHost,hl.prototype.__templatizeOptions,hl.prototype._methodHost,hl.prototype.__templatizeOwner,hl.prototype.__hostProps;const ml=Ni(hl);function fl(e){e=e.__dataHost;return e&&e._methodHost||e}function gl(e,t,i){let r=i.mutableData?ml:hl;var n,o=class extends(r=vl.mixin?vl.mixin(r):r){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(n in l.instanceProps){delete c[n];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(n,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,e,t,i[t])}}((n,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in c)s.hasHostProps||(s.hasHostProps=!0),a.prototype._addPropertyEffect(d,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}});return o}function yl(t,i,r,n){var o=r.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class n extends(r.mutableData?pl:dl){}e=i.templatizeTemplateClass=n}else{const r=t.constructor;class n extends r{}e=i.templatizeTemplateClass=n}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(na&&n){var l=r;const d=n.constructor._properties,p=i["propertyEffects"],h=l["instanceProps"];for(var c in p)if(!(d[c]||h&&h[c])){const l=p[c];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)r=e,cl=t,Object.setPrototypeOf(t,r.prototype),new r,cl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=i.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function vl(e,t,i){if(ta&&!fl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:hl)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=gl(e,r,i),r.templatizeInstanceClass=n);var o=fl(e),i=(yl(e,r,i,o),class extends n{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=r.hostProps,i}Ri=e=>e.test(navigator.userAgent),t=e=>e.test(navigator.platform);Ri(/Android/),Ri(/Chrome/)&&/Google Inc/.test(navigator.vendor);const wl=Ri(/Firefox/),bl=t(/^iPad/)||t(/^Mac/)&&1<navigator.maxTouchPoints,_l=t(/^iPhone/)||bl,xl=(Ri(/^((?!chrome|android).)*safari/i),(()=>{try{document.createEvent("TouchEvent")}catch(e){return}})(),ha(e=>class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}));function Cl(e){var t=e.length;if(t<2)return e;for(var i,r,t=Math.ceil(t/2),n=Cl(e.slice(0,t)),o=Cl(e.slice(t)),a=[];0<n.length&&0<o.length;)i=n[0],r=o[0],i=Math.max(i.tabIndex,0),r=Math.max(r.tabIndex,0),a.push(((0===i||0===r?i<r:r<i)?o:n).shift());return a.concat(n,o)}function Pl(e){return e.getRootNode().activeElement===e}const Tl=[];class El{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Tl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Tl.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Tl).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,i=this.__focusedElementIndex,i=t[(t.length+i+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}get __focusableElements(){return function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(n=e.style).visibility||"none"===n.display||"hidden"===(n=window.getComputedStyle(e)).visibility||"none"===n.display)return!1;var r,n=e,e=!(r=e=n).matches('[tabindex="-1"]')&&(r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(r=e.getAttribute("tabindex")||0,Number(r)):-1;let o=0<e;0<=e&&i.push(n);return[..."slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children].forEach(e=>{o=t(e,i)||o}),o}(this.__trapNode,e=[])?Cl(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(Pl).pop())}}class Al extends Bi(Ks(xl(Ys))){static get template(){return js`
641
641
  <style>
642
642
  :host {
643
643
  z-index: 200;
@@ -709,7 +709,7 @@
709
709
  <slot></slot>
710
710
  </div>
711
711
  </div>
712
- `}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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),this._observer=new tl(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),_l&&(this._boundIosResizeListener=()=>this._detectIosNavbar()),this.__focusTrapController=new Al(this)}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addController(this.__focusTrapController)}_detectIosNavbar(){var e,t,i;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight,t&&e<i?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}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.content,this.owner,this.model)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._last&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),sl(this,()=>{this.focusTrap&&this.__focusTrapController.trapFocus(this.$.overlay);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this.focusTrap&&this.__focusTrapController.releaseFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_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(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;var e;this.restoreFocusOnClose&&t&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||setTimeout(()=>t.focus()),this.__restoreFocusNode=null),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)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof El&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===El.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),El.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=El.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(e){this._removeOldContent(),e._Templatizer||(e._Templatizer=vl(e,this,{forwardHostProp(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new e._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const t=e._templateRoot||(e._templateRoot=e.getRootNode());if(t!==document){this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(t.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(e=e.replace(/:host/g,":host-nomatch")){const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,i,r){e!==t?this.template=void 0:i!==r&&(this.renderer=void 0)}_templateOrRendererChanged(e,t,i,r,n){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var o=this._oldOwner!==i||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=i,this._oldTemplate!==e),i=(this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==n);this._oldOpened=n,i&&((this.content=this).content.innerHTML="",delete this.content._$litPart$),e&&r?this._stampOverlayTemplate(e):t&&(i||a||o)&&n&&this.requestContentUpdate()}_getActiveElement(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var i=e.ownerDocument;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=El.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(El.is,El);ki=a`
712
+ `}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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),this._observer=new tl(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),_l&&(this._boundIosResizeListener=()=>this._detectIosNavbar()),this.__focusTrapController=new El(this)}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addController(this.__focusTrapController)}_detectIosNavbar(){var e,t,i;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight,t&&e<i?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}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.content,this.owner,this.model)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._last&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),sl(this,()=>{this.focusTrap&&this.__focusTrapController.trapFocus(this.$.overlay);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this.focusTrap&&this.__focusTrapController.releaseFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_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(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;var e;this.restoreFocusOnClose&&t&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||setTimeout(()=>t.focus()),this.__restoreFocusNode=null),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)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof Al&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===Al.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Al.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=Al.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(e){this._removeOldContent(),e._Templatizer||(e._Templatizer=vl(e,this,{forwardHostProp(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new e._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const t=e._templateRoot||(e._templateRoot=e.getRootNode());if(t!==document){this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(t.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(e=e.replace(/:host/g,":host-nomatch")){const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,i,r){e!==t?this.template=void 0:i!==r&&(this.renderer=void 0)}_templateOrRendererChanged(e,t,i,r,n){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var o=this._oldOwner!==i||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=i,this._oldTemplate!==e),i=(this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==n);this._oldOpened=n,i&&((this.content=this).content.innerHTML="",delete this.content._$litPart$),e&&r?this._stampOverlayTemplate(e):t&&(i||a||o)&&n&&this.requestContentUpdate()}_getActiveElement(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var i=e.ownerDocument;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=Al.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(Al.is,Al);ki=a`
713
713
  :host([opening]),
714
714
  :host([closing]) {
715
715
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -1102,7 +1102,7 @@
1102
1102
  margin-left: 0;
1103
1103
  margin-right: 0;
1104
1104
  }
1105
- `,{moduleId:"lumo-button"});const Ll=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ml=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function $l(e,t){if("function"==typeof e){var i=Ll.exec(e.toString());if(i)try{e=new Function(i[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function Dl(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(Ml?!(Ml&&0<Object.keys(Ml).map(e=>Ml[e]).filter(e=>e.productionMode).length):!$l(function(){return!0}))}catch(e){return!1}}());let Sl=0,kl=0;const Bl=[];let Il=0,Nl=!1;const Fl=document.createTextNode(""),Ol=(new window.MutationObserver(function(){Nl=!1;const t=Bl.length;for(let e=0;e<t;e++){const t=Bl[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}Bl.splice(0,t),kl+=t}).observe(Fl,{characterData:!0}),{after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),Rl={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Hl={run(e){Nl||(Nl=!0,Fl.textContent=Il,Il+=1),Bl.push(e);e=Sl;return Sl+=1,e},cancel(e){var t=e-kl;if(0<=t){if(!Bl[t])throw new Error("invalid async handle: "+e);Bl[t]=null}}};class zl{static debounce(e,t,i){return e instanceof zl?e._cancelAsync():e=new zl,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,jl.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),jl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let Wl,jl=new Set;window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=Dl,t=void 0;if(window.Vaadin.developmentMode)$l(e,t)};const Ul=new Set,Yl=e=>class extends Ks(e){static get version(){return"23.1.16"}static finalize(){super.finalize();var e=this["is"];e&&!Ul.has(e)&&(window.Vaadin.registrations.push(this),Ul.add(e),window.Vaadin.developmentModeCallback)&&(e=Wl=zl.debounce(Wl,Rl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),jl.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}},Gl=ha(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),Vl=!1,ql=e=>e,Zl="string"==typeof document.head.style.touchAction,Xl="__polymerGestures",Kl="__polymerGesturesHandled",Jl="__polymerGesturesTouchAction",Ql=["mousedown","mousemove","mouseup","click"],ec=[0,1,4,2],tc=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ic(e){return-1<Ql.indexOf(e)}let rc=!1;try{var nc=Object.defineProperty({},"passive",{get(){rc=!0}});window.addEventListener("test",null,nc),window.removeEventListener("test",null,nc)}catch(e){}const oc=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),ac={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function sc(t){var e=t.type;if(ic(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!tc&&(e=ec[t.which]||0),Boolean(1&e)}}}const lc={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cc(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function uc(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const dc=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],pc={},hc=[];function mc(e){var t=dc(e);return 0<t.length?t[0]:e.target}function fc(i){const r=i.type,e=i.currentTarget[Xl];if(e){var n=e[r];if(n){if(!i[Kl]&&(i[Kl]={},"touch"===r.slice(0,5))){const e=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(lc.touch.id=e.identifier),lc.touch.id!==e.identifier)return;if(!(Zl||"touchstart"!==r&&"touchmove"!==r)){var t=i;const l=t.changedTouches[0],c=t.type;if("touchstart"===c)lc.touch.x=l.clientX,lc.touch.y=l.clientY,lc.touch.scrollDecided=!1;else if("touchmove"===c&&!lc.touch.scrollDecided){lc.touch.scrollDecided=!0;const c=function(e){let i="auto";var r=dc(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[Jl]){i=e[Jl];break}return i}(t);let e=!1;var o=Math.abs(lc.touch.x-l.clientX),a=Math.abs(lc.touch.y-l.clientY);t.cancelable&&("none"===c?e=!0:"pan-x"===c?e=o<a:"pan-y"===c&&(e=a<o)),e?t.preventDefault():wc("track")}}}var s=i[Kl];if(!s.skip){for(let e,t=0;t<hc.length;t++)n[(e=hc[t]).name]&&!s[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<hc.length;t++)n[(e=hc[t]).name]&&!s[e.name]&&(s[e.name]=!0,e[r](i))}}}}function gc(e,t,i){if(pc[t]){var n,o=e,e=t,t=i,i=pc[e],a=i.deps,s=i.name;let r=o[Xl];r||(o[Xl]=r={});for(let e,t,i=0;i<a.length;i++)e=a[i],oc&&ic(e)&&"click"!==e||((t=r[e])||(r[e]=t={_count:0}),0===t._count&&o.addEventListener(e,fc,!ic(n=e)&&"touchend"!==n&&Zl&&rc&&Vl?{passive:!0}:void 0),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),i.touchAction&&vc(o,i.touchAction)}}function yc(t){hc.push(t);for(let e=0;e<t.emits.length;e++)pc[t.emits[e]]=t}function vc(e,t){Zl&&e instanceof HTMLElement&&Hl.run(()=>{e.style.touchAction=t}),e[Jl]=t}function bc(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=i,ql(e).dispatchEvent(t),t.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function wc(e){e=function(i){for(let t,e=0;e<hc.length;e++){t=hc[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===i)return t}return null}(e);e.info&&(e.info.prevent=!0)}function _c(e,t,i,r){t&&bc(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>wc(e)})}function xc(e,t,i){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-i),5<=t)||5<=e)}function Cc(i,r,n){if(r){var o=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],s=a.x-i.x,l=a.y-i.y;let e,t=0;o&&(e=a.x-o.x,t=a.y-o.y),bc(r,"track",{state:i.state,x:n.clientX,y:n.clientY,dx:s,dy:l,ddx:e,ddy:t,sourceEvent:n,hover:()=>{{var i=n.clientX,r=n.clientY;let e=document.elementFromPoint(i,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,r)))break;t&&(e=t)}return e}}})}}function Pc(e,t,i){var r,n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=mc(i||t);!a||ac[a.localName]&&a.hasAttribute("disabled")||!(isNaN(n)||isNaN(o)||n<=25&&o<=25)&&("click"!==(n=t).type||0!==n.detail&&(o=mc(n)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),r=n.pageX,n=n.pageY,r>=o.left)&&r<=o.right&&n>=o.top&&n<=o.bottom)||e.prevent||bc(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}yc({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){uc(this.info)},mousedown(e){if(sc(e)){const t=mc(e),i=this;cc(this.info,e=>{sc(e)||(_c("up",t,e),uc(i.info))},e=>{sc(e)&&_c("up",t,e),uc(i.info)}),_c("down",t,e)}},touchstart(e){_c("down",mc(e),e.changedTouches[0],e)},touchend(e){_c("up",mc(e),e.changedTouches[0],e)}}),yc({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,uc(this.info)},mousedown(e){if(sc(e)){const r=mc(e),n=this,t=e=>{var t=e.clientX,i=e.clientY;xc(n.info,t,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&wc("tap"),n.info.addMove({x:t,y:i}),sc(e)||(n.info.state="end",uc(n.info)),r&&Cc(n.info,r,e),n.info.started=!0)};cc(this.info,t,e=>{n.info.started&&t(e),uc(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=mc(e),e=e.changedTouches[0],i=e.clientX,r=e.clientY;xc(this.info,i,r)&&("start"===this.info.state&&wc("tap"),this.info.addMove({x:i,y:r}),Cc(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=mc(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Cc(this.info,t,e))}}),yc({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){sc(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){sc(e)&&Pc(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){Pc(this.info,e.changedTouches[0],e)}});const Tc=ha(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let Ac=!1;window.addEventListener("keydown",()=>{Ac=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ac=!1},{capture:!0});const Ec=ha(e=>class extends e{get _keyboardActive(){return Ac}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),Lc=e=>class extends Gl(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},Mc=e=>{return class extends(e=Lc(Ec(e)),class extends Gl(Tc(e)){get _activeKeys(){return[" "]}ready(){super.ready(),gc(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),gc(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{value:0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};class $c extends Mc(Yl(Bi(Ys))){static get is(){return"vaadin-button"}static get template(){return js`
1105
+ `,{moduleId:"lumo-button"});const Ll=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ml=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function $l(e,t){if("function"==typeof e){var i=Ll.exec(e.toString());if(i)try{e=new Function(i[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function Dl(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(Ml?!(Ml&&0<Object.keys(Ml).map(e=>Ml[e]).filter(e=>e.productionMode).length):!$l(function(){return!0}))}catch(e){return!1}}());let Sl=0,kl=0;const Bl=[];let Il=0,Nl=!1;const Fl=document.createTextNode(""),Ol=(new window.MutationObserver(function(){Nl=!1;const t=Bl.length;for(let e=0;e<t;e++){const t=Bl[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}Bl.splice(0,t),kl+=t}).observe(Fl,{characterData:!0}),{after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),Rl={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Hl={run(e){Nl||(Nl=!0,Fl.textContent=Il,Il+=1),Bl.push(e);e=Sl;return Sl+=1,e},cancel(e){var t=e-kl;if(0<=t){if(!Bl[t])throw new Error("invalid async handle: "+e);Bl[t]=null}}};class zl{static debounce(e,t,i){return e instanceof zl?e._cancelAsync():e=new zl,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,jl.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),jl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let Wl,jl=new Set;window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=Dl,t=void 0;if(window.Vaadin.developmentMode)$l(e,t)};const Ul=new Set,Yl=e=>class extends Ks(e){static get version(){return"23.1.16"}static finalize(){super.finalize();var e=this["is"];e&&!Ul.has(e)&&(window.Vaadin.registrations.push(this),Ul.add(e),window.Vaadin.developmentModeCallback)&&(e=Wl=zl.debounce(Wl,Rl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),jl.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}},Gl=ha(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),Vl=!1,ql=e=>e,Zl="string"==typeof document.head.style.touchAction,Xl="__polymerGestures",Kl="__polymerGesturesHandled",Jl="__polymerGesturesTouchAction",Ql=["mousedown","mousemove","mouseup","click"],ec=[0,1,4,2],tc=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ic(e){return-1<Ql.indexOf(e)}let rc=!1;try{var nc=Object.defineProperty({},"passive",{get(){rc=!0}});window.addEventListener("test",null,nc),window.removeEventListener("test",null,nc)}catch(e){}const oc=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),ac={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function sc(t){var e=t.type;if(ic(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!tc&&(e=ec[t.which]||0),Boolean(1&e)}}}const lc={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cc(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function uc(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const dc=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],pc={},hc=[];function mc(e){var t=dc(e);return 0<t.length?t[0]:e.target}function fc(i){const r=i.type,e=i.currentTarget[Xl];if(e){var n=e[r];if(n){if(!i[Kl]&&(i[Kl]={},"touch"===r.slice(0,5))){const e=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(lc.touch.id=e.identifier),lc.touch.id!==e.identifier)return;if(!(Zl||"touchstart"!==r&&"touchmove"!==r)){var t=i;const l=t.changedTouches[0],c=t.type;if("touchstart"===c)lc.touch.x=l.clientX,lc.touch.y=l.clientY,lc.touch.scrollDecided=!1;else if("touchmove"===c&&!lc.touch.scrollDecided){lc.touch.scrollDecided=!0;const c=function(e){let i="auto";var r=dc(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[Jl]){i=e[Jl];break}return i}(t);let e=!1;var o=Math.abs(lc.touch.x-l.clientX),a=Math.abs(lc.touch.y-l.clientY);t.cancelable&&("none"===c?e=!0:"pan-x"===c?e=o<a:"pan-y"===c&&(e=a<o)),e?t.preventDefault():bc("track")}}}var s=i[Kl];if(!s.skip){for(let e,t=0;t<hc.length;t++)n[(e=hc[t]).name]&&!s[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<hc.length;t++)n[(e=hc[t]).name]&&!s[e.name]&&(s[e.name]=!0,e[r](i))}}}}function gc(e,t,i){if(pc[t]){var n,o=e,e=t,t=i,i=pc[e],a=i.deps,s=i.name;let r=o[Xl];r||(o[Xl]=r={});for(let e,t,i=0;i<a.length;i++)e=a[i],oc&&ic(e)&&"click"!==e||((t=r[e])||(r[e]=t={_count:0}),0===t._count&&o.addEventListener(e,fc,!ic(n=e)&&"touchend"!==n&&Zl&&rc&&Vl?{passive:!0}:void 0),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),i.touchAction&&vc(o,i.touchAction)}}function yc(t){hc.push(t);for(let e=0;e<t.emits.length;e++)pc[t.emits[e]]=t}function vc(e,t){Zl&&e instanceof HTMLElement&&Hl.run(()=>{e.style.touchAction=t}),e[Jl]=t}function wc(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=i,ql(e).dispatchEvent(t),t.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function bc(e){e=function(i){for(let t,e=0;e<hc.length;e++){t=hc[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===i)return t}return null}(e);e.info&&(e.info.prevent=!0)}function _c(e,t,i,r){t&&wc(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>bc(e)})}function xc(e,t,i){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-i),5<=t)||5<=e)}function Cc(i,r,n){if(r){var o=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],s=a.x-i.x,l=a.y-i.y;let e,t=0;o&&(e=a.x-o.x,t=a.y-o.y),wc(r,"track",{state:i.state,x:n.clientX,y:n.clientY,dx:s,dy:l,ddx:e,ddy:t,sourceEvent:n,hover:()=>{{var i=n.clientX,r=n.clientY;let e=document.elementFromPoint(i,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,r)))break;t&&(e=t)}return e}}})}}function Pc(e,t,i){var r,n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=mc(i||t);!a||ac[a.localName]&&a.hasAttribute("disabled")||!(isNaN(n)||isNaN(o)||n<=25&&o<=25)&&("click"!==(n=t).type||0!==n.detail&&(o=mc(n)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),r=n.pageX,n=n.pageY,r>=o.left)&&r<=o.right&&n>=o.top&&n<=o.bottom)||e.prevent||wc(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}yc({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){uc(this.info)},mousedown(e){if(sc(e)){const t=mc(e),i=this;cc(this.info,e=>{sc(e)||(_c("up",t,e),uc(i.info))},e=>{sc(e)&&_c("up",t,e),uc(i.info)}),_c("down",t,e)}},touchstart(e){_c("down",mc(e),e.changedTouches[0],e)},touchend(e){_c("up",mc(e),e.changedTouches[0],e)}}),yc({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,uc(this.info)},mousedown(e){if(sc(e)){const r=mc(e),n=this,t=e=>{var t=e.clientX,i=e.clientY;xc(n.info,t,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&bc("tap"),n.info.addMove({x:t,y:i}),sc(e)||(n.info.state="end",uc(n.info)),r&&Cc(n.info,r,e),n.info.started=!0)};cc(this.info,t,e=>{n.info.started&&t(e),uc(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=mc(e),e=e.changedTouches[0],i=e.clientX,r=e.clientY;xc(this.info,i,r)&&("start"===this.info.state&&bc("tap"),this.info.addMove({x:i,y:r}),Cc(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=mc(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Cc(this.info,t,e))}}),yc({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){sc(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){sc(e)&&Pc(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){Pc(this.info,e.changedTouches[0],e)}});const Tc=ha(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let Ec=!1;window.addEventListener("keydown",()=>{Ec=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ec=!1},{capture:!0});const Ac=ha(e=>class extends e{get _keyboardActive(){return Ec}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),Lc=e=>class extends Gl(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},Mc=e=>{return class extends(e=Lc(Ac(e)),class extends Gl(Tc(e)){get _activeKeys(){return[" "]}ready(){super.ready(),gc(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),gc(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{value:0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};class $c extends Mc(Yl(Bi(Ys))){static get is(){return"vaadin-button"}static get template(){return js`
1106
1106
  <style>
1107
1107
  :host {
1108
1108
  display: inline-block;
@@ -1818,7 +1818,7 @@
1818
1818
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1819
1819
  --_lumo-text-field-overflow-mask-image: none;
1820
1820
  }
1821
- `],{moduleId:"lumo-date-picker"});const Dc="disable-upgrade",Sc=ha(e=>{e=Hs(e);let t=(e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]})(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Dc)}_initializeProperties(){this.hasAttribute(Dc)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,i,r){e==Dc?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,i,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),kc={start:"top",end:"bottom"},Bc={start:"left",end:"right"},Ic=a`
1821
+ `],{moduleId:"lumo-date-picker"});const Dc="disable-upgrade",Sc=ha(e=>{e=Hs(e);let t=(e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]})(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Dc)}_initializeProperties(){this.hasAttribute(Dc)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,i,r){e==Dc?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,w(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,i,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),kc={start:"top",end:"bottom"},Bc={start:"left",end:"right"},Ic=a`
1822
1822
  :host([dir='rtl']) [part='input-field'] {
1823
1823
  direction: ltr;
1824
1824
  }
@@ -1836,7 +1836,7 @@
1836
1836
  [part~='content'] {
1837
1837
  flex: auto;
1838
1838
  }
1839
- `,{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends Sc((t=El,class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap)","__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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),t&&e&&this.__addUpdatePositionEventListeners(),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}get __isRTL(){return"rtl"===this.getAttribute("dir")}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,i,r,n,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",t=this.__shouldAlignStartHorizontally(o,this.__isRTL),i=!this.__isRTL&&t||this.__isRTL&&!t,this.style.alignItems=i?"flex-start":"flex-end",r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(o,r,this.noVerticalOverlap,kc,this,e),o=this.__calculatePositionInOneDimension(o,r,this.noHorizontalOverlap,Bc,this,t),Object.assign(this.style,n,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i))}__shouldAlignStartHorizontally(e,t){var i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),r=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,r,this.__margins,t,this.noHorizontalOverlap,Bc)}__shouldAlignStartVertically(e){var t=Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),i=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),r="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,kc)}__shouldAlignStart(e,t,i,r,n,o,a){i=i-e[o?a.end:a.start]-r[a.end],e=e[o?a.start:a.end]-r[a.start],o=n?i:e;return n===((n?e:i)<o||t<o)}__calculatePositionInOneDimension(e,t,i,r,n,o){var a=o?r.start:r.end,s=o?r.end:r.start;return{[a]:parseFloat(n.style[a]||getComputedStyle(n)[a])+(t[o?r.start:r.end]-e[i===o?r.end:r.start])*(o?-1:1)+"px",[s]:""}}})){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Nc||(Nc=super.template.cloneNode(!0)).content.querySelector('[part~="overlay"]').removeAttribute("tabindex"),Nc}}customElements.define(Fc.is,Fc);class Oc{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Rc.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rc.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof Oc?e._cancelAsync():e=new Oc,e.setConfig(t,i),e}}let Rc=new Set;let Hc=!1;class zc extends Fi(Ys){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:!ua,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(),ra&&!Ko?Hc||(Hc=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=b(b(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=vl(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,r){var n=this.__instances;for(let e,t=0;t<n.length&&(e=n[t]);t++)e.forwardHostProp(i,r)},notifyInstanceProp:function(e,t,i){var r,n;((r=this.as)===(n=t)||Ma(r,n)||$a(r,n))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=i),n=Da(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(n,i))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if("string"!=typeof i)return i;{let e=i,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var i=this.__observePaths;for(let e=0;e<i.length;e++)0===t.indexOf(i[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Oc.debounce(this.__renderDebouncer,0<t?Va.after(t):qa,e.bind(this)),t=this.__renderDebouncer,Rc.add(t)}render(){this.__debounceRender(this.__render);for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(Rc.size),Rc.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}__render(){var e,t,i;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length),this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ua&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(r[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let i=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),i=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=i<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,i}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){var r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){var o=this.__instances[n],a=i[n],s=e[a];r[a]=n,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,n,a)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],i=b(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];i.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){e=this.__stampInstance(e,t,i),i=this.__instances[t+1],i=i?i.children[0]:this;return b(b(this).parentNode).insertBefore(e.root,i),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),i=e.indexOf("."),r=i<0?e:e.substring(0,i);if(r==parseInt(r,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[r],(r=this.__instances[i])&&(i=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(i,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,i=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==i)return t;r=t.__dataHost}else r=b(r).parentNode;return null}}function Wc(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jc(e,t,i){return(!t||t<=e)&&(!i||e<=i)}function Uc(i,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(i.getTime()-t.getTime())<Math.abs(e.getTime()-i.getTime()))?t:e)}function Yc(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}customElements.define(zc.is,zc);class Gc extends Ec(Bi(Ys)){static get template(){return js`
1839
+ `,{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends Sc((t=Al,class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap)","__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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),t&&e&&this.__addUpdatePositionEventListeners(),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}get __isRTL(){return"rtl"===this.getAttribute("dir")}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,i,r,n,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",t=this.__shouldAlignStartHorizontally(o,this.__isRTL),i=!this.__isRTL&&t||this.__isRTL&&!t,this.style.alignItems=i?"flex-start":"flex-end",r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(o,r,this.noVerticalOverlap,kc,this,e),o=this.__calculatePositionInOneDimension(o,r,this.noHorizontalOverlap,Bc,this,t),Object.assign(this.style,n,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i))}__shouldAlignStartHorizontally(e,t){var i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),r=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,r,this.__margins,t,this.noHorizontalOverlap,Bc)}__shouldAlignStartVertically(e){var t=Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),i=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),r="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,kc)}__shouldAlignStart(e,t,i,r,n,o,a){i=i-e[o?a.end:a.start]-r[a.end],e=e[o?a.start:a.end]-r[a.start],o=n?i:e;return n===((n?e:i)<o||t<o)}__calculatePositionInOneDimension(e,t,i,r,n,o){var a=o?r.start:r.end,s=o?r.end:r.start;return{[a]:parseFloat(n.style[a]||getComputedStyle(n)[a])+(t[o?r.start:r.end]-e[i===o?r.end:r.start])*(o?-1:1)+"px",[s]:""}}})){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Nc||(Nc=super.template.cloneNode(!0)).content.querySelector('[part~="overlay"]').removeAttribute("tabindex"),Nc}}customElements.define(Fc.is,Fc);class Oc{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Rc.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rc.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof Oc?e._cancelAsync():e=new Oc,e.setConfig(t,i),e}}let Rc=new Set;let Hc=!1;class zc extends Fi(Ys){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:!ua,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(),ra&&!Ko?Hc||(Hc=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=w(w(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=vl(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,r){var n=this.__instances;for(let e,t=0;t<n.length&&(e=n[t]);t++)e.forwardHostProp(i,r)},notifyInstanceProp:function(e,t,i){var r,n;((r=this.as)===(n=t)||Ma(r,n)||$a(r,n))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=i),n=Da(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(n,i))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if("string"!=typeof i)return i;{let e=i,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var i=this.__observePaths;for(let e=0;e<i.length;e++)0===t.indexOf(i[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Oc.debounce(this.__renderDebouncer,0<t?Va.after(t):qa,e.bind(this)),t=this.__renderDebouncer,Rc.add(t)}render(){this.__debounceRender(this.__render);for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(Rc.size),Rc.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}__render(){var e,t,i;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length),this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ua&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(r[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let i=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),i=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=i<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,i}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){var r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){var o=this.__instances[n],a=i[n],s=e[a];r[a]=n,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,n,a)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],i=w(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];i.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){e=this.__stampInstance(e,t,i),i=this.__instances[t+1],i=i?i.children[0]:this;return w(w(this).parentNode).insertBefore(e.root,i),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),i=e.indexOf("."),r=i<0?e:e.substring(0,i);if(r==parseInt(r,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[r],(r=this.__instances[i])&&(i=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(i,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,i=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==i)return t;r=t.__dataHost}else r=w(r).parentNode;return null}}function Wc(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jc(e,t,i){return(!t||t<=e)&&(!i||e<=i)}function Uc(i,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(i.getTime()-t.getTime())<Math.abs(e.getTime()-i.getTime()))?t:e)}function Yc(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}customElements.define(zc.is,zc);class Gc extends Ac(Bi(Ys)){static get template(){return js`
1840
1840
  <style>
1841
1841
  :host {
1842
1842
  display: block;
@@ -1986,7 +1986,7 @@
1986
1986
  <div class="buffer"></div>
1987
1987
  <div id="fullHeight"></div>
1988
1988
  </div>
1989
- `}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=Array.prototype.slice.call(this.root.querySelectorAll(".buffer")),this.$.fullHeight.style.height=2*this._initialScroll+"px";var e=this.querySelector("template");this._TemplateClass=vl(e,this,{forwardHostProp(t,i){"index"!==t&&this._buffers.forEach(e=>{[].forEach.call(e.children,e=>{e._itemWrapper.instance[t]=i})})}}),bl&&(this.$.scroller.tabIndex=-1)}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_activated(e){e&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[].forEach.call(e.children,e=>this._ensureStampedInstance(e._itemWrapper))},this),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,i;this._scrollDisabled||(((i=this.$.scroller.scrollTop)<this._bufferHeight||i>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=i>this._buffers[1].translateY+e,i=i<this._buffers[0].translateY+e,(t||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=zl.debounce(this._debouncerScrollFinish,Ol.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(this.position=this.position)}))}get bufferOffset(){return this._buffers[0].offsetTop}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+2*this.bufferSize?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))}get itemHeight(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=zl.debounce(this._debouncerUpdateClones,Ol.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const o=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){const n=document.createElement("div");n.style.height=this.itemHeight+"px",n.instance={};var i="vaadin-infinite-scroller-item-content-"+(Vc._contentIndex=Vc._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",i),r._itemWrapper=n,t.appendChild(r),n.setAttribute("slot",i),this.appendChild(n),setTimeout(()=>{this._isVisible(n,o)&&this._ensureStampedInstance(n)},1)}},this),setTimeout(()=>{sl(this,this._finishInit.bind(this))},1)}_ensureStampedInstance(t){if(!t.firstElementChild){const i=t.instance;t.instance=new this._TemplateClass({}),t.appendChild(t.instance.root),Object.keys(i).forEach(e=>{t.instance.set(e,i[e])})}}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const i=this._firstIndex+this.bufferSize*t;[].forEach.call(e.children,(e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,n)||(e.instance.index=i+t)}),e.updated=!0}},this)}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}customElements.define(Vc.is,Vc);class qc{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){"function"==typeof this.callback&&this.callback(e.matches)}}class Zc extends xl(Bi(Ks(Ys))){static get template(){return js`
1989
+ `}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=Array.prototype.slice.call(this.root.querySelectorAll(".buffer")),this.$.fullHeight.style.height=2*this._initialScroll+"px";var e=this.querySelector("template");this._TemplateClass=vl(e,this,{forwardHostProp(t,i){"index"!==t&&this._buffers.forEach(e=>{[].forEach.call(e.children,e=>{e._itemWrapper.instance[t]=i})})}}),wl&&(this.$.scroller.tabIndex=-1)}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_activated(e){e&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[].forEach.call(e.children,e=>this._ensureStampedInstance(e._itemWrapper))},this),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,i;this._scrollDisabled||(((i=this.$.scroller.scrollTop)<this._bufferHeight||i>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=i>this._buffers[1].translateY+e,i=i<this._buffers[0].translateY+e,(t||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=zl.debounce(this._debouncerScrollFinish,Ol.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(this.position=this.position)}))}get bufferOffset(){return this._buffers[0].offsetTop}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+2*this.bufferSize?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))}get itemHeight(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=zl.debounce(this._debouncerUpdateClones,Ol.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const o=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){const n=document.createElement("div");n.style.height=this.itemHeight+"px",n.instance={};var i="vaadin-infinite-scroller-item-content-"+(Vc._contentIndex=Vc._contentIndex+1||0),r=document.createElement("slot");r.setAttribute("name",i),r._itemWrapper=n,t.appendChild(r),n.setAttribute("slot",i),this.appendChild(n),setTimeout(()=>{this._isVisible(n,o)&&this._ensureStampedInstance(n)},1)}},this),setTimeout(()=>{sl(this,this._finishInit.bind(this))},1)}_ensureStampedInstance(t){if(!t.firstElementChild){const i=t.instance;t.instance=new this._TemplateClass({}),t.appendChild(t.instance.root),Object.keys(i).forEach(e=>{t.instance.set(e,i[e])})}}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const i=this._firstIndex+this.bufferSize*t;[].forEach.call(e.children,(e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,n)||(e.instance.index=i+t)}),e.updated=!0}},this)}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}customElements.define(Vc.is,Vc);class qc{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){"function"==typeof this.callback&&this.callback(e.matches)}}class Zc extends xl(Bi(Ks(Ys))){static get template(){return js`
1990
1990
  <style>
1991
1991
  :host {
1992
1992
  display: flex;
@@ -2188,7 +2188,7 @@
2188
2188
  [[i18n.cancel]]
2189
2189
  </vaadin-button>
2190
2190
  </div>
2191
- `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return"rtl"===this.getAttribute("dir")}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")].map(e=>e.focusableDateElement).find(Boolean)}ready(){super.ready(),this.setAttribute("role","dialog"),gc(this,"tap",this._stopPropagation),gc(this.$.scrollers,"track",this._track.bind(this)),gc(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),gc(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this)),gc(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this)),gc(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),gc(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this)),gc(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this)),this.addController(new qc(this._desktopMediaQuery,e=>{this._desktopMode=e}))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),vc(this.$.scrollers,"pan-y")}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){var i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this.$.monthScroller.forceUpdate()}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e,t=!0){if(e){var i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);void this._scrollToPosition(i+r,t)}else{const r=this.$.monthScroller.position>i,n=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-2*this.$.monthScroller.bufferOffset)/this.$.monthScroller.itemHeight,o=this.$.monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=zl.debounce(this._debouncer,Ol.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,i){return e?t(Yc(e)):i}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight,this._scrollToPosition(this.$.monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){this._targetPosition=e;let o=0;const a=this.$.monthScroller.position,s=e=>{var t,i,r,n=e-(o=o||e);if(n<this.scrollDuration){n=n,t=a,i=this._targetPosition-a,r=this.scrollDuration;const e=(n/=r/2)<1?i/2*n*n+t:-i/2*(--n*(n-2)-1)+t;this.$.monthScroller.position=e,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0,this.__tryFocusDate();setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}else this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this.$.monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this.$.yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Wc(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.__focusInput());break;case"today":e.shiftKey&&setTimeout(()=>this.revealDate(this.focusedDate),1);break;case"cancel":e.shiftKey||(e.preventDefault(),this.__focusInput())}}__onTodayButtonKeyDown(e){this.hasAttribute("fullscreen")?"Escape"!==e.key&&e.stopPropagation():"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){this.hasAttribute("fullscreen")?"Escape"!==e.key&&e.stopPropagation():"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Wc(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement()}async focusDateElement(){this.__pendingDateFocus=this.focusedDate,await new Promise(e=>{requestAnimationFrame(e)}),this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(Uc(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this.focusedDate,i=new Date(0,0);i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(t.getDate()+e),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this.focusedDate,i=new Date(0,0),r=(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()+e),i.getMonth());i.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),i.getMonth()!==r&&i.setDate(0),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i,!0):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i):this._dateAllowed(e,this.minDate,this.maxDate)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,i){return(!t||t<=e)&&(!i||e<=i)}_isTodayAllowed(e,t){var i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Zc.is,Zc);const Xc=ha(e=>class extends Ec(Lc(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}});class Kc extends EventTarget{static generateId(e,t){var e=e||"default",i=Ra(e)+"Id";return this[i]=1+this[i]||0,`${e}-${t.localName}-`+this[i]}constructor(e,t,i,r){super(),this.host=e,this.slotName=t,this.slotFactory=i,this.slotInitializer=r,this.defaultId=Kc.generateId(t,e)}hostConnected(){if(!this.initialized){let e=this.getSlotChild();e?(this.node=e,this.initCustomNode(e)):e=this.attachDefaultNode(),this.initNode(e),this.observe(),this.initialized=!0}}attachDefaultNode(){var{host:e,slotName:t,slotFactory:i}=this;let r=this.defaultNode;return!r&&i&&(r=i(e))instanceof Element&&(""!==t&&r.setAttribute("slot",t),this.node=r,this.defaultNode=r),r&&e.appendChild(r),r}getSlotChild(){const t=this["slotName"];return Array.from(this.host.childNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}initNode(e){var t=this["slotInitializer"];t&&t(this.host,e)}initCustomNode(e){}teardownNode(e){}observe(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new tl(e,e=>{const t=this.node,i=e.addedNodes.find(e=>e!==t);e.removedNodes.length&&e.removedNodes.forEach(e=>{this.teardownNode(e)}),i&&(t&&t.isConnected&&this.host.removeChild(t),(this.node=i)!==this.defaultNode)&&(this.initCustomNode(i),this.initNode(i))})}}class Jc extends Kc{constructor(e){super(e,"error-message",()=>document.createElement("div"),(e,t)=>{this.__updateErrorId(t),this.__updateHasError()})}get errorId(){return this.node&&this.node.id}setErrorMessage(e){this.errorMessage=e,this.__updateHasError()}setInvalid(e){this.invalid=e,this.__updateHasError()}initCustomNode(e){this.__updateErrorId(e),e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),this.__updateHasError()}teardownNode(e){this.getSlotChild()||e===this.defaultNode||(e=this.attachDefaultNode(),this.initNode(e)),this.__updateHasError()}__isNotEmpty(e){return Boolean(e&&""!==e.trim())}__updateHasError(){var e=this.node,t=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));e&&(e.textContent=t?this.errorMessage:"",e.hidden=!t,t?e.setAttribute("role","alert"):e.removeAttribute("role")),this.host.toggleAttribute("has-error-message",t)}__updateErrorId(e){e.id||(e.id=this.defaultId)}}function Qc(e){return e?new Set(e.split(" ")):new Set}function eu(e){return[...e].join(" ")}class tu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setLabelId(e){this.__setLabelIdToAriaAttribute(e,this.__labelId),this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(e,t){this.__setAriaAttributeId("aria-labelledby",e,t)}__setErrorIdToAriaAttribute(e,t){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",e,t):this.__setAriaAttributeId("aria-describedby",e,t)}__setHelperIdToAriaAttribute(e,t){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",e,t):this.__setAriaAttributeId("aria-describedby",e,t)}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}__setAriaAttributeId(e,t,i){var r,n,o;this.__target&&(i&&(r=this.__target,n=e,i=i,(o=Qc(r.getAttribute(n))).delete(i),0!==o.size?r.setAttribute(n,eu(o)):r.removeAttribute(n)),t)&&(i=this.__target,o=e,r=t,(n=Qc(i.getAttribute(o))).add(r),i.setAttribute(o,eu(n)))}}class iu extends Kc{constructor(e){super(e,"helper")}get helperId(){return this.node&&this.node.id}initCustomNode(e){this.__updateHelperId(e),this.__observeHelper(e);e=this.__hasHelper(e);this.__toggleHasHelper(e)}teardownNode(e){this.__helperIdObserver&&this.__helperIdObserver.disconnect();var t=this.getSlotChild();if(t&&t!==this.defaultNode){const e=this.__hasHelper(t);this.__toggleHasHelper(e)}else this.__applyDefaultHelper(this.helperText,t)}setHelperText(e){this.helperText=e;var t=this.getSlotChild();t&&t!==this.defaultNode||this.__applyDefaultHelper(e,t)}__hasHelper(e){return!!e&&(0<e.children.length||e.nodeType===Node.ELEMENT_NODE&&customElements.get(e.localName)||this.__isNotEmpty(e.textContent))}__isNotEmpty(e){return e&&""!==e.trim()}__applyDefaultHelper(e,t){var i=this.__isNotEmpty(e);i&&!t&&(this.slotFactory=()=>document.createElement("div"),t=this.attachDefaultNode(),this.__updateHelperId(t),this.__observeHelper(t)),t&&(t.textContent=e),this.__toggleHasHelper(i)}__observeHelper(e){this.__helperObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;if("attributes"===e.type)i&&t.id!==this.defaultId&&this.__updateHelperId(t);else if(i||t.parentElement===this.node){const e=this.__hasHelper(this.node);this.__toggleHasHelper(e)}})}),this.__helperObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasHelper(e){this.host.toggleAttribute("has-helper",e),this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:e,node:this.node}}))}__updateHelperId(e){e.id||(e.id=this.defaultId)}}class ru extends Kc{constructor(e){super(e,"label",()=>document.createElement("label"),(e,t)=>{this.__updateLabelId(t),this.__updateDefaultLabel(this.label),this.__observeLabel(t)})}get labelId(){return this.node.id}initCustomNode(e){this.__updateLabelId(e);e=this.__hasLabel(e);this.__toggleHasLabel(e)}teardownNode(e){this.__labelObserver&&this.__labelObserver.disconnect();let t=this.getSlotChild();t||e===this.defaultNode||(t=this.attachDefaultNode(),this.initNode(t));e=this.__hasLabel(t);this.__toggleHasLabel(e)}setLabel(e){this.label=e,this.__updateDefaultLabel(e)}__hasLabel(e){return!!e&&(0<e.children.length||this.__isNotEmpty(e.textContent))}__isNotEmpty(e){return Boolean(e&&""!==e.trim())}__observeLabel(e){this.__labelObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;if("attributes"===e.type)i&&t.id!==this.defaultId&&this.__updateLabelId(t);else if(i||t.parentElement===this.node){const e=this.__hasLabel(this.node);this.__toggleHasLabel(e)}})}),this.__labelObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasLabel(e){this.host.toggleAttribute("has-label",e),this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:e,node:this.node}}))}__updateDefaultLabel(e){this.defaultNode&&(this.defaultNode.textContent=e,this.defaultNode===this.node)&&(e=this.__isNotEmpty(e),this.__toggleHasLabel(e))}__updateLabelId(e){e.id||(e.id=this.defaultId)}}const nu=ha(e=>class extends xl(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new ru(this),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),ou=ha(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){return!this.required||!!this.value}}),au=ha(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...i){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,i[t])})}_delegatePropsChanged(...i){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,i[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),su=ha(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0}}}constructor(){super(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this.inputElement.value=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_onInput(e){this.__userInput=e.isTrusted,this.value=e.target.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(""!==e&&null!=e),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}}),lu=ha(e=>class extends au(ou(su(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(${this.constructor.constraints.join(", ")})`)}_constraintsChanged(...e){this.invalid&&(this._hasValidConstraints(e)?this.validate():this.invalid=!1)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),cu=new WeakMap,uu=ha(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),o=(e=n,cu.has(e)||cu.set(e,new Set),cu.get(e));var e;this.slotStyles.forEach(e=>{var t,i,r;o.has(e)||(t=e,i=n,(r=document.createElement("style")).textContent=t,i===document?document.head.appendChild(r):i.insertBefore(r,i.firstChild),o.add(e))})}}),du=e=>{return class extends uu(Xc(lu((e=Tc(e),class extends ou(nu(xl(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new tu(this),this._helperController=new iu(this),this._errorController=new Jc(this),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController),this._labelController.addEventListener("label-changed",e=>{var{hasLabel:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("helper-changed",e=>{var{hasHelper:e,node:t}=e.detail;this.__helperChanged(e,t)})}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{e?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)})}})))){static get properties(){return{autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,reflectToAttribute:!0,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"]}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}ready(){super.ready(),this.clearElement&&this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.__clear()}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this.__clear())}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__clear(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}};class pu extends Kc{constructor(e,r){super(e,"input",()=>document.createElement("input"),(e,t)=>{e.value&&t.setAttribute("value",e.value),e.type&&t.setAttribute("type",e.type);var i=pu._uniqueInputId=1+pu._uniqueInputId||0;e._inputId=e.localName+"-"+i,t.id=e._inputId,"function"==typeof r&&r(t)})}}class hu{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("label-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}Ri=[a`
2191
+ `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return"rtl"===this.getAttribute("dir")}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")].map(e=>e.focusableDateElement).find(Boolean)}ready(){super.ready(),this.setAttribute("role","dialog"),gc(this,"tap",this._stopPropagation),gc(this.$.scrollers,"track",this._track.bind(this)),gc(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),gc(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this)),gc(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this)),gc(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),gc(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this)),gc(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this)),this.addController(new qc(this._desktopMediaQuery,e=>{this._desktopMode=e}))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),vc(this.$.scrollers,"pan-y")}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){var i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this.$.monthScroller.forceUpdate()}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e,t=!0){if(e){var i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);void this._scrollToPosition(i+r,t)}else{const r=this.$.monthScroller.position>i,n=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-2*this.$.monthScroller.bufferOffset)/this.$.monthScroller.itemHeight,o=this.$.monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=zl.debounce(this._debouncer,Ol.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,i){return e?t(Yc(e)):i}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight,this._scrollToPosition(this.$.monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){this._targetPosition=e;let o=0;const a=this.$.monthScroller.position,s=e=>{var t,i,r,n=e-(o=o||e);if(n<this.scrollDuration){n=n,t=a,i=this._targetPosition-a,r=this.scrollDuration;const e=(n/=r/2)<1?i/2*n*n+t:-i/2*(--n*(n-2)-1)+t;this.$.monthScroller.position=e,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0,this.__tryFocusDate();setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}else this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this.$.monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this.$.yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Wc(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.__focusInput());break;case"today":e.shiftKey&&setTimeout(()=>this.revealDate(this.focusedDate),1);break;case"cancel":e.shiftKey||(e.preventDefault(),this.__focusInput())}}__onTodayButtonKeyDown(e){this.hasAttribute("fullscreen")?"Escape"!==e.key&&e.stopPropagation():"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){this.hasAttribute("fullscreen")?"Escape"!==e.key&&e.stopPropagation():"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Wc(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement()}async focusDateElement(){this.__pendingDateFocus=this.focusedDate,await new Promise(e=>{requestAnimationFrame(e)}),this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(Uc(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this.focusedDate,i=new Date(0,0);i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(t.getDate()+e),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this.focusedDate,i=new Date(0,0),r=(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()+e),i.getMonth());i.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),i.getMonth()!==r&&i.setDate(0),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i,!0):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusDate(i):this._dateAllowed(e,this.minDate,this.maxDate)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,i){return(!t||t<=e)&&(!i||e<=i)}_isTodayAllowed(e,t){var i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Zc.is,Zc);const Xc=ha(e=>class extends Ac(Lc(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}});class Kc extends EventTarget{static generateId(e,t){var e=e||"default",i=Ra(e)+"Id";return this[i]=1+this[i]||0,`${e}-${t.localName}-`+this[i]}constructor(e,t,i,r){super(),this.host=e,this.slotName=t,this.slotFactory=i,this.slotInitializer=r,this.defaultId=Kc.generateId(t,e)}hostConnected(){if(!this.initialized){let e=this.getSlotChild();e?(this.node=e,this.initCustomNode(e)):e=this.attachDefaultNode(),this.initNode(e),this.observe(),this.initialized=!0}}attachDefaultNode(){var{host:e,slotName:t,slotFactory:i}=this;let r=this.defaultNode;return!r&&i&&(r=i(e))instanceof Element&&(""!==t&&r.setAttribute("slot",t),this.node=r,this.defaultNode=r),r&&e.appendChild(r),r}getSlotChild(){const t=this["slotName"];return Array.from(this.host.childNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}initNode(e){var t=this["slotInitializer"];t&&t(this.host,e)}initCustomNode(e){}teardownNode(e){}observe(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new tl(e,e=>{const t=this.node,i=e.addedNodes.find(e=>e!==t);e.removedNodes.length&&e.removedNodes.forEach(e=>{this.teardownNode(e)}),i&&(t&&t.isConnected&&this.host.removeChild(t),(this.node=i)!==this.defaultNode)&&(this.initCustomNode(i),this.initNode(i))})}}class Jc extends Kc{constructor(e){super(e,"error-message",()=>document.createElement("div"),(e,t)=>{this.__updateErrorId(t),this.__updateHasError()})}get errorId(){return this.node&&this.node.id}setErrorMessage(e){this.errorMessage=e,this.__updateHasError()}setInvalid(e){this.invalid=e,this.__updateHasError()}initCustomNode(e){this.__updateErrorId(e),e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),this.__updateHasError()}teardownNode(e){this.getSlotChild()||e===this.defaultNode||(e=this.attachDefaultNode(),this.initNode(e)),this.__updateHasError()}__isNotEmpty(e){return Boolean(e&&""!==e.trim())}__updateHasError(){var e=this.node,t=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));e&&(e.textContent=t?this.errorMessage:"",e.hidden=!t,t?e.setAttribute("role","alert"):e.removeAttribute("role")),this.host.toggleAttribute("has-error-message",t)}__updateErrorId(e){e.id||(e.id=this.defaultId)}}function Qc(e){return e?new Set(e.split(" ")):new Set}function eu(e){return[...e].join(" ")}class tu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setLabelId(e){this.__setLabelIdToAriaAttribute(e,this.__labelId),this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(e,t){this.__setAriaAttributeId("aria-labelledby",e,t)}__setErrorIdToAriaAttribute(e,t){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",e,t):this.__setAriaAttributeId("aria-describedby",e,t)}__setHelperIdToAriaAttribute(e,t){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",e,t):this.__setAriaAttributeId("aria-describedby",e,t)}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}__setAriaAttributeId(e,t,i){var r,n,o;this.__target&&(i&&(r=this.__target,n=e,i=i,(o=Qc(r.getAttribute(n))).delete(i),0!==o.size?r.setAttribute(n,eu(o)):r.removeAttribute(n)),t)&&(i=this.__target,o=e,r=t,(n=Qc(i.getAttribute(o))).add(r),i.setAttribute(o,eu(n)))}}class iu extends Kc{constructor(e){super(e,"helper")}get helperId(){return this.node&&this.node.id}initCustomNode(e){this.__updateHelperId(e),this.__observeHelper(e);e=this.__hasHelper(e);this.__toggleHasHelper(e)}teardownNode(e){this.__helperIdObserver&&this.__helperIdObserver.disconnect();var t=this.getSlotChild();if(t&&t!==this.defaultNode){const e=this.__hasHelper(t);this.__toggleHasHelper(e)}else this.__applyDefaultHelper(this.helperText,t)}setHelperText(e){this.helperText=e;var t=this.getSlotChild();t&&t!==this.defaultNode||this.__applyDefaultHelper(e,t)}__hasHelper(e){return!!e&&(0<e.children.length||e.nodeType===Node.ELEMENT_NODE&&customElements.get(e.localName)||this.__isNotEmpty(e.textContent))}__isNotEmpty(e){return e&&""!==e.trim()}__applyDefaultHelper(e,t){var i=this.__isNotEmpty(e);i&&!t&&(this.slotFactory=()=>document.createElement("div"),t=this.attachDefaultNode(),this.__updateHelperId(t),this.__observeHelper(t)),t&&(t.textContent=e),this.__toggleHasHelper(i)}__observeHelper(e){this.__helperObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;if("attributes"===e.type)i&&t.id!==this.defaultId&&this.__updateHelperId(t);else if(i||t.parentElement===this.node){const e=this.__hasHelper(this.node);this.__toggleHasHelper(e)}})}),this.__helperObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasHelper(e){this.host.toggleAttribute("has-helper",e),this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:e,node:this.node}}))}__updateHelperId(e){e.id||(e.id=this.defaultId)}}class ru extends Kc{constructor(e){super(e,"label",()=>document.createElement("label"),(e,t)=>{this.__updateLabelId(t),this.__updateDefaultLabel(this.label),this.__observeLabel(t)})}get labelId(){return this.node.id}initCustomNode(e){this.__updateLabelId(e);e=this.__hasLabel(e);this.__toggleHasLabel(e)}teardownNode(e){this.__labelObserver&&this.__labelObserver.disconnect();let t=this.getSlotChild();t||e===this.defaultNode||(t=this.attachDefaultNode(),this.initNode(t));e=this.__hasLabel(t);this.__toggleHasLabel(e)}setLabel(e){this.label=e,this.__updateDefaultLabel(e)}__hasLabel(e){return!!e&&(0<e.children.length||this.__isNotEmpty(e.textContent))}__isNotEmpty(e){return Boolean(e&&""!==e.trim())}__observeLabel(e){this.__labelObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;if("attributes"===e.type)i&&t.id!==this.defaultId&&this.__updateLabelId(t);else if(i||t.parentElement===this.node){const e=this.__hasLabel(this.node);this.__toggleHasLabel(e)}})}),this.__labelObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasLabel(e){this.host.toggleAttribute("has-label",e),this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:e,node:this.node}}))}__updateDefaultLabel(e){this.defaultNode&&(this.defaultNode.textContent=e,this.defaultNode===this.node)&&(e=this.__isNotEmpty(e),this.__toggleHasLabel(e))}__updateLabelId(e){e.id||(e.id=this.defaultId)}}const nu=ha(e=>class extends xl(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new ru(this),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),ou=ha(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){return!this.required||!!this.value}}),au=ha(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...i){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,i[t])})}_delegatePropsChanged(...i){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,i[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),su=ha(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0}}}constructor(){super(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this.inputElement.value=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_onInput(e){this.__userInput=e.isTrusted,this.value=e.target.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(""!==e&&null!=e),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}}),lu=ha(e=>class extends au(ou(su(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(${this.constructor.constraints.join(", ")})`)}_constraintsChanged(...e){this.invalid&&(this._hasValidConstraints(e)?this.validate():this.invalid=!1)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),cu=new WeakMap,uu=ha(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),o=(e=n,cu.has(e)||cu.set(e,new Set),cu.get(e));var e;this.slotStyles.forEach(e=>{var t,i,r;o.has(e)||(t=e,i=n,(r=document.createElement("style")).textContent=t,i===document?document.head.appendChild(r):i.insertBefore(r,i.firstChild),o.add(e))})}}),du=e=>{return class extends uu(Xc(lu((e=Tc(e),class extends ou(nu(xl(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new tu(this),this._helperController=new iu(this),this._errorController=new Jc(this),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController),this._labelController.addEventListener("label-changed",e=>{var{hasLabel:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("helper-changed",e=>{var{hasHelper:e,node:t}=e.detail;this.__helperChanged(e,t)})}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{e?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)})}})))){static get properties(){return{autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,reflectToAttribute:!0,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"]}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}ready(){super.ready(),this.clearElement&&this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.__clear()}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this.__clear())}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__clear(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}};class pu extends Kc{constructor(e,r){super(e,"input",()=>document.createElement("input"),(e,t)=>{e.value&&t.setAttribute("value",e.value),e.type&&t.setAttribute("type",e.type);var i=pu._uniqueInputId=1+pu._uniqueInputId||0;e._inputId=e.localName+"-"+i,t.id=e._inputId,"function"==typeof r&&r(t)})}}class hu{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("label-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}Ri=[a`
2192
2192
  :host {
2193
2193
  display: inline-flex;
2194
2194
  outline: none;
@@ -2230,7 +2230,7 @@
2230
2230
  :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2231
2231
  display: block;
2232
2232
  }
2233
- `];class mu{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}Ho("vaadin-date-picker",[Ri,Ic],{moduleId:"vaadin-date-picker-styles"});class fu extends(Ni=du(Bi(Yl(Ys))),class extends xl(Xc(su(Tc(Ni)))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let i,r=t.getMonth(),n=t.getFullYear();if(3===e.length?(n=parseInt(e[2]),e[2].length<3&&0<=n&&(n+=n<50?2e3:1900),r=parseInt(e[0])-1,i=parseInt(e[1])):2===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:r,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:_l},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(e){this.inputElement&&(this.inputElement.value=e)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){if(super._onBlur(e),!this.opened){if(this.autoOpenDisabled){const e=this._getParsedDate();this._isValidDate(e)&&this._selectDate(e)}""===this.inputElement.value&&this.__dispatchChange?(this.validate(),this.value="",this.__dispatchChange=!1):this.validate()}}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new qc(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new mu(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),"value"in t&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this.$.overlay.addEventListener("vaadin-overlay-escape-press",()=>{this._focusedDate=this._selectedDate,this._close()}),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close(e)}),this._overlayContent.addEventListener("date-selected",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date)}),this._overlayContent.addEventListener("focusin",()=>{this._setFocused(!0)}),this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){var e=!this._inputValue||this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),t=!this._selectedDate||jc(this._selectedDate,this._minDate,this._maxDate);let i=!0;return this.inputElement&&(this.inputElement.checkValidity?i=this.inputElement.checkValidity():this.inputElement.validate&&(i=this.inputElement.validate())),e&&t&&i}_selectDate(e){var t=this._formatISO(e);this.value!==t&&(this.__dispatchChange=!0),this._selectedDate=e}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.getFullYear();return n<0?(n=-n,i="-",r="000000"):1e4<=e.getFullYear()&&(i="+",r="000000"),[i+t(n,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(t=this._formatISO(e),this.__keepInputValue||this._applyInputValue(e),t!==this.value&&(this.validate(),this.value=t),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,i){t?(t=this._parseDate(t))?Wc(this[e],t)||(this[e]=t,this.value&&this.validate()):this.value=i:this[e]=""}_valueChanged(e,t){this._handleDateChange("_selectedDate",e,t),this._toggleHasValue(!!e)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||jc(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Uc(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_preventWebkitOverflowScrollingTouch(e){for(var t,i=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",i.push({element:e,oldInlineValue:t})),e=e.parentElement;return i}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",e=this._getParsedDate(e),this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate(),this.getRootNode().activeElement!==this.inputElement&&this._setFocused(!1)}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(e){this._inputValue=e?this._getFormattedDate(this.i18n.formatDate,e):""}_getFormattedDate(e,t){return e(Yc(t))}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_isValidDate(e){return e&&!isNaN(e.getTime())}_onChange(e){""!==this.inputElement.value||e.detail&&e.detail.sourceEvent&&e.detail.sourceEvent.__fromClearButton||(this.__dispatchChange=!0),e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDate(this._focusedDate))}}_onEnter(e){var t=this._getParsedDate(),t=this._isValidDate(t);if(this.opened)this._overlayInitialized&&this._overlayContent.focusedDate&&t&&this._selectDate(this._overlayContent.focusedDate),this.close();else if(t||""===this.inputElement.value){const e=this.value;this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}else this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(e=this._inputValue){e=this.i18n.parseDate&&this.i18n.parseDate(e);return e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){var e;this._inputValue&&(e=this._getParsedDate(),this._isValidDate(e))&&(this._ignoreFocusedDateChange=!0,Wc(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}){static get is(){return"vaadin-date-picker"}static get template(){return js`
2233
+ `];class mu{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}var fu;Ho("vaadin-date-picker",[Ri,Ic],{moduleId:"vaadin-date-picker-styles"});class gu extends(Ni=du(Bi(Yl(Ys))),class extends xl(Xc(su(Tc(Ni)))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let i,r=t.getMonth(),n=t.getFullYear();if(3===e.length?(n=parseInt(e[2]),e[2].length<3&&0<=n&&(n+=n<50?2e3:1900),r=parseInt(e[0])-1,i=parseInt(e[1])):2===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:r,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:_l},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(e){this.inputElement&&(this.inputElement.value=e)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){if(super._onBlur(e),!this.opened){if(this.autoOpenDisabled){const e=this._getParsedDate();this._isValidDate(e)&&this._selectDate(e)}""===this.inputElement.value&&this.__dispatchChange?(this.validate(),this.value="",this.__dispatchChange=!1):this.validate()}}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new qc(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new mu(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),"value"in t&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this.$.overlay.addEventListener("vaadin-overlay-escape-press",()=>{this._focusedDate=this._selectedDate,this._close()}),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close(e)}),this._overlayContent.addEventListener("date-selected",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date)}),this._overlayContent.addEventListener("focusin",()=>{this._setFocused(!0)}),this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){var e=!this._inputValue||this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),t=!this._selectedDate||jc(this._selectedDate,this._minDate,this._maxDate);let i=!0;return this.inputElement&&(this.inputElement.checkValidity?i=this.inputElement.checkValidity():this.inputElement.validate&&(i=this.inputElement.validate())),e&&t&&i}_selectDate(e){var t=this._formatISO(e);this.value!==t&&(this.__dispatchChange=!0),this._selectedDate=e}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.getFullYear();return n<0?(n=-n,i="-",r="000000"):1e4<=e.getFullYear()&&(i="+",r="000000"),[i+t(n,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(t=this._formatISO(e),this.__keepInputValue||this._applyInputValue(e),t!==this.value&&(this.validate(),this.value=t),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,i){t?(t=this._parseDate(t))?Wc(this[e],t)||(this[e]=t,this.value&&this.validate()):this.value=i:this[e]=""}_valueChanged(e,t){this._handleDateChange("_selectedDate",e,t),this._toggleHasValue(!!e)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||jc(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Uc(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_preventWebkitOverflowScrollingTouch(e){for(var t,i=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",i.push({element:e,oldInlineValue:t})),e=e.parentElement;return i}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",e=this._getParsedDate(e),this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate(),this.getRootNode().activeElement!==this.inputElement&&this._setFocused(!1)}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(e){this._inputValue=e?this._getFormattedDate(this.i18n.formatDate,e):""}_getFormattedDate(e,t){return e(Yc(t))}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_isValidDate(e){return e&&!isNaN(e.getTime())}_onChange(e){""!==this.inputElement.value||e.detail&&e.detail.sourceEvent&&e.detail.sourceEvent.__fromClearButton||(this.__dispatchChange=!0),e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDate(this._focusedDate))}}_onEnter(e){var t=this._getParsedDate(),t=this._isValidDate(t);if(this.opened)this._overlayInitialized&&this._overlayContent.focusedDate&&t&&this._selectDate(this._overlayContent.focusedDate),this.close();else if(t||""===this.inputElement.value){const e=this.value;this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}else this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(e=this._inputValue){e=this.i18n.parseDate&&this.i18n.parseDate(e);return e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){var e;this._inputValue&&(e=this._getParsedDate(),this._isValidDate(e))&&(this._ignoreFocusedDateChange=!0,Wc(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}){static get is(){return"vaadin-date-picker"}static get template(){return js`
2234
2234
  <style>
2235
2235
  :host([opened]) {
2236
2236
  pointer-events: auto;
@@ -2291,5 +2291,5 @@
2291
2291
  ></vaadin-date-picker-overlay-content>
2292
2292
  </template>
2293
2293
  </vaadin-date-picker-overlay>
2294
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new pu(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new hu(this.inputElement,this._labelController)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_initOverlay(){super._initOverlay(),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.blur(),e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function gu(e){let i,r,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(n,o)},d(e){e&&ci(i)}}}function yu(e){let i,r,n,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function vu(i){let r,n,O,o,a,R,s,l,c,H,u,d,z,p,h,W,j,U,m,Y,G,f,V,g,q,y,v,Z,X,b,K,w,_,J,Q,x,ee,C,te,P,ie,T,A,re,ne,oe,E=i[8]("title")+"",L=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",M=i[8]("selfExclusionText2")+"",$=i[8]("selfExclusionText3")+"",D=i[8]("selfExclusionText4")+"",S=i[8]("duration")+"",k=i[8]("forever")+"",B=i[8]("save")+"",I=i[9]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function ae(e){return e[4]?yu:gu}let N=ae(i),F=N(i);return{c(){r=di("div"),n=di("form"),I&&I.c(),O=mi(),o=di("h2"),a=hi(E),R=mi(),s=di("div"),l=di("p"),c=hi(L),H=mi(),u=di("p"),d=hi(M),z=mi(),p=di("p"),h=hi($),W=mi(),j=hi(i[1]),U=mi(),m=di("p"),Y=hi(D),G=mi(),f=di("a"),V=hi(i[1]),q=mi(),y=di("div"),v=di("label"),Z=hi(S),X=mi(),b=di("vaadin-date-picker"),K=mi(),w=di("div"),_=di("label"),J=hi(k),Q=mi(),x=di("input"),ee=mi(),C=di("span"),te=mi(),P=di("div"),F.c(),ie=mi(),T=di("div"),A=di("button"),re=hi(B),this.c=se,gi(o,"class","PlayerSelfExclusionTitle "+(i[9]?"PlayerSelfExclusionTitleNone":"")),gi(l,"class","SelfExclusionDescriptionText"),gi(u,"class","SelfExclusionDescriptionText"),gi(p,"class","SelfExclusionDescriptionText"),gi(f,"href",g="mailto:"+i[1]),gi(m,"class","SelfExclusionDescriptionText"),gi(s,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(v,"for","SelfExclusionDate"),le(b,"min",i[6]),le(b,"max",i[7]),le(b,"value",i[6]),gi(y,"class","SelfExclusionDateWrapper "+(i[9]?"SelfExclusionDateWrapperMobile":"")),gi(x,"type","Checkbox"),gi(C,"class","Checkmark"),gi(C,"part","Checkmark"),gi(_,"class","SelfExclusionRadio"),gi(w,"class","SelfExclusionRadioWrapper "+(i[9]?"SelfExclusionRadioWrapperMobile":"")),gi(P,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(A,"class","SelfExclusionSave"),gi(T,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(n,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),I&&I.m(n,null),si(n,O),si(n,o),si(o,a),si(n,R),si(n,s),si(s,l),si(l,c),si(s,H),si(s,u),si(u,d),si(s,z),si(s,p),si(p,h),si(p,W),si(p,j),si(s,U),si(s,m),si(m,Y),si(m,G),si(m,f),si(f,V),si(n,q),si(n,y),si(y,v),si(v,Z),si(y,X),si(y,b),i[18](b),si(n,K),si(n,w),si(w,_),si(_,J),si(_,Q),si(_,x),si(_,ee),si(_,C),si(n,te),si(n,P),F.m(P,null),si(n,ie),si(n,T),si(T,A),si(A,re),i[21](r),ne||(oe=[fi(x,"click",i[19]),fi(A,"click",i[20])],ne=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&E!==(E=e[8]("title")+"")&&yi(a,E),257&t[0]&&L!==(L=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,L),256&t[0]&&M!==(M=e[8]("selfExclusionText2")+"")&&yi(d,M),256&t[0]&&$!==($=e[8]("selfExclusionText3")+"")&&yi(h,$),2&t[0]&&yi(j,e[1]),256&t[0]&&D!==(D=e[8]("selfExclusionText4")+"")&&yi(Y,D),2&t[0]&&yi(V,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gi(f,"href",g),256&t[0]&&S!==(S=e[8]("duration")+"")&&yi(Z,S),64&t[0]&&le(b,"min",e[6]),128&t[0]&&le(b,"max",e[7]),64&t[0]&&le(b,"value",e[6]),256&t[0]&&k!==(k=e[8]("forever")+"")&&yi(J,k),N===(N=ae(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(P,null))),256&t[0]&&B!==(B=e[8]("save")+"")&&yi(re,B)},i:se,o:se,d(e){e&&ci(r),I&&I.d(),i[18](null),F.d(),i[21](null),ne=!1,ai(oe)}}}function bu(t,e,i){let r;Ae(t,Me,e=>i(8,r=e));let n,o,a,s,{lang:l="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,m=window.navigator.userAgent,f="PC"!==$e(m),g=!1,y="",v="",b=new Date;Object.keys(Hn).forEach(e=>{Rn(e,Hn[e])}),a=W(b.setDate(b.getDate())).add(6,"M").format("YYYY-MM-DD"),s=W(b.setDate(b.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const w=()=>{i(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&i(5,v=e))},x=e=>{e.preventDefault(),_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},P=e=>{_(e.target.value)};De(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&i(13,l=e.lang),"operator"in e&&i(0,c=e.operator),"supportemail"in e&&i(1,u=e.supportemail),"clientstyling"in e&&i(14,d=e.clientstyling),"clientstylingurl"in e&&i(15,p=e.clientstylingurl),"translationurl"in e&&i(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,Le.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rn(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,n,o,g,v,a,s,r,f,w,x,C,l,d,p,h,()=>C(),function(e){Ee[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>w(),e=>x(e),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function wu(e,t){B(e,t)}customElements.define(fu.is,fu),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},bu,vu,i,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),p()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),p()}});const _u={en:{title:"Account Closure",accountClosureDescription:"Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",closeAccount:"Close Account",modal:"Are you sure you want to close your account?",accountClosureCancel:"No",accountClosureConfirm:"Yes"},"zh-hk":{title:"賬戶關閉",accountClosureDescription:"如果您覺得需要休息,或者您只是想停止使用我們的服務,賬戶關閉會為您的賬戶提供永久訪問限制。",closeAccount:"關閉賬戶",modal:"您確定要關閉您的帳戶嗎?",accountClosureCancel:"不",accountClosureConfirm:"是的"},fr:{title:"Fermeture du compte",accountClosureDescription:"La fermeture du compte fournit une restriction permanente d'accès à votre compte si vous sentez que vous avez besoin d'une pause ou si vous souhaitez arrêter d'utiliser notre service",closeAccount:"Fermer le compte",modal:"êtes-vous sûr de vouloir fermer votre compte?",accountClosureCancel:"Non",accountClosureConfirm:"Oui"},ro:{title:"Închidere Cont",accountClosureDescription:'Opțiunea "Închidere Cont" asigură suspendarea permanentă a accesului la contul tău dacă simți că ai nevoie de o pauză sau că vrei să nu mai folosești serviciile noastre.',closeAccount:"Închide Cont",modal:"Esti sigur ca vrei sa inchizi contul?",accountClosureCancel:"Nu",accountClosureConfirm:"Da"},es:{title:"Cierre de cuenta",accountClosureDescription:"Cierre de cuenta provee una restricción permamente de poder ingresar a su cuenta si desea tomar una pausa.",closeAccount:"Cerrar cuenta",modal:"Esta seguro que desea cerrar su cuenta?",accountClosureCancel:"No",accountClosureConfirm:"Sí"},pt:{title:"Encerramento da conta",accountClosureDescription:"O Encerramento de Conta fornece uma restrição de acesso permanente à sua conta se você achar que precisa de uma pausa ou apenas deseja parar de usar nossos serviços.",closeAccount:"Encerrar conta",modal:"Tem certeza de que deseja encerrar sua conta?",accountClosureCancel:"Não",accountClosureConfirm:"Sim"}};function xu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("modal")+"",v=i[2]("accountClosureCancel")+"",b=i[2]("accountClosureConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(b),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[13]),fi(h,"click",i[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&yi(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&yi(d,v),4&t&&b!==(b=e[2]("accountClosureConfirm")+"")&&yi(m,b)},d(e){e&&ci(r),f=!1,ai(g)}}}function Cu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=i[2]("title")+"",w=i[2]("accountClosureDescription")+"",_=i[2]("closeAccount")+"",x=i[3]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),C=i[1]&&xu(i);return{c(){r=di("div"),n=di("div"),x&&x.c(),o=mi(),a=di("h2"),s=hi(b),l=mi(),c=di("div"),u=di("p"),d=hi(w),p=mi(),h=di("div"),m=di("button"),f=hi(_),g=mi(),C&&C.c(),this.c=se,gi(a,"class","AccountClosureTitle "+(i[3]?"AccountClosureTitleNone":"")),gi(c,"class","AccountClosureDescription "+(i[3]?"AccountClosureDescriptionMobile":"")),gi(m,"class","AccountClosureSave "+(i[3]?"AccountClosureSaveMobile":"")),gi(h,"class","AccountClosureActionButtons "+(i[3]?"AccountClosureActionButtonsMobile":"")),gi(n,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),x&&x.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),si(m,f),si(r,g),C&&C.m(r,null),i[15](r),y||(v=fi(m,"click",i[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&b!==(b=e[2]("title")+"")&&yi(s,b),4&t&&w!==(w=e[2]("accountClosureDescription")+"")&&yi(d,w),4&t&&_!==(_=e[2]("closeAccount")+"")&&yi(f,_),e[1]?C?C.p(e,t):((C=xu(e)).c(),C.m(r,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&ci(r),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Pu(t,e,i){let r;Ae(t,Me,e=>i(2,r=e));let n,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==$e(c),d=!1;Object.keys(_u).forEach(e=>{wu(e,_u[e])});const p=e=>{i(1,d=e)},h=()=>{p(!1),window.postMessage({type:"AccountClosure"},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:u},window.location.href)};return t.$$set=e=>{"lang"in e&&i(7,o=e.lang),"clientstyling"in e&&i(8,a=e.clientstyling),"clientstylingurl"in e&&i(9,s=e.clientstylingurl),"translationurl"in e&&i(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,Le.set(e)),257&t.$$.dirty&&a&&n&&((e=document.createElement("style")).innerHTML=a,n.appendChild(e)),513&t.$$.dirty&&s&&n){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wu(e,t[e])})}).catch(e=>{console.log(e)})},[n,d,r,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function Tu(e,t){B(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.AccountClosureTitleMobile{font-size:16px}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:12px;line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:12px;grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Pu,Cu,i,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Au={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"}};function Eu(e,t){B(e,t)}const Lu={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",daily:"日常的",weekly:"每週",monthly:"月刊",removeLimitText:"您確定要刪除 {limit} 嗎?",removeLimitsText:"您確定要刪除所有 {limit} 嗎?",minutes:"分鐘",noLimit:"沒有限制",expirationDate:"截止日期",notAvailable:"不適用",edit:"編輯",removeLimits:"移除限制",depositLimit:"存款限額",timeLimit:"時限",wageringLimit:"投注限額",lossLimit:"損失限額",timeLimitLower:"時限",depositLimitLower:"存款限額",wageringLimitLower:"投注限額",lossLimitLower:"損失限額",time:"時間",currency:"貨幣"},fr:{name:"Info",amountChanged:"Votre limite a été modifiée ou augmentée: {amount} {currency}. Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",removeLimitText:"êtes-vous sûr de vouloir supprimer la{limit}?",removeLimitsText:"êtes-vous sûr de vouloir supprimer tous les {limit}s?",minutes:"minutes",noLimit:"Aucune limite",expirationDate:"Date d'expiration",notAvailable:"N/A",edit:"Modifier",removeLimits:"Supprimer les limites",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte",timeLimitLower:"Limite de temps",depositLimitLower:"Limite de dépôt",wageringLimitLower:"Limite de mise",lossLimitLower:"Limite de perte",time:"Temps",currency:"Monnaie"},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"},es:{name:"Información",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"Estas seguro de quitar el {limit}?",removeLimitsText:"Estas seguro de retirar todos los {limit}es?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No Disponible",edit:"Editar",removeLimits:"Retirar límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de apuestas",lossLimitLower:"Límite de pérdida",time:"tiempo",currency:"moneda"},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",removeLimitText:"Tem certeza de que deseja remover o {limite}??",removeLimitsText:"Tem certeza de que deseja remover todos os {limite}s??",minutes:"Minutos",noLimit:"Sem limite",expirationDate:"Data de Validade",notAvailable:"Não Disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda",timeLimitLower:"Limite de tempo",depositLimitLower:"limite de depósito",wageringLimitLower:"limite de apostas",lossLimitLower:"limite de perda",time:"Tempo",currency:"Moeda"}};function Mu(e,t){B(e,t)}const $u={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},de:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"},fr:{name:"Info",amountChanged:"Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",defaultText:"\"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira."},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră."},es:{name:"Info",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",defaultText:"Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual."},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",defaultText:"Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar."}};function Du(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?ku:Su}let b=v(i),w=b(i);return{c(){r=di("section"),n=di("div"),o=di("div"),(a=di("div")).textContent="i",s=mi(),l=di("div"),c=hi(y),u=mi(),(d=di("div")).innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',p=mi(),h=di("div"),w.c(),gi(a,"class","InfoCardPopupIcon"),gi(l,"class","InfoCardPopupTitle"),gi(d,"class","InfoCardPopupCloseButton"),gi(o,"class","InfoCardPopupHeader"),gi(h,"class","InfoCardPopupContentArea"),gi(n,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(r,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(n,p),si(n,h),w.m(h,null),i[12](r),f||(g=fi(d,"click",G(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&yi(c,y),b===(b=v(e))&&w?w.p(e,t):(w.d(1),(w=b(e))&&(w.c(),w.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&gi(n,"class",m)},d(e){e&&ci(r),w.d(),i[12](null),f=!1,g()}}}function Su(e){let i,r,n=e[4]("defaultText")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("defaultText")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ku(e){let i,r,n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){19&t&&n!==(n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Bu(e){let i,r=e[3]&&Du(e);return{c(){r&&r.c(),i=I(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,[t]){e[3]?r?r.p(e,t):((r=Du(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:se,o:se,d(e){r&&r.d(e),e&&ci(i)}}}function Iu(t,e,i){let r,{showpopup:n=""}=(Ae(t,Me,e=>i(4,r=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys($u).forEach(e=>{Mu(e,$u[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==$e(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return De(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,n=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,c=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&n&&a&&(e=a,Le.set(e),o<0&&i(0,o="0"),i(3,p=n)),1028&t.$$.dirty&&c&&d){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}var e;516&t.$$.dirty&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mu(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,r,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},n,a,l,c,u,function(e){Ee[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function Nu(e,t){B(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Iu,Bu,i,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),p()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Fu={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"}};function Ou(e,{delay:t=0,duration:i=400,easing:r=w}={}){const n=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:r,css:e=>"opacity: "+e*n}}function Ru(i){let r,n,t,o;return{c(){r=di("div"),(n=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(n,"class","ModalWindow"),gi(n,"id","Modal")},m(e,t){li(e,r,t),si(r,n),i[6](n),i[7](r),o=!0},p(e,t){i=e},i(e){o||(wi(()=>{o&&(t=t||te(n,Ou,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||te(n,Ou,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(r),i[6](null),e&&t&&t.end(),i[7](null)}}}function Hu(e){let i,r,n=e[0]&&Ru(e);return{c(){n&&n.c(),i=I(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){e[0]?n?(n.p(e,t),1&t&&J(n,1)):((n=Ru(e)).c(),J(n,1),n.m(i.parentNode,i)):n&&(X(),Q(n,1,1,()=>{n=null}),K())},i(e){r||(J(n),r=!0)},o(e){Q(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function zu(t,e,i){let r,n,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return De(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&r){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e))},[o,a,r,void 0,s,l,function(e){Ee[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){Ee[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Wu(e,t){B(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},zu,Hu,i,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const ju={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"}};function Uu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",b=!i[3]&&function(i){let r,n,o;return{c(){(r=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',gi(r,"class","ModalCloseBtn"),gi(r,"role","button")},m(e,t){li(e,r,t),n||(o=fi(r,"click",i[4]),n=!0)},p:se,d(e){e&&ci(r),n=!1,o()}}}(i);return{c(){r=di("div"),b&&b.c(),n=mi(),o=di("div"),a=di("div"),s=hi(i[0]),l=mi(),c=di("div"),u=di("button"),d=hi(y),p=mi(),h=di("button"),m=hi(v),this.c=se,gi(a,"class","GamingLimitsConfirmationContent"),gi(u,"class","GamingLimitsCancelButton"),gi(h,"class","GamingLimitsConfirmButton"),gi(c,"class","GamingLimitsConfirmationControlArea"),gi(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),gi(r,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,r,t),b&&b.m(r,null),si(r,n),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),i[12](r),f||(g=[fi(u,"click",i[6]),fi(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||b.p(e,t),1&t&&yi(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&yi(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&yi(m,v)},i:se,o:se,d(e){e&&ci(r),b&&b.d(),i[12](null),f=!1,ai(g)}}}function Yu(t,e,i){let r,{modaltext:n="Are you sure that you want to perform this action?"}=(Ae(t,Me,e=>i(2,r=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(ju).forEach(e=>{Wu(e,ju[e])}),window.navigator.userAgent),p="PC"!==$e(d),h={},m="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,m="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return De(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,n=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&n&&o&&a&&(e=a,Le.set(e)),514&t.$$.dirty&&s&&u&&((e=document.createElement("style")).innerHTML=s,u.appendChild(e)),1026&t.$$.dirty&&l&&u){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var e;2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wu(e,t[e])})}).catch(e=>{console.log(e)})},[n,u,r,p,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:h,name:m},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a,s,l,c,function(e){Ee[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function Gu(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function Vu(e,t,i){e=e.slice();return e[59]=t[i],e}function qu(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function Zu(e){let i,r,n,o=e[18]("success")+"";return{c(){i=di("div"),r=di("p"),n=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Xu(t){let n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ju(qu(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=qu(t,o,e);a[e]?a[e].p(r,i):(a[e]=Ju(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function Ku(e){let i,r,n,o,a=e[18]("remove")+"",s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("p"),r=hi(a),n=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(r,a),16384&t[0]&&s!==(s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(o,s)},d(e){e&&ci(i)}}}function Ju(e){let i,r=e[56].period==e[17][e[58]].period&&Ku(e);return{c(){r&&r.c(),i=I()},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?r?r.p(e,t):((r=Ku(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ci(i)}}}function Qu(t){let i,n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=cd(Gu(t,o,e));return{c(){i=di("div"),n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=Gu(t,o,e);a[e]?a[e].p(r,i):(a[e]=cd(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function ed(i){let r,n,o,a,s,l,c,u,d,p,h=i[18]("noLimit")+"",m=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=id(Vu(i,m,e));function g(){i[29].call(r,i[58])}let y="Custom"===i[17][i[58]].amount&&rd(i),v=!0===i[56].isModified&&ld(i);return{c(){r=di("select"),n=di("option"),o=hi(h);for(let e=0;e<f.length;e+=1)f[e].c();s=mi(),l=di("div"),y&&y.c(),c=mi(),v&&v.c(),u=I(),n.__value="",n.value=n.__value,n.disabled=!0,n.selected=!0,n.hidden=!0,gi(r,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),r.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&wi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(r,null);bi(r,i[17][i[58]].amount,!0),li(e,s,t),li(e,l,t),y&&y.m(l,null),li(e,c,t),v&&v.m(e,t),li(e,u,t),d||(p=[fi(r,"change",g),fi(r,"change",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&h!==(h=i[18]("noLimit")+"")&&yi(o,h),1048656&t[0]){let e;for(m=i[20].get(i[6])[i[58]].values,e=0;e<m.length;e+=1){const o=Vu(i,m,e);f[e]?f[e].p(o,t):(f[e]=id(o),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(r.disabled=a),1179712&t[0]&&bi(r,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=rd(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=ld(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(r),ui(f,e),e&&ci(s),e&&ci(l),y&&y.d(),e&&ci(c),v&&v.d(e),e&&ci(u),d=!1,ai(p)}}}function td(e){let i,r=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(r)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&r!==(r=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,r)},d(e){e&&ci(i)}}}function id(e){let i,r,n,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&td(e);return{c(){i=di("option"),r=hi(s),n=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,r),si(i,n),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(r,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=td(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&ci(i),l&&l.d()}}}function rd(e){let i;function r(e){return"Time Limit"!==e[6]?od:nd}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function nd(i){let r,n,o,a,s,l;function c(){i[31].call(r,i[58])}let u=1==i[13][i[58]]&&ad(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=ad(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function od(i){let r,n,o,a,s,l;function c(){i[30].call(r,i[58])}let u=1==i[13][i[58]]&&sd(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=sd(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function ad(e){let i,r,n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){265216&t[0]&&n!==(n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function sd(e){let i,r,n=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){262144&t[0]&&n!==(n=e[18]("invalidInputMessageLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ld(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=e[18]("expirationDate")+"",w=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",x=(0<e[56].updateAmount?e[56].updateAmount:0)+"",C=(void 0!==e[56].minutes?" minutes":e[4])+"",P=e[18]("changedLimitTextAfter")+"";return{c(){i=di("p"),r=hi(b),n=mi(),o=di("span"),a=hi(w),s=mi(),l=di("div"),c=di("p"),(u=di("span")).textContent="i",d=di("span"),p=hi(_),h=mi(),m=hi(x),f=mi(),g=hi(C),y=hi(". "),v=hi(P),gi(i,"class","AccountEditLimitsExpiryDate"),gi(u,"class","AccountEditLimitChangePeriodIcon"),gi(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(d,p),si(d,h),si(d,m),si(d,f),si(d,g),si(d,y),si(d,v)},p(e,t){262144&t[0]&&b!==(b=e[18]("expirationDate")+"")&&yi(r,b),16384&t[0]&&w!==(w=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(a,w),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&yi(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&yi(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&yi(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&yi(v,P)},d(e){e&&ci(i),e&&ci(s),e&&ci(l)}}}function cd(e){let i,r,n,o,a,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&ed(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),l&&l.c(),a=mi(),gi(r,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),l&&l.m(i,null),si(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&yi(n,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=ed(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function ud(i){let r,O,n,o,a,s,R,l,c,u,H,d,p,z,h,m,f,W,g,y,j,v,U,b,w,_,x,C,P,T,A,E,L,M,$,Y,D=i[18]("back")+"",S=(i[1]?i[9]:"")+"",k=i[18]("save")+"",B=i[19]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=i[2]&&Zu(i),N=i[3]&&Xu(i),F=i[8]&&Qu(i);return{c(){r=di("div"),B&&B.c(),O=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),R=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),H=mi(),d=di("h2"),p=hi(D),z=mi(),h=di("div"),m=di("h6"),f=hi(S),W=mi(),g=di("div"),(y=di("span")).textContent="i",j=mi(),v=di("player-account-gaming-limits-popup"),U=mi(),I&&I.c(),b=mi(),N&&N.c(),w=mi(),F&&F.c(),_=mi(),x=di("div"),C=di("button"),P=hi(k),E=mi(),L=di("player-account-modal"),M=di("player-account-gaming-limits-confirmation-modal"),this.c=se,gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","20"),gi(o,"height","20"),gi(o,"viewBox","0 0 15 15"),gi(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(n,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(y,"class","AccountEditLimitsIcon"),le(v,"showpopup",i[7]),le(v,"lang",i[0]),gi(g,"class","AccountEditLimitsIconWrapper"),gi(h,"class","AccountEditLimitsHeader"),gi(C,"class",T="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=A=!i[15],gi(x,"class","AccountEditLimitsControlArea"),gi(r,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),le(M,"modaltext",i[12]),le(M,"modalsource","groupEdit"),le(M,"lang",i[0])},m(e,t){li(e,r,t),B&&B.m(r,null),si(r,O),si(r,n),si(n,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(n,H),si(n,d),si(d,p),si(r,z),si(r,h),si(h,m),si(m,f),si(h,W),si(h,g),si(g,y),si(g,j),si(g,v),si(r,U),I&&I.m(r,null),si(r,b),N&&N.m(r,null),si(r,w),F&&F.m(r,null),si(r,_),si(r,x),si(x,C),si(C,P),i[33](r),li(e,E,t),li(e,L,t),si(L,M),$||(Y=[fi(n,"click",i[22]),fi(y,"click",G(i[21])),fi(C,"click",i[32])],$=!0)},p(e,t){e[19]&&B.p(e,t),262144&t[0]&&D!==(D=e[18]("back")+"")&&yi(p,D),514&t[0]&&S!==(S=(e[1]?e[9]:"")+"")&&yi(f,S),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=Zu(e)).c(),I.m(r,b)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=Xu(e)).c(),N.m(r,w)):N&&(N.d(1),N=null),e[8]?F?F.p(e,t):((F=Qu(e)).c(),F.m(r,_)):F&&(F.d(1),F=null),262144&t[0]&&k!==(k=e[18]("save")+"")&&yi(P,k),32768&t[0]&&T!==(T="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&gi(C,"class",T),32768&t[0]&&A!==(A=!e[15])&&(C.disabled=A),4096&t[0]&&le(M,"modaltext",e[12]),1&t[0]&&le(M,"lang",e[0])},i:se,o:se,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[33](null),e&&ci(E),e&&ci(L),$=!1,ai(Y)}}}function dd(t,e,o){let i,{limitsdata:r=[]}=(Ae(t,Me,e=>o(18,i=e)),e),{showsuccessnotification:n=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:c="true"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h,m,f=(Object.keys(Fu).forEach(e=>{Nu(e,Fu[e])}),!1),g=!1,y="",v=!1,b=0,w=0,_="",N=window.navigator.userAgent,F="PC"!==$e(N),x=new Array(3).fill(0),C={},P=[],T=[],A=!1,E=[];const L={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let M=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],$=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],D=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],O=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],R=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const S=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),k=new Map([["Deposit Limit",$],["Time Limit",R],["Wagering Limit",D],["Loss Limit",O]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},B=(i,e)=>{let r=JSON.parse(JSON.stringify(e));M.forEach(t=>{r.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},z=()=>{E.forEach(e=>{var t=e;T.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,b=60),"Daily"===t.period?o(11,w=1440):"Weekly"==t.period?o(11,w=10080):o(11,w=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(r=>{T.forEach(e=>{var t,i;r.period===e.period&&(e=e,t=r,i=M,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount=t.amount,e.value=0)}))})})},W=()=>{var e="Time Limit"===h?"time limit":"Deposit Limit"===h?"deposit limit":"Wagering Limit"===h?"wagering limit":"loss limit";o(12,_=i("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;Le.set(e),W(),o(16,E=JSON.parse(JSON.stringify(r))),o(14,C=JSON.parse(JSON.stringify(r))),T="Wagering Limit"===h?D:"Loss Limit"===h?O:"Deposit Limit"===h?$:"Time Limit"===h?R:[],z()},j=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),W();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),I(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,minutes:t.value},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==c?{[S.get(h)]:[...P]}:{[S.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:S.get(h)},window.location.href),o(15,A=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),I(),o(15,A=!1),v=!1}var t};return De(()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=e=>{"limitsdata"in e&&o(1,r=e.limitsdata),"showsuccessnotification"in e&&o(2,n=e.showsuccessnotification),"showdeletenotification"in e&&o(3,a=e.showdeletenotification),"playercurrency"in e&&o(4,s=e.playercurrency),"lang"in e&&o(0,l=e.lang),"separatelimits"in e&&o(25,c=e.separatelimits),"clientstyling"in e&&o(26,u=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,p=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&n&&a&&I(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&u&&m&&((e=document.createElement("style")).innerHTML=u,m.appendChild(e)),134217760&t.$$.dirty[0]&&d&&m){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{m.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Nu(e,t[e])})}).catch(e=>{console.log(e)})},[l,r,n,a,s,m,h,f,g,y,b,w,_,x,C,A,E,M,i,F,k,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,i,r)=>{var n;"Custom"===e.amount?"Time Limit"==h?(o(10,b=60),"Daily"===e.period?o(11,w=1440):"Weekly"==e.period?o(11,w=10080):o(11,w=43200),e.value&&L.time.test(e.value)&&e.value>b&&e.value<=w?(o(13,x[t]=0,x),n=r[t],e.period==n.period&&e.value==n.amount?(o(15,A=!1),B(e,r)):o(15,A=!0)):(o(13,x[t]=1,x),o(15,A=!1))):e.value&&L.amount.test(e.value)?(o(13,x[t]=0,x),e.period==r[t].period&&e.value==r[t].amount?(o(15,A=!!A),B(e,r)):o(15,A=!0),"true"!=c&&M.forEach(e=>{0==e.value&&o(15,A=!1)})):(o(13,x[t]=1,x),o(15,A=!1)):(e.period==r[t].period?(B(e,r),o(15,A=e.value!=r[t].amount)):o(15,A=!0),M.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!L.amount.test(e.value.toString()))&&o(15,A=!1)}))},c,u,d,p,function(e){M[e].amount=pe(this),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},()=>H(),function(e){Ee[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function pd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function hd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function md(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,A=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",E=i[15]("edit")+"";function L(e){return"Time Limit"===e[1]?yd:gd}let M=L(i),$=M(i),D=!i[9]&&!i[0].isModified&&i[14]&&Sd(i),S=i[11]&&kd(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("h5"),s=hi(A),l=mi(),c=di("div"),(u=di("span")).textContent="i",d=mi(),p=di("player-account-gaming-limits-popup"),m=mi(),f=di("div"),g=di("div"),y=di("div"),$.c(),v=mi(),b=di("div"),w=di("button"),_=hi(E),x=mi(),D&&D.c(),C=mi(),S&&S.c(),gi(u,"class","InfoCardIcon"),le(p,"showpopup",h=i[8][0]),le(p,"lang",i[3]),le(p,"clientstyling",i[4]),le(p,"clientstylingurl",i[5]),gi(c,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),gi(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),gi(y,"class","InfoCardTableRow"),gi(g,"class","InfoCardTableWrapper"),gi(w,"class","InfoCardEditButton"),gi(b,"class","InfoCardControlArea"),gi(f,"class","InfoCard"),gi(n,"class","InfoCardWrapper"),gi(r,"class","InfoCardSection")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(n,m),si(n,f),si(f,g),si(g,y),$.m(y,null),si(f,v),si(f,b),si(b,w),si(w,_),si(b,x),D&&D.m(b,null),si(r,C),S&&S.m(r,null),P||(T=[fi(u,"click",G(i[23])),fi(w,"click",i[26])],P=!0)},p(e,t){32771&t[0]&&A!==(A=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&yi(s,A),256&t[0]&&h!==(h=e[8][0])&&le(p,"showpopup",h),8&t[0]&&le(p,"lang",e[3]),16&t[0]&&le(p,"clientstyling",e[4]),32&t[0]&&le(p,"clientstylingurl",e[5]),M===(M=L(e))&&$?$.p(e,t):($.d(1),($=M(e))&&($.c(),$.m(y,null))),32768&t[0]&&E!==(E=e[15]("edit")+"")&&yi(_,E),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=Sd(e)).c(),D.m(b,null)),e[11]?S?S.p(e,t):((S=kd(e)).c(),S.m(r,null)):S&&(S.d(1),S=null)},d(e){e&&ci(r),$.d(),D&&D.d(),S&&S.d(),P=!1,ai(T)}}}function fd(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function gd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Cd(pd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=pd(t,o,e);a[e]?a[e].p(r,i):(a[e]=Cd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function yd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Dd(hd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=hd(t,o,e);a[e]?a[e].p(r,i):(a[e]=Dd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function vd(e){let i,r,n=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?e[41].currency:"")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function bd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function wd(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function _d(i){let r,n,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),le(a,"showpopup",s=i[8][i[43]+1]),le(a,"iteminfoamount",l=i[41].updateAmount),le(a,"playercurrency",i[2]),le(a,"lang",i[3]),le(a,"clientstyling",i[4]),le(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),c||(u=fi(n,"click",G(d)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&le(a,"iteminfoamount",l),4&t[0]&&le(a,"playercurrency",i[2]),8&t[0]&&le(a,"lang",i[3]),16&t[0]&&le(a,"clientstyling",i[4]),32&t[0]&&le(a,"clientstylingurl",i[5])},d(e){e&&ci(r),c=!1,u()}}}function xd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Cd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",w=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),x=e[15]("expirationDate")+"",C=_&&vd(e);function P(e){return e[41].expiryDate?wd:bd}let T=P(e),A=T(e);function E(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?xd:"No limit"!=e[41].amount&&e[41].isModified?_d:void 0}let L=E(e,[-1,-1]),M=L&&L(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(b),s=mi(),l=di("div"),c=hi(w),u=mi(),C&&C.c(),d=mi(),p=di("div"),h=di("div"),m=hi(x),f=mi(),A.c(),g=mi(),M&&M.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(l,u),C&&C.m(l,null),si(r,d),si(r,p),si(p,h),si(h,m),si(p,f),A.m(p,null),si(i,g),M&&M.m(i,null),si(i,v)},p(e,t){32769&t[0]&&b!==(b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,b),32769&t[0]&&w!==(w=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(c,w),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=vd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&yi(m,x),T===(T=P(e))&&A?A.p(e,t):(A.d(1),(A=T(e))&&(A.c(),A.m(p,null))),L===(L=E(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=L&&L(e))&&(M.c(),M.m(i,v)))},d(e){e&&ci(i),C&&C.d(),A.d(),M&&M.d()}}}function Pd(e){let i,r,n=e[15]("noLimit")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("noLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Td(e){let i,r,n,o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),s=a&&Ad(e);return{c(){i=hi(o),r=mi(),s&&s.c(),n=I()},m(e,t){li(e,i,t),li(e,r,t),s&&s.m(e,t),li(e,n,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Ad(e)).c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(r),s&&s.d(e),e&&ci(n)}}}function Ad(e){let i,r,n=e[15]("minutes")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("minutes")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ed(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ld(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Md(i){let r,n,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),le(a,"showpopup",s=i[8][i[43]+1]),le(a,"iteminfoamount",l=i[41].updateMinutes),le(a,"playercurrency",c=i[15]("minutes")),le(a,"lang",i[3]),le(a,"clientstyling",i[4]),le(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),u||(d=fi(n,"click",G(p)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&le(a,"iteminfoamount",l),32768&t[0]&&c!==(c=i[15]("minutes"))&&le(a,"playercurrency",c),8&t[0]&&le(a,"lang",i[3]),16&t[0]&&le(a,"clientstyling",i[4]),32&t[0]&&le(a,"clientstylingurl",i[5])},d(e){e&&ci(r),u=!1,d()}}}function $d(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Dd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function b(e){return 0!==e[41].amount?Td:Pd}let w=b(e),_=w(e);function x(e){return e[41].expiryDate?Ld:Ed}let C=x(e),P=C(e);function T(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?$d:"No limit"!=e[41].amount&&e[41].isModified?Md:void 0}let A=T(e,[-1,-1]),E=A&&A(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(y),s=mi(),l=di("div"),_.c(),c=mi(),u=di("div"),d=di("div"),p=hi(v),h=mi(),P.c(),m=mi(),E&&E.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),_.m(l,null),si(r,c),si(r,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),E&&E.m(i,null),si(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,y),w===(w=b(e))&&_?_.p(e,t):(_.d(1),(_=w(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&yi(p,v),C===(C=x(e))&&P?P.p(e,t):(P.d(1),(P=C(e))&&(P.c(),P.m(u,null))),A===(A=T(e,t))&&E?E.p(e,t):(E&&E.d(1),(E=A&&A(e))&&(E.c(),E.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),E&&E.d()}}}function Sd(i){let r,n,o,a,s=i[15]("removeLimits")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","InfoCardRemoveButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function kd(e){let i,r,n;return{c(){i=di("player-account-modal"),le(r=di("player-account-gaming-limits-confirmation-modal"),"modaltext",n=e[10]?e[12]:e[13]),le(r,"modalsource","infoCard"),le(r,"lang",e[3]),le(r,"clientstyling",e[4]),le(r,"clientstylingurl",e[5]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,r)},p(e,t){13312&t[0]&&n!==(n=e[10]?e[12]:e[13])&&le(r,"modaltext",n),8&t[0]&&le(r,"lang",e[3]),16&t[0]&&le(r,"clientstyling",e[4]),32&t[0]&&le(r,"clientstylingurl",e[5]),16&t[0]&&le(i,"clientstyling",e[4]),32&t[0]&&le(i,"clientstylingurl",e[5])},d(e){e&&ci(i)}}}function Bd(i){let r;function n(e){return e[7]?fd:md}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[28](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[28](null)}}}function Id(r,e,n){let o,{limitsdata:a=[]}=(Ae(r,Me,e=>n(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e;Object.keys(Lu).forEach(e=>{Eu(e,Lu[e])});let p,h=!0,i=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,b="PC"!==$e(v),w="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},T=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:s},window.location.href)},A=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,i[e]=!0,i)},50)},E=(e,t,i,r)=>{e.splice(t,0,"time"===r?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},L=(e,t)=>"Weekly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Weekly"===t.period?1:"Daily"===e.period&&"Weekly"===t.period||"Daily"===e.period&&"Monthly"===t.period||"Weekly"===e.period&&"Monthly"===t.period?-1:0,M=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return De(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),r.$$set=e=>{"limitsdata"in e&&n(0,a=e.limitsdata),"limitname"in e&&n(1,s=e.limitname),"playercurrency"in e&&n(2,t=e.playercurrency),"lang"in e&&n(3,l=e.lang),"clientstyling"in e&&n(4,c=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,d=e.translationurl)},r.$$.update=()=>{if(11&r.$$.dirty[0]&&a&&s&&l){var e=l;Le.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",n(12,w=o("removeLimitsText",{values:{limit:e}})),n(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&n(14,x=!1)});{var i=a;const t=m;m.forEach((t,e)=>{i.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&n(9,f=!1)}),n(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?E(i,t.indexOf(e),e,"time"):E(i,t.indexOf(e),e,"currency")})}a.sort(L)}if(80&r.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&r.$$.dirty[0]&&u&&p){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}4194304&r.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Eu(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,i,f,g,y,w,_,x,o,b,C,P,T,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},A,d,()=>A(0),e=>A(e+1),e=>A(e+1),()=>P(a),()=>T(a),function(e){Ee[e?"unshift":"push"](()=>{p=e,n(6,p)})}]}function Nd(e){let i;return{c(){le(i=di("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),le(i,"limitname",e[14]),le(i,"showsuccessnotification",e[7]),le(i,"showdeletenotification",e[6]),le(i,"playercurrency",e[5]),le(i,"lang",e[0]),le(i,"separatelimits",e[8]),le(i,"clientstyling",e[9]),le(i,"clientstylingurl",e[10])},m(e,t){li(e,i,t)},p(e,t){8192&t&&le(i,"limitsdata",e[13]),16384&t&&le(i,"limitname",e[14]),128&t&&le(i,"showsuccessnotification",e[7]),64&t&&le(i,"showdeletenotification",e[6]),32&t&&le(i,"playercurrency",e[5]),1&t&&le(i,"lang",e[0]),256&t&&le(i,"separatelimits",e[8]),512&t&&le(i,"clientstyling",e[9]),1024&t&&le(i,"clientstylingurl",e[10])},d(e){e&&ci(i)}}}function Fd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),r=mi(),n=di("h2"),o=hi(f),a=mi(),s=di("div"),l=di("player-account-gaming-limits-info-card"),c=mi(),u=di("player-account-gaming-limits-info-card"),d=mi(),p=di("player-account-gaming-limits-info-card"),h=mi(),m=di("player-account-gaming-limits-info-card"),gi(n,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",Hd),le(l,"playercurrency",e[5]),le(l,"lang",e[0]),le(l,"clientstyling",e[9]),le(l,"clientstylingurl",e[10]),le(u,"limitsdata",e[2]),le(u,"limitname",zd),le(u,"playercurrency",e[5]),le(u,"lang",e[0]),le(u,"clientstyling",e[9]),le(u,"clientstylingurl",e[10]),le(p,"limitsdata",e[3]),le(p,"limitname",Wd),le(p,"playercurrency",e[5]),le(p,"lang",e[0]),le(p,"clientstyling",e[9]),le(p,"clientstylingurl",e[10]),le(m,"limitsdata",e[4]),le(m,"limitname",jd),le(m,"playercurrency",e[5]),le(m,"lang",e[0]),le(m,"clientstyling",e[9]),le(m,"clientstylingurl",e[10]),gi(s,"class","PlayerAccountGamingLimitsContainer"),gi(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){li(e,i,t),g&&g.m(i,null),si(i,r),si(i,n),si(n,o),si(i,a),si(i,s),si(s,l),si(s,c),si(s,u),si(s,d),si(s,p),si(s,h),si(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&yi(o,f),2&t&&le(l,"limitsdata",e[1]),32&t&&le(l,"playercurrency",e[5]),1&t&&le(l,"lang",e[0]),512&t&&le(l,"clientstyling",e[9]),1024&t&&le(l,"clientstylingurl",e[10]),4&t&&le(u,"limitsdata",e[2]),32&t&&le(u,"playercurrency",e[5]),1&t&&le(u,"lang",e[0]),512&t&&le(u,"clientstyling",e[9]),1024&t&&le(u,"clientstylingurl",e[10]),8&t&&le(p,"limitsdata",e[3]),32&t&&le(p,"playercurrency",e[5]),1&t&&le(p,"lang",e[0]),512&t&&le(p,"clientstyling",e[9]),1024&t&&le(p,"clientstylingurl",e[10]),16&t&&le(m,"limitsdata",e[4]),32&t&&le(m,"playercurrency",e[5]),1&t&&le(m,"lang",e[0]),512&t&&le(m,"clientstyling",e[9]),1024&t&&le(m,"clientstylingurl",e[10])},d(e){e&&ci(i),g&&g.d()}}}function Od(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Rd(i){let r;function n(e){return e[12]?Od:e[15]?Fd:Nd}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[22](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Yu,Uu,i,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),p()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},dd,ud,i,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[1]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@charset "UTF-8";.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid ar(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Id,Bd,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),p()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}});let Hd="Deposit Limit",zd="Wagering Limit",Wd="Loss Limit",jd="Time Limit";function Ud(t,e,i){let r,n=(Ae(t,Me,e=>i(16,r=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:c=!1}=e,{lang:u="en"}=e,{playercurrency:d=""}=e,{separatelimits:p="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g;Object.keys(Au).forEach(e=>{Tu(e,Au[e])});let y,v=!0,b=window.navigator.userAgent,w="PC"!==$e(b),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:w},window.location.href)},T=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,u=e.data.limits.lang),i(1,n=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return De(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"depositlimit"in e&&i(1,n=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,c=e.showsuccessnotification),"lang"in e&&i(0,u=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,p=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,m=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,Le.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&m&&g){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{g.appendChild(t)},1)})}var e;1048576&t.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tu(e,t[e])})}).catch(e=>{console.log(e)})},[u,n,o,a,s,d,l,c,p,h,m,g,v,y,_,x,r,w,C,P,f,()=>P(),function(e){Ee[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function Yd(e,t){B(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Ud,Rd,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,playercurrency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,translationurl:20},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency","separatelimits","clientstyling","clientstylingurl","translationurl"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(e){this.$$set({depositlimit:e}),p()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),p()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),p()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),p()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Gd={en:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"},"zh-hk":{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"},fr:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"},ro:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"},es:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"},pt:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"}};function Vd(e,t){B(e,t)}const qd={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function Zd(e){let i,r,n,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&yi(n,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Xd(e){let i,r,n,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&yi(n,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Kd(e){let i,r,n,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&yi(n,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Jd(i){let r,n,o,a,s=i[9]("forfeitBonus")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Qd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,O,x,C,P,R,T,A,H,E,L,z,M=i[9]("date")+"",$=W(i[0]).format("DD/MM/YYYY h:mm A")+"",D=i[9](""+i[1])+"",S=i[9]("bonusName")+"",k=i[9]("bonusType")+"",B=i[3]&&Zd(i),I=i[4]&&Xd(i),N=i[5]&&Kd(i),F="active"===i[1]&&Jd(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(M),l=mi(),c=di("span"),u=hi($),d=mi(),p=di("p"),h=hi(D),f=mi(),g=di("div"),y=di("p"),v=hi(S),b=mi(),w=di("p"),_=hi(i[2]),O=mi(),x=di("div"),C=di("p"),P=hi(k),R=mi(),T=di("p"),A=hi(i[8]),H=mi(),B&&B.c(),E=mi(),I&&I.c(),L=mi(),N&&N.c(),z=mi(),F&&F.c(),this.c=se,gi(a,"class","BonusCardRowTitle"),gi(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===i[1]||"released"===i[1]?"StatusActive":"")+" "+("expired"===i[1]?"StatusExpired":"")+" "+("forfeited"===i[1]?"StatusForfeited":"")),gi(o,"class","BonusCardRow"),gi(y,"class","BonusCardRowTitle"),gi(w,"class","BonusCardRowText"),gi(g,"class","BonusCardRow"),gi(C,"class","BonusCardRowTitle"),gi(T,"class","BonusCardRowText TextCapitalize"),gi(x,"class","BonusCardRow"),gi(n,"class","BonusCardInfo"),gi(r,"class","BonusCard")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(a,l),si(a,c),si(c,u),si(o,d),si(o,p),si(p,h),si(n,f),si(n,g),si(g,y),si(y,v),si(g,b),si(g,w),si(w,_),si(n,O),si(n,x),si(x,C),si(C,P),si(x,R),si(x,T),si(T,A),si(n,H),B&&B.m(n,null),si(n,E),I&&I.m(n,null),si(n,L),N&&N.m(n,null),si(r,z),F&&F.m(r,null),i[18](r)},p(e,[t]){512&t&&M!==(M=e[9]("date")+"")&&yi(s,M),1&t&&$!==($=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,$),514&t&&D!==(D=e[9](""+e[1])+"")&&yi(h,D),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&gi(p,"class",m),512&t&&S!==(S=e[9]("bonusName")+"")&&yi(v,S),4&t&&yi(_,e[2]),512&t&&k!==(k=e[9]("bonusType")+"")&&yi(P,k),256&t&&yi(A,e[8]),e[3]?B?B.p(e,t):((B=Zd(e)).c(),B.m(n,E)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=Xd(e)).c(),I.m(n,L)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=Kd(e)).c(),N.m(n,null)):N&&(N.d(1),N=null),"active"===e[1]?F?F.p(e,t):((F=Jd(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},i:se,o:se,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[18](null)}}}function ep(t,e,i){let r;Ae(t,Me,e=>i(9,r=e));let n,{bonuswalletid:o=""}=e,{bonusdate:a=""}=e,{bonusstatus:s=""}=e,{bonusname:l=""}=e,{bonustype:c=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:p=""}=e,{bonuscurrency:h=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,v=window.navigator.userAgent,b="PC"!==$e(v),w="";Object.keys(qd).forEach(e=>{Vd(e,qd[e])});return t.$$set=e=>{"bonuswalletid"in e&&i(12,o=e.bonuswalletid),"bonusdate"in e&&i(0,a=e.bonusdate),"bonusstatus"in e&&i(1,s=e.bonusstatus),"bonusname"in e&&i(2,l=e.bonusname),"bonustype"in e&&i(13,c=e.bonustype),"bonusamount"in e&&i(3,u=e.bonusamount),"bonuswageringamount"in e&&i(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&i(5,p=e.bonusremainingamount),"bonuscurrency"in e&&i(6,h=e.bonuscurrency),"lang"in e&&i(14,m=e.lang),"clientstyling"in e&&i(15,f=e.clientstyling),"clientstylingurl"in e&&i(16,g=e.clientstylingurl),"translationurl"in e&&i(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,Le.set(e)),8192&t.$$.dirty&&c&&(i(8,w=c),"freeRound"===w?i(8,w="Free Spins"):"freeBet"===w&&i(8,w="Free Bet")),65664&t.$$.dirty&&g&&n){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vd(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,n,w,r,b,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,c,m,f,g,y,function(e){Ee[e?"unshift":"push"](()=>{n=e,i(7,n)})}]}function tp(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function ip(e,t,i){e=e.slice();return e[46]=t[i],e}function rp(e){let i,r,n=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("invalidBonusCode")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function np(t){let n,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=lp(ip(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var r=ip(t,o,e);a[e]?a[e].p(r,i):(a[e]=lp(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function op(e){let i,r,n=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noActiveBonuses")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ap(e){let i,r,n,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),le(i,"bonusdate",n=e[46].granted),le(i,"bonusstatus",o=e[46].status),le(i,"bonusname",a=e[46].name),le(i,"bonustype",s=e[46].type),le(i,"bonusamount",l=e[46].extension.grantedPlayerCurrencyAmount),le(i,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),le(i,"bonusremainingamount",u=e[46].currentAmount),le(i,"bonuscurrency",d=e[46].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&le(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&le(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&le(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].extension.grantedPlayerCurrencyAmount)&&le(i,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&le(i,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&le(i,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&le(i,"bonuscurrency",d),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function sp(e){let i,r,n,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),le(i,"bonusdate",n=e[46].granted),le(i,"bonusstatus",o=e[46].status),le(i,"bonusname",a=e[46].name),le(i,"bonustype",s=e[46].type),le(i,"bonuscurrency",l=e[46].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&le(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&le(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&le(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&le(i,"bonuscurrency",l),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function lp(e){let i;function r(e){return"freeRound"===e[46].type?sp:ap}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function cp(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(i[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=up(tp(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[11]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[11]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[11]===i[10]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[11]===i[10]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),b||(w=[fi(n,"click",i[29]),fi(l,"click",i[30]),fi(p,"click",i[32]),fi(g,"click",i[33])],b=!0)},p(t,i){if(2048&i[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&gi(n,"class",a),2048&i[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&gi(l,"class",e),265216&i[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=tp(t,_,e);x[e]?x[e].p(a,i):(x[e]=up(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&i[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&gi(p,"class",m),3072&i[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),b=!1,ai(w)}}}function up(i){let r,n,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function dp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[14]("forfeitBonus")+"",v=i[14]("forfeitBonusCancel")+"",b=i[14]("forfeitBonusConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(b),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[20]),fi(h,"click",i[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&yi(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&yi(d,v),16384&t[0]&&b!==(b=e[14]("forfeitBonusConfirm")+"")&&yi(m,b)},d(e){e&&ci(r),f=!1,ai(g)}}}function pp(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T=i[14]("title")+"",A=i[14]("bonusCode")+"",E=i[14]("getBonus")+"",L=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),M=i[5]&&rp(i);function $(e){return 0===e[12].length?op:np}let D=$(i),S=D(i),k=0!==i[12].length&&cp(i),B=i[13]&&dp(i);return{c(){r=di("div"),L&&L.c(),n=mi(),o=di("h2"),a=hi(T),s=mi(),l=di("div"),c=di("label"),u=hi(A),d=mi(),p=di("div"),h=di("input"),m=mi(),f=di("button"),g=hi(E),y=mi(),M&&M.c(),v=mi(),b=di("div"),S.c(),w=mi(),k&&k.c(),_=mi(),B&&B.c(),x=I(),gi(o,"class","ActiveBonusesTitle "+(i[15]?"ActiveBonusesTitleNone":"")),gi(c,"for","BonusCode"),gi(h,"class","BonusCodeInput "+(i[15]?"BonusCodeInputMobile":"")),gi(h,"type","text"),gi(h,"id","BonusCode"),gi(f,"class","SubmitBonusCode "+(i[15]?"SubmitBonusCodeMobile":"")),f.disabled=i[4],gi(p,"class","BonusCodeWrapper "+(i[15]?"BonusCodeWrapperMobile":"")),gi(l,"class","BonusCodeContainer "+(i[15]?"BonusCodeContainerMobile":"")),gi(b,"class","ActiveBonusesGrid "+(i[15]?"ActiveBonusesGridMobile":"")),gi(r,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(r,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,r,t),L&&L.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),vi(h,i[6]),si(p,m),si(p,f),si(f,g),si(l,y),M&&M.m(l,null),si(r,v),si(r,b),S.m(b,null),si(r,w),k&&k.m(r,null),li(e,_,t),B&&B.m(e,t),li(e,x,t),C||(P=[fi(h,"input",i[28]),fi(h,"keyup",i[17]),fi(f,"click",i[19])],C=!0)},p(e,t){e[15]&&L.p(e,t),16384&t[0]&&T!==(T=e[14]("title")+"")&&yi(a,T),16384&t[0]&&A!==(A=e[14]("bonusCode")+"")&&yi(u,A),64&t[0]&&h.value!==e[6]&&vi(h,e[6]),16384&t[0]&&E!==(E=e[14]("getBonus")+"")&&yi(g,E),16&t[0]&&(f.disabled=e[4]),e[5]?M?M.p(e,t):((M=rp(e)).c(),M.m(l,null)):M&&(M.d(1),M=null),D===(D=$(e))&&S?S.p(e,t):(S.d(1),(S=D(e))&&(S.c(),S.m(b,null))),0!==e[12].length?k?k.p(e,t):((k=cp(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),e[13]?B?B.p(e,t):((B=dp(e)).c(),B.m(x.parentNode,x)):B&&(B.d(1),B=null)},d(e){e&&ci(r),L&&L.d(),M&&M.d(),S.d(),k&&k.d(),e&&ci(_),B&&B.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[34](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[34](null)}}}function hp(t,e,r){let i;Ae(t,Me,e=>r(14,i=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{playercurrency:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h=window.navigator.userAgent,m="PC"!==$e(h),f,g=!1,y="",v=0,b=0,w=0,_=0,x=0,C=[],P="",T=!1;Object.keys(Gd).forEach(e=>{Yd(e,Gd[e])});const A=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,r(13,T=!0))},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},L=t=>{var e={method:"GET",headers:{"X-SessionId":a}},i=new URL(`${o}/player/${s}/bonusWallet`);i.searchParams.append("filter","status=active"),i.searchParams.append("pagination",`offset=${t},limit=6`),fetch(i,e).then(e=>e.json()).then(e=>{r(10,_=Math.ceil(e.total/6)),0<=t-6&&r(7,v=t-6),t+6<e.total&&r(8,b=t+6),r(9,w=6*(_-1)),r(11,x=t/6),r(12,C=e.items)},e=>{console.error(e)})},M=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,T=!1)};return De(()=>(window.addEventListener("message",A,!1),()=>{window.removeEventListener("message",A)})),t.$$set=e=>{"endpoint"in e&&r(22,o=e.endpoint),"session"in e&&r(23,a=e.session),"playerid"in e&&r(24,s=e.playerid),"lang"in e&&r(0,l=e.lang),"playercurrency"in e&&r(25,c=e.playercurrency),"clientstyling"in e&&r(1,u=e.clientstyling),"clientstylingurl"in e&&r(2,d=e.clientstylingurl),"translationurl"in e&&r(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,Le.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&L(0),12&t.$$.dirty[0]&&d&&n){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&n&&((e=document.createElement("style")).innerHTML=u,n.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yd(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,n,!0,g,y,v,b,w,_,x,C,T,i,m,E,()=>{r(4,f=!y)},L,()=>{var e=new URL(`${o}/player/${s}/claimbonus`),t={method:"POST",headers:{"X-SessionId":a,accept:"application/json"}};e.searchParams.append("currency",c),e.searchParams.append("bonusCode",y),fetch(e.href,t).then(e=>{200==e.status?(r(5,g=!1),L(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(r(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},M,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(L(0),M())})},o,a,s,c,p,()=>E(),function(){y=this.value,r(6,y)},()=>L(0),()=>L(v),e=>L(6*e),()=>L(b),()=>L(w),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function mp(e,t){B(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ep,Qd,i,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),p()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),p()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),p()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),p()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),p()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),p()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),p()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),p()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},hp,pp,i,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),p()}});const fp={en:{title:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"},"zh-hk":{title:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",securityQuestion:"安全問題:",securityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",firstName:"名:",securityAnswer:"安全答案:",securityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",userTitle:"標題:",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",userAppSettings:"生物识别",userSMSNotification:"啟用短信通知",userBiometrics:"启用生物识别",userEmailNotification:"啟用電子郵件",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!"},fr:{title:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",securityQuestion:"Questions de sécurité:",securityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",firstName:"Prénom:",securityAnswer:"Reponses de sécurité:",securityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",userTitle:"Titre:",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",userAppSettings:"Biométrie",userSMSNotification:"Activer les notifications par sms",userBiometrics:"Activer la biométrie",userEmailNotification:"Activer les e-mails",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!"},ro:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Raspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"},tr:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 12 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"İlk adı:",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"},es:{title:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",securityQuestion:"Tipo de Documento (DNI, CE o Pasaporte):",securityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",firstName:"Nombre",securityAnswer:"Número de Documento:",securityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",userTitle:"Título:",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",userAppSettings:"Biometría",userSMSNotification:"Habilitar notificaciones SMS",userBiometrics:"Habilitar datos biométricos",userEmailNotification:"Habilitar Emails",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!"},pt:{title:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",securityQuestion:"Pergunta de segurança:",securityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",firstName:"Primeiro nome:",securityAnswer:"Resposta de segurança:",securityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",userTitle:"Título:",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",userAppSettings:"Biometrics",userSMSNotification:"Ativar notificações por SMS",userBiometrics:"Ativar biometria.",userEmailNotification:"Ativar notificações por e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!"}};function gp(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var i,r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[r],window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],i&&i.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,i=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof i?(t=Array.prototype.slice.call(arguments,1),i.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var yp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},vp=function(e,...t){try{return gp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},bp=function(e,t){try{return gp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function wp(e,t,i){e=e.slice();return e[108]=t[i],e}function _p(i){let n,O,R,H,z,W,j,U,Y,r,G,V,q,Z,o,X,a,K,J,Q,ee,s,te,l,e,ie,re,ne,c,oe,ae,se,le,ce,u,ue,de,pe,he,d,me,fe,ge,ye,ve,p,be,we,_e,xe,Ce,Pe,Te,Ae,h,Ee,Le,Me,$e,De,m,Se,ke,Be,Ie,Ne,f,Fe,Oe,Re,He,ze,g,We,je,Ue,Ye,Ge,y,Ve,qe,Ze,Xe,Ke,v,Je,Qe,et,tt,it,b,rt,nt,ot,at,w,st,lt,_,ct,ut,dt,x,pt,ht,mt,ft,gt,C,yt,vt,bt,P,wt,_t,xt,Ct,T,Pt,Tt,At,A,Et,Lt,Mt,$t,Dt,St,kt,Bt,It,Nt,Ft,Ot,Rt,Ht,zt=i[38]("title")+"",Wt=i[38]("personalDetails")+"",jt=i[38]("userName")+"",Ut=i[38]("userPhone")+"",Yt=("true"==i[1]?i[38]("profileSecurityQuestion2"):i[38]("profileSecurityQuestion"))+"",Gt=("true"==i[1]?i[38]("profileSecurityAnswer2"):i[38]("profileSecurityAnswer"))+"",Vt=i[38]("userEmail")+"",qt=i[38]("dateOfBirth")+"",Zt=i[38]("firstName")+"",Xt=i[38]("lastName")+"",Kt=i[38]("userTitle")+"",Jt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ri=i[38]("userPostalCode")+"",ni=i[38]("userProfileSaveChanges")+"",E=i[39]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),oi=i[17],L=[];for(let e=0;e<oi.length;e+=1)L[e]=Tp(wp(i,oi,e));let M=i[26]&&Ap(i),$=i[24]&&Ep(i),D=i[25]&&Lp(i),S=i[21]&&Mp(i),k=i[23]&&$p(i),B=i[22]&&Dp(i),I=(i[18]||i[19])&&Sp(i),N=i[28]&&Ip(i),F=i[27]&&Np(i);return{c(){n=di("form"),E&&E.c(),O=mi(),R=di("h2"),H=hi(zt),z=mi(),W=di("div"),j=di("h3"),U=hi(Wt),Y=mi(),r=di("section"),G=di("div"),V=di("label"),q=hi(jt),Z=mi(),o=di("input"),X=mi(),a=di("div"),K=di("label"),J=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<L.length;e+=1)L[e].c();te=mi(),l=di("input"),ie=mi(),M&&M.c(),ne=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),$&&$.c(),he=mi(),d=di("div"),me=di("label"),fe=hi(Gt),ge=hi(":"),(ye=di("span")).textContent="*",ve=mi(),p=di("input"),we=mi(),D&&D.c(),xe=mi(),Ce=di("div"),Pe=di("label"),Te=hi(Vt),Ae=mi(),h=di("input"),Ee=mi(),Le=di("div"),Me=di("label"),$e=hi(qt),De=mi(),m=di("input"),Se=mi(),ke=di("div"),Be=di("label"),Ie=hi(Zt),Ne=mi(),f=di("input"),Fe=mi(),Oe=di("div"),Re=di("label"),He=hi(Xt),ze=mi(),g=di("input"),We=mi(),je=di("div"),Ue=di("label"),Ye=hi(Kt),Ge=mi(),y=di("input"),Ve=mi(),qe=di("div"),Ze=di("label"),Xe=hi(Jt),Ke=mi(),v=di("input"),Je=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),b=di("section"),rt=di("div"),nt=di("label"),ot=hi(ei),at=mi(),w=di("input"),lt=mi(),_=di("div"),ct=di("label"),ut=hi(ti),dt=mi(),x=di("input"),mt=mi(),S&&S.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),bt=mi(),P=di("input"),_t=mi(),k&&k.c(),Ct=mi(),T=di("div"),Pt=di("label"),Tt=hi(ri),At=mi(),A=di("input"),Mt=mi(),B&&B.c(),Dt=mi(),I&&I.c(),St=mi(),N&&N.c(),kt=mi(),Bt=di("section"),It=di("button"),Nt=hi(ni),Ot=mi(),F&&F.c(),gi(R,"class","MyAccountCategoryTitle "+(i[39]?"MyAccountCategoryTitleNone":"")),gi(W,"class","PlayerNotificationsHeader"),gi(o,"type","text"),gi(o,"class","FieldDisabled"),o.value=i[37],o.readOnly=!0,gi(G,"class","PlayerInfoBox"),void 0===i[13]&&wi(()=>i[61].call(s)),gi(l,"type","text"),gi(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),gi(l,"placeholder",e=i[4]?i[32].number:""),gi(ee,"class","PlayerPhoneNumber"),gi(a,"class",re="PlayerInfoBox "+(i[26]?"InvalidField":"")),gi(le,"class","FormRequired"),gi(oe,"for","SecurityQuestion"),gi(u,"type","text"),gi(u,"placeholder",ue=i[4]?i[45]:""),gi(c,"class",pe="PlayerInfoBox "+(i[24]?"InvalidField":"")),gi(ye,"class","FormRequired"),gi(me,"for","SecurityAnswer"),gi(p,"type","text"),gi(p,"placeholder",be=i[4]?i[44]:""),gi(d,"class",_e="PlayerInfoBox "+(i[25]?"InvalidField":"")),gi(h,"type","email"),gi(h,"class","FieldDisabled"),h.value=i[33],h.readOnly=!0,gi(Ce,"class","PlayerInfoBox"),gi(m,"type","text"),gi(m,"class","FieldDisabled"),m.value=i[30],m.readOnly=!0,gi(Le,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi(ke,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Oe,"class","PlayerInfoBox"),gi(y,"type","text"),gi(y,"class","FieldDisabled"),y.value=i[35],y.readOnly=!0,gi(je,"class","PlayerInfoBox"),gi(v,"type","text"),gi(v,"class","FieldDisabled"),v.value=i[31],v.readOnly=!0,gi(qe,"class","PlayerInfoBox"),gi(r,"class","PlayerDetailsContent"),gi(Qe,"class","PlayerLocationHeader"),gi(w,"type","text"),gi(w,"class","PlayerCountry FieldDisabled"),gi(w,"placeholder",i[0]),w.value=st=i[16].Name,w.readOnly=!0,gi(rt,"class","PlayerInfoBox"),gi(x,"type","text"),gi(x,"placeholder",pt=i[4]?i[42]:""),x.value=ht=i[4]?"":i[29].city,gi(_,"class",ft="PlayerInfoBox "+(i[21]?"InvalidField":"")),gi(P,"placeholder",i[41]),gi(P,"type","text"),P.value=wt=i[4]?"":i[29].address,gi(C,"class",xt="PlayerInfoBox "+(i[23]?"InvalidField":"")),gi(A,"type","text"),gi(A,"placeholder",Et=i[4]?i[43]:""),A.value=Lt=i[4]?"":i[29].postalCode,gi(T,"class",$t="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(b,"class","PlayerLocationContent"),gi(It,"class",Ft="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(Bt,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(n,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,n,t),E&&E.m(n,null),si(n,O),si(n,R),si(R,H),si(n,z),si(n,W),si(W,j),si(j,U),si(n,Y),si(n,r),si(r,G),si(G,V),si(V,q),si(G,Z),si(G,o),si(r,X),si(r,a),si(a,K),si(K,J),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);bi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),M&&M.m(a,null),si(r,ne),si(r,c),si(c,oe),si(oe,ae),si(oe,se),si(oe,le),si(c,ce),si(c,u),vi(u,i[11]),si(c,de),$&&$.m(c,null),si(r,he),si(r,d),si(d,me),si(me,fe),si(me,ge),si(me,ye),si(d,ve),si(d,p),vi(p,i[12]),si(d,we),D&&D.m(d,null),si(r,xe),si(r,Ce),si(Ce,Pe),si(Pe,Te),si(Ce,Ae),si(Ce,h),si(r,Ee),si(r,Le),si(Le,Me),si(Me,$e),si(Le,De),si(Le,m),si(r,Se),si(r,ke),si(ke,Be),si(Be,Ie),si(ke,Ne),si(ke,f),si(r,Fe),si(r,Oe),si(Oe,Re),si(Re,He),si(Oe,ze),si(Oe,g),si(r,We),si(r,je),si(je,Ue),si(Ue,Ye),si(je,Ge),si(je,y),si(r,Ve),si(r,qe),si(qe,Ze),si(Ze,Xe),si(qe,Ke),si(qe,v),si(n,Je),si(n,Qe),si(Qe,et),si(et,tt),si(n,it),si(n,b),si(b,rt),si(rt,nt),si(nt,ot),si(rt,at),si(rt,w),si(b,lt),si(b,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),S&&S.m(_,null),si(b,gt),si(b,C),si(C,yt),si(yt,vt),si(C,bt),si(C,P),i[71](P),si(C,_t),k&&k.m(C,null),si(b,Ct),si(b,T),si(T,Pt),si(Pt,Tt),si(T,At),si(T,A),i[73](A),si(T,Mt),B&&B.m(T,null),si(n,Dt),I&&I.m(n,null),si(n,St),N&&N.m(n,null),si(n,kt),si(n,Bt),si(Bt,It),si(It,Nt),si(n,Ot),F&&F.m(n,null),Rt||(Ht=[fi(s,"change",i[61]),fi(s,"change",i[62]),fi(l,"input",i[63]),fi(l,"keyup",i[46]),fi(l,"keyup",i[64]),fi(u,"input",i[65]),fi(u,"keyup",i[66]),fi(u,"blur",i[47]),fi(p,"input",i[67]),fi(p,"keyup",i[68]),fi(p,"blur",i[48]),fi(x,"blur",i[49]),fi(x,"keyup",i[70]),fi(P,"blur",i[51]),fi(P,"keyup",i[72]),fi(A,"blur",i[50]),fi(A,"keyup",i[74]),fi(It,"click",i[78])],Rt=!0)},p(t,i){if(t[39]&&E.p(t,i),128&i[1]&&zt!==(zt=t[38]("title")+"")&&yi(H,zt),128&i[1]&&Wt!==(Wt=t[38]("personalDetails")+"")&&yi(U,Wt),128&i[1]&&jt!==(jt=t[38]("userName")+"")&&yi(q,jt),64&i[1]&&o.value!==t[37]&&(o.value=t[37]),128&i[1]&&Ut!==(Ut=t[38]("userPhone")+"")&&yi(J,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var r=wp(t,oi,e);L[e]?L[e].p(r,i):(L[e]=Tp(r),L[e].c(),L[e].m(s,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=oi.length}139264&i[0]&&bi(s,t[13]),16&i[0]|2&i[1]&&e!==(e=t[4]?t[32].number:"")&&gi(l,"placeholder",e),16384&i[0]&&l.value!==t[14]&&vi(l,t[14]),t[26]?M?M.p(t,i):((M=Ap(t)).c(),M.m(a,null)):M&&(M.d(1),M=null),67108864&i[0]&&re!==(re="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",re),2&i[0]|128&i[1]&&Yt!==(Yt=("true"==t[1]?t[38]("profileSecurityQuestion2"):t[38]("profileSecurityQuestion"))+"")&&yi(ae,Yt),16&i[0]&&ue!==(ue=t[4]?t[45]:"")&&gi(u,"placeholder",ue),2048&i[0]&&u.value!==t[11]&&vi(u,t[11]),t[24]?$?$.p(t,i):(($=Ep(t)).c(),$.m(c,null)):$&&($.d(1),$=null),16777216&i[0]&&pe!==(pe="PlayerInfoBox "+(t[24]?"InvalidField":""))&&gi(c,"class",pe),2&i[0]|128&i[1]&&Gt!==(Gt=("true"==t[1]?t[38]("profileSecurityAnswer2"):t[38]("profileSecurityAnswer"))+"")&&yi(fe,Gt),16&i[0]&&be!==(be=t[4]?t[44]:"")&&gi(p,"placeholder",be),4096&i[0]&&p.value!==t[12]&&vi(p,t[12]),t[25]?D?D.p(t,i):((D=Lp(t)).c(),D.m(d,null)):D&&(D.d(1),D=null),33554432&i[0]&&_e!==(_e="PlayerInfoBox "+(t[25]?"InvalidField":""))&&gi(d,"class",_e),128&i[1]&&Vt!==(Vt=t[38]("userEmail")+"")&&yi(Te,Vt),4&i[1]&&h.value!==t[33]&&(h.value=t[33]),128&i[1]&&qt!==(qt=t[38]("dateOfBirth")+"")&&yi($e,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Zt!==(Zt=t[38]("firstName")+"")&&yi(Ie,Zt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Xt!==(Xt=t[38]("lastName")+"")&&yi(He,Xt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Kt!==(Kt=t[38]("userTitle")+"")&&yi(Ye,Kt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Jt!==(Jt=t[38]("currency")+"")&&yi(Xe,Jt),1&i[1]&&v.value!==t[31]&&(v.value=t[31]),128&i[1]&&Qt!==(Qt=t[38]("locationDetails")+"")&&yi(tt,Qt),128&i[1]&&ei!==(ei=t[38]("userCountry")+"")&&yi(ot,ei),1&i[0]&&gi(w,"placeholder",t[0]),65536&i[0]&&st!==(st=t[16].Name)&&w.value!==st&&(w.value=st),128&i[1]&&ti!==(ti=t[38]("userCity")+"")&&yi(ut,ti),16&i[0]&&pt!==(pt=t[4]?t[42]:"")&&gi(x,"placeholder",pt),536870928&i[0]&&ht!==(ht=t[4]?"":t[29].city)&&x.value!==ht&&(x.value=ht),t[21]?S?S.p(t,i):((S=Mp(t)).c(),S.m(_,null)):S&&(S.d(1),S=null),2097152&i[0]&&ft!==(ft="PlayerInfoBox "+(t[21]?"InvalidField":""))&&gi(_,"class",ft),128&i[1]&&ii!==(ii=t[38]("userAddress")+"")&&yi(vt,ii),536870928&i[0]&&wt!==(wt=t[4]?"":t[29].address)&&P.value!==wt&&(P.value=wt),t[23]?k?k.p(t,i):((k=$p(t)).c(),k.m(C,null)):k&&(k.d(1),k=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ri!==(ri=t[38]("userPostalCode")+"")&&yi(Tt,ri),16&i[0]&&Et!==(Et=t[4]?t[43]:"")&&gi(A,"placeholder",Et),536870928&i[0]&&Lt!==(Lt=t[4]?"":t[29].postalCode)&&A.value!==Lt&&(A.value=Lt),t[22]?B?B.p(t,i):((B=Dp(t)).c(),B.m(T,null)):B&&(B.d(1),B=null),4194304&i[0]&&$t!==($t="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(T,"class",$t),t[18]||t[19]?I?I.p(t,i):((I=Sp(t)).c(),I.m(n,St)):I&&(I.d(1),I=null),t[28]?N?N.p(t,i):((N=Ip(t)).c(),N.m(n,kt)):N&&(N.d(1),N=null),128&i[1]&&ni!==(ni=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ni),1081344&i[0]&&Ft!==(Ft="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(It,"class",Ft),t[27]?F?F.p(t,i):((F=Np(t)).c(),F.m(n,null)):F&&(F.d(1),F=null)},d(e){e&&ci(n),E&&E.d(),ui(L,e),M&&M.d(),$&&$.d(),D&&D.d(),i[69](null),S&&S.d(),i[71](null),k&&k.d(),i[73](null),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),Rt=!1,ai(Ht)}}}function xp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Cp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Pp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.selected=!0,i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Tp(e){let i;function r(e){return e[108].Prefix===e[29].mobiePrefix?Pp:Cp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Ap(e){let i,r,n=e[38]("userPhoneError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPhoneError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ep(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Lp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Mp(e){let i,r,n=e[38]("userCityError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userCityError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function $p(e){let i,r,n=e[38]("userAddressError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userAddressError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Dp(e){let i,r,n=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPostalCodeError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sp(e){let i,r,n,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&kp(e),u=e[18]&&Bp(e);return{c(){i=di("div"),r=di("h3"),n=hi(l),o=mi(),a=di("section"),c&&c.c(),s=mi(),u&&u.c(),gi(i,"class","PlayerNotificationsHeader"),gi(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,i,t),si(i,r),si(r,n),li(e,o,t),li(e,a,t),c&&c.m(a,null),si(a,s),u&&u.m(a,null)},p(e,t){128&t[1]&&l!==(l=e[38]("userNotifications")+"")&&yi(n,l),e[19]?c?c.p(e,t):((c=kp(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=Bp(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(i),e&&ci(o),e&&ci(a),c&&c.d(),u&&u.d()}}}function kp(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","SMSNotification"),gi(o,"name","Enable SMS notifications"),gi(s,"class","Checkmark"),gi(n,"for","SMSNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[8],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[75]),fi(o,"change",i[54])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),128&t[1]&&h!==(h=e[38]("userSMSNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function Bp(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","EmailNotification"),gi(o,"name","Enable Emails"),gi(s,"class","Checkmark"),gi(n,"for","EmailNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[9],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[76]),fi(o,"change",i[54])],d=!0)},p(e,t){512&t[0]&&(o.checked=e[9]),128&t[1]&&h!==(h=e[38]("userEmailNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function Ip(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",b=i[38]("userBiometrics")+"";return{c(){r=di("div"),n=di("h3"),o=hi(v),a=mi(),s=di("section"),l=di("div"),c=di("label"),u=di("input"),d=mi(),p=di("span"),h=mi(),m=di("span"),f=hi(b),gi(r,"class","PlayerNotificationsHeader"),gi(u,"type","checkbox"),gi(u,"id","BiometricsEnabled"),gi(u,"name","Biometric Enabled"),gi(p,"class","Checkmark"),gi(c,"for","Biometrics"),gi(l,"class","PlayerNotificationBox"),gi(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),li(e,a,t),li(e,s,t),si(s,l),si(l,c),si(c,u),u.checked=i[10],si(c,d),si(c,p),si(c,h),si(c,m),si(m,f),g||(y=[fi(u,"change",i[77]),fi(u,"change",i[54])],g=!0)},p(e,t){128&t[1]&&v!==(v=e[38]("userAppSettings")+"")&&yi(o,v),1024&t[0]&&(u.checked=e[10]),128&t[1]&&b!==(b=e[38]("userBiometrics")+"")&&yi(f,b)},d(e){e&&ci(r),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function Np(e){let i,r,n,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),r=di("p"),n=hi(o),gi(r,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Fp(i){let r;function n(e){return e[3]?xp:_p}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[79](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[79](null)}}}function Op(t,e,i){let N;Ae(t,Me,e=>i(38,N=e));let r,n,o,a,s,{endpoint:l=""}=e,{lang:c="en"}=e,{countrycode:u="IR"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{custominputtextswitch:m="false"}=e,F=!0,O=window.navigator.userAgent,R="PC"!==$e(O),H=!0,f=!1,g=!1,y=!1,v="",b="",w="",_="",x=!1,z={Name:"I.e Ireland"},C=[],W=[],P=[],T=!1,A=!1,E={items:[]},j=!1,U="",Y="",G="",V=!1,q=!1,Z=!1,L=!1,X={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(fp).forEach(e=>{mp(e,fp[e])});e=window.matchMedia("(min-width: 768px)");let K={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},M={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},$={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:J,birth:Q,city:ee,currency:te,mobile:D,email:ie,firstname:re,userTitles:ne,language:oe,lastname:ae,postalCode:se,securityAnswer:S,securityQuestion:k,username:le}=$;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,H=!1),$=e.data.profileDetails,i(37,le=$.username),i(32,D=$.mobile),i(33,ie=$.email),i(34,re=$.firstname),i(36,ae=$.lastname),oe=$.language,i(30,Q=(null==(t=$.birth)?void 0:t.day)+"/"+(null==(t=$.birth)?void 0:t.month)+"/"+(null==(t=$.birth)?void 0:t.year)),i(31,te=$.currency),i(35,ne=$.title),i(11,v=$.securityQuestion),i(12,b=$.securityAnswer),i(13,w=null==(t=$.mobile)?void 0:t.prefix),i(14,_=null==(t=$.mobile)?void 0:t.number),i(29,M.address=$.address1,M),i(29,M.city=$.city,M),i(29,M.mobilePrefix=null==D?void 0:D.prefix,M),i(29,M.mobileNumber=null==D?void 0:D.number,M),i(29,M.postalCode=$.postalCode,M),i(29,M.securityAnswer=$.securityAnswer,M),i(29,M.securityQuestion=$.securityQuestion,M);break;case"ProfileConsentData":P=e.data.consent.items,Array.isArray(P)&&P.forEach(e=>{"emailmarketing"==e.tagCode?(i(18,T=!0),i(9,g="Accepted"==e.status),i(29,M.acceptNewsEmail=g,M)):"sms"==e.tagCode&&(i(19,A=!0),i(8,f="Accepted"==e.status),i(29,M.acceptSMSOffers=f,M))});break;case"ConfirmProfileInfoSave":L&&(bp("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),vp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,Z=!0),setTimeout(()=>{i(27,Z=!1)},3e3)}},B=()=>{i(20,j=!(V||q||U||G||Y||s))},ue=e=>{e.preventDefault(),1==x&&1==j&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:K},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:E},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;K={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:w,postalCode:n.value,securityAnswer:b,securityQuestion:v},e=K,t=M,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),E={items:[]},A&&E.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),T&&E.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),B()};return De(()=>(window.addEventListener("message",ce,!1),i(28,L=!!yp(O)),L&&(bp("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),vp("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",ce)})),t.$$set=e=>{"endpoint"in e&&i(55,l=e.endpoint),"lang"in e&&i(56,c=e.lang),"countrycode"in e&&i(0,u=e.countrycode),"clientstyling"in e&&i(57,d=e.clientstyling),"clientstylingurl"in e&&i(58,p=e.clientstylingurl),"translationurl"in e&&i(59,h=e.translationurl),"custominputtextswitch"in e&&i(1,m=e.custominputtextswitch)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&c&&(e=c,Le.set(e)),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&l&&u&&fetch(l+"/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{W=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code)),i(16,z=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,F=!1)})}),16777216&t.$$.dirty[1]&&l&&fetch(l+"/player/phonecodes").then(e=>e.json()).then(e=>{i(17,C=e.phoneCodes)}),4&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&p&&r){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,r,F,H,n,o,a,f,g,y,v,b,w,_,x,z,C,T,A,j,U,Y,G,V,q,s,Z,L,M,Q,te,D,ie,re,ne,ae,le,N,R,e,J,ee,se,S,k,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),B()},()=>{i(24,V=!(()=>{if(k)switch(m){case"true":if(X.document.test(k)&&k.length<=50)return!0;break;case"false":if(k&&k.length<=120)return!0}return!1})()),B()},()=>{i(25,q=!(()=>{if(S)switch(m){case"true":if(X.document.test(S)&&S.length<=50)return!0;break;case"false":if(S&&S.length<=120)return!0}return!1})()),B()},()=>{i(21,U=!(a.value&&a.value.length<=50)),B()},()=>{i(22,Y=!(n.value&&n.value.length<=20)),B()},()=>{i(23,G=!(o.value&&o.value.length<=100)),B()},ue,de,I,l,c,d,p,h,()=>de(),function(){w=pe(this),i(13,w),i(17,C)},()=>I(),function(){_=this.value,i(14,_)},()=>I(),function(){v=this.value,i(11,v)},()=>I(),function(){b=this.value,i(12,b)},()=>I(),function(e){Ee[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>I(),function(e){Ee[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>I(),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(5,n)})},()=>I(),function(){f=this.checked,i(8,f)},function(){g=this.checked,i(9,g)},function(){y=this.checked,i(10,y)},e=>ue(e),function(e){Ee[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Rp(e,t){B(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Op,Fp,i,{endpoint:55,lang:56,countrycode:0,clientstyling:57,clientstylingurl:58,translationurl:59,custominputtextswitch:1},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","lang","countrycode","clientstyling","clientstylingurl","translationurl","custominputtextswitch"]}get endpoint(){return this.$$.ctx[55]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[56]}set lang(e){this.$$set({lang:e}),p()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$$set({countrycode:e}),p()}get clientstyling(){return this.$$.ctx[57]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[58]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[59]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[1]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}});const Hp={en:{title:"Change Password",currentPassword:"Current Password:",invalidCurrentPassword:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",newPassword:"New Password:",invalidNewPassword:"The new password must be different from the old password.",invalidNewPasswordSecondary:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",confirmPassword:"Confirm Password:",confirmPasswordInvalid:"Password must match the new password and must follow the same rules.",submitChangePassword:"Change Password",simplePasswordError:"Password must be 8-20 characters long.",returnToMenu:"Return to menu",changePasswordText:"Change Password",passwordReset:"PASSWORD RESET",passwordResetConfirmation:"Your password has been reset successfully.",backButtonText:"Back"},"zh-hk":{title:"更改密碼",currentPassword:"當前密碼",invalidCurrentPassword:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",newPassword:"新密碼",invalidNewPassword:"新密碼必須與舊密碼不同。",invalidNewPasswordSecondary:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",confirmPassword:"確認密碼",simplePasswordError:"密码长度必须为 8-20 个字符。",confirmPasswordInvalid:"密碼必須與新密碼匹配,並且必須遵循相同的規則。",submitChangePassword:"更改密碼",returnToMenu:"返回菜單",changePasswordText:"更改密碼",passwordReset:"重設密碼",passwordResetConfirmation:"您的密碼已成功重置。",backButtonText:"回到賭場"},fr:{title:"Modifier le mot de passe",currentPassword:"Mot de passe actuel:",invalidCurrentPassword:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",newPassword:"Nouveau mot de passe:",invalidNewPassword:"Le nouveau mot de passe doit être different de l'ancien.",invalidNewPasswordSecondary:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",confirmPassword:"Confirmer le mot de passe:",confirmPasswordInvalid:"Le mot de passe doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",submitChangePassword:"Modifier le mot de passe",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",returnToMenu:"Retour au menu",changePasswordText:"Modifier le mot de passe",passwordReset:"Réinitialisation du mot de passe",passwordResetConfirmation:"Votre mot de passe a été réinitialisé avec succès.",backButtonText:"Retour"},ro:{title:"Schimbă parola",currentPassword:"Parola curentă",invalidCurrentPassword:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",newPassword:"Parola nouă",invalidNewPassword:"Noua parolă trebuie să fie diferită de cea veche.",invalidNewPasswordSecondary:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",confirmPassword:"Confirmă parola",confirmPasswordInvalid:"Parolele trebuie să coincidă și să îndeplinească aceleași condiții.",submitChangePassword:"Schimbă parola",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",returnToMenu:"Înapoi la meniu",changePasswordText:"Schimbă parola",passwordReset:"Resetează parola",passwordResetConfirmation:"Parola a fost resetată cu succes.",backButtonText:"Înapoi"},es:{title:"Cambiar Contraseña",currentPassword:"Contraseña Actual",invalidCurrentPassword:"La contraseña debe ser entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",newPassword:"Nueva contraseña:",invalidNewPassword:"La nueva contraseña debe ser diferente de la contraseña anterior.",invalidNewPasswordSecondary:"Cambiar Contraseñay contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",confirmPassword:"Confirmar Contraseña:",confirmPasswordInvalid:"La Contraseña debe coincidir con la Nueva Contraseña y debe seguir las mismas reglas.",submitChangePassword:"Cambiar Contraseña",simplePasswordError:"La contraseña debe ser entre 8 a 20 caracteres.",returnToMenu:"Regresar al menu",changePasswordText:"Cambiar Contraseña",passwordReset:"REESTABLECER CONTRASEÑA",passwordResetConfirmation:"Tu contraseña se ha reestablecido exitosamente..",backButtonText:"Regresar"},pt:{title:"Mudar senha",currentPassword:"Senha atual",invalidCurrentPassword:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",newPassword:"Nova Senha",invalidNewPassword:"A nova senha deve ser diferente da senha antiga.",invalidNewPasswordSecondary:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",confirmPassword:"Confirme sua senha",confirmPasswordInvalid:"A senha deve corresponder à nova senha e deve seguir as mesmas regras.",submitChangePassword:"Mudar senha",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",returnToMenu:"Voltar ao menu",changePasswordText:"Mudar senha",passwordReset:"REDEFINIÇÃO DE SENHA",passwordResetConfirmation:"Sua senha foi redefinida com sucesso.",backButtonText:"Voltar"}};function zp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C=i[19]("changePasswordText")+"",P=i[19]("passwordReset")+"",T=i[19]("passwordResetConfirmation")+"",A=i[19]("backButtonText")+"",E=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("g"),a=pi("path"),s=mi(),l=di("span"),c=hi(p),gi(a,"id","Chevron_Right"),gi(a,"d","M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"),gi(n,"version","1.1"),gi(n,"id","Capa_1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(n,"x","0px"),gi(n,"y","0px"),gi(n,"viewBox","0 0 240.823 240.823"),L(n,"enable-background","new 0 0 240.823 240.823"),gi(n,"xml:space","preserve"),gi(n,"width","18px"),gi(n,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(r,l),si(l,c),u||(d=fi(r,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(r),u=!1,d()}}}(i);return{c(){E&&E.c(),r=mi(),n=di("div"),o=di("h3"),a=hi(C),s=mi(),l=di("div"),c=di("div"),(u=di("div")).innerHTML='<div class="Checkmark"></div>',d=mi(),p=di("div"),h=di("h3"),m=hi(P),f=mi(),g=di("p"),y=hi(T),v=mi(),b=di("div"),w=hi(A),gi(n,"class","PlayerChangePasswordHeader"),gi(u,"class","IconContainer"),gi(p,"class","TextContainer"),gi(c,"class","SuccessWrapper"),gi(b,"class","PlayerChangePasswordBackButton"),gi(l,"class","ChangedPasswordSuccessfully")},m(e,t){E&&E.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(c,p),si(p,h),si(h,m),si(p,f),si(p,g),si(g,y),si(l,v),si(l,b),si(b,w),_||(x=fi(b,"click",i[46]),_=!0)},p(e,t){e[20]&&E.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&yi(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&yi(m,P),524288&t[0]&&T!==(T=e[19]("passwordResetConfirmation")+"")&&yi(y,T),524288&t[0]&&A!==(A=e[19]("backButtonText")+"")&&yi(w,A)},d(e){E&&E.d(e),e&&ci(r),e&&ci(n),e&&ci(s),e&&ci(l),_=!1,x()}}}function Wp(i){let O,r,R,H,n,o,a,z,W,s,j,U,l,Y,c,u,G,V,d,q,Z,p,X,h,m,K,J,f,Q,ee,g,te,y,v,b,ie,w,_,re,ne,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",T=i[19]("confirmPassword")+"",A=i[19]("submitChangePassword")+"",E=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function oe(e){return e[10]?Up:jp}let L=oe(i),M=L(i),$=i[4]&&Yp(i);function ae(e){return e[11]?Zp:qp}let D=ae(i),S=D(i);function se(e){return e[13]?Kp:e[5]?Xp:void 0}let k=se(i),B=k&&k(i);function le(e){return e[12]?th:eh}let ce=le(i),I=ce(i),N=i[6]&&ih(i),F=i[18]&&rh(i);return{c(){E&&E.c(),O=mi(),r=di("h2"),R=hi(x),H=mi(),n=di("section"),o=di("div"),a=di("label"),z=hi(C),W=mi(),s=di("input"),j=mi(),M.c(),U=mi(),$&&$.c(),Y=mi(),c=di("div"),u=di("label"),G=hi(P),V=mi(),d=di("input"),q=mi(),S.c(),Z=mi(),B&&B.c(),X=mi(),h=di("div"),m=di("label"),K=hi(T),J=mi(),f=di("input"),Q=mi(),I.c(),ee=mi(),N&&N.c(),te=mi(),F&&F.c(),y=mi(),v=di("section"),b=di("button"),ie=hi(A),gi(r,"class","ChangePasswordTitle "+(i[20]?"ChangePasswordTitleNone":"")),gi(a,"for","CurrentPassword"),gi(s,"id","CurrentPassword"),gi(s,"type","password"),gi(o,"class",l="PlayerChangePasswordBox "+(i[4]?"InvalidField":"")),gi(u,"for","NewPassword"),gi(d,"id","NewPassword"),gi(d,"autocomplete","new-password"),gi(d,"type","password"),gi(c,"class",p="PlayerChangePasswordBox "+(i[5]?"InvalidField":"")),gi(m,"for","ConfirmPassword"),gi(f,"id","ConfirmPassword"),gi(f,"type","password"),gi(h,"class",g="PlayerChangePasswordBox "+(i[6]?"InvalidField":"")),gi(n,"class","PlayerChangePasswordContent"),gi(b,"class",w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),b.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){E&&E.m(e,t),li(e,O,t),li(e,r,t),si(r,R),li(e,H,t),li(e,n,t),si(n,o),si(o,a),si(a,z),si(o,W),si(o,s),vi(s,i[14]),i[33](s),si(o,j),M.m(o,null),si(o,U),$&&$.m(o,null),si(n,Y),si(n,c),si(c,u),si(u,G),si(c,V),si(c,d),vi(d,i[15]),i[37](d),si(c,q),S.m(c,null),si(c,Z),B&&B.m(c,null),si(n,X),si(n,h),si(h,m),si(m,K),si(h,J),si(h,f),vi(f,i[16]),i[41](f),si(h,Q),I.m(h,null),si(h,ee),N&&N.m(h,null),li(e,te,t),F&&F.m(e,t),li(e,y,t),li(e,v,t),si(v,b),si(b,ie),re||(ne=[fi(s,"input",i[32]),fi(s,"blur",function(){ue(i[23](i[4],i[14],i[7]))&&i[23](i[4],i[14],i[7]).apply(this,arguments)}),fi(d,"input",i[36]),fi(d,"blur",function(){ue(i[23](i[5],i[15],i[8]))&&i[23](i[5],i[15],i[8]).apply(this,arguments)}),fi(f,"input",i[40]),fi(f,"blur",function(){ue(i[23](i[6],i[16],i[9]))&&i[23](i[6],i[16],i[9]).apply(this,arguments)}),fi(b,"click",i[44])],re=!0)},p(e,t){(i=e)[20]&&E.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(z,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),L===(L=oe(i))&&M?M.p(i,t):(M.d(1),(M=L(i))&&(M.c(),M.m(o,U))),i[4]?$?$.p(i,t):(($=Yp(i)).c(),$.m(o,null)):$&&($.d(1),$=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(i[4]?"InvalidField":""))&&gi(o,"class",l),524288&t[0]&&P!==(P=i[19]("newPassword")+"")&&yi(G,P),32768&t[0]&&d.value!==i[15]&&vi(d,i[15]),D===(D=ae(i))&&S?S.p(i,t):(S.d(1),(S=D(i))&&(S.c(),S.m(c,Z))),k===(k=se(i))&&B?B.p(i,t):(B&&B.d(1),(B=k&&k(i))&&(B.c(),B.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(i[5]?"InvalidField":""))&&gi(c,"class",p),524288&t[0]&&T!==(T=i[19]("confirmPassword")+"")&&yi(K,T),65536&t[0]&&f.value!==i[16]&&vi(f,i[16]),ce===(ce=le(i))&&I?I.p(i,t):(I.d(1),(I=ce(i))&&(I.c(),I.m(h,ee))),i[6]?N?N.p(i,t):((N=ih(i)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(i[6]?"InvalidField":""))&&gi(h,"class",g),i[18]?F?F.p(i,t):((F=rh(i)).c(),F.m(y.parentNode,y)):F&&(F.d(1),F=null),524288&t[0]&&A!==(A=i[19]("submitChangePassword")+"")&&yi(ie,A),8&t[0]&&w!==(w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(b,"class",w),8&t[0]&&_!==(_=!i[3])&&(b.disabled=_)},d(e){E&&E.d(e),e&&ci(O),e&&ci(r),e&&ci(H),e&&ci(n),i[33](null),M.d(),$&&$.d(),i[37](null),S.d(),B&&B.d(),i[41](null),I.d(),N&&N.d(),e&&ci(te),F&&F.d(e),e&&ci(y),e&&ci(v),re=!1,ai(ne)}}}function jp(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Up(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function Yp(e){let i;function r(e){return"true"==e[0]?Vp:Gp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Gp(e){let i,r,n=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidCurrentPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Vp(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function qp(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Zp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function Xp(e){let i;function r(e){return"true"==e[0]?Qp:Jp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Kp(e){let i,r,n=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Jp(e){let i,r,n=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPasswordSecondary")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Qp(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function eh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function th(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function ih(e){let i,r,n=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("confirmPasswordInvalid")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rh(e){let i,r,n;return{c(){i=di("div"),r=di("p"),n=hi(e[17]),gi(r,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){131072&t[0]&&yi(n,e[17])},d(e){e&&ci(i)}}}function nh(i){let r,n=function(e){let i;function r(e){return e[2]?zp:Wp}let n=r(e),o=n(e);return{c(){i=di("form"),o.c(),gi(i,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){li(e,i,t),o.m(i,null)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[47](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[47](null)}}}function oh(t,e,r){let i;Ae(t,Me,e=>r(19,i=e));let n,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=!1;const N=window.matchMedia("(min-width: 768px)"),h={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let m,f,g,y=!1,v=!1,b=!1,w=!1,_=!1,x=!1,C=!1,P="",T="",A="",E=!1,L="",M=!1;Object.keys(Hp).forEach(e=>{Rp(e,Hp[e])});const $=e=>{switch(e){case"userCurrentPassword":r(10,w=!w),r(7,m.type=w?"text":"password",m);break;case"userNewPassword":r(11,_=!_),r(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":r(12,x=!x),r(9,g.type=x?"text":"password",g)}},D=e=>!!h.password.test(e),S=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:T},window.location.href)},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},B=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":r(2,E=!0);break;case"ShowPasswordChangedError":r(18,M=e.data.showErrorPasswordChanged),r(17,L=e.data.errorPasswordChanged)}};return De(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&r(27,o=e.lang),"simplepasswordvalidation"in e&&r(0,a=e.simplepasswordvalidation),"clientstyling"in e&&r(28,s=e.clientstyling),"clientstylingurl"in e&&r(29,l=e.clientstylingurl),"translationurl"in e&&r(30,c=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&a&&"true"==a&&(h.password=/^(?!.* ).{8,20}$/),134217728&t.$$.dirty[0]&&o&&(e=o,Le.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;268435458&t.$$.dirty[0]&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rp(e,t[e])})}).catch(e=>{console.log(e)})},[a,n,E,p,y,v,b,m,f,g,w,_,x,C,P,T,A,L,M,i,d,N,$,(e,t,i)=>{"CurrentPassword"===i.id?r(4,y=!D(t)):"NewPassword"===i.id&&(r(5,v=!D(t)),P&&r(13,C=P===T),!A)||r(6,b=T!==A||!D(t)),r(3,p=!(y||v||b||C||!P||!T||!A))},S,k,B,o,s,l,c,()=>k(),function(){P=this.value,r(14,P)},function(e){Ee[e?"unshift":"push"](()=>{m=e,r(7,m)})},()=>$("userCurrentPassword"),()=>$("userCurrentPassword"),function(){T=this.value,r(15,T)},function(e){Ee[e?"unshift":"push"](()=>{f=e,r(8,f)})},()=>$("userNewPassword"),()=>$("userNewPassword"),function(){A=this.value,r(16,A)},function(e){Ee[e?"unshift":"push"](()=>{g=e,r(9,g)})},()=>$("userConfirmPassword"),()=>$("userConfirmPassword"),e=>S(e),()=>k(),()=>B(),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(1,n)})}]}function ah(e,t){B(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:30px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox input::-ms-reveal,.PlayerChangePasswordBox input::-ms-clear{display:none}.PlayerChangePasswordBox.InvalidField input{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:38px;cursor:pointer;color:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibilityMobile{top:35px}.InvalidInput,.InvalidInputNew{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;padding-top:5px;margin:0;line-height:12px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:16px;line-height:18px;margin-top:0}.ChangedPasswordSuccessfully{color:var(--emfe-w-color-white, #FFFFFF);position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:var(--emfe-w-color-gray-300, #58586B)}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},oh,nh,i,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),p()}});const sh={en:{title:"Reality Check",never:"Never",minutes:"Minutes",oneHour:"1 Hour",hours:"Hours",successMessage:"Reality check has been successfully updated.",realityCheckText:"The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",realityCheckLoading:"Loading items, please wait ...",setFrequency:"Set frequency"},"zh-hk":{title:"現實檢查",never:"絕不",minutes:"分鐘",oneHour:"1小時",hours:"小時",successMessage:"現實檢查已成功更新。",realityCheckText:"該工具允許您設置在遊戲會話中在屏幕上看到消息的頻率。 它將顯示自會話開始以來經過的時間。",realityCheckLoading:"正在加載項目,請稍候...",setFrequency:"設置頻率"},fr:{title:"Verification de la réalité",never:"Jamais",minutes:"Minutes",oneHour:"1 Heure",hours:"Heure",successMessage:"Le contrôle de la réalité a été mis à jour avec succès.",realityCheckText:"La fonction de contrôle de la réalité vous permet de définir la fréquence à laquelle vous verrez un contrôlede la réalité sur l'écran au cours de votre sessions de jeu , c'est-à-dire un affichage du temps écoulé depuis le début de votre session.",realityCheckLoading:"Chargement des éléments, veuillez patienter ...",setFrequency:"Régler la fréquence"},ro:{title:"Verificare timp",never:"Niciodata",minutes:"Minute",oneHour:"1 Ora",hours:"Ore",successMessage:"Frecvența a fost setată cu succes!",realityCheckText:"Opțiunea Reality Check îți permite să setezi frecvența cu care vei vedea verificarea timpului de joc pe parcursul sesiunii tale de joc. O astfel de verificare reprezintă afișarea timpului trecut de la începerea sesiunii de joc.",realityCheckLoading:"Se încarcă...",setFrequency:"Stabilește frecvența"},es:{title:"Verificación de la realidad",never:"Nunca",minutes:"Minutos",oneHour:"1 Hora",hours:"Horas",successMessage:"La verificación de la realidad se ha actualizado con éxito.",realityCheckText:"La función de Verificación de la realidad le permite establecer la frecuencia con la que verá una Verificación de la realidad en la pantalla dentro de su sesión de juego. Una verificación de la realidad significa una visualización del tiempo transcurrido desde que comenzó su sesión. Puede controlar la frecuencia con la que aparecerá la Verificación de realidad en su pantalla.",realityCheckLoading:"Cargando items",setFrequency:"Estabelecer frecuencia"},pt:{title:"Verificação da realidade",never:"Nunca",minutes:"Minutos",oneHour:"1 hora",hours:"Horas",successMessage:"A verificação da realidade foi atualizada com sucesso.",realityCheckText:"O recurso Verificação da Realidade permite que você defina a frequência com que você verá uma Verificação da Realidade na tela durante sua sessão de jogo. Uma verificação da realidade significa uma exibição do tempo decorrido desde o início da sua sessão.",realityCheckLoading:"Carregando itens, por favor aguarde...",setFrequency:"Definir frequência"}};function lh(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function ch(e){let i;return{c(){(i=di("div")).textContent=""+e[6],gi(i,"class","successMessageMobile")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function uh(e){let i,r;return{c(){i=di("div"),r=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function dh(i){let r,n,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=hh(lh(i,u,e));return{c(){r=di("form");for(let e=0;e<d.length;e+=1)d[e].c();n=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(r,"class","customRadio")},m(e,t){li(e,r,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);si(r,n),si(r,o),si(o,a),si(a,s),l||(c=fi(a,"click",i[22]),l=!0)},p(t,i){if(130&i[0]){let e;for(u=t[7],e=0;e<u.length;e+=1){const s=lh(t,u,e);d[e]?d[e].p(s,i):(d[e]=hh(s),d[e].c(),d[e].m(r,n))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&i[0]&&e!==(e=t[4]("setFrequency")+"")&&yi(s,e)},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function ph(e){let i,r,n=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[4]("realityCheckLoading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function hh(i){let r,n,o,a,s,t,l,c,e=i[36]+"";return t=function(t){let i;return{p(...e){(i=e).forEach(e=>t.push(e))},r(){i.forEach(e=>t.splice(t.indexOf(e),1))}}}(i[21][0]),{c(){r=di("div"),n=di("input"),o=mi(),a=di("label"),s=hi(e),gi(n,"type","radio"),gi(n,"id",i[35]),n.__value=i[35],n.value=n.__value,gi(a,"for",i[35]),t.p(n)},m(e,t){li(e,r,t),si(r,n),n.checked=n.__value===i[1],si(r,o),si(r,a),si(a,s),l||(c=fi(n,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(n.checked=n.__value===e[1])},d(e){e&&ci(r),t.r(),l=!1,c()}}}function mh(i){let r,n,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&ch(i);return{c(){v&&v.c(),r=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=pi("g"),u=pi("g"),d=pi("path"),p=mi(),h=di("h2"),m=hi(y),gi(d,"class","aaa"),gi(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(d,"transform","translate(15 15) rotate(180)"),gi(u,"transform","translate(20 158)"),gi(c,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","15"),gi(o,"height","15"),gi(o,"viewBox","0 0 15 15"),gi(h,"class","RealityCheckTitleMobile"),gi(h,"part","RealityCheckTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),f||(g=fi(n,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=ch(e)).c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&yi(m,y)},d(e){v&&v.d(e),e&&ci(r),e&&ci(n),f=!1,g()}}}(i),g=i[3]&&uh(i);function y(e){return e[2]?ph:dh}let v=y(i),b=v(i);return{c(){r=di("div"),f&&f.c(),n=mi(),g&&g.c(),o=mi(),a=di("h2"),s=hi(h),l=mi(),c=di("div"),u=di("p"),d=hi(m),p=mi(),b.c(),this.c=se,gi(a,"class","RealityCheckTitle "+(i[5]?"RealityCheckTitleNone":"")),gi(c,"class","RealityCheckDescription "+(i[5]?"RealityCheckDescriptionMobile":"")),gi(r,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(r,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,r,t),f&&f.m(r,null),si(r,n),g&&g.m(r,null),si(r,o),si(r,a),si(a,s),si(r,l),si(r,c),si(c,u),si(u,d),si(c,p),b.m(c,null),i[23](r)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=uh(e)).c(),g.m(r,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&yi(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&yi(d,m),v===(v=y(e))&&b?b.p(e,t):(b.d(1),(b=v(e))&&(b.c(),b.m(c,null)))},i:se,o:se,d(e){e&&ci(r),f&&f.d(),g&&g.d(),b.d(),i[23](null)}}}function fh(i,e,r){let n;Ae(i,Me,e=>r(4,n=e));let o,{realitycheck:a=""}=e,{endpoint:s=""}=e,{playerid:l=""}=e,{session:c=""}=e,{lang:u="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,t=window.navigator.userAgent,m="PC"!==$e(t),f="",g=!0,y=(Object.keys(sh).forEach(e=>{ah(e,sh[e])}),!1),v=n("successMessage"),b=[],w=[];const _=e=>{e.preventDefault(),window.postMessage({type:"SubmittedRealityCheck",realityCheckUpdatedValue:f},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},C=e=>{e.data&&"RealityCheckValueUpdated"===e.data.type&&(r(3,y=!0),setTimeout(()=>{r(3,y=!1)},2e3))};return De(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&r(10,a=e.realitycheck),"endpoint"in e&&r(11,s=e.endpoint),"playerid"in e&&r(12,l=e.playerid),"session"in e&&r(13,c=e.session),"lang"in e&&r(14,u=e.lang),"clientstyling"in e&&r(15,d=e.clientstyling),"clientstylingurl"in e&&r(16,p=e.clientstylingurl),"translationurl"in e&&r(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,Le.set(t)),14336&i.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(18,b=e.AvailableRealityCheckValues),b.forEach(e=>{0==e?w.push({value:e.toString(),text:n("never")}):e<60?w.push({value:e.toString(),text:e+" "+n("minutes")}):60==e?w.push({value:e.toString(),text:n("oneHour")}):60<e&&w.push({value:e.toString(),text:e/60+" "+n("hours")})}),r(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&b&&a&&r(1,f=a),65537&i.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e,t;32769&i.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&i.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ah(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,n,m,v,w,_,x,a,s,l,c,u,d,p,h,b,()=>x(),function(){f=this.__value,r(1,f)},[[]],e=>_(e),function(e){Ee[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function gh(e,t){B(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},fh,mh,i,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["realitycheck","endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl"]}get realitycheck(){return this.$$.ctx[10]}set realitycheck(e){this.$$set({realitycheck:e}),p()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[12]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}});const yh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function vh(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function bh(e,t,i){e=e.slice();return e[45]=t[i],e}function wh(t){let n,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ph(bh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var r=bh(t,o,e);a[e]?a[e].p(r,i):(a[e]=Ph(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function _h(e){let i,r,n=e[14]("noBonusHistory")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noBonusHistory")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function xh(e){let i,r,n,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),le(i,"bonusdate",n=e[45].granted),le(i,"bonusstatus",o=e[45].status),le(i,"bonusname",a=e[45].name),le(i,"bonustype",s=e[45].type),le(i,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),le(i,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),le(i,"bonusremainingamount",u=e[45].currentAmount),le(i,"bonuscurrency",d=e[45].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&le(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&le(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&le(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&le(i,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&le(i,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&le(i,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&le(i,"bonuscurrency",d),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Ch(e){let i,r,n,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),le(i,"bonusdate",n=e[45].granted),le(i,"bonusstatus",o=e[45].status),le(i,"bonusname",a=e[45].name),le(i,"bonustype",s=e[45].type),le(i,"bonuscurrency",l=e[45].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&le(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&le(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&le(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&le(i,"bonuscurrency",l),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Ph(e){let i;function r(e){return"freeRound"===e[45].type?Ch:xh}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Th(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(i[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Ah(vh(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[12]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[12]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[12]===i[11]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[12]===i[11]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),b||(w=[fi(n,"click",i[26]),fi(l,"click",i[27]),fi(p,"click",i[29]),fi(g,"click",i[30])],b=!0)},p(t,i){if(4096&i[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&gi(n,"class",a),4096&i[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&gi(l,"class",e),137216&i[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=vh(t,_,e);x[e]?x[e].p(a,i):(x[e]=Ah(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&i[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&gi(p,"class",m),6144&i[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),b=!1,ai(w)}}}function Ah(i){let r,n,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function Eh(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,A,E,L,M=i[14]("title")+"",$=i[14]("dateFrom")+"",D=i[14]("dateTo")+"",S=i[14]("dateFilter")+"",k=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function B(e){return 0===e[13].length?_h:wh}let I=B(i),N=I(i),F=0!==i[13].length&&Th(i);return{c(){r=di("div"),k&&k.c(),n=mi(),o=di("h2"),a=hi(M),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi($),h=mi(),m=di("vaadin-date-picker"),f=mi(),g=di("div"),y=di("label"),v=hi(D),b=mi(),w=di("vaadin-date-picker"),_=mi(),x=di("button"),C=hi(S),P=mi(),T=di("div"),N.c(),A=mi(),F&&F.c(),gi(o,"class","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(o,"part","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(d,"for","BonusCalendarStartDate"),le(m,"max",i[6]),le(m,"value",i[7]),le(m,"placeholder","From"),le(m,"class","VaadinDatePicker"),gi(u,"class","BonusesCalendarStartDate "+(i[15]?"BonusesCalendarMobile":"")),gi(y,"for","BonusesCalendarEndDate"),le(w,"max",i[6]),le(w,"value",i[6]),le(w,"placeholder","To"),le(w,"class","VaadinDatePicker"),gi(g,"class","BonusesCalendarEndDate "+(i[15]?"BonusesCalendarMobile":"")),gi(c,"class","BonusesCalendarContainer "+(i[15]?"BonusesCalendarContainerMobile":"")),gi(x,"class","BonusesCalendarFilter "+(i[15]?"BonusesCalendarFilterMobile":"")),gi(l,"class","BonusCalendarWrapper "+(i[15]?"BonusCalendarWrapperMobile":"")),gi(T,"class","BonusesGrid "+(i[15]?"BonusesGridMobile":"")),gi(r,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,r,t),k&&k.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(u,d),si(d,p),si(u,h),si(u,m),i[23](m),si(c,f),si(c,g),si(g,y),si(y,v),si(g,b),si(g,w),i[24](w),si(l,_),si(l,x),si(x,C),si(r,P),si(r,T),N.m(T,null),si(r,A),F&&F.m(r,null),E||(L=fi(x,"click",i[25]),E=!0)},p(e,t){e[15]&&k.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yi(a,M),16384&t[0]&&$!==($=e[14]("dateFrom")+"")&&yi(p,$),64&t[0]&&le(m,"max",e[6]),128&t[0]&&le(m,"value",e[7]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&yi(v,D),64&t[0]&&le(w,"max",e[6]),64&t[0]&&le(w,"value",e[6]),16384&t[0]&&S!==(S=e[14]("dateFilter")+"")&&yi(C,S),I===(I=B(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(T,null))),0!==e[13].length?F?F.p(e,t):((F=Th(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&ci(r),k&&k.d(),i[23](null),i[24](null),N.d(),F&&F.d(),E=!1,L()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[31](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[31](null)}}}function Lh(t,e,r){let i;Ae(t,Me,e=>r(14,i=e));let n,o,a,s,l,{endpoint:c=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:p="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g=window.navigator.userAgent,y="PC"!==$e(g),v=(s=W(new Date).format("YYYY-MM-DD"),l=W(new Date).subtract(3,"months").format("YYYY-MM-DD")),b=s,w=0,_=0,x=0,C=0,P=0,T=[];Object.keys(yh).forEach(e=>{gh(e,yh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},E=t=>{var e=new URL(`${c}/player/${d}/bonusWallet`),i=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(b).toISOString()}]`,i=(e.searchParams.append("filter",i),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,i).then(e=>e.json()).then(e=>{r(11,C=Math.ceil(e.total/6)),0<=t-6&&r(8,w=t-6),t+6<e.total&&r(9,_=t+6),r(10,x=6*(C-1)),r(12,P=t/6),r(13,T=e.items)},e=>{console.error(e)})},L=e=>{v=e.target.value},M=e=>{b=e.target.value};De(()=>()=>{o.removeEventListener("change",L),a.removeEventListener("change",M)});return t.$$set=e=>{"endpoint"in e&&r(18,c=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,p=e.lang),"clientstyling"in e&&r(1,h=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,Le.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",L,!1),a.addEventListener("change",M,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&E(0),12&t.$$.dirty[0]&&m&&n){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&n&&((e=document.createElement("style")).innerHTML=h,n.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,n,o,a,s,l,w,_,x,C,P,T,i,y,A,E,c,u,d,f,()=>A(),function(e){Ee[e?"unshift":"push"](()=>{o=e,r(4,o)})},function(e){Ee[e?"unshift":"push"](()=>{a=e,r(5,a)})},()=>E(0),()=>E(0),()=>E(w),e=>E(6*e),()=>E(_),()=>E(x),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function Mh(e,t){B(e,t)}customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Lh,Eh,i,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),p()}});const $h={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."}};function Dh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Sh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function kh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Sh:Dh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","DepositTitle "+(i[4]?"DepositTitleNone":"")),gi(r,"class","DepositWrapper "+(i[4]?"DepositWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function Bh(r,e,n){let t;Ae(r,Me,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==$e(i),g=!0,y=0,v="";Object.keys($h).forEach(e=>{Mh(e,$h[e])});const b=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"GoToDeposit"},window.location.href)}};return De(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Le.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mh(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){Ee[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function Ih(e,t){B(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Bh,kh,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const Nh={en:{title:"Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"退出",loading:"加載請稍候…"},fr:{title:"Retrait",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere",loading:"Se încarcă..."},es:{title:"Retirar",loading:"Cargando..."},pt:{title:"Retirada",loading:"Carregando, por favor espere ..."}};function Fh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Oh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Rh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Oh:Fh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(r,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function Hh(r,e,n){let t;Ae(r,Me,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==$e(i),g=!0,y=0,v="";Object.keys(Nh).forEach(e=>{Ih(e,Nh[e])});const b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"ChangeAccountPage",page:{path:"/deposit",id:469}},window.location.href)}};return De(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Le.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ih(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/player/${l}/hostedcashier/initializewithdraw`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){Ee[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function zh(e,t){B(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Hh,Rh,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const Wh={en:{title:"Pending Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"待取款",loading:"加載請稍候…"},fr:{title:"Retrait en cours",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere în așteptare",loading:"Se încarcă..."},es:{title:"Retiro Pendiente",loading:"Cargando..."},pt:{title:"Retirada pendente",loading:"Carregando, por favor espere ..."}};function jh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Uh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Yh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Uh:jh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(r,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function Gh(i,e,r){let t;Ae(i,Me,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(Wh).forEach(e=>{zh(e,Wh[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Le.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/player/${s}/hostedcashier/pendingwithdrawals`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{zh(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function Vh(e,t){B(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gh,Yh,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const qh={en:{title:"Transaction History",loading:"Loading, please wait ..."},"zh-hk":{title:"交易記錄",loading:"加載請稍候…"},fr:{title:"Historique des transactions",loading:"Chargement, veuillez patienter ..."},ro:{title:"Istoric tranzacții",loading:"Se încarcă..."},es:{title:"Historial de transacciones",loading:"Cargando ... Por favor espere ..."},pt:{title:"Histórico de transações",loading:"Carregando, por favor espere ..."}};function Zh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Xh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Kh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Xh:Zh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(r,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function Jh(i,e,r){let t;Ae(i,Me,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(qh).forEach(e=>{Vh(e,qh[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Le.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/player/${s}/hostedcashier/customertransactionhistoryurl`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vh(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Ee[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function Qh(e,t){B(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Jh,Kh,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const em={en:{title:"Gaming History",return:"Return",previous:"Prev",next:"Next",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",numberOfResults:"Show:",noRecord:"You haven't played any games so far.",transactionId:"Transaction ID",date:"Date",gameName:"Game Name",stake:"Stake"},"zh-hk":{title:"遊戲歷史",return:"回來",previous:"上一頁",next:"下一個",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",numberOfResults:"節目:",noRecord:"到目前為止,您還沒有玩任何遊戲。",transactionId:"交易編號",date:"日期",gameName:"遊戲名稱",stake:"賭注"},fr:{title:"Historique des jeux",return:"Revenir",previous:"Précedent",next:"Suivant",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",numberOfResults:"Afficher:",noRecord:"Vous n'avez joué à aucun jeu jusqu'à présent.",transactionId:"Transaction ID",date:"Date",gameName:"Nom du jeu",stake:"Mise"},ro:{title:"Istoric jocuri",return:"Înapoi la meniu",previous:"Înapoi",next:"Înainte",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",numberOfResults:"Arată",noRecord:"Nu ai niciun istoric de jocuri în acest moment."},es:{title:"Historial de apuestas",return:"Regresar",previous:"Previo",next:"Siguiente",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",numberOfResults:"Mostrar:",noRecord:"Aún no ha jugado ningún juego",transactionId:"ID de Transacción",date:"Fecha",gameName:"Nombre del juego",stake:"Apostado"},pt:{title:"Histórico de jogos",return:"Voltar ao menu",previous:"Anterior",next:"Próximo",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",numberOfResults:"Mostrar:",noRecord:"Você não jogou nenhum jogo até agora."}};function tm(e,t,i){e=e.slice();return e[55]=t[i],e}function im(e,t,i){e=e.slice();return e[58]=t[i],e}function rm(i){let r,n,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=nm(im(i,u,e));return{c(){r=di("div"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(s,"class","PlayerGamingHistoryItemCount"),void 0===i[7]&&wi(()=>i[33].call(s)),gi(r,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);bi(s,i[7],!0),l||(c=[fi(s,"change",i[33]),fi(s,"change",i[34])],l=!0)},p(t,i){if(16384&i[0]&&e!==(e=t[14]("numberOfResults")+"")&&yi(o,e),32768&i[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=im(t,u,e);d[e]?d[e].p(o,i):(d[e]=nm(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&i[0]&&bi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function nm(e){let i,r,t=e[58]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function om(e){let i,r,n=e[14]("noRecord")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noRecord")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function am(e){let i,r,n;return{c(){i=di("p"),r=hi("Invalid data: "),n=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r),si(i,n)},p(e,t){256&t[0]&&yi(n,e[8])},d(e){e&&ci(i)}}}function sm(i){let r,n,o,a,s,l,F,c,u,O,d,p,R,H,z,W,j,U,Y,h,G,m,f,g,y,e,V,v,q,b,w,Z,_,x,X,K,C,P,T,A,E,J,Q,L=i[14]("transactionId")+"",M=i[14]("date")+"",$=i[14]("gameName")+"",D=i[14]("stake")+"",S=i[14]("return")+"",k=i[14]("previous")+"",B=i[14]("next")+"",I=i[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=cm(tm(i,I,e));return{c(){r=di("div"),n=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(L),F=mi(),c=di("th"),u=hi(M),O=mi(),d=di("th"),p=hi($),R=mi(),H=di("th"),z=hi(D),W=mi(),j=di("th"),U=hi(S),Y=mi(),h=di("tbody");for(let e=0;e<N.length;e+=1)N[e].c();G=mi(),m=di("div"),f=di("button"),g=pi("svg"),y=pi("path"),V=mi(),v=di("span"),q=hi(k),Z=mi(),_=di("button"),x=di("span"),X=hi(B),K=mi(),C=pi("svg"),P=pi("path"),gi(r,"class","PlayerGamingHistoryContainer"),gi(y,"fill",e=i[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(y,"class","a"),gi(y,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(y,"transform","translate(19.246 -6.188) rotate(90)"),gi(g,"xmlns","http://www.w3.org/2000/svg"),gi(g,"width","8"),gi(g,"height","13.992"),gi(g,"viewBox","0 0 8 13.992"),gi(v,"class","PlayerPaginationControlsText"),gi(f,"class",b="PlayerPaginationControls "+(i[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=w=!i[5],gi(x,"class","PlayerPaginationControlsText"),gi(P,"fill",T=i[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(P,"class","a"),gi(P,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(P,"transform","translate(-11.246 20.179) rotate(-90)"),gi(C,"xmlns","http://www.w3.org/2000/svg"),gi(C,"width","8"),gi(C,"height","13.992"),gi(C,"viewBox","0 0 8 13.992"),gi(_,"class",A="PlayerPaginationControls "+(i[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=E=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(s,l),si(a,F),si(a,c),si(c,u),si(a,O),si(a,d),si(d,p),si(a,R),si(a,H),si(H,z),si(a,W),si(a,j),si(j,U),si(n,Y),si(n,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);li(e,G,t),li(e,m,t),si(m,f),si(f,g),si(g,y),si(f,V),si(f,v),si(v,q),si(m,Z),si(m,_),si(_,x),si(x,X),si(_,K),si(_,C),si(C,P),J||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],J=!0)},p(t,i){if(16384&i[0]&&L!==(L=t[14]("transactionId")+"")&&yi(l,L),16384&i[0]&&M!==(M=t[14]("date")+"")&&yi(u,M),16384&i[0]&&$!==($=t[14]("gameName")+"")&&yi(p,$),16384&i[0]&&D!==(D=t[14]("stake")+"")&&yi(z,D),16384&i[0]&&S!==(S=t[14]("return")+"")&&yi(U,S),1073152&i[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var r=tm(t,I,e);N[e]?N[e].p(r,i):(N[e]=cm(r),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&i[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(y,"fill",e),16384&i[0]&&k!==(k=t[14]("previous")+"")&&yi(q,k),32&i[0]&&b!==(b="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&gi(f,"class",b),32&i[0]&&w!==(w=!t[5])&&(f.disabled=w),16384&i[0]&&B!==(B=t[14]("next")+"")&&yi(X,B),16&i[0]&&T!==(T=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(P,"fill",T),16&i[0]&&A!==(A="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&gi(_,"class",A),16&i[0]&&E!==(E=!t[4])&&(_.disabled=E)},d(e){e&&ci(r),ui(N,e),e&&ci(G),e&&ci(m),J=!1,ai(Q)}}}function lm(e){let i;return{c(){gi(i=di("div"),"class","DataLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function cm(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,A,E,L,M=e[55].roundId+"",$=e[20](e[55])+"",D=e[55].gameModel.name+"",S=e[55].stakeAmount+"",k=e[55].returnAmount+"";return{c(){i=di("tr"),r=di("td"),n=di("span"),o=hi(M),l=mi(),c=di("td"),u=di("span"),d=hi($),h=mi(),m=di("td"),f=di("span"),g=hi(D),v=mi(),b=di("td"),w=di("span"),_=hi(S),C=mi(),P=di("td"),T=di("span"),A=hi(k),L=mi(),gi(r,"data-label",a=e[14]("transactionId")),gi(r,"title",s=e[55].roundId),gi(c,"data-label",p=e[14]("date")),gi(m,"data-label",y=e[14]("gameName")),gi(b,"data-label",x=e[14]("stake")),gi(P,"data-label",E=e[14]("return"))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,l),si(i,c),si(c,u),si(u,d),si(i,h),si(i,m),si(m,f),si(f,g),si(i,v),si(i,b),si(b,w),si(w,_),si(i,C),si(i,P),si(P,T),si(T,A),si(i,L)},p(e,t){8192&t[0]&&M!==(M=e[55].roundId+"")&&yi(o,M),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(r,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(r,"title",s),8192&t[0]&&$!==($=e[20](e[55])+"")&&yi(d,$),16384&t[0]&&p!==(p=e[14]("date"))&&gi(c,"data-label",p),8192&t[0]&&D!==(D=e[55].gameModel.name+"")&&yi(g,D),16384&t[0]&&y!==(y=e[14]("gameName"))&&gi(m,"data-label",y),8192&t[0]&&S!==(S=e[55].stakeAmount+"")&&yi(_,S),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(b,"data-label",x),8192&t[0]&&k!==(k=e[55].returnAmount+"")&&yi(A,k),16384&t[0]&&E!==(E=e[14]("return"))&&gi(P,"data-label",E)},d(e){e&&ci(i)}}}function um(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,A,E,L,M,$=i[14]("title")+"",D=i[14]("dateFrom")+"",S=i[14]("dateTo")+"",k=i[14]("dateFilter")+"",B=i[16]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=!i[12].matches&&rm(i);function O(e){return e[9]?lm:0<e[13].length?sm:0<e[8].length?am:om}let N=O(i),F=N(i);return{c(){r=di("div"),n=di("div"),B&&B.c(),o=mi(),a=di("h2"),s=hi($),l=mi(),c=di("div"),u=di("div"),d=di("div"),p=di("div"),h=di("span"),m=hi(D),f=mi(),g=di("vaadin-date-picker"),y=mi(),v=di("div"),b=di("span"),w=hi(S),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),T=hi(k),A=mi(),I&&I.c(),E=mi(),F.c(),this.c=se,gi(a,"class","PlayerGamingHistoryTitle "+(i[16]?"PlayerGamingHistoryTitleNone":"")),le(g,"max",i[10]),le(g,"placeholder","From"),le(g,"value",i[11]),le(g,"class","VaadinDatePicker"),gi(p,"class","PlayerGamingDateWrapper"),le(x,"max",i[10]),le(x,"placeholder","To"),le(x,"value",i[10]),le(x,"class","VaadinDatePicker"),gi(v,"class","PlayerGamingDateWrapper"),gi(d,"class","PlayerGamingDateContainer"),gi(P,"class","PlayerGamingHistoryFilterButton"),gi(u,"class","PlayerGamingHistoryFilterWrapper"),gi(c,"class","PlayerGamingHistoryTopSection"),gi(n,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,r,t),si(r,n),B&&B.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(d,p),si(p,h),si(h,m),si(p,f),si(p,g),i[30](g),si(d,y),si(d,v),si(v,b),si(b,w),si(v,_),si(v,x),i[31](x),si(u,C),si(u,P),si(P,T),si(u,A),I&&I.m(u,null),si(n,E),F.m(n,null),i[37](n),i[38](r),L||(M=fi(P,"click",i[32]),L=!0)},p(e,t){e[16]&&B.p(e,t),16384&t[0]&&$!==($=e[14]("title")+"")&&yi(s,$),16384&t[0]&&D!==(D=e[14]("dateFrom")+"")&&yi(m,D),1024&t[0]&&le(g,"max",e[10]),2048&t[0]&&le(g,"value",e[11]),16384&t[0]&&S!==(S=e[14]("dateTo")+"")&&yi(w,S),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&k!==(k=e[14]("dateFilter")+"")&&yi(T,k),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=rm(e)).c(),I.m(u,null)),N===(N=O(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(n,null)))},i:se,o:se,d(e){e&&ci(r),B&&B.d(),i[30](null),i[31](null),I&&I.d(),F.d(),i[37](null),i[38](null),L=!1,M()}}}function dm(t,e,n){let i;Ae(t,Me,e=>n(14,i=e));let r,o,a,s,l,c,{endpoint:u=""}=e,{playerid:d=""}=e,{session:p=""}=e,{lang:h="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{gmversion:y=""}=e,v="",b="",w="",_=W().format("YYYY-MM-DD"),x=W().format("YYYY-MM-DD"),C=["5","10","25","50"],P="5",T="",A=!1,E=window.navigator.userAgent,L="PC"!==$e(E),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(em).forEach(e=>{Qh(e,em[e])}),window.matchMedia("(min-width: 768px)")),M=window.matchMedia("(max-width: 1280px)"),$=[];const D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:L},window.location.href)},F=()=>{n(12,M=window.matchMedia("(max-width: 1280px)"))},O=(e,t,i)=>{var e=new URL(e),r=(n(13,$=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,A=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,$=e.transactions),n(13,$=(e=>{let r=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=r.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,r.set(e.roundId,i))}),Array.from(r.values())})($)),n(4,b=e.pagination.next),n(5,w=e.pagination.previous)),n(9,A=!1)},e=>{n(9,A=!1),console.error(e)})},S=(e,t,i)=>{var r;"gm16"===y?O(e,t,i):(t=t,i=i,e=new URL(e),n(13,$=[]),n(8,T=""),r={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,A=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,$=e.transactions),n(4,b=e.pagination.next),n(5,w=e.pagination.previous)),n(9,A=!1)},e=>{n(9,A=!1),console.error(e)}))},k=e=>{e.data&&e.data.type},B=e=>{_=e.target.value},I=e=>{x=e.target.value};return De(()=>(window.addEventListener("message",k,!1),window.addEventListener("resize",F,!1),()=>{o.removeEventListener("change",B),a.removeEventListener("change",I),window.removeEventListener("message",k),window.removeEventListener("resize",k)})),t.$$set=e=>{"endpoint"in e&&n(21,u=e.endpoint),"playerid"in e&&n(22,d=e.playerid),"session"in e&&n(23,p=e.session),"lang"in e&&n(24,h=e.lang),"clientstyling"in e&&n(25,m=e.clientstyling),"clientstylingurl"in e&&n(26,f=e.clientstylingurl),"translationurl"in e&&n(27,g=e.translationurl),"gmversion"in e&&n(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",B,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,Le.set(e),n(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),S(v,!1,!0)),67108868&t.$$.dirty[0]&&f&&s){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e;33554436&t.$$.dirty[0]&&m&&s&&((e=document.createElement("style")).innerHTML=m,s.appendChild(e)),134217728&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qh(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,b,w,void 0,P,T,A,l,c,M,$,i,C,L,N,D,S,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>D(),function(e){Ee[e?"unshift":"push"](()=>{o=e,n(0,o)})},function(e){Ee[e?"unshift":"push"](()=>{a=e,n(1,a)})},()=>S(v,!1,!0),function(){P=pe(this),n(7,P),n(15,C)},()=>S(v,!1,!0),()=>S(w,!0,!1),()=>S(b,!0,!1),function(e){Ee[e?"unshift":"push"](()=>{r=e,n(6,r)})},function(e){Ee[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function pm(e,t){B(e,t)}customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingHistoryWrapper .PlayerGamingHistoryTitle{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerGamingDateContainer{display:inline-flex;gap:20px}.PlayerGamingHistoryFilterWrapper,.PlayerGamingDateWrapper{display:inline-flex;align-items:center;gap:10px}.PlayerGamingHistoryFilterWrapper{margin-bottom:20px;gap:20px;width:100%}.PlayerGamingItemCountContainer{margin-left:auto}.PlayerGamingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:10px 0}.PlayerGamingHistoryContainer table{border:0}.PlayerGamingHistoryContainer table tr{border:0;background:var(--emfe-w-color-white, #FFFFFF)}.PlayerGamingHistoryContainer table tr:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead tr{border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead th{font-size:14px;font-weight:400}.PlayerGamingHistoryItemCount{padding:8px;border-radius:5px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);-webkit-appearance:none;-moz-appearance:none;appearance:none;width:60px;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center;cursor:pointer}.PlayerGamingHistoryItemCount:focus,.PlayerGamingHistoryItemCount :focus-within,.PlayerGamingHistoryItemCount :focus-visible,.PlayerGamingHistoryItemCount :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;gap:8px;cursor:pointer}.PlayerPaginationControls.PlayerPaginationControlsDisabled{color:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerPaginationControlsArea{margin-top:30px;display:flex;justify-content:center}.PlayerGamingHistoryFilterWrapper span{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:300;font-size:14px}.PlayerGamingHistoryFilterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:0;width:120px;height:40px;font-size:15px;text-transform:uppercase;padding:10px;cursor:pointer}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper{align-items:flex-start;gap:10px;flex-direction:column}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateContainer{gap:0;flex-direction:row;width:100%;justify-content:space-between}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper{display:block;gap:0;align-items:end;width:48%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper span{display:block;margin-bottom:5px}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingHistoryFilterButton{padding:15px 20px;width:100%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryTitle{font-size:16px;font-weight:400}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea{justify-content:center;gap:30px}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControls{align-items:center}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControlsText{font-size:16px}.PlayerGamingHistoryWrapperMobile .VaadinDatePicker{width:100%}table{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:fixed}table tr{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}table th,table td{padding:10px;text-align:center}table th:first-child,table td:first-child{padding-left:20px}table th:first-child span,table td:first-child span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}table th:last-child,table td:last-child{padding-right:20px}table th{font-size:0.85em;letter-spacing:0.1em;text-align:left}table tr td{font-size:12px;font-weight:300;text-align:left}@media screen and (max-width: 1024px){.PlayerGamingHistoryWrapper{padding:20px}.PlayerGamingHistoryContainer{box-shadow:none;padding:0}table{border:0}tbody{background:var(--emfe-w-color-gray-50, #F9F8F8)}table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}table tr{border-bottom:3px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);padding:10px}table tr:not(:last-child){margin-bottom:0.625em}table tr th,table tr td{border:0;border-radius:5px}table tr th:nth-child(even),table tr td:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}table th:first-child,table td:first-child{padding-left:10px}table th:last-child,table td:last-child{padding-right:10px}table td{border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:0.8em;text-align:right;display:flex}table th:first-child span,table td:first-child span{width:50%;text-align:right}table td::before{content:attr(data-label);float:left;font-weight:bold;text-transform:uppercase;flex:1}table td:last-child{border-bottom:0}}.DataLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.DataLoader:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},dm,um,i,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl","gmversion"]}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[22]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}get gmversion(){return this.$$.ctx[28]}set gmversion(e){this.$$set({gmversion:e}),p()}});const hm={en:{title:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{title:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{title:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"}};function mm(i){let r,n,o,a,s,l,c,t,u,d,p;return{c(){r=di("div"),n=di("div"),o=di("div"),(a=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',s=mi(),l=di("slot"),gi(a,"class","ModalCloseBtn"),gi(a,"role","button"),gi(o,"class","LoginModalContainer"),gi(o,"part","LoginModalContainer"),gi(n,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),i[8](n),i[9](r),u=!0,d||(p=fi(a,"click",i[5]),d=!0)},p(e,t){i=e,(!u||16&t&&c!==(c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":"")))&&gi(n,"class",c)},i(e){u||(wi(()=>{u&&(t=t||te(n,Ou,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||te(n,Ou,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(r),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function fm(e){let i,r,n="true"==e[0]&&mm(e);return{c(){n&&n.c(),i=I(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){"true"==e[0]?n?(n.p(e,t),1&t&&J(n,1)):((n=mm(e)).c(),J(n,1),n.m(i.parentNode,i)):n&&(X(),Q(n,1,1,()=>{n=null}),K())},i(e){r||(J(n),r=!0)},o(e){Q(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function gm(t,e,i){let r,n,{show:o="false"}=e,{duration:a="350"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,c=!1,u=window.navigator.userAgent;const d=e=>{if("OpenLoginRegisterModal"===e.data.type)switch(window.postMessage({type:"DisableScroll"},window.location.href),i(0,o="true"),e.data.transition){case"Register":window.postMessage({type:"ToRegister"},window.location.href);break;case"Login":window.postMessage({type:"ToLogin"},window.location.href);break;case"ForgotPassword":window.postMessage({type:"ToForgotPassword",key:e.data.key},window.location.href)}"UserSessionID"===e.data.type&&(window.postMessage({type:"EnableScroll"},window.location.href),i(0,o="false"))};return De(()=>(window.addEventListener("message",d,!1),i(4,c=dn(u)),()=>{window.removeEventListener("message",d)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(6,s=e.clientstyling),"clientstylingurl"in e&&i(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),132&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,n,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){Ee[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){Ee[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function ym(e){let i,r;return{c(){i=di("general-player-login-register-modal"),le(r=di("om-betting-history-details"),"item-layout","V2"),le(r,"cashoutserver","V2"),le(r,"matchscorelayout","V2"),le(r,"matchscorescope","BHDetailed"),le(r,"tournament-route",":sportId/:tournamentId"),le(r,"match-route",":sportId/:tournamentId/:matchId"),le(r,"betid",e[1]),le(i,"show",e[5]),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3])},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t&&le(r,"betid",e[1]),32&t&&le(i,"show",e[5]),4&t&&le(i,"clientstyling",e[2]),8&t&&le(i,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}function vm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_=i[6]("bettingHistory.title")+"",x=i[6]("bettingHistory.openBets")+"",C=i[6]("bettingHistory.settledBets")+"",P=i[7]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),T="true"===i[5]&&i[1]&&ym(i);return{c(){r=di("div"),P&&P.c(),n=mi(),o=di("h2"),a=hi(_),s=mi(),l=di("div"),c=di("button"),u=hi(x),d=mi(),p=di("button"),h=hi(C),m=mi(),f=di("om-betting-history-list"),g=mi(),T&&T.c(),y=mi(),v=di("div"),this.c=se,gi(o,"class","BettingHistoryTitle "+(i[7]?"BettingHistoryTitleNone":"")),gi(o,"part","`BettingHistoryTitleMobile"),gi(c,"class","BettingHistoryButton "+(i[7]?"BettingHistoryButtonMobile":"")),M(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),M(p,"BettingHistoryButtonSelected","settledBets"===i[0]),M(p,"mobile",i[7]),gi(l,"class","BettingHistoryTabs"),le(f,"bet-status",i[0]),le(f,"item-layout","V2"),le(f,"match-score-layout","v2"),le(f,"match-score-scope","BHDetailed"),le(f,"date-format","dd.mm.yyyy"),le(f,"time-format","HH:MM"),le(f,"tournament-route",":sportId/:tournamentId"),le(f,"match-route",":betId"),gi(v,"class","OM-MatchScore OM-MatchScore__List"),gi(r,"class","BettingHistoryWrapper"),M(r,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,r,t),P&&P.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(r,m),si(r,f),si(r,g),T&&T.m(r,null),si(r,y),si(r,v),i[16](r),b||(w=[fi(c,"click",i[14]),fi(p,"click",i[15]),fi(f,"routeChange",i[10])],b=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&yi(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&yi(u,x),1&t&&M(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&M(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?T?T.p(e,t):((T=ym(e)).c(),T.m(r,y)):T&&(T.d(1),T=null)},i:se,o:se,d(e){e&&ci(r),P&&P.d(),T&&T.d(),i[16](null),b=!1,ai(w)}}}function bm(t,e,i){let r;Ae(t,Me,e=>i(6,r=e));let n,{betstatus:o="openBets"}=e,{lang:a="en"}=e,{selectedBetId:s=null}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,d="false",p=window.navigator.userAgent,h="PC"!==$e(p);Object.entries(hm).forEach(([e,t])=>{pm(e,t)});const m=e=>{i(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&i(5,d="false")};return De(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&i(0,o=e.betstatus),"lang"in e&&i(11,a=e.lang),"selectedBetId"in e&&i(1,s=e.selectedBetId),"clientstyling"in e&&i(2,l=e.clientstyling),"clientstylingurl"in e&&i(3,c=e.clientstylingurl),"translationurl"in e&&i(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,Le.set(e)),20&t.$$.dirty&&l&&n&&((e=document.createElement("style")).innerHTML=l,n.appendChild(e)),24&t.$$.dirty&&c&&n){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,n,d,r,h,m,f,e=>{e=e.detail.params.betId;i(1,s=e),i(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){Ee[e?"unshift":"push"](()=>{n=e,i(4,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LoginModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.LoginModalWindow .LoginModalContainer{width:90%;max-width:992px;height:auto;min-height:650px;padding:30px 60px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-registration-color-modal-bg, var(--emfe-w-color-white, #FFFFFF))}.LoginModalWindow .ModalCloseBtn{position:absolute;top:15px;right:15px;width:24px;height:24px;border-radius:100%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.LoginModalWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.LoginModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.LoginModalMobileWindow{width:100%;display:block}.LoginModalMobileWindow .LoginModalContainer{width:100%;height:100%;padding:0;border-top:0;border-radius:0}.LoginModalMobileWindow .LoginModalContainer .ModalCloseBtn{top:10px;right:10px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},gm,fm,i,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}}),customElements.get("player-account-betting-history")||customElements.define("player-account-betting-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@import \'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css\';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #fff);border:2px solid var(--emfe-w-color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emfe-w-color-white, #fff);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},bm,vm,i,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["betstatus","lang","selectedBetId","clientstyling","clientstylingurl","translationurl"]}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const wm={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"}},ce={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function _m(e,t){B(e,t)}const xm={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",newPeriodLimit:"New monthly limit",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",setLimit:"SET LIMIT",loss:"Loss Limit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",deposit:"Deposit Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",popupUpdateLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",popupRemoveLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",notFoundException:"Limit does not exist",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",okButton:"OK"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Der eingegebene Wert muss kleiner sein als. {minValue} {currency}.",invalidInputMessageLimitMax:"Der eingegebene Wert muss höher sein als {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},hr:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:"minutes",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrijednost koju ste unijeli mora biti manja odn {minValue} {currency}.",invalidInputMessageLimitMax:"Vrijednost koju ste unijeli mora biti veća od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},sl:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:"minutes",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",popup3:"Thank you! \n We have transmitted your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrednost, ki jo vnesete, mora biti manjša od {minValue} {currency}.",invalidInputMessageLimitMax:"Vrednost, ki jo vnesete, mora biti višja od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},pl:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:"",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:"minutes",setLimit:"USTAW LIMIT",loss:"Limit Strat",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Wprowadzona wartość musi być niższa niż {minValue} {currency}.",invalidInputMessageLimitMax:"Wprowadzona wartość musi być wyższa niż {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},fr:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",newPeriodLimit:"New monthly limit",per:"par",updateText:"sera appliqué sur",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."},ro:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",newPeriodLimit:"New monthly limit",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!",okButton:"OK",invalidInputMessageLimitMin:"Valoarea introdusa trebuie sa fie mai mica decat {minValue} {currency}.",invalidInputMessageLimitMax:"Valoarea introdusa trebuie sa fie mai mare decat {maxValue} {currency}."},es:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",newPeriodLimit:"New monthly limit",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",setLimit:"Fijar límite",loss:"Límite de pérdida",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimitMin:"El valor ingresado debe ser menor que {minValue} {currency}.",invalidInputMessageLimitMax:"El valor ingresado debe ser mayor que {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado",okButton:"OK"},pt:{loadingText:"Carregando, por favor espere...",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."}},Cm=u["document"];function Pm(e,t,i){e=e.slice();return e[101]=t[i],e}function Tm(e,t,i){e=e.slice();return e[104]=t[i],e[106]=i,e}function Am(e,t,i){e=e.slice();return e[104]=t[i],e}function Em(e,t,i){e=e.slice();return e[109]=t[i],e}function Lm(e){let i,r;function n(e){return e[18]?Mm:$m}let o=n(e),a=o(e);return{c(){i=di("div"),r=di("div"),a.c(),gi(r,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,r),a.m(r,null)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},d(e){e&&ci(i),a.d()}}}function Mm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=i[22]("popupTitle")+"";function w(e){return e[16]?km:2==e[20]?Sm:Dm}let _=w(i),x=_(i);function C(e){return e[16]?Nm:2==e[20]?Im:Bm}let P=C(i),T=P(i);function A(e){return 2==e[20]?Om:Fm}let E=A(i),L=E(i);return{c(){r=di("div"),n=di("span"),o=hi(b),a=mi(),(s=di("button")).textContent="X",l=mi(),c=di("div"),u=di("div"),x.c(),d=mi(),T.c(),p=mi(),h=di("p"),m=hi(i[19]),f=mi(),L.c(),g=I(),gi(n,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(r,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s),li(e,l,t),li(e,c,t),si(c,u),x.m(u,null),si(u,d),T.m(u,null),si(c,p),si(c,h),si(h,m),li(e,f,t),L.m(e,t),li(e,g,t),y||(v=fi(s,"click",i[31]),y=!0)},p(e,t){4194304&t[0]&&b!==(b=e[22]("popupTitle")+"")&&yi(o,b),_!==(_=w(e))&&(x.d(1),x=_(e))&&(x.c(),x.m(u,d)),P===(P=C(e))&&T?T.p(e,t):(T.d(1),(T=P(e))&&(T.c(),T.m(u,null))),524288&t[0]&&yi(m,e[19]),E===(E=A(e))&&L?L.p(e,t):(L.d(1),(L=E(e))&&(L.c(),L.m(g.parentNode,g)))},d(e){e&&ci(r),e&&ci(l),e&&ci(c),x.d(),T.d(),e&&ci(f),L.d(e),e&&ci(g),y=!1,v()}}}function $m(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Dm(e){let i,r,n,o,a,s;return{c(){i=pi("svg"),r=pi("defs"),n=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(n,"type","text/css"),gi(s,"class","fil0"),gi(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"xml:space","preserve"),gi(i,"version","1.1"),L(i,"shape-rendering","geometricPrecision"),L(i,"text-rendering","geometricPrecision"),L(i,"image-rendering","optimizeQuality"),gi(i,"viewBox","0 0 90 69"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"fill-rule","evenodd"),gi(i,"clip-rule","evenodd")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function Sm(e){let i,r,n;return{c(){i=pi("svg"),r=pi("g"),gi(n=pi("path"),"id","XMLID_6_"),gi(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),gi(r,"id","XMLID_1_"),gi(i,"version","1.1"),gi(i,"id","Layer_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 512 512"),L(i,"enable-background","new 0 0 512 512"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n)},d(e){e&&ci(i)}}}function km(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w;return{c(){i=pi("svg"),r=pi("g"),n=pi("path"),o=pi("path"),a=pi("g"),s=pi("g"),l=pi("g"),c=pi("g"),u=pi("g"),d=pi("g"),p=pi("g"),h=pi("g"),m=pi("g"),f=pi("g"),g=pi("g"),y=pi("g"),v=pi("g"),b=pi("g"),w=pi("g"),gi(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),gi(o,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),gi(i,"version","1.1"),gi(i,"id","Capa_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 52 52"),L(i,"enable-background","new 0 0 52 52"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,o),si(i,a),si(i,s),si(i,l),si(i,c),si(i,u),si(i,d),si(i,p),si(i,h),si(i,m),si(i,f),si(i,g),si(i,y),si(i,v),si(i,b),si(i,w)},d(e){e&&ci(i)}}}function Bm(e){let i,r,n=e[22]("popupSuccess")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupSuccess")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Im(e){let i,r,n=e[22]("docsRequired")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("docsRequired")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Nm(e){let i,r,n=e[22]("popupError")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Fm(i){let r,n,o,a,s=i[22]("okButton")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","ConfirmButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Om(i){let r,n,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){r=di("button"),n=hi(u),o=mi(),a=di("button"),s=hi(d),gi(r,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,r,t),si(r,n),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(r,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(n,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function Rm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,e=i[13]?""+i[22]("amount"):""+i[22]("newPeriodLimit"),_=i[22]("setLimit")+"",x=i[4],C=[];for(let e=0;e<x.length;e+=1)C[e]=Km(Am(i,x,e));let P=i[12]&&Jm(i),T=i[13]&&ef(i),A=i[21]&&rf(i);return{c(){r=di("div"),n=di("div"),o=di("div");for(let e=0;e<C.length;e+=1)C[e].c();a=mi(),s=di("form"),P&&P.c(),l=mi(),T&&T.c(),c=mi(),u=di("label"),d=di("span"),p=hi(e),h=mi(),m=di("input"),f=mi(),A&&A.c(),g=mi(),y=di("button"),v=hi(_),gi(o,"class","LimitsList "+(i[23]?"Desktop":"")),gi(d,"class","LimitInputText"),gi(m,"type","number"),gi(m,"pattern","[0-9]*"),gi(u,"class","LimitAmountInputWrapper"),gi(y,"class","LimitSubmitButton"),gi(y,"type","button"),y.disabled=!0,gi(s,"class","LimitsInteractionArea "+(i[23]?"Desktop":"")),gi(n,"class","LimitsPageContainer"),gi(r,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(n,a),si(n,s),P&&P.m(s,null),si(s,l),T&&T.m(s,null),si(s,c),si(s,u),si(u,d),si(d,p),si(u,h),si(u,m),vi(m,i[8]),si(u,f),A&&A.m(u,null),si(s,g),si(s,y),si(y,v),i[51](y),b||(w=[fi(m,"input",i[50]),fi(m,"keydown",i[33]),fi(m,"keyup",i[27]),fi(y,"click",i[26]),fi(s,"submit",i[26])],b=!0)},p(t,i){if(1623195666&i[0]){let e;for(x=t[4],e=0;e<x.length;e+=1){var r=Am(t,x,e);C[e]?C[e].p(r,i):(C[e]=Km(r),C[e].c(),C[e].m(o,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=x.length}t[12]?P?P.p(t,i):((P=Jm(t)).c(),P.m(s,l)):P&&(P.d(1),P=null),t[13]?T?T.p(t,i):((T=ef(t)).c(),T.m(s,c)):T&&(T.d(1),T=null),4202496&i[0]&&e!==(e=t[13]?""+t[22]("amount"):""+t[22]("newPeriodLimit"))&&yi(p,e),256&i[0]&&de(m.value)!==t[8]&&vi(m,t[8]),t[21]?A?A.p(t,i):((A=rf(t)).c(),A.m(u,null)):A&&(A.d(1),A=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(r),ui(C,e),P&&P.d(),T&&T.d(),A&&A.d(),i[51](null),b=!1,ai(w)}}}function Hm(e){let i;return{c(){(i=di("p")).textContent="500 Server error"},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function zm(e){return{c:se,m:se,p:se,d:se}}function Wm(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function jm(e){let i,r,n,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function Um(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function Ym(t){let n,o=t[104].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=Xm(Em(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[104].currentLimits,e=0;e<o.length;e+=1){var r=Em(t,o,e);a[e]?a[e].p(r,i):(a[e]=Xm(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Gm(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function Vm(e){let i,r,n=e[22]("removedLimitText")+" "+e[109].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=e[22]("removedLimitText")+" "+e[109].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function qm(e){let i,r,n=""+e[109].updateAmount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} ${e[22](""+e[109].period)} ${e[22]("updateText")} `+e[109].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=""+e[109].updateAmount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} ${e[22](""+e[109].period)} ${e[22]("updateText")} `+e[109].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function Zm(i){let r,n,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[109])}return{c(){r=di("button"),n=hi(s),gi(r,"class","RemoveLimitButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Xm(e){let i,r,n,o,a,s,l,c,u=""+e[109].amount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} `+e[22](""+e[109].period),d=!e[109].isModified&&-1<e[1].indexOf(e[104].value);function p(e,t){return(s=null==(s=16&t[0]?null:s)?!!(e[109].isModified&&0<+e[109].updateAmount.replaceAll(",","")):s)?qm:e[109].isModified?Vm:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&Zm(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(n,"class","CurrentLimit"),gi(r,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),m&&m.m(r,null),si(i,l),f&&f.m(i,null),si(i,c)},p(e,t){4194320&t[0]&&u!==(u=""+e[109].amount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} `+e[22](""+e[109].period))&&yi(o,u),h===(h=p(e,t))&&m?m.p(e,t):(m&&m.d(1),(m=h&&h(e))&&(m.c(),m.m(r,null))),(d=18&t[0]?!e[109].isModified&&-1<e[1].indexOf(e[104].value):d)?f?f.p(e,t):((f=Zm(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function Km(e){let i,r,n,o,a,s=e[30](e[104])+"";function l(e){return"lugas"===e[104].value?Gm:0<e[104].currentLimits.length?Ym:"lugas"===e[104].value?Um:jm}let c=l(e),u=c(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),u.c(),a=mi(),gi(r,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[104])+"")&&yi(n,s),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(i,a)))},d(e){e&&ci(i),u.d()}}}function Jm(i){let r,n,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=Qm(Tm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&wi(()=>i[47].call(s)),gi(r,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);bi(s,i[7],!0),l||(c=[fi(s,"change",i[47]),fi(s,"change",i[48])],l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("limitType")+"")&&yi(o,e),1073741840&i[0]){let e;for(u=t[4],e=0;e<u.length;e+=1){const o=Tm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Qm(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}128&i[0]&&bi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function Qm(e){let i,r,n=e[30](e[104])+"";return{c(){i=di("option"),r=hi(n),i.__value=e[106],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[30](e[104])+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ef(i){let r,n,o,a,s,l,c,e=i[22]("period")+"",u=i[3][i[5]].periods,d=[];for(let e=0;e<u.length;e+=1)d[e]=tf(Pm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&wi(()=>i[49].call(s)),gi(r,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);bi(s,i[6],!0),l||(c=fi(s,"change",i[49]),l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("period")+"")&&yi(o,e),4194344&i[0]){let e;for(u=t[3][t[5]].periods,e=0;e<u.length;e+=1){const o=Pm(t,u,e);d[e]?d[e].p(o,i):(d[e]=tf(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}104&i[0]&&bi(s,t[6])},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function tf(e){let i,r,n,o=e[22](e[101])+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[101],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[101])+"")&&yi(r,o),40&t[0]&&n!==(n=e[101])&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function rf(e){let i,r,n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}});return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4197633&t[0]&&n!==(n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}}))&&yi(r,n)},d(e){e&&ci(i)}}}function nf(i){let r,n,o,a,s=i[17]&&Lm(i);function l(e){return e[14]&&!e[17]?Wm:e[14]?zm:e[15]?Hm:Rm}let c=l(i),u=c(i);return{c(){r=di("meta"),n=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=se,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1")},m(e,t){si(Cm.head,r),li(e,n,t),li(e,o,t),s&&s.m(o,null),si(o,a),u.m(o,null),i[52](o)},p(e,t){e[17]?s?s.p(e,t):((s=Lm(e)).c(),s.m(o,a)):s&&(s.d(1),s=null),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(o,null)))},i:se,o:se,d(e){ci(r),e&&ci(n),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function of(s,e,l){let c;Ae(s,Me,e=>l(22,c=e));let u,a,t,d,O,{lang:p="en"}=e,{currency:h=""}=e,{limits:r=""}=e,{session:m=""}=e,{userid:f=""}=e,{endpoint:g=""}=e,{apiversion:y=""}=e,{customcurrencysymbols:v=""}=e,{deletelimit:o=""}=e,{amountsconfig:b=""}=e,{periodsconfig:R=""}=e,{clientstyling:H=""}=e,{clientstylingurl:z=""}=e,{translationurl:W=""}=e,j=window.navigator.userAgent,U=!dn(j),w=[],_="",x="",C="",P=0,T="",A="",Y="",E={},G=!1,V=!1,L=!0,M=!1,q=!1,$=!1,D=!1,S="",k=[],i=!1,Z={},B={EUR:"€",RON:" lei",USD:"$"};const X={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},K=(Object.keys(xm).forEach(e=>{_m(e,xm[e])}),()=>{l(5,_=w[P].value),l(6,x=ce[_].periods[0]),l(13,V=1<ce[_].periods.length)}),J=()=>{C=w[P].product},I=e=>{if(!(300<=e.status))return l(16,q=!1),e.json();{let r;throw l(15,M=!0),e.json().then(e=>{for(const t in X)for(const i of X[t])JSON.stringify(e).includes(i)&&(r=t);console.log("errType",r),r||n(e)}).finally(()=>{r&&n(r),l(15,M=!1),l(14,L=!1)}),new Error("An error occured during the fetch request")}},N=()=>{switch(y){case"gmcore":{l(14,L=!0);let e=new URL(`/v2/player/${f}/limits`,g),t={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then(e=>I(e)).then(e=>{k=e,$&&n(),Q(k),ee(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{l(14,L=!1)})}break;case"gm16":{l(14,L=!0),k=[];let e=new URL(`v1/player/${f}/limits/monetary`,g),t=new URL(`v1/player/${f}/limits/session`,g),i=!1,r={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then(e=>I(e)).then(e=>{k.push(e),$&&n(),"gmcore"===y&&Q(k),"gm16"===y&&te(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{i&&l(14,L=!1),i=!0}),fetch(t.href,r).then(e=>I(e)).then(e=>{k.push(e),$&&n(),"gm16"===y&&ie(k),"gm16"===y&&re(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{i&&l(14,L=!1),i=!0});return}}},Q=o=>{w.forEach(n=>{n.currentLimits=[];var e=Array.isArray(o[ce[n.value].callValue])?o[ce[n.value].callValue]:[o[ce[n.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,r=o[ce[n.value].callValue][t];n.currentLimits.push({}),n.currentLimits[t].limitType=n.value,n.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),n.currentLimits[t].currency=null!=(i=B[r.currency])?i:r.currency,n.currentLimits[t].period=r.period,n.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.updateAmount),n.currentLimits[t].isModified=r.isModified,n.currentLimits[t].expiryDate=new Date(r.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),n.currentLimits=F(n.currentLimits))})},ee=r=>{const n=c("minutes");w.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=r[ce[i.value].callValue])&&e.forEach((e,t)=>{t=r[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:n,isModified:t.isModified,period:"cumulativeSession"===i.value?t.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"})}),i.currentLimits=F(i.currentLimits)})},te=r=>{var e;null!=(e=r[0])&&e.limits&&w.forEach(e=>{var t;e.currentLimits=[];for(const i of r[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const r=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),currency:null!=(t=B[r.currency])?t:r.currency,isModified:0<r.schedules.length,period:r.period,product:r.products[0],updateAmount:0<r.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.schedules[0].updateAmount):"",expiryDate:0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:r.id})}e.currentLimits=F(e.currentLimits)})},ie=t=>{var e;null!=(e=t[1])&&e.sessionLimit&&w.filter(e=>"sessionLimit"===e.value).forEach(e=>{e.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.minutes),currency:c("minutes"),isModified:t[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.updateMinutes),expiryDate:t[1].sessionLimit.expiryDate}),e.currentLimits=F(e.currentLimits)})},re=i=>{var e;null!=(e=i[1])&&e.cumulativeSessionLimits&&w.filter(e=>"cumulativeSession"===e.value).forEach(e=>{for(const t of i[1].cumulativeSessionLimits)e.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:c("minutes"),isModified:t.isModified,period:t.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:t.expiryDate});e.currentLimits=F(e.currentLimits)})},F=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},ne=()=>{l(21,i=!1),null!=E&&E[_]?(l(10,T=E[_].min),l(11,A=E[_].max)):(l(10,T=1),l(11,A=9999999))},n=e=>{var t,i;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),M)l(16,q=!0),e&&!e.thirdPartyResponse&&l(19,S=c(""+e)),e&&e.thirdPartyResponse&&l(19,S=e.thirdPartyResponse.message),e&&null!=e&&e.error.includes("Limit update is not permitted due to LimitUpdateControl")&&l(19,S=c("popupUpdateLimitException")),e&&null!=e&&e.error.includes("Limit remove is not permitted due to LimitUpdateControl")&&l(19,S=c("popupRemoveLimitException")),e&&null!=e&&e.error.includes("[NotFoundException] Limit does not exist")&&l(19,S=c("notFoundException")),l(18,D=!0);else switch(y){case"gmcore":"sessionLimit"===_||"cumulativeSession"===_?k&&(t=k[ce[_].callValue].filter(e=>(e.period===x||"None"===x)&&e.products[0]===C)[0],i=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),i=c("popupImmediateUpdate").replace("{selectedLimit}",c(""+_)).replace("{updatedAmount}",i).replace("{currency}",c("minutes")).replace("{selectedPeriod}",c(""+x)),l(19,S=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)):k&&(t=k[ce[_].callValue].filter(e=>e.period===x&&e.products[0]===C)[0],i=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.amount),i=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",i).replace("{currency}",B[t.currency]||t.currency).replace("{selectedPeriod}",c(""+x)),l(19,S=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)),l(18,D=!0);break;case"gm16":if("lugas"===_)2==d&&l(19,S=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(O)+` ${h} `+c("popup2_b")),3==d&&l(19,S=c("popup3")),l(18,D=!0);else if("sessionLimit"===_||"cumulativeSession"===_)l(19,S=c("sessionLimitUpdated")),l(18,D=!0);else{var r,n=(null==(r=k[0])?void 0:r.limits)||k.limits;if(k){const r=n.filter(e=>e.type===ce[_].callValue16&&(e.period===x||"None"===e.period)&&e.products[0]===C)[0],o=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),a=0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";n=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",o).replace("{currency}",B[r.currency]||r.currency).replace("{selectedPeriod}",c(""+x));l(19,S=0<r.schedules.length?c("popupPendingUpdate")+" "+a:n)}l(18,D=!0)}break;default:throw new Error("Invalid apiversion attribute: "+y)}},oe=e=>{switch(y){case"gmcore":t=e,l(5,_=t.limitType),l(6,x=t.period),l(17,$=!0),l(14,L=!0),i=new URL(`v2/player/${f}/limits/`+{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[t.limitType],g),"sessionLimit"!==t.limitType&&i.searchParams.append("periods",t.period),t={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}},fetch(i.href,t).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)});break;case"gm16":("sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?e=>{const t=new URL(`/v1/player/${f}/limits/session/session`,g),i=new URL(`/v1/player/${f}/limits/session/cumulativeSession?periods=${e.period}`,g);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}l(17,$=!0),l(14,L=!0);let n={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,n).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})}:e=>{const t=new URL(`/v1/player/${f}/limits/monetary/${e.id}`,g);l(17,$=!0),l(14,L=!0);let i={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})})(e)}var t,i},ae=e=>{return c(e?e.value+e.product:_)},se=()=>{l(18,D=l(17,$=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href)};return s.$$set=e=>{"lang"in e&&l(34,p=e.lang),"currency"in e&&l(0,h=e.currency),"limits"in e&&l(35,r=e.limits),"session"in e&&l(36,m=e.session),"userid"in e&&l(37,f=e.userid),"endpoint"in e&&l(38,g=e.endpoint),"apiversion"in e&&l(39,y=e.apiversion),"customcurrencysymbols"in e&&l(40,v=e.customcurrencysymbols),"deletelimit"in e&&l(1,o=e.deletelimit),"amountsconfig"in e&&l(41,b=e.amountsconfig),"periodsconfig"in e&&l(42,R=e.periodsconfig),"clientstyling"in e&&l(43,H=e.clientstyling),"clientstylingurl"in e&&l(44,z=e.clientstylingurl),"translationurl"in e&&l(45,W=e.translationurl)},s.$$.update=()=>{if(512&s.$$.dirty[1]&&v&&v){let t={};v.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),B=Object.assign(Object.assign({},B),t)}if(3072&s.$$.dirty[1]&&R&&b){[...b.matchAll(/\(([^)]+)\)/g)].flat().filter(e=>!e.includes("(")).forEach(e=>{ce[e]?w.push(Object.assign({},ce[e])):console.error("Unknown limit: "+e)});{var e,t;const o=b.split(",").map(e=>e.split(":")),a=R.split(",").map(e=>e.split(":"));for([e,t]of o.entries())if(t[0]!==a[e][0])throw new Error(`Limit config mismatch: "${t[0]}" does not match "${a[e][0]}"`);var i=o.reduce((e,t,i)=>{var r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:a[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:ce[r].callValue,callValue16:ce[r].callValue16,title:ce[r].title};return e.push(t),e},[]);for(let e=0;e<i.length;e++)l(4,w[e].product=i[e].product,w),l(4,w[e].min=parseInt(i[e].minMax.split("-")[0],10),w),l(4,w[e].max=parseInt(i[e].minMax.split("-")[1],10),w),l(3,ce[i[e].value].periods=i[e].periods,ce);Y=null==(n=w[0])?void 0:n.value,w.forEach(e=>{E[e.value]={min:e.min,max:e.max},Z[e.value]=e.product}),E&&(E[Y]?(l(10,T=E[Y].min),l(11,A=E[Y].max)):(l(10,T=1),l(11,A=9999999)))}l(5,_=w[0].value),l(6,x=ce[_].periods[0]),C=w[0].product,l(12,G=1<w.length),l(13,V=1<ce[_].periods.length)}if(8&s.$$.dirty[1]&&p&&(n=p,Le.set(n)),488&s.$$.dirty[1]&&f&&m&&g&&y&&p&&N(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&z&&u){let e=new URL(z),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var r,n;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&H&&u&&((r=document.createElement("style")).innerHTML=H,u.appendChild(r)),16384&s.$$.dirty[1]&&W&&fetch(W).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{_m(e,t[e])})}).catch(e=>{console.log(e)})},[h,o,u,ce,w,_,x,P,a,t,T,A,G,V,L,M,q,$,D,S,d,i,c,U,K,J,()=>{switch(y){case"gmcore":if(0<a){l(17,$=!0),l(14,L=!0);let e=new URL(`v2/player/${f}/limits`,g),t={};"sessionLimit"===_?t={sessionLimit:a,sessionLimitUnit:"minute"}:t[ce[_].callValue]="cumulativeSession"===_?[{period:x,minutes:a}]:[{period:"None"===ce[_].periods[0]?null:x,amount:a,currency:h}];var i={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,i).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})}break;case"gm16":"lugas"===_?0<a&&(l(17,$=!0),l(14,L=!0),i=new URL(`v2/player/${f}/limit/lugas`,g),o={amount:a,roleLimitAmount:0,softMigration:!1,keepLimit:!1},o={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)},fetch(i.href,o).then(e=>I(e)).then(e=>{l(20,d=e.popup),e.operatorDepositLimitAmount,O=e.regulatorDepositLimitAmount,N()}).catch(e=>{console.log(e),l(15,M=!0)})):"sessionLimit"===_?0<a&&(l(17,$=!0),l(14,L=!0),o=new URL(`v1/player/${f}/limits/session/`,g),n={sessionLimit:a,sessionLimitUnit:"minute"},n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(o.href,n).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})):"cumulativeSession"===_?0<a&&(l(17,$=!0),l(14,L=!0),n=new URL(`v1/player/${f}/limits/session/`,g),r={cumulativeSessionLimits:[{period:x,minutes:a}]},r={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(n.href,r).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})):a<=0||(l(17,$=!0),l(14,L=!0),r=w[P].currentLimits.filter(e=>e.period===x)[0],e=new URL(`v1/player/${f}/limits/monetary/`+(r?r.id:""),g),t=r?"PUT":"POST",r=r?{amount:a,skipCoolOff:!1}:{amount:a,currency:h,period:"None"===ce[_].periods[0]?null:x,type:ce[_].callValue16,products:[null!=C?C:"All"],walletTypes:["All"]},t={method:t,headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(e.href,t).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)}));break;default:throw Error("Invalid apiversion attribute: "+y)}var e,t,r,n,o},()=>{var e=a-Math.floor(a)==0;a>=T&&a<=A&&e?(l(21,i=!1),t.removeAttribute("disabled")):(l(21,i=!0),t.setAttribute("disabled","true"))},ne,oe,ae,se,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),se()},e=>{13===e.keyCode&&i&&e.preventDefault()},p,r,m,f,g,y,v,b,R,H,z,W,e=>oe(e),function(){P=pe(this),l(7,P)},()=>{J(),K(),ne()},function(){x=pe(this),l(6,x),l(3,ce),l(5,_)},function(){a=de(this.value),l(8,a)},function(e){Ee[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){Ee[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function af(e,t){B(e,t)}customElements.get("player-account-gaming-limits-page-2-gm16")||customElements.define("player-account-gaming-limits-page-2-gm16",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}input:focus{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid var(--emfe-w-color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emfe-w-color-black, #000000)}.PendingLimit{color:var(--emfe-w-color-black, #000000)}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:11}.PopupContainer{background:var(--emfe-w-color-white, #FFFFFF);font-size:1.3rem;color:var(--emfe-w-color-black, #000000);width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},of,nf,i,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,customcurrencysymbols:40,deletelimit:1,amountsconfig:41,periodsconfig:42,clientstyling:43,clientstylingurl:44,translationurl:45},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","customcurrencysymbols","deletelimit","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),p()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),p()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),p()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),p()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),p()}get customcurrencysymbols(){return this.$$.ctx[40]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get deletelimit(){return this.$$.ctx[1]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get amountsconfig(){return this.$$.ctx[41]}set amountsconfig(e){this.$$set({amountsconfig:e}),p()}get periodsconfig(){return this.$$.ctx[42]}set periodsconfig(e){this.$$set({periodsconfig:e}),p()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),p()}});const sf={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function lf(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function cf(i){let r,n,o,a,s,l,c,u,d,p,h,m,e=i[9]("expandLimits")+"",f=i[7],g=[];for(let e=0;e<f.length;e+=1)g[e]=mf(lf(i,f,e));return{c(){r=di("div"),n=di("div"),o=di("button"),a=hi(e),s=mi(),l=pi("svg"),c=pi("path"),u=pi("path"),d=mi(),p=di("div");for(let e=0;e<g.length;e+=1)g[e].c();gi(c,"d","M10.5 15l7.5 7.5 7.5-7.5z"),gi(u,"d","M0 0h36v36h-36z"),gi(u,"fill","none"),gi(l,"class","ExpandArrow"),gi(l,"xmlns","http://www.w3.org/2000/svg"),gi(l,"width","36"),gi(l,"height","36"),gi(l,"viewBox","0 0 36 36"),gi(l,"fill","#999"),M(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),M(p,"hidden",i[5]),gi(n,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(r,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(n,d),si(n,p);for(let e=0;e<g.length;e+=1)g[e]&&g[e].m(p,null);h||(m=fi(o,"click",i[11]),h=!0)},p(t,i){if(512&i[0]&&e!==(e=t[9]("expandLimits")+"")&&yi(a,e),256&i[0]&&M(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var r=lf(t,f,e);g[e]?g[e].p(r,i):(g[e]=mf(r),g[e].c(),g[e].m(p,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}32&i[0]&&M(p,"hidden",t[5])},d(e){e&&ci(r),ui(g,e),h=!1,m()}}}function uf(e){return{c:se,m:se,p:se,d:se}}function df(e){let i,r,n=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function pf(e){let i,r,n,o,a,s,l,c,u,d,p,h,m=e[36].type+"",f=e[36].amount+"",g=e[36].currency+"",y=e[36].period+"",v=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(m),a=di("span"),s=hi(f),l=mi(),c=hi(g),u=mi(),d=hi(y),p=di("span"),h=hi(v),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(a,l),si(a,c),si(a,u),si(a,d),si(i,p),si(p,h)},p(e,t){128&t[0]&&m!==(m=e[36].type+"")&&yi(o,m),128&t[0]&&f!==(f=e[36].amount+"")&&yi(s,f),128&t[0]&&g!==(g=e[36].currency+"")&&yi(c,g),128&t[0]&&y!==(y=e[36].period+"")&&yi(d,y),128&t[0]&&v!==(v=e[36].date+"")&&yi(h,v)},d(e){e&&ci(i)}}}function hf(e){let i,r,n,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(i,l),si(l,c)},p(e,t){128&t[0]&&u!==(u=e[36].type+"")&&yi(o,u),512&t[0]&&d!==(d=e[9]("limitRemoved")+"")&&yi(s,d),128&t[0]&&p!==(p=e[36].date+"")&&yi(c,p)},d(e){e&&ci(i)}}}function mf(i){let r,n,o,a=i[38];function s(e){return e[36].removed?hf:pf}let l=s(i),c=l(i);const u=()=>i[20](r,a),d=()=>i[20](null,a);return{c(){r=di("div"),c.c(),n=mi(),gi(r,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,r,t),c.m(r,null),si(r,n),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(r,n))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(r,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(r),c.d(),d()}}}function ff(i){let r;function n(e){return e[6]?df:e[4]?uf:cf}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[21](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[21](null)}}}function gf(i,e,r){let n;Ae(i,Me,e=>r(9,n=e));let o,t=window.navigator.userAgent,a=!dn(t),{lang:s=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:u=""}=e,{apiversion:d=""}=e,{numberofentries:p="10"}=e,{customcurrencysymbols:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,y=new Array,v=parseInt(p,10),b=!1,w=!0,_=[],x=[],C=!0,P=!1,T={EUR:"€",RON:"lei"};Object.keys(sf).forEach(e=>{af(e,sf[e])});let A=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&r(7,x=_.slice(0,v))})});return De(()=>()=>{A.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&r(0,s=e.lang),"userid"in e&&r(12,l=e.userid),"session"in e&&r(13,c=e.session),"endpoint"in e&&r(14,u=e.endpoint),"apiversion"in e&&r(15,d=e.apiversion),"numberofentries"in e&&r(1,p=e.numberofentries),"customcurrencysymbols"in e&&r(16,h=e.customcurrencysymbols),"clientstyling"in e&&r(17,m=e.clientstyling),"clientstylingurl"in e&&r(18,f=e.clientstylingurl),"translationurl"in e&&r(19,g=e.translationurl)},i.$$.update=()=>{if(65536&i.$$.dirty[0]&&h&&h){let t={};h.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),T=Object.assign(Object.assign({},T),t)}if(61440&i.$$.dirty[0]&&u&&l&&c&&d&&((e=new URL("gmcore"===d?`v2/player/${l}/transactions/limit`:`v1/player/${l}/limits/monetary/history`,u)).searchParams.append("startDate",""+new Date("2022").toISOString()),e.searchParams.append("endDate",""+new Date("2099").toISOString()),e.searchParams.append("limit","10000"),t={method:"GET",headers:{"X-SessionID":c}},fetch(e.href,t).then(e=>{if(300<=e.status)throw r(4,w=!1),r(6,b=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!sf[s];return e.map(e=>{var t={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return t.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),t.currency=i?T[e.limitCurrencyCode]:e.limitCurrencyCode,t.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),t.period=n(""+e.limitPeriod.toLowerCase()),t.type=n("historyLimitType"+e.limitType.split(" ")[0])+" "+n("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),r(7,x=_.slice(0,v))),r(4,w=!1)},e=>{console.error("There was an error",e),r(6,b=!0)})),56&i.$$.dirty[0]&&y[0]&&!w&&!C&&A.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,Le.set(e)),262144&i.$$.dirty[0]&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}var e,t;131076&i.$$.dirty[0]&&m&&o&&((t=document.createElement("style")).innerHTML=m,o.appendChild(t)),524292&i.$$.dirty[0]&&g&&o&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{af(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,w,C,b,x,P,n,a,()=>{r(5,C=!C),r(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){Ee[e?"unshift":"push"](()=>{y[t]=e,r(3,y)})},function(e){Ee[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.get("player-account-gaming-limits-history-2")||customElements.define("player-account-gaming-limits-history-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},gf,ff,i,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,clientstyling:17,clientstylingurl:18,translationurl:19},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),p()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),p()}});const yf=u["document"];function vf(e,t,i){e=e.slice();return e[39]=t[i],e[41]=i,e}function bf(e,t,i){e=e.slice();return e[42]=t[i],e[41]=i,e}function wf(i){let r,n,o,a,s=1<i[21].length&&function(i){let n,o=i[21],a=[];for(let e=0;e<o.length;e+=1)a[e]=xf(bf(i,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","TabsContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null);i[30](n)},p(t,i){if(10551296&i[0]){let e;for(o=t[21],e=0;e<o.length;e+=1){var r=bf(t,o,e);a[e]?a[e].p(r,i):(a[e]=xf(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e),i[30](null)}}}(i),l=i[21],c=[];for(let e=0;e<l.length;e+=1)c[e]=Cf(vf(i,l,e));let u="true"===i[6]&&Pf(i);return{c(){s&&s.c(),r=mi(),n=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=I(),gi(n,"class","PlayerAccountGamingLmitsWrapper2")},m(e,t){s&&s.m(e,t),li(e,r,t),li(e,n,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(n,null);i[31](n),li(e,o,t),u&&u.m(e,t),li(e,a,t)},p(t,i){if(1<t[21].length&&s.p(t,i),794303&i[0]){let e;for(l=t[21],e=0;e<l.length;e+=1){const a=vf(t,l,e);c[e]?c[e].p(a,i):(c[e]=Cf(a),c[e].c(),c[e].m(n,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Pf(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(r),e&&ci(n),ui(c,e),i[31](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function _f(e){return{c:se,m:se,p:se,d:se}}function xf(i){let r,n,o,a,s=(i[16][i[41]]??i[42])+"";function l(){return i[29](i[41])}return{c(){r=di("div"),n=hi(s),gi(r,"class","LimitsTab")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[41]]??i[42])+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Cf(e){let i,r,n;return{c(){le(i=di("player-account-gaming-limits-page-2-gm16"),"class","hidden selected"),le(i,"lang",e[0]),le(i,"currency",e[4]),le(i,"amountsconfig",r=e[18][e[41]]),le(i,"periodsconfig",n=e[19][e[41]]),le(i,"userid",e[1]),le(i,"deletelimit",e[7]),le(i,"session",e[2]),le(i,"endpoint",e[3]),le(i,"apiversion",e[5]),le(i,"clientstyling",e[10]),le(i,"clientstylingurl",e[11]),le(i,"translationurl",e[12]),le(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&le(i,"lang",e[0]),16&t[0]&&le(i,"currency",e[4]),262144&t[0]&&r!==(r=e[18][e[41]])&&le(i,"amountsconfig",r),524288&t[0]&&n!==(n=e[19][e[41]])&&le(i,"periodsconfig",n),2&t[0]&&le(i,"userid",e[1]),128&t[0]&&le(i,"deletelimit",e[7]),4&t[0]&&le(i,"session",e[2]),8&t[0]&&le(i,"endpoint",e[3]),32&t[0]&&le(i,"apiversion",e[5]),1024&t[0]&&le(i,"clientstyling",e[10]),2048&t[0]&&le(i,"clientstylingurl",e[11]),4096&t[0]&&le(i,"translationurl",e[12]),512&t[0]&&le(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Pf(e){let i;return{c(){le(i=di("player-account-gaming-limits-history-2"),"lang",e[0]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"endpoint",e[3]),le(i,"apiversion",e[5]),le(i,"numberofentries",e[8]),le(i,"clientstyling",e[10]),le(i,"clientstylingurl",e[11]),le(i,"translationurl",e[12]),le(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),8&t[0]&&le(i,"endpoint",e[3]),32&t[0]&&le(i,"apiversion",e[5]),256&t[0]&&le(i,"numberofentries",e[8]),1024&t[0]&&le(i,"clientstyling",e[10]),2048&t[0]&&le(i,"clientstylingurl",e[11]),4096&t[0]&&le(i,"translationurl",e[12]),512&t[0]&&le(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Tf(i){let r,n,o,a,s,l,c,u,d,p=i[20]("title")+"",h=i[22]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[20]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","GamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[28]),m=!0)},p(e,t){1048576&t[0]&&g!==(g=e[20]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function m(e){return e[13]?_f:wf}let f=m(i),g=f(i);return{c(){r=di("meta"),n=mi(),o=di("div"),a=di("div"),s=di("div"),h&&h.c(),l=mi(),c=di("h2"),u=hi(p),d=mi(),g.c(),this.c=se,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1"),gi(c,"class","GamingLimitsTitle "+(i[22]?"GamingLimitsTitleNone":"")),gi(s,"class","TitleSection"),gi(a,"class","GamingLimitsWrapper "+(i[22]?"GamingLimitsWrapperMobile":""))},m(e,t){si(yf.head,r),li(e,n,t),li(e,o,t),si(o,a),si(a,s),h&&h.m(s,null),si(s,l),si(s,c),si(c,u),si(a,d),g.m(a,null),i[32](o)},p(e,t){e[22]&&h.p(e,t),1048576&t[0]&&p!==(p=e[20]("title")+"")&&yi(u,p),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(a,null)))},i:se,o:se,d(e){ci(r),e&&ci(n),e&&ci(o),h&&h.d(),g.d(),i[32](null)}}}function Af(i,e,r){let t,{lang:n=""}=(Ae(i,Me,e=>r(20,t=e)),e),{userid:o=""}=e,{session:a=""}=e,{endpoint:s=""}=e,{currency:l=""}=e,{apiversion:c=""}=e,{tablabels:u=""}=e,{historyenabled:d="true"}=e,{deletelimit:p=""}=e,{limitsamount:h=""}=e,{limitsperiods:m=""}=e,{numberofentries:f=""}=e,{customcurrencysymbols:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:b=""}=e;var w,_;({withLocale:w,translations:_}={withLocale:"en",translations:{}}),Le.subscribe(e=>{null==e&&($r.set(_),Le.set(w))});let x,C,P,T,A,E,L=!0,M=[],$=window.navigator.userAgent,D="PC"!==$e($);Object.keys(wm).forEach(e=>{B(e,wm[e])});const S=t=>{if(0<P.children.length)for(let e=0;e<P.children.length;e++)t===e?(P.children[e].classList.remove("hidden"),null!=T&&T.children[e].classList.add("selected")):(P.children[e].classList.add("hidden"),null!=T&&T.children[e].classList.remove("selected"))},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:D},window.location.href)};return De(()=>()=>{r(15,P=null),r(17,T=null)}),i.$$set=e=>{"lang"in e&&r(0,n=e.lang),"userid"in e&&r(1,o=e.userid),"session"in e&&r(2,a=e.session),"endpoint"in e&&r(3,s=e.endpoint),"currency"in e&&r(4,l=e.currency),"apiversion"in e&&r(5,c=e.apiversion),"tablabels"in e&&r(25,u=e.tablabels),"historyenabled"in e&&r(6,d=e.historyenabled),"deletelimit"in e&&r(7,p=e.deletelimit),"limitsamount"in e&&r(26,h=e.limitsamount),"limitsperiods"in e&&r(27,m=e.limitsperiods),"numberofentries"in e&&r(8,f=e.numberofentries),"customcurrencysymbols"in e&&r(9,g=e.customcurrencysymbols),"clientstyling"in e&&r(10,y=e.clientstyling),"clientstylingurl"in e&&r(11,v=e.clientstylingurl),"translationurl"in e&&r(12,b=e.translationurl)},i.$$.update=()=>{if(33554479&i.$$.dirty[0]&&o&&a&&s&&u&&n&&c){var e=h,t=m;if(r(18,A=e.replace(/\s/g,"").split("|")),r(19,E=t.replace(/\s/g,"").split("|")),0===A.length)throw new Error("Please provide a full limits configuration.");if(A.length!==E.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");h.split("|").forEach(e=>{M.includes(e)||M.push(e)}),r(16,C=u.split(",").map(e=>e.trim())),r(13,L=!1)}if(40960&i.$$.dirty[0]&&P&&!L&&S(0),18432&i.$$.dirty[0]&&v&&x){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{x.appendChild(t)},1)})}17408&i.$$.dirty[0]&&y&&x&&((e=document.createElement("style")).innerHTML=y,x.appendChild(e))},[n,o,a,s,l,c,d,p,f,g,y,v,b,L,x,P,C,T,A,E,t,M,D,S,k,u,h,m,()=>k(),e=>S(e),function(e){Ee[e?"unshift":"push"](()=>{T=e,r(17,T)})},function(e){Ee[e?"unshift":"push"](()=>{P=e,r(15,P)})},function(e){Ee[e?"unshift":"push"](()=>{x=e,r(14,x)})}]}customElements.get("player-account-gaming-limits-wrapper-2")||customElements.define("player-account-gaming-limits-wrapper-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B);justify-content:center;background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));margin:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Af,Tf,i,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:25,historyenabled:6,deletelimit:7,limitsamount:26,limitsperiods:27,numberofentries:8,customcurrencysymbols:9,clientstyling:10,clientstylingurl:11,translationurl:12},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),p()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),p()}get tablabels(){return this.$$.ctx[25]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[7]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[26]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[27]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[8]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[9]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Ef=u["document"];function Lf(e){let i,r,n,o,a,s,l;function c(e){return e[37]&&e[36]===e[43][0]?Zf:e[37]&&e[36]===e[43][1]?qf:e[37]&&e[36]===e[43][2]?Vf:e[37]&&e[36]===e[43][3]?Gf:e[37]&&e[36]===e[43][4]?Yf:e[37]&&e[36]==e[43][5]?Uf:e[37]&&e[36]===e[43][6]?jf:e[37]&&e[36]===e[43][7]?Wf:e[37]&&e[36]===e[43][8]?zf:e[37]&&e[36]===e[43][9]?Hf:e[37]&&e[36]===e[43][10]?Rf:e[37]&&e[36]===e[43][11]?Of:e[37]&&e[36]===e[43][12]?Ff:e[37]&&e[36]===e[43][13]?Nf:e[37]&&e[36]===e[43][14]?If:e[37]&&e[36]===e[43][15]?Bf:e[37]&&e[36]===e[43][16]?kf:e[37]&&e[36]===e[43][17]?Sf:e[37]&&e[36]===e[43][18]?Df:e[37]&&e[36]===e[43][19]?$f:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),le(r,"endpoint",e[3]),le(r,"session",e[2]),le(r,"playerid",e[1]),le(r,"lang",e[4]),le(r,"selecteditem",e[41]),le(r,"userroles",e[9]),le(r,"clientstyling",e[22]),le(r,"clientstylingurl",e[23]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[22]),le(l,"clientstylingurl",e[23])},m(e,t){li(e,i,t),si(i,r),li(e,n,t),li(e,o,t),d&&d.m(o,null),li(e,a,t),li(e,s,t),si(s,l)},p(e,t){8&t[0]&&le(r,"endpoint",e[3]),4&t[0]&&le(r,"session",e[2]),2&t[0]&&le(r,"playerid",e[1]),16&t[0]&&le(r,"lang",e[4]),1024&t[1]&&le(r,"selecteditem",e[41]),512&t[0]&&le(r,"userroles",e[9]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23]),u===(u=c(e))&&d?d.p(e,t):(d&&d.d(1),(d=u&&u(e))&&(d.c(),d.m(o,null))),1&t[0]&&le(l,"customnotif",e[0]),4194304&t[0]&&le(l,"clientstyling",e[22]),8388608&t[0]&&le(l,"clientstylingurl",e[23])},d(e){e&&ci(i),e&&ci(n),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function Mf(e){let i;function r(e){return e[37]?e[37]&&e[36]===e[43][0]?fg:e[37]&&e[36]===e[43][1]?mg:e[37]&&e[36]===e[43][2]?hg:e[37]&&e[36]===e[43][3]?pg:e[37]&&e[36]===e[43][4]?dg:e[37]&&e[36]===e[43][5]?ug:e[37]&&e[36]===e[43][6]?cg:e[37]&&e[36]===e[43][7]?lg:e[37]&&e[36]===e[43][8]?sg:e[37]&&e[36]===e[43][9]?ag:e[37]&&e[36]===e[43][10]?og:e[37]&&e[36]===e[43][11]?ng:e[37]&&e[36]===e[43][12]?rg:e[37]&&e[36]===e[43][13]?ig:e[37]&&e[36]===e[43][14]?tg:e[37]&&e[36]===e[43][15]?eg:e[37]&&e[36]===e[43][16]?Qf:e[37]&&e[36]===e[43][17]?Jf:e[37]&&e[36]===e[43][18]?Kf:e[37]&&e[36]===e[43][19]?Xf:void 0:gg}let n=r(e),o=n&&n(e);return{c(){o&&o.c(),i=I()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=n&&n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function $f(e){let i;return{c(){le(i=di("user-transaction-history"),"endpoint",e[3]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"mobile",e[42]),le(i,"translation-url",e[24]),le(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),16777216&t[0]&&le(i,"translation-url",e[24]),16&t[0]&&le(i,"language",e[4])},d(e){e&&ci(i)}}}function Df(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","withdraw"),le(i,"channel","Desktop"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function Sf(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","deposit"),le(i,"channel","Desktop"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function kf(e){let i;return{c(){le(i=di("player-kyc-verification"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"user-id",e[1]),le(i,"language",e[4]),le(i,"kyc-title",e[19]),le(i,"description",e[20]),le(i,"translation-url",e[24]),le(i,"client-styling",e[22]),le(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"user-id",e[1]),16&t[0]&&le(i,"language",e[4]),524288&t[0]&&le(i,"kyc-title",e[19]),1048576&t[0]&&le(i,"description",e[20]),16777216&t[0]&&le(i,"translation-url",e[24]),4194304&t[0]&&le(i,"client-styling",e[22]),8388608&t[0]&&le(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function Bf(e){let i;return{c(){le(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"tablabels",e[11]),le(i,"lang",e[4]),le(i,"historyenabled",e[12]),le(i,"deletelimit",e[13]),le(i,"limitsamount",e[14]),le(i,"limitsperiods",e[15]),le(i,"numberofentries",e[16]),le(i,"customcurrencysymbols",e[17]),le(i,"currency",e[18]),le(i,"apiversion",e[21]),le(i,"translationurl",e[24]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),2048&t[0]&&le(i,"tablabels",e[11]),16&t[0]&&le(i,"lang",e[4]),4096&t[0]&&le(i,"historyenabled",e[12]),8192&t[0]&&le(i,"deletelimit",e[13]),16384&t[0]&&le(i,"limitsamount",e[14]),32768&t[0]&&le(i,"limitsperiods",e[15]),65536&t[0]&&le(i,"numberofentries",e[16]),131072&t[0]&&le(i,"customcurrencysymbols",e[17]),262144&t[0]&&le(i,"currency",e[18]),2097152&t[0]&&le(i,"apiversion",e[21]),16777216&t[0]&&le(i,"translationurl",e[24]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function If(e){let i;return{c(){le(i=di("player-account-betting-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Nf(e){let i;return{c(){le(i=di("player-transaction-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Ff(e){let i;return{c(){le(i=di("player-pending-withdrawals"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Of(e){let i;return{c(){le(i=di("player-withdrawal"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function Rf(e){let i;return{c(){le(i=di("player-deposit"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function Hf(e){let i;return{c(){le(i=di("player-gaming-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),67108864&t[0]&&le(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function zf(e){let i;return{c(){le(i=di("player-bonus-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Wf(e){let i;return{c(){le(i=di("player-active-bonuses"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"playercurrency",e[39]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[1]&&le(i,"playercurrency",e[39]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function jf(e){let i;return{c(){le(i=di("player-account-self-exclusion"),"lang",e[4]),le(i,"operator",e[5]),le(i,"supportemail",e[6]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),64&t[0]&&le(i,"supportemail",e[6]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Uf(i){let r,n,o;return{c(){le(r=di("player-account-gaming-limits"),"playercurrency",i[39]),le(r,"separatelimits",i[7]),le(r,"clientstyling",i[22]),le(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[44].call(null,r)),n=!0)},p(e,t){256&t[1]&&le(r,"playercurrency",e[39]),128&t[0]&&le(r,"separatelimits",e[7]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function Yf(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Gf(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Vf(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[40]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){512&t[1]&&le(i,"realitycheck",e[40]),8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"playerid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function qf(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&le(i,"simplepasswordvalidation",e[10]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Zf(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[38]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"lang",e[4]),128&t[1]&&le(i,"countrycode",e[38]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),33554432&t[0]&&le(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function Xf(e){let i;return{c(){le(i=di("user-transaction-history"),"endpoint",e[3]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"mobile",e[42]),le(i,"translation-url",e[24]),le(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),16777216&t[0]&&le(i,"translation-url",e[24]),16&t[0]&&le(i,"language",e[4])},d(e){e&&ci(i)}}}function Kf(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","withdraw"),le(i,"channel","Mobile"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function Jf(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","deposit"),le(i,"channel","Mobile"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function Qf(e){let i;return{c(){le(i=di("player-kyc-verification"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"user-id",e[1]),le(i,"language",e[4]),le(i,"kyc-title",e[19]),le(i,"description",e[20]),le(i,"translation-url",e[24]),le(i,"client-styling",e[22]),le(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"user-id",e[1]),16&t[0]&&le(i,"language",e[4]),524288&t[0]&&le(i,"kyc-title",e[19]),1048576&t[0]&&le(i,"description",e[20]),16777216&t[0]&&le(i,"translation-url",e[24]),4194304&t[0]&&le(i,"client-styling",e[22]),8388608&t[0]&&le(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function eg(e){let i;return{c(){le(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"tablabels",e[11]),le(i,"historyenabled",e[12]),le(i,"deletelimit",e[13]),le(i,"limitsamount",e[14]),le(i,"limitsperiods",e[15]),le(i,"numberofentries",e[16]),le(i,"customcurrencysymbols",e[17]),le(i,"currency",e[18]),le(i,"apiversion",e[21]),le(i,"translationurl",e[24]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),2048&t[0]&&le(i,"tablabels",e[11]),4096&t[0]&&le(i,"historyenabled",e[12]),8192&t[0]&&le(i,"deletelimit",e[13]),16384&t[0]&&le(i,"limitsamount",e[14]),32768&t[0]&&le(i,"limitsperiods",e[15]),65536&t[0]&&le(i,"numberofentries",e[16]),131072&t[0]&&le(i,"customcurrencysymbols",e[17]),262144&t[0]&&le(i,"currency",e[18]),2097152&t[0]&&le(i,"apiversion",e[21]),16777216&t[0]&&le(i,"translationurl",e[24]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function tg(e){let i;return{c(){le(i=di("player-account-betting-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ig(e){let i;return{c(){le(i=di("player-transaction-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function rg(e){let i;return{c(){le(i=di("player-pending-withdrawals"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ng(e){let i;return{c(){le(i=di("player-withdrawal"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function og(e){let i;return{c(){le(i=di("player-deposit"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function ag(e){let i;return{c(){le(i=di("player-gaming-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),67108864&t[0]&&le(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function sg(e){let i;return{c(){le(i=di("player-bonus-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function lg(e){let i;return{c(){le(i=di("player-active-bonuses"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"playercurrency",e[39]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[1]&&le(i,"playercurrency",e[39]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function cg(e){let i;return{c(){le(i=di("player-account-self-exclusion"),"lang",e[4]),le(i,"operator",e[5]),le(i,"supportemail",e[6]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),64&t[0]&&le(i,"supportemail",e[6]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ug(i){let r,n,o;return{c(){le(r=di("player-account-gaming-limits"),"playercurrency",i[39]),le(r,"separatelimits",i[7]),le(r,"clientstyling",i[22]),le(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[44].call(null,r)),n=!0)},p(e,t){256&t[1]&&le(r,"playercurrency",e[39]),128&t[0]&&le(r,"separatelimits",e[7]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function dg(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function pg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function hg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[40]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){512&t[1]&&le(i,"realitycheck",e[40]),8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"playerid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function mg(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&le(i,"simplepasswordvalidation",e[10]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function fg(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[38]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"lang",e[4]),128&t[1]&&le(i,"countrycode",e[38]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),33554432&t[0]&&le(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function gg(e){let i,r,n,o;return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("player-account-notifications"),le(r,"endpoint",e[3]),le(r,"session",e[2]),le(r,"playerid",e[1]),le(r,"lang",e[4]),le(r,"userroles",e[9]),le(r,"clientstyling",e[22]),le(r,"clientstylingurl",e[23]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[22]),le(o,"clientstylingurl",e[23]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){8&t[0]&&le(r,"endpoint",e[3]),4&t[0]&&le(r,"session",e[2]),2&t[0]&&le(r,"playerid",e[1]),16&t[0]&&le(r,"lang",e[4]),512&t[0]&&le(r,"userroles",e[9]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23]),1&t[0]&&le(o,"customnotif",e[0]),4194304&t[0]&&le(o,"clientstyling",e[22]),8388608&t[0]&&le(o,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function yg(i){let r,n,o,a,s,l=function(e){let i,t=e[42]?Mf:Lf,r=t(e);return{c(){i=di("section"),r.c(),gi(i,"class","PlayerAccountPage "+(e[42]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),r.m(i,null)},p(e,t){r.p(e,t)},d(e){e&&ci(i),r.d()}}}(i);return{c(){r=di("script"),n=di("script"),o=di("script"),a=mi(),s=di("div"),l.c(),this.c=se,gi(r,"type","module"),_(r.src,"https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0")||gi(r,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0"),gi(n,"type","module"),_(n.src,"https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0")||gi(n,"src","https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0"),gi(o,"type","module"),_(o.src,"https://unpkg.com/@everymatrix/user-transaction-history@1.17.0")||gi(o,"src","https://unpkg.com/@everymatrix/user-transaction-history@1.17.0")},m(e,t){si(Ef.head,r),si(Ef.head,n),si(Ef.head,o),li(e,a,t),li(e,s,t),l.m(s,null),i[56](s)},p(e,t){l.p(e,t)},i:se,o:se,d(e){ci(r),ci(n),ci(o),e&&ci(a),e&&ci(s),l.d(),i[56](null)}}}function vg(t,e,o){let a;Ae(t,Me,e=>o(68,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:r=""}=e,{limitspath:n=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:F=""}=e,{realm:O=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:H="true"}=e,{hasdefaultamount:z="false"}=e,{userroles:m=""}=e,{simplepasswordvalidation:W="false"}=e,{tablabels:j=""}=e,{historyenabled:U=""}=e,{deletelimit:Y=""}=e,{limitsamount:G=""}=e,{limitsperiods:V=""}=e,{numberofentries:q=""}=e,{customcurrencysymbols:Z=""}=e,{currency:X=""}=e,{kyctitle:K=""}=e,{kycdescription:J=""}=e,{apiversion:Q=""}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{custominputtextswitch:ee="false"}=e,{gmversion:te=""}=e,{channel:ie=""}=e,{producttype:re=""}=e,{successurl:ne=""}=e,{failurl:oe=""}=e,{cancelurl:ae=""}=e,{sportsurl:se=""}=e,{casinourl:le=""}=e,{contacturl:ce=""}=e,{homeurl:ue=""}=e;var de,pe;({withLocale:de,translations:pe}={withLocale:"en",translations:{}}),Le.subscribe(e=>{null==e&&($r.set(pe),Le.set(de))});let v,b,w,_,he,x,me=window.navigator.userAgent,fe="PC"!==$e(me),ge=[],ye=[],C="",P="",T="",ve="",A=null,E="",L={},M=!1,$=!1,be="",D="",we=!1,S=!1;Object.keys(hn).forEach(e=>{pn(e,hn[e])});const _e=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(37,S=!0),o(36,T=i.data.page.path),o(41,x=i.data.page.id),"/profile-info"==T&&(k(),B()),"/deposit"==T&&"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==T&&"function"==typeof gtag&&gtag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(37,S=!0),o(36,T=i.data.pagePath),"/profile-info"==T&&(k(),B());var r=new URL(`${s}/${p}/profile-menu?env=`+l);r.searchParams.append("device",E),xe(r).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(41,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(37,S=!1),Te());break;case"UpdatePlayerInfo":r=i.data.provisionalArray,r={mobile:{prefix:r.mobilePrefix,number:r.mobileNumber},address1:r.address,city:r.city,postalCode:r.postalCode,securityQuestion:r.securityQuestion,securityAnswer:r.securityAnswer},r=(t=new URL(`${d}/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("profileUpdateSuccess")}},window.location.href),window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href))});break;case"UpdatePlayerConsent":t=new URL(`${d}/player/${C}/consent`);r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,r).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let i=new URL(`${d}/player/${C}/password`),r={currentPassword:e,newPassword:t},n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},o=await fetch(i.href,n);if(o.ok)window.postMessage({type:"PasswordChangedSuccessfully"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("passwordChangedSuccess")}},window.location.href);else{let e=await o.json();D=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),we=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:we,errorPasswordChanged:D},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:D}},window.location.href)}})(i.data.userCurrentPassword,i.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={coolOff:{period:i.data.timeoutSelected}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{if(200!=e.status)throw new Error("Failed to fetch");window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("timeoutSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(e=>console.error(e));break;case"SetSelfExclusion":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"AccountClosure":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("accountClosureSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"UserSessionID":P=i.data.session,C=i.data.userid,Pe();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));r=i.data.payload,r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(M=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsUpdateSuccess")}},window.location.href),I(new URL(`v2/player/${C}/limits`,d.slice(0,-2))))});break;case"PlayerAccountGamingLimitDelete":var r=i.data.limit||{},n=Array.isArray(r)?r.map(e=>e.period):r.period;let e="";switch(i.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}r={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(r)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(n)?n.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",n),fetch(t.href,r).then(e=>{200==e.status&&($=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)));break;case"SubmittedRealityCheck":{n=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/player/${C}/realitycheck`),t=(n&&(be=n),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(be,10)}});fetch(e.href,t).then(e=>{200==e.status&&(Ce(new URL(`${d}/player/${c}/realitycheck`)),window.postMessage({type:"RealityCheckValueUpdated"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("realityCheckSuccess")}},window.location.href))},e=>{console.error(e)});return}}};async function xe(e){return e.searchParams.append("device",E),(await fetch(e.href)).json()}const k=()=>{var e=new URL(`${d}/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(38,ve=e.country),o(39,A=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},B=()=>{var e=new URL(`${d}/player/${C}/consent`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{window.postMessage({type:"ProfileConsentData",consent:e},window.location.href)},e=>{console.error(e)})},Ce=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(40,he=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===M?setTimeout(()=>{M=!1},3e3):!0===$&&setTimeout(()=>{$=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{L=e,0!==Object.keys(L).length?(o(52,v=null!=(e=L.depositLimits)?e:[]),o(53,b=null!=(e=L.wageringLimits)?e:[]),o(54,w=null!=(e=L.lossLimits)?e:[]),L.hasOwnProperty("cumulativeSessionLimits")?(o(55,_=L.timeLimit),o(55,_=L.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(55,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:A,depositlimit:v,wageringlimit:b,losslimit:w,timelimit:_,showsuccessnotification:M,showdeletenotification:$,lang:p}},window.location.href)):(o(52,v=[]),o(53,b=[]),o(54,w=[]),o(55,_=[])),Se()},e=>{console.error(e)})},Pe=()=>{var e;xe(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{ge=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:ge},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",E),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ye=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ye},window.location.href))},e=>{console.error(e)}),k(),B(),Ce(new URL(`${d}/player/${c}/realitycheck`))},Te=()=>{var e;(e=$e(me))&&(E="PC"===e?"dk":"mtWeb"),C=c,P=u,fe||o(37,S=!0),Pe()};return De(()=>(window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)})),t.$$set=e=>{"cmsendpoint"in e&&o(45,s=e.cmsendpoint),"env"in e&&o(46,l=e.env),"customnotifications"in e&&o(0,r=e.customnotifications),"limitspath"in e&&o(47,n=e.limitspath),"playerid"in e&&o(1,c=e.playerid),"session"in e&&o(2,u=e.session),"endpoint"in e&&o(3,d=e.endpoint),"lang"in e&&o(4,p=e.lang),"operator"in e&&o(5,h=e.operator),"supportemail"in e&&o(6,N=e.supportemail),"operatorid"in e&&o(48,F=e.operatorid),"realm"in e&&o(49,O=e.realm),"webapiendpoint"in e&&o(50,R=e.webapiendpoint),"separatelimits"in e&&o(7,H=e.separatelimits),"hasdefaultamount"in e&&o(8,z=e.hasdefaultamount),"userroles"in e&&o(9,m=e.userroles),"simplepasswordvalidation"in e&&o(10,W=e.simplepasswordvalidation),"tablabels"in e&&o(11,j=e.tablabels),"historyenabled"in e&&o(12,U=e.historyenabled),"deletelimit"in e&&o(13,Y=e.deletelimit),"limitsamount"in e&&o(14,G=e.limitsamount),"limitsperiods"in e&&o(15,V=e.limitsperiods),"numberofentries"in e&&o(16,q=e.numberofentries),"customcurrencysymbols"in e&&o(17,Z=e.customcurrencysymbols),"currency"in e&&o(18,X=e.currency),"kyctitle"in e&&o(19,K=e.kyctitle),"kycdescription"in e&&o(20,J=e.kycdescription),"apiversion"in e&&o(21,Q=e.apiversion),"clientstyling"in e&&o(22,f=e.clientstyling),"clientstylingurl"in e&&o(23,g=e.clientstylingurl),"translationurl"in e&&o(24,y=e.translationurl),"custominputtextswitch"in e&&o(25,ee=e.custominputtextswitch),"gmversion"in e&&o(26,te=e.gmversion),"channel"in e&&o(51,ie=e.channel),"producttype"in e&&o(27,re=e.producttype),"successurl"in e&&o(28,ne=e.successurl),"failurl"in e&&o(29,oe=e.failurl),"cancelurl"in e&&o(30,ae=e.cancelurl),"sportsurl"in e&&o(31,se=e.sportsurl),"casinourl"in e&&o(32,le=e.casinourl),"contacturl"in e&&o(33,ce=e.contacturl),"homeurl"in e&&o(34,ue=e.homeurl)},t.$$.update=()=>{if(16&t.$$.dirty[0]|96&t.$$.dirty[1]&&p&&S&&T&&(e=p,Le.set(e)),543&t.$$.dirty[0]|49152&t.$$.dirty[1]&&s&&d&&r&&c&&u&&p&&l&&m&&Te(),t.$$.dirty[1],4194304&t.$$.dirty[0]|16&t.$$.dirty[1]&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),8388608&t.$$.dirty[0]|16&t.$$.dirty[1]&&g&&i){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;16777216&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pn(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,u,d,p,h,N,H,z,m,W,j,U,Y,G,V,q,Z,X,K,J,Q,f,g,y,ee,te,re,ne,oe,ae,se,le,ce,ue,i,T,S,ve,A,void 0,x,fe,["/profile-info","/change-password","/reality-check","/timeout","/account-closure","/gaming-limits","/self-exclusion","/active-bonuses","/bonus-history","/gaming-history","/deposit","/withdrawal","/pending-withdrawals","/transaction-history","/betting-history","/limits","/account-verification","/cashier-deposit","/cashier-withdrawal","/transactions-history"],e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,n,F,O,R,ie,v,b,w,_,function(e){Ee[e?"unshift":"push"](()=>{i=e,o(35,i)})}]}class bg extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.PlayerAccountPage{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:250px 1fr 230px;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:30px}.PlayerAccountPage.PlayerAccountMobilePage{display:block;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:0px}.PlayerAccountPage>nav{grid-area:nav;color:red;background:var(--emfe-w-pam-color-nav-desktop-bg, var(--emfe-w-color-gray-300, #58586B))}.PlayerAccountPage>nav.PlayerAccountMobile{background:var(--emfe-w-pam-color-nav-mobile-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},vg,yg,i,{cmsendpoint:45,env:46,customnotifications:0,limitspath:47,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:48,realm:49,webapiendpoint:50,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,kyctitle:19,kycdescription:20,apiversion:21,clientstyling:22,clientstylingurl:23,translationurl:24,custominputtextswitch:25,gmversion:26,channel:51,producttype:27,successurl:28,failurl:29,cancelurl:30,sportsurl:31,casinourl:32,contacturl:33,homeurl:34},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["cmsendpoint","env","customnotifications","limitspath","playerid","session","endpoint","lang","operator","supportemail","operatorid","realm","webapiendpoint","separatelimits","hasdefaultamount","userroles","simplepasswordvalidation","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","currency","kyctitle","kycdescription","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion","channel","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl"]}get cmsendpoint(){return this.$$.ctx[45]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[46]}set env(e){this.$$set({env:e}),p()}get customnotifications(){return this.$$.ctx[0]}set customnotifications(e){this.$$set({customnotifications:e}),p()}get limitspath(){return this.$$.ctx[47]}set limitspath(e){this.$$set({limitspath:e}),p()}get playerid(){return this.$$.ctx[1]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[5]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[6]}set supportemail(e){this.$$set({supportemail:e}),p()}get operatorid(){return this.$$.ctx[48]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[49]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[50]}set webapiendpoint(e){this.$$set({webapiendpoint:e}),p()}get separatelimits(){return this.$$.ctx[7]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get hasdefaultamount(){return this.$$.ctx[8]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get userroles(){return this.$$.ctx[9]}set userroles(e){this.$$set({userroles:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[10]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get tablabels(){return this.$$.ctx[11]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[12]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[13]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[14]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[15]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[16]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[17]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get currency(){return this.$$.ctx[18]}set currency(e){this.$$set({currency:e}),p()}get kyctitle(){return this.$$.ctx[19]}set kyctitle(e){this.$$set({kyctitle:e}),p()}get kycdescription(){return this.$$.ctx[20]}set kycdescription(e){this.$$set({kycdescription:e}),p()}get apiversion(){return this.$$.ctx[21]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[25]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[26]}set gmversion(e){this.$$set({gmversion:e}),p()}get channel(){return this.$$.ctx[51]}set channel(e){this.$$set({channel:e}),p()}get producttype(){return this.$$.ctx[27]}set producttype(e){this.$$set({producttype:e}),p()}get successurl(){return this.$$.ctx[28]}set successurl(e){this.$$set({successurl:e}),p()}get failurl(){return this.$$.ctx[29]}set failurl(e){this.$$set({failurl:e}),p()}get cancelurl(){return this.$$.ctx[30]}set cancelurl(e){this.$$set({cancelurl:e}),p()}get sportsurl(){return this.$$.ctx[31]}set sportsurl(e){this.$$set({sportsurl:e}),p()}get casinourl(){return this.$$.ctx[32]}set casinourl(e){this.$$set({casinourl:e}),p()}get contacturl(){return this.$$.ctx[33]}set contacturl(e){this.$$set({contacturl:e}),p()}get homeurl(){return this.$$.ctx[34]}set homeurl(e){this.$$set({homeurl:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",bg),bg});
2294
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new pu(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new hu(this.inputElement,this._labelController)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_initOverlay(){super._initOverlay(),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.blur(),e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function yu(e){let i,r,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(n,o)},d(e){e&&ci(i)}}}function vu(e){let i,r,n,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function wu(i){let r,n,O,o,a,R,s,l,c,H,u,d,z,p,h,W,j,U,m,Y,G,f,V,g,q,y,v,Z,X,w,K,b,_,J,Q,x,ee,C,te,P,ie,T,E,re,ne,oe,A=i[8]("title")+"",L=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",M=i[8]("selfExclusionText2")+"",$=i[8]("selfExclusionText3")+"",D=i[8]("selfExclusionText4")+"",S=i[8]("duration")+"",k=i[8]("forever")+"",B=i[8]("save")+"",I=i[9]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function ae(e){return e[4]?vu:yu}let N=ae(i),F=N(i);return{c(){r=di("div"),n=di("form"),I&&I.c(),O=mi(),o=di("h2"),a=hi(A),R=mi(),s=di("div"),l=di("p"),c=hi(L),H=mi(),u=di("p"),d=hi(M),z=mi(),p=di("p"),h=hi($),W=mi(),j=hi(i[1]),U=mi(),m=di("p"),Y=hi(D),G=mi(),f=di("a"),V=hi(i[1]),q=mi(),y=di("div"),v=di("label"),Z=hi(S),X=mi(),w=di("vaadin-date-picker"),K=mi(),b=di("div"),_=di("label"),J=hi(k),Q=mi(),x=di("input"),ee=mi(),C=di("span"),te=mi(),P=di("div"),F.c(),ie=mi(),T=di("div"),E=di("button"),re=hi(B),this.c=se,gi(o,"class","PlayerSelfExclusionTitle "+(i[9]?"PlayerSelfExclusionTitleNone":"")),gi(l,"class","SelfExclusionDescriptionText"),gi(u,"class","SelfExclusionDescriptionText"),gi(p,"class","SelfExclusionDescriptionText"),gi(f,"href",g="mailto:"+i[1]),gi(m,"class","SelfExclusionDescriptionText"),gi(s,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(v,"for","SelfExclusionDate"),le(w,"min",i[6]),le(w,"max",i[7]),le(w,"value",i[6]),gi(y,"class","SelfExclusionDateWrapper "+(i[9]?"SelfExclusionDateWrapperMobile":"")),gi(x,"type","Checkbox"),gi(C,"class","Checkmark"),gi(C,"part","Checkmark"),gi(_,"class","SelfExclusionRadio"),gi(b,"class","SelfExclusionRadioWrapper "+(i[9]?"SelfExclusionRadioWrapperMobile":"")),gi(P,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(E,"class","SelfExclusionSave"),gi(T,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(n,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),I&&I.m(n,null),si(n,O),si(n,o),si(o,a),si(n,R),si(n,s),si(s,l),si(l,c),si(s,H),si(s,u),si(u,d),si(s,z),si(s,p),si(p,h),si(p,W),si(p,j),si(s,U),si(s,m),si(m,Y),si(m,G),si(m,f),si(f,V),si(n,q),si(n,y),si(y,v),si(v,Z),si(y,X),si(y,w),i[18](w),si(n,K),si(n,b),si(b,_),si(_,J),si(_,Q),si(_,x),si(_,ee),si(_,C),si(n,te),si(n,P),F.m(P,null),si(n,ie),si(n,T),si(T,E),si(E,re),i[21](r),ne||(oe=[fi(x,"click",i[19]),fi(E,"click",i[20])],ne=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&A!==(A=e[8]("title")+"")&&yi(a,A),257&t[0]&&L!==(L=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,L),256&t[0]&&M!==(M=e[8]("selfExclusionText2")+"")&&yi(d,M),256&t[0]&&$!==($=e[8]("selfExclusionText3")+"")&&yi(h,$),2&t[0]&&yi(j,e[1]),256&t[0]&&D!==(D=e[8]("selfExclusionText4")+"")&&yi(Y,D),2&t[0]&&yi(V,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gi(f,"href",g),256&t[0]&&S!==(S=e[8]("duration")+"")&&yi(Z,S),64&t[0]&&le(w,"min",e[6]),128&t[0]&&le(w,"max",e[7]),64&t[0]&&le(w,"value",e[6]),256&t[0]&&k!==(k=e[8]("forever")+"")&&yi(J,k),N===(N=ae(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(P,null))),256&t[0]&&B!==(B=e[8]("save")+"")&&yi(re,B)},i:se,o:se,d(e){e&&ci(r),I&&I.d(),i[18](null),F.d(),i[21](null),ne=!1,ai(oe)}}}function bu(t,e,i){let r;Ee(t,Me,e=>i(8,r=e));let n,o,a,s,{lang:l="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,m=window.navigator.userAgent,f="PC"!==$e(m),g=!1,y="",v="",w=new Date;Object.keys(Hn).forEach(e=>{Rn(e,Hn[e])}),a=W(w.setDate(w.getDate())).add(6,"M").format("YYYY-MM-DD"),s=W(w.setDate(w.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{i(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&i(5,v=e))},x=e=>{e.preventDefault(),_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},P=e=>{_(e.target.value)};De(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&i(13,l=e.lang),"operator"in e&&i(0,c=e.operator),"supportemail"in e&&i(1,u=e.supportemail),"clientstyling"in e&&i(14,d=e.clientstyling),"clientstylingurl"in e&&i(15,p=e.clientstylingurl),"translationurl"in e&&i(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,Le.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rn(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,n,o,g,v,a,s,r,f,b,x,C,l,d,p,h,()=>C(),function(e){Ae[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>b(),e=>x(e),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function _u(e,t){B(e,t)}customElements.define(gu.is,gu),customElements.define=(fu=customElements.define,function(...e){try{return fu.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},bu,wu,i,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),p()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),p()}});const xu={en:{title:"Account Closure",accountClosureDescription:"Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",closeAccount:"Close Account",modal:"Are you sure you want to close your account?",accountClosureCancel:"No",accountClosureConfirm:"Yes"},"zh-hk":{title:"賬戶關閉",accountClosureDescription:"如果您覺得需要休息,或者您只是想停止使用我們的服務,賬戶關閉會為您的賬戶提供永久訪問限制。",closeAccount:"關閉賬戶",modal:"您確定要關閉您的帳戶嗎?",accountClosureCancel:"不",accountClosureConfirm:"是的"},fr:{title:"Fermeture du compte",accountClosureDescription:"La fermeture du compte fournit une restriction permanente d'accès à votre compte si vous sentez que vous avez besoin d'une pause ou si vous souhaitez arrêter d'utiliser notre service",closeAccount:"Fermer le compte",modal:"êtes-vous sûr de vouloir fermer votre compte?",accountClosureCancel:"Non",accountClosureConfirm:"Oui"},ro:{title:"Închidere Cont",accountClosureDescription:'Opțiunea "Închidere Cont" asigură suspendarea permanentă a accesului la contul tău dacă simți că ai nevoie de o pauză sau că vrei să nu mai folosești serviciile noastre.',closeAccount:"Închide Cont",modal:"Esti sigur ca vrei sa inchizi contul?",accountClosureCancel:"Nu",accountClosureConfirm:"Da"},es:{title:"Cierre de cuenta",accountClosureDescription:"Cierre de cuenta provee una restricción permamente de poder ingresar a su cuenta si desea tomar una pausa.",closeAccount:"Cerrar cuenta",modal:"Esta seguro que desea cerrar su cuenta?",accountClosureCancel:"No",accountClosureConfirm:"Sí"},pt:{title:"Encerramento da conta",accountClosureDescription:"O Encerramento de Conta fornece uma restrição de acesso permanente à sua conta se você achar que precisa de uma pausa ou apenas deseja parar de usar nossos serviços.",closeAccount:"Encerrar conta",modal:"Tem certeza de que deseja encerrar sua conta?",accountClosureCancel:"Não",accountClosureConfirm:"Sim"}};function Cu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("modal")+"",v=i[2]("accountClosureCancel")+"",w=i[2]("accountClosureConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[13]),fi(h,"click",i[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&yi(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&yi(d,v),4&t&&w!==(w=e[2]("accountClosureConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function Pu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[2]("title")+"",b=i[2]("accountClosureDescription")+"",_=i[2]("closeAccount")+"",x=i[3]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),C=i[1]&&Cu(i);return{c(){r=di("div"),n=di("div"),x&&x.c(),o=mi(),a=di("h2"),s=hi(w),l=mi(),c=di("div"),u=di("p"),d=hi(b),p=mi(),h=di("div"),m=di("button"),f=hi(_),g=mi(),C&&C.c(),this.c=se,gi(a,"class","AccountClosureTitle "+(i[3]?"AccountClosureTitleNone":"")),gi(c,"class","AccountClosureDescription "+(i[3]?"AccountClosureDescriptionMobile":"")),gi(m,"class","AccountClosureSave "+(i[3]?"AccountClosureSaveMobile":"")),gi(h,"class","AccountClosureActionButtons "+(i[3]?"AccountClosureActionButtonsMobile":"")),gi(n,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),x&&x.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),si(m,f),si(r,g),C&&C.m(r,null),i[15](r),y||(v=fi(m,"click",i[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&w!==(w=e[2]("title")+"")&&yi(s,w),4&t&&b!==(b=e[2]("accountClosureDescription")+"")&&yi(d,b),4&t&&_!==(_=e[2]("closeAccount")+"")&&yi(f,_),e[1]?C?C.p(e,t):((C=Cu(e)).c(),C.m(r,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&ci(r),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Tu(t,e,i){let r;Ee(t,Me,e=>i(2,r=e));let n,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==$e(c),d=!1;Object.keys(xu).forEach(e=>{_u(e,xu[e])});const p=e=>{i(1,d=e)},h=()=>{p(!1),window.postMessage({type:"AccountClosure"},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:u},window.location.href)};return t.$$set=e=>{"lang"in e&&i(7,o=e.lang),"clientstyling"in e&&i(8,a=e.clientstyling),"clientstylingurl"in e&&i(9,s=e.clientstylingurl),"translationurl"in e&&i(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,Le.set(e)),257&t.$$.dirty&&a&&n&&((e=document.createElement("style")).innerHTML=a,n.appendChild(e)),513&t.$$.dirty&&s&&n){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{_u(e,t[e])})}).catch(e=>{console.log(e)})},[n,d,r,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function Eu(e,t){B(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.AccountClosureTitleMobile{font-size:16px}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:12px;line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:12px;grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Tu,Pu,i,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Au={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"}};function Lu(e,t){B(e,t)}const Mu={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",daily:"日常的",weekly:"每週",monthly:"月刊",removeLimitText:"您確定要刪除 {limit} 嗎?",removeLimitsText:"您確定要刪除所有 {limit} 嗎?",minutes:"分鐘",noLimit:"沒有限制",expirationDate:"截止日期",notAvailable:"不適用",edit:"編輯",removeLimits:"移除限制",depositLimit:"存款限額",timeLimit:"時限",wageringLimit:"投注限額",lossLimit:"損失限額",timeLimitLower:"時限",depositLimitLower:"存款限額",wageringLimitLower:"投注限額",lossLimitLower:"損失限額",time:"時間",currency:"貨幣"},fr:{name:"Info",amountChanged:"Votre limite a été modifiée ou augmentée: {amount} {currency}. Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",removeLimitText:"êtes-vous sûr de vouloir supprimer la{limit}?",removeLimitsText:"êtes-vous sûr de vouloir supprimer tous les {limit}s?",minutes:"minutes",noLimit:"Aucune limite",expirationDate:"Date d'expiration",notAvailable:"N/A",edit:"Modifier",removeLimits:"Supprimer les limites",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte",timeLimitLower:"Limite de temps",depositLimitLower:"Limite de dépôt",wageringLimitLower:"Limite de mise",lossLimitLower:"Limite de perte",time:"Temps",currency:"Monnaie"},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"},es:{name:"Información",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"Estas seguro de quitar el {limit}?",removeLimitsText:"Estas seguro de retirar todos los {limit}es?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No Disponible",edit:"Editar",removeLimits:"Retirar límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de apuestas",lossLimitLower:"Límite de pérdida",time:"tiempo",currency:"moneda"},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",removeLimitText:"Tem certeza de que deseja remover o {limite}??",removeLimitsText:"Tem certeza de que deseja remover todos os {limite}s??",minutes:"Minutos",noLimit:"Sem limite",expirationDate:"Data de Validade",notAvailable:"Não Disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda",timeLimitLower:"Limite de tempo",depositLimitLower:"limite de depósito",wageringLimitLower:"limite de apostas",lossLimitLower:"limite de perda",time:"Tempo",currency:"Moeda"}};function $u(e,t){B(e,t)}const Du={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},de:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"},fr:{name:"Info",amountChanged:"Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",defaultText:"\"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira."},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră."},es:{name:"Info",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",defaultText:"Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual."},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",defaultText:"Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar."}};function Su(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?Bu:ku}let w=v(i),b=w(i);return{c(){r=di("section"),n=di("div"),o=di("div"),(a=di("div")).textContent="i",s=mi(),l=di("div"),c=hi(y),u=mi(),(d=di("div")).innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',p=mi(),h=di("div"),b.c(),gi(a,"class","InfoCardPopupIcon"),gi(l,"class","InfoCardPopupTitle"),gi(d,"class","InfoCardPopupCloseButton"),gi(o,"class","InfoCardPopupHeader"),gi(h,"class","InfoCardPopupContentArea"),gi(n,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(r,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(n,p),si(n,h),b.m(h,null),i[12](r),f||(g=fi(d,"click",G(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&yi(c,y),w===(w=v(e))&&b?b.p(e,t):(b.d(1),(b=w(e))&&(b.c(),b.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&gi(n,"class",m)},d(e){e&&ci(r),b.d(),i[12](null),f=!1,g()}}}function ku(e){let i,r,n=e[4]("defaultText")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("defaultText")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Bu(e){let i,r,n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){19&t&&n!==(n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Iu(e){let i,r=e[3]&&Su(e);return{c(){r&&r.c(),i=I(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,[t]){e[3]?r?r.p(e,t):((r=Su(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:se,o:se,d(e){r&&r.d(e),e&&ci(i)}}}function Nu(t,e,i){let r,{showpopup:n=""}=(Ee(t,Me,e=>i(4,r=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(Du).forEach(e=>{$u(e,Du[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==$e(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return De(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,n=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,c=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&n&&a&&(e=a,Le.set(e),o<0&&i(0,o="0"),i(3,p=n)),1028&t.$$.dirty&&c&&d){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}var e;516&t.$$.dirty&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{$u(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,r,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},n,a,l,c,u,function(e){Ae[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function Fu(e,t){B(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nu,Iu,i,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),p()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Ou={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"}};function Ru(e,{delay:t=0,duration:i=400,easing:r=b}={}){const n=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:r,css:e=>"opacity: "+e*n}}function Hu(i){let r,n,t,o;return{c(){r=di("div"),(n=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(n,"class","ModalWindow"),gi(n,"id","Modal")},m(e,t){li(e,r,t),si(r,n),i[6](n),i[7](r),o=!0},p(e,t){i=e},i(e){o||(bi(()=>{o&&(t=t||te(n,Ru,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||te(n,Ru,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(r),i[6](null),e&&t&&t.end(),i[7](null)}}}function zu(e){let i,r,n=e[0]&&Hu(e);return{c(){n&&n.c(),i=I(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){e[0]?n?(n.p(e,t),1&t&&J(n,1)):((n=Hu(e)).c(),J(n,1),n.m(i.parentNode,i)):n&&(X(),Q(n,1,1,()=>{n=null}),K())},i(e){r||(J(n),r=!0)},o(e){Q(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function Wu(t,e,i){let r,n,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return De(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&r){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e))},[o,a,r,void 0,s,l,function(e){Ae[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){Ae[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function ju(e,t){B(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Wu,zu,i,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const Uu={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"}};function Yu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",w=!i[3]&&function(i){let r,n,o;return{c(){(r=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',gi(r,"class","ModalCloseBtn"),gi(r,"role","button")},m(e,t){li(e,r,t),n||(o=fi(r,"click",i[4]),n=!0)},p:se,d(e){e&&ci(r),n=!1,o()}}}(i);return{c(){r=di("div"),w&&w.c(),n=mi(),o=di("div"),a=di("div"),s=hi(i[0]),l=mi(),c=di("div"),u=di("button"),d=hi(y),p=mi(),h=di("button"),m=hi(v),this.c=se,gi(a,"class","GamingLimitsConfirmationContent"),gi(u,"class","GamingLimitsCancelButton"),gi(h,"class","GamingLimitsConfirmButton"),gi(c,"class","GamingLimitsConfirmationControlArea"),gi(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),gi(r,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,r,t),w&&w.m(r,null),si(r,n),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),i[12](r),f||(g=[fi(u,"click",i[6]),fi(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&yi(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&yi(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&yi(m,v)},i:se,o:se,d(e){e&&ci(r),w&&w.d(),i[12](null),f=!1,ai(g)}}}function Gu(t,e,i){let r,{modaltext:n="Are you sure that you want to perform this action?"}=(Ee(t,Me,e=>i(2,r=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(Uu).forEach(e=>{ju(e,Uu[e])}),window.navigator.userAgent),p="PC"!==$e(d),h={},m="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,m="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return De(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,n=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&n&&o&&a&&(e=a,Le.set(e)),514&t.$$.dirty&&s&&u&&((e=document.createElement("style")).innerHTML=s,u.appendChild(e)),1026&t.$$.dirty&&l&&u){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var e;2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ju(e,t[e])})}).catch(e=>{console.log(e)})},[n,u,r,p,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:h,name:m},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a,s,l,c,function(e){Ae[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function Vu(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function qu(e,t,i){e=e.slice();return e[59]=t[i],e}function Zu(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function Xu(e){let i,r,n,o=e[18]("success")+"";return{c(){i=di("div"),r=di("p"),n=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Ku(t){let n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Qu(Zu(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=Zu(t,o,e);a[e]?a[e].p(r,i):(a[e]=Qu(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function Ju(e){let i,r,n,o,a=e[18]("remove")+"",s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("p"),r=hi(a),n=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(r,a),16384&t[0]&&s!==(s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(o,s)},d(e){e&&ci(i)}}}function Qu(e){let i,r=e[56].period==e[17][e[58]].period&&Ju(e);return{c(){r&&r.c(),i=I()},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?r?r.p(e,t):((r=Ju(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ci(i)}}}function ed(t){let i,n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=ud(Vu(t,o,e));return{c(){i=di("div"),n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=Vu(t,o,e);a[e]?a[e].p(r,i):(a[e]=ud(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function td(i){let r,n,o,a,s,l,c,u,d,p,h=i[18]("noLimit")+"",m=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=rd(qu(i,m,e));function g(){i[29].call(r,i[58])}let y="Custom"===i[17][i[58]].amount&&nd(i),v=!0===i[56].isModified&&cd(i);return{c(){r=di("select"),n=di("option"),o=hi(h);for(let e=0;e<f.length;e+=1)f[e].c();s=mi(),l=di("div"),y&&y.c(),c=mi(),v&&v.c(),u=I(),n.__value="",n.value=n.__value,n.disabled=!0,n.selected=!0,n.hidden=!0,gi(r,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),r.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&bi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(r,null);wi(r,i[17][i[58]].amount,!0),li(e,s,t),li(e,l,t),y&&y.m(l,null),li(e,c,t),v&&v.m(e,t),li(e,u,t),d||(p=[fi(r,"change",g),fi(r,"change",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&h!==(h=i[18]("noLimit")+"")&&yi(o,h),1048656&t[0]){let e;for(m=i[20].get(i[6])[i[58]].values,e=0;e<m.length;e+=1){const o=qu(i,m,e);f[e]?f[e].p(o,t):(f[e]=rd(o),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(r.disabled=a),1179712&t[0]&&wi(r,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=nd(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=cd(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(r),ui(f,e),e&&ci(s),e&&ci(l),y&&y.d(),e&&ci(c),v&&v.d(e),e&&ci(u),d=!1,ai(p)}}}function id(e){let i,r=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(r)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&r!==(r=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,r)},d(e){e&&ci(i)}}}function rd(e){let i,r,n,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&id(e);return{c(){i=di("option"),r=hi(s),n=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,r),si(i,n),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(r,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=id(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&ci(i),l&&l.d()}}}function nd(e){let i;function r(e){return"Time Limit"!==e[6]?ad:od}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function od(i){let r,n,o,a,s,l;function c(){i[31].call(r,i[58])}let u=1==i[13][i[58]]&&sd(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=sd(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function ad(i){let r,n,o,a,s,l;function c(){i[30].call(r,i[58])}let u=1==i[13][i[58]]&&ld(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=ld(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function sd(e){let i,r,n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){265216&t[0]&&n!==(n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ld(e){let i,r,n=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){262144&t[0]&&n!==(n=e[18]("invalidInputMessageLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function cd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=e[18]("expirationDate")+"",b=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",x=(0<e[56].updateAmount?e[56].updateAmount:0)+"",C=(void 0!==e[56].minutes?" minutes":e[4])+"",P=e[18]("changedLimitTextAfter")+"";return{c(){i=di("p"),r=hi(w),n=mi(),o=di("span"),a=hi(b),s=mi(),l=di("div"),c=di("p"),(u=di("span")).textContent="i",d=di("span"),p=hi(_),h=mi(),m=hi(x),f=mi(),g=hi(C),y=hi(". "),v=hi(P),gi(i,"class","AccountEditLimitsExpiryDate"),gi(u,"class","AccountEditLimitChangePeriodIcon"),gi(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(d,p),si(d,h),si(d,m),si(d,f),si(d,g),si(d,y),si(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("expirationDate")+"")&&yi(r,w),16384&t[0]&&b!==(b=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(a,b),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&yi(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&yi(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&yi(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&yi(v,P)},d(e){e&&ci(i),e&&ci(s),e&&ci(l)}}}function ud(e){let i,r,n,o,a,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&td(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),l&&l.c(),a=mi(),gi(r,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),l&&l.m(i,null),si(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&yi(n,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=td(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function dd(i){let r,O,n,o,a,s,R,l,c,u,H,d,p,z,h,m,f,W,g,y,j,v,U,w,b,_,x,C,P,T,E,A,L,M,$,Y,D=i[18]("back")+"",S=(i[1]?i[9]:"")+"",k=i[18]("save")+"",B=i[19]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=i[2]&&Xu(i),N=i[3]&&Ku(i),F=i[8]&&ed(i);return{c(){r=di("div"),B&&B.c(),O=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),R=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),H=mi(),d=di("h2"),p=hi(D),z=mi(),h=di("div"),m=di("h6"),f=hi(S),W=mi(),g=di("div"),(y=di("span")).textContent="i",j=mi(),v=di("player-account-gaming-limits-popup"),U=mi(),I&&I.c(),w=mi(),N&&N.c(),b=mi(),F&&F.c(),_=mi(),x=di("div"),C=di("button"),P=hi(k),A=mi(),L=di("player-account-modal"),M=di("player-account-gaming-limits-confirmation-modal"),this.c=se,gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","20"),gi(o,"height","20"),gi(o,"viewBox","0 0 15 15"),gi(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(n,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(y,"class","AccountEditLimitsIcon"),le(v,"showpopup",i[7]),le(v,"lang",i[0]),gi(g,"class","AccountEditLimitsIconWrapper"),gi(h,"class","AccountEditLimitsHeader"),gi(C,"class",T="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=E=!i[15],gi(x,"class","AccountEditLimitsControlArea"),gi(r,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),le(M,"modaltext",i[12]),le(M,"modalsource","groupEdit"),le(M,"lang",i[0])},m(e,t){li(e,r,t),B&&B.m(r,null),si(r,O),si(r,n),si(n,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(n,H),si(n,d),si(d,p),si(r,z),si(r,h),si(h,m),si(m,f),si(h,W),si(h,g),si(g,y),si(g,j),si(g,v),si(r,U),I&&I.m(r,null),si(r,w),N&&N.m(r,null),si(r,b),F&&F.m(r,null),si(r,_),si(r,x),si(x,C),si(C,P),i[33](r),li(e,A,t),li(e,L,t),si(L,M),$||(Y=[fi(n,"click",i[22]),fi(y,"click",G(i[21])),fi(C,"click",i[32])],$=!0)},p(e,t){e[19]&&B.p(e,t),262144&t[0]&&D!==(D=e[18]("back")+"")&&yi(p,D),514&t[0]&&S!==(S=(e[1]?e[9]:"")+"")&&yi(f,S),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=Xu(e)).c(),I.m(r,w)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=Ku(e)).c(),N.m(r,b)):N&&(N.d(1),N=null),e[8]?F?F.p(e,t):((F=ed(e)).c(),F.m(r,_)):F&&(F.d(1),F=null),262144&t[0]&&k!==(k=e[18]("save")+"")&&yi(P,k),32768&t[0]&&T!==(T="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&gi(C,"class",T),32768&t[0]&&E!==(E=!e[15])&&(C.disabled=E),4096&t[0]&&le(M,"modaltext",e[12]),1&t[0]&&le(M,"lang",e[0])},i:se,o:se,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[33](null),e&&ci(A),e&&ci(L),$=!1,ai(Y)}}}function pd(t,e,o){let i,{limitsdata:r=[]}=(Ee(t,Me,e=>o(18,i=e)),e),{showsuccessnotification:n=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:c="true"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h,m,f=(Object.keys(Ou).forEach(e=>{Fu(e,Ou[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",N=window.navigator.userAgent,F="PC"!==$e(N),x=new Array(3).fill(0),C={},P=[],T=[],E=!1,A=[];const L={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let M=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],$=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],D=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],O=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],R=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const S=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),k=new Map([["Deposit Limit",$],["Time Limit",R],["Wagering Limit",D],["Loss Limit",O]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},B=(i,e)=>{let r=JSON.parse(JSON.stringify(e));M.forEach(t=>{r.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},z=()=>{A.forEach(e=>{var t=e;T.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(r=>{T.forEach(e=>{var t,i;r.period===e.period&&(e=e,t=r,i=M,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount=t.amount,e.value=0)}))})})},W=()=>{var e="Time Limit"===h?"time limit":"Deposit Limit"===h?"deposit limit":"Wagering Limit"===h?"wagering limit":"loss limit";o(12,_=i("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;Le.set(e),W(),o(16,A=JSON.parse(JSON.stringify(r))),o(14,C=JSON.parse(JSON.stringify(r))),T="Wagering Limit"===h?D:"Loss Limit"===h?O:"Deposit Limit"===h?$:"Time Limit"===h?R:[],z()},j=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),W();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),I(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,minutes:t.value},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==c?{[S.get(h)]:[...P]}:{[S.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:S.get(h)},window.location.href),o(15,E=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),I(),o(15,E=!1),v=!1}var t};return De(()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=e=>{"limitsdata"in e&&o(1,r=e.limitsdata),"showsuccessnotification"in e&&o(2,n=e.showsuccessnotification),"showdeletenotification"in e&&o(3,a=e.showdeletenotification),"playercurrency"in e&&o(4,s=e.playercurrency),"lang"in e&&o(0,l=e.lang),"separatelimits"in e&&o(25,c=e.separatelimits),"clientstyling"in e&&o(26,u=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,p=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&n&&a&&I(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&u&&m&&((e=document.createElement("style")).innerHTML=u,m.appendChild(e)),134217760&t.$$.dirty[0]&&d&&m){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{m.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fu(e,t[e])})}).catch(e=>{console.log(e)})},[l,r,n,a,s,m,h,f,g,y,w,b,_,x,C,E,A,M,i,F,k,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,i,r)=>{var n;"Custom"===e.amount?"Time Limit"==h?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&L.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,x[t]=0,x),n=r[t],e.period==n.period&&e.value==n.amount?(o(15,E=!1),B(e,r)):o(15,E=!0)):(o(13,x[t]=1,x),o(15,E=!1))):e.value&&L.amount.test(e.value)?(o(13,x[t]=0,x),e.period==r[t].period&&e.value==r[t].amount?(o(15,E=!!E),B(e,r)):o(15,E=!0),"true"!=c&&M.forEach(e=>{0==e.value&&o(15,E=!1)})):(o(13,x[t]=1,x),o(15,E=!1)):(e.period==r[t].period?(B(e,r),o(15,E=e.value!=r[t].amount)):o(15,E=!0),M.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!L.amount.test(e.value.toString()))&&o(15,E=!1)}))},c,u,d,p,function(e){M[e].amount=pe(this),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},()=>H(),function(e){Ae[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function hd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function md(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function fd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,T,E=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",A=i[15]("edit")+"";function L(e){return"Time Limit"===e[1]?vd:yd}let M=L(i),$=M(i),D=!i[9]&&!i[0].isModified&&i[14]&&kd(i),S=i[11]&&Bd(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("h5"),s=hi(E),l=mi(),c=di("div"),(u=di("span")).textContent="i",d=mi(),p=di("player-account-gaming-limits-popup"),m=mi(),f=di("div"),g=di("div"),y=di("div"),$.c(),v=mi(),w=di("div"),b=di("button"),_=hi(A),x=mi(),D&&D.c(),C=mi(),S&&S.c(),gi(u,"class","InfoCardIcon"),le(p,"showpopup",h=i[8][0]),le(p,"lang",i[3]),le(p,"clientstyling",i[4]),le(p,"clientstylingurl",i[5]),gi(c,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),gi(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),gi(y,"class","InfoCardTableRow"),gi(g,"class","InfoCardTableWrapper"),gi(b,"class","InfoCardEditButton"),gi(w,"class","InfoCardControlArea"),gi(f,"class","InfoCard"),gi(n,"class","InfoCardWrapper"),gi(r,"class","InfoCardSection")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(n,m),si(n,f),si(f,g),si(g,y),$.m(y,null),si(f,v),si(f,w),si(w,b),si(b,_),si(w,x),D&&D.m(w,null),si(r,C),S&&S.m(r,null),P||(T=[fi(u,"click",G(i[23])),fi(b,"click",i[26])],P=!0)},p(e,t){32771&t[0]&&E!==(E=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&yi(s,E),256&t[0]&&h!==(h=e[8][0])&&le(p,"showpopup",h),8&t[0]&&le(p,"lang",e[3]),16&t[0]&&le(p,"clientstyling",e[4]),32&t[0]&&le(p,"clientstylingurl",e[5]),M===(M=L(e))&&$?$.p(e,t):($.d(1),($=M(e))&&($.c(),$.m(y,null))),32768&t[0]&&A!==(A=e[15]("edit")+"")&&yi(_,A),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=kd(e)).c(),D.m(w,null)),e[11]?S?S.p(e,t):((S=Bd(e)).c(),S.m(r,null)):S&&(S.d(1),S=null)},d(e){e&&ci(r),$.d(),D&&D.d(),S&&S.d(),P=!1,ai(T)}}}function gd(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function yd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Pd(hd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=hd(t,o,e);a[e]?a[e].p(r,i):(a[e]=Pd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function vd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Sd(md(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=md(t,o,e);a[e]?a[e].p(r,i):(a[e]=Sd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function wd(e){let i,r,n=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?e[41].currency:"")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function bd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function _d(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function xd(i){let r,n,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),le(a,"showpopup",s=i[8][i[43]+1]),le(a,"iteminfoamount",l=i[41].updateAmount),le(a,"playercurrency",i[2]),le(a,"lang",i[3]),le(a,"clientstyling",i[4]),le(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),c||(u=fi(n,"click",G(d)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&le(a,"iteminfoamount",l),4&t[0]&&le(a,"playercurrency",i[2]),8&t[0]&&le(a,"lang",i[3]),16&t[0]&&le(a,"clientstyling",i[4]),32&t[0]&&le(a,"clientstylingurl",i[5])},d(e){e&&ci(r),c=!1,u()}}}function Cd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Pd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),x=e[15]("expirationDate")+"",C=_&&wd(e);function P(e){return e[41].expiryDate?_d:bd}let T=P(e),E=T(e);function A(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?Cd:"No limit"!=e[41].amount&&e[41].isModified?xd:void 0}let L=A(e,[-1,-1]),M=L&&L(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(w),s=mi(),l=di("div"),c=hi(b),u=mi(),C&&C.c(),d=mi(),p=di("div"),h=di("div"),m=hi(x),f=mi(),E.c(),g=mi(),M&&M.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(l,u),C&&C.m(l,null),si(r,d),si(r,p),si(p,h),si(h,m),si(p,f),E.m(p,null),si(i,g),M&&M.m(i,null),si(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(c,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=wd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&yi(m,x),T===(T=P(e))&&E?E.p(e,t):(E.d(1),(E=T(e))&&(E.c(),E.m(p,null))),L===(L=A(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=L&&L(e))&&(M.c(),M.m(i,v)))},d(e){e&&ci(i),C&&C.d(),E.d(),M&&M.d()}}}function Td(e){let i,r,n=e[15]("noLimit")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("noLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ed(e){let i,r,n,o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),s=a&&Ad(e);return{c(){i=hi(o),r=mi(),s&&s.c(),n=I()},m(e,t){li(e,i,t),li(e,r,t),s&&s.m(e,t),li(e,n,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Ad(e)).c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(r),s&&s.d(e),e&&ci(n)}}}function Ad(e){let i,r,n=e[15]("minutes")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("minutes")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ld(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Md(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function $d(i){let r,n,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),le(a,"showpopup",s=i[8][i[43]+1]),le(a,"iteminfoamount",l=i[41].updateMinutes),le(a,"playercurrency",c=i[15]("minutes")),le(a,"lang",i[3]),le(a,"clientstyling",i[4]),le(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),u||(d=fi(n,"click",G(p)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&le(a,"iteminfoamount",l),32768&t[0]&&c!==(c=i[15]("minutes"))&&le(a,"playercurrency",c),8&t[0]&&le(a,"lang",i[3]),16&t[0]&&le(a,"clientstyling",i[4]),32&t[0]&&le(a,"clientstylingurl",i[5])},d(e){e&&ci(r),u=!1,d()}}}function Dd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Sd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function w(e){return 0!==e[41].amount?Ed:Td}let b=w(e),_=b(e);function x(e){return e[41].expiryDate?Md:Ld}let C=x(e),P=C(e);function T(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?Dd:"No limit"!=e[41].amount&&e[41].isModified?$d:void 0}let E=T(e,[-1,-1]),A=E&&E(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(y),s=mi(),l=di("div"),_.c(),c=mi(),u=di("div"),d=di("div"),p=hi(v),h=mi(),P.c(),m=mi(),A&&A.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),_.m(l,null),si(r,c),si(r,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),A&&A.m(i,null),si(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&yi(p,v),C===(C=x(e))&&P?P.p(e,t):(P.d(1),(P=C(e))&&(P.c(),P.m(u,null))),E===(E=T(e,t))&&A?A.p(e,t):(A&&A.d(1),(A=E&&E(e))&&(A.c(),A.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),A&&A.d()}}}function kd(i){let r,n,o,a,s=i[15]("removeLimits")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","InfoCardRemoveButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Bd(e){let i,r,n;return{c(){i=di("player-account-modal"),le(r=di("player-account-gaming-limits-confirmation-modal"),"modaltext",n=e[10]?e[12]:e[13]),le(r,"modalsource","infoCard"),le(r,"lang",e[3]),le(r,"clientstyling",e[4]),le(r,"clientstylingurl",e[5]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,r)},p(e,t){13312&t[0]&&n!==(n=e[10]?e[12]:e[13])&&le(r,"modaltext",n),8&t[0]&&le(r,"lang",e[3]),16&t[0]&&le(r,"clientstyling",e[4]),32&t[0]&&le(r,"clientstylingurl",e[5]),16&t[0]&&le(i,"clientstyling",e[4]),32&t[0]&&le(i,"clientstylingurl",e[5])},d(e){e&&ci(i)}}}function Id(i){let r;function n(e){return e[7]?gd:fd}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[28](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[28](null)}}}function Nd(r,e,n){let o,{limitsdata:a=[]}=(Ee(r,Me,e=>n(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e;Object.keys(Mu).forEach(e=>{Lu(e,Mu[e])});let p,h=!0,i=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==$e(v),b="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},T=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:s},window.location.href)},E=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,i[e]=!0,i)},50)},A=(e,t,i,r)=>{e.splice(t,0,"time"===r?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},L=(e,t)=>"Weekly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Weekly"===t.period?1:"Daily"===e.period&&"Weekly"===t.period||"Daily"===e.period&&"Monthly"===t.period||"Weekly"===e.period&&"Monthly"===t.period?-1:0,M=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return De(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),r.$$set=e=>{"limitsdata"in e&&n(0,a=e.limitsdata),"limitname"in e&&n(1,s=e.limitname),"playercurrency"in e&&n(2,t=e.playercurrency),"lang"in e&&n(3,l=e.lang),"clientstyling"in e&&n(4,c=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,d=e.translationurl)},r.$$.update=()=>{if(11&r.$$.dirty[0]&&a&&s&&l){var e=l;Le.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",n(12,b=o("removeLimitsText",{values:{limit:e}})),n(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&n(14,x=!1)});{var i=a;const t=m;m.forEach((t,e)=>{i.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&n(9,f=!1)}),n(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?A(i,t.indexOf(e),e,"time"):A(i,t.indexOf(e),e,"currency")})}a.sort(L)}if(80&r.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&r.$$.dirty[0]&&u&&p){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}4194304&r.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lu(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,i,f,g,y,b,_,x,o,w,C,P,T,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},E,d,()=>E(0),e=>E(e+1),e=>E(e+1),()=>P(a),()=>T(a),function(e){Ae[e?"unshift":"push"](()=>{p=e,n(6,p)})}]}function Fd(e){let i;return{c(){le(i=di("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),le(i,"limitname",e[14]),le(i,"showsuccessnotification",e[7]),le(i,"showdeletenotification",e[6]),le(i,"playercurrency",e[5]),le(i,"lang",e[0]),le(i,"separatelimits",e[8]),le(i,"clientstyling",e[9]),le(i,"clientstylingurl",e[10])},m(e,t){li(e,i,t)},p(e,t){8192&t&&le(i,"limitsdata",e[13]),16384&t&&le(i,"limitname",e[14]),128&t&&le(i,"showsuccessnotification",e[7]),64&t&&le(i,"showdeletenotification",e[6]),32&t&&le(i,"playercurrency",e[5]),1&t&&le(i,"lang",e[0]),256&t&&le(i,"separatelimits",e[8]),512&t&&le(i,"clientstyling",e[9]),1024&t&&le(i,"clientstylingurl",e[10])},d(e){e&&ci(i)}}}function Od(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),r=mi(),n=di("h2"),o=hi(f),a=mi(),s=di("div"),l=di("player-account-gaming-limits-info-card"),c=mi(),u=di("player-account-gaming-limits-info-card"),d=mi(),p=di("player-account-gaming-limits-info-card"),h=mi(),m=di("player-account-gaming-limits-info-card"),gi(n,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",zd),le(l,"playercurrency",e[5]),le(l,"lang",e[0]),le(l,"clientstyling",e[9]),le(l,"clientstylingurl",e[10]),le(u,"limitsdata",e[2]),le(u,"limitname",Wd),le(u,"playercurrency",e[5]),le(u,"lang",e[0]),le(u,"clientstyling",e[9]),le(u,"clientstylingurl",e[10]),le(p,"limitsdata",e[3]),le(p,"limitname",jd),le(p,"playercurrency",e[5]),le(p,"lang",e[0]),le(p,"clientstyling",e[9]),le(p,"clientstylingurl",e[10]),le(m,"limitsdata",e[4]),le(m,"limitname",Ud),le(m,"playercurrency",e[5]),le(m,"lang",e[0]),le(m,"clientstyling",e[9]),le(m,"clientstylingurl",e[10]),gi(s,"class","PlayerAccountGamingLimitsContainer"),gi(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){li(e,i,t),g&&g.m(i,null),si(i,r),si(i,n),si(n,o),si(i,a),si(i,s),si(s,l),si(s,c),si(s,u),si(s,d),si(s,p),si(s,h),si(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&yi(o,f),2&t&&le(l,"limitsdata",e[1]),32&t&&le(l,"playercurrency",e[5]),1&t&&le(l,"lang",e[0]),512&t&&le(l,"clientstyling",e[9]),1024&t&&le(l,"clientstylingurl",e[10]),4&t&&le(u,"limitsdata",e[2]),32&t&&le(u,"playercurrency",e[5]),1&t&&le(u,"lang",e[0]),512&t&&le(u,"clientstyling",e[9]),1024&t&&le(u,"clientstylingurl",e[10]),8&t&&le(p,"limitsdata",e[3]),32&t&&le(p,"playercurrency",e[5]),1&t&&le(p,"lang",e[0]),512&t&&le(p,"clientstyling",e[9]),1024&t&&le(p,"clientstylingurl",e[10]),16&t&&le(m,"limitsdata",e[4]),32&t&&le(m,"playercurrency",e[5]),1&t&&le(m,"lang",e[0]),512&t&&le(m,"clientstyling",e[9]),1024&t&&le(m,"clientstylingurl",e[10])},d(e){e&&ci(i),g&&g.d()}}}function Rd(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Hd(i){let r;function n(e){return e[12]?Rd:e[15]?Od:Fd}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[22](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gu,Yu,i,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),p()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},pd,dd,i,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[1]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@charset "UTF-8";.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid ar(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nd,Id,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),p()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}});let zd="Deposit Limit",Wd="Wagering Limit",jd="Loss Limit",Ud="Time Limit";function Yd(t,e,i){let r,n=(Ee(t,Me,e=>i(16,r=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:c=!1}=e,{lang:u="en"}=e,{playercurrency:d=""}=e,{separatelimits:p="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g;Object.keys(Au).forEach(e=>{Eu(e,Au[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==$e(w),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},T=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,u=e.data.limits.lang),i(1,n=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return De(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"depositlimit"in e&&i(1,n=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,c=e.showsuccessnotification),"lang"in e&&i(0,u=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,p=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,m=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,Le.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&m&&g){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{g.appendChild(t)},1)})}var e;1048576&t.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Eu(e,t[e])})}).catch(e=>{console.log(e)})},[u,n,o,a,s,d,l,c,p,h,m,g,v,y,_,x,r,b,C,P,f,()=>P(),function(e){Ae[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function Gd(e,t){B(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Yd,Hd,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,playercurrency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,translationurl:20},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency","separatelimits","clientstyling","clientstylingurl","translationurl"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(e){this.$$set({depositlimit:e}),p()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),p()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),p()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),p()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Vd={en:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"},"zh-hk":{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"},fr:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"},ro:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"},es:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"},pt:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"}};function qd(e,t){B(e,t)}const Zd={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function Xd(e){let i,r,n,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&yi(n,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Kd(e){let i,r,n,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&yi(n,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Jd(e){let i,r,n,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&yi(n,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Qd(i){let r,n,o,a,s=i[9]("forfeitBonus")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function ep(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,O,x,C,P,R,T,E,H,A,L,z,M=i[9]("date")+"",$=W(i[0]).format("DD/MM/YYYY h:mm A")+"",D=i[9](""+i[1])+"",S=i[9]("bonusName")+"",k=i[9]("bonusType")+"",B=i[3]&&Xd(i),I=i[4]&&Kd(i),N=i[5]&&Jd(i),F="active"===i[1]&&Qd(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(M),l=mi(),c=di("span"),u=hi($),d=mi(),p=di("p"),h=hi(D),f=mi(),g=di("div"),y=di("p"),v=hi(S),w=mi(),b=di("p"),_=hi(i[2]),O=mi(),x=di("div"),C=di("p"),P=hi(k),R=mi(),T=di("p"),E=hi(i[8]),H=mi(),B&&B.c(),A=mi(),I&&I.c(),L=mi(),N&&N.c(),z=mi(),F&&F.c(),this.c=se,gi(a,"class","BonusCardRowTitle"),gi(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===i[1]||"released"===i[1]?"StatusActive":"")+" "+("expired"===i[1]?"StatusExpired":"")+" "+("forfeited"===i[1]?"StatusForfeited":"")),gi(o,"class","BonusCardRow"),gi(y,"class","BonusCardRowTitle"),gi(b,"class","BonusCardRowText"),gi(g,"class","BonusCardRow"),gi(C,"class","BonusCardRowTitle"),gi(T,"class","BonusCardRowText TextCapitalize"),gi(x,"class","BonusCardRow"),gi(n,"class","BonusCardInfo"),gi(r,"class","BonusCard")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(a,l),si(a,c),si(c,u),si(o,d),si(o,p),si(p,h),si(n,f),si(n,g),si(g,y),si(y,v),si(g,w),si(g,b),si(b,_),si(n,O),si(n,x),si(x,C),si(C,P),si(x,R),si(x,T),si(T,E),si(n,H),B&&B.m(n,null),si(n,A),I&&I.m(n,null),si(n,L),N&&N.m(n,null),si(r,z),F&&F.m(r,null),i[18](r)},p(e,[t]){512&t&&M!==(M=e[9]("date")+"")&&yi(s,M),1&t&&$!==($=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,$),514&t&&D!==(D=e[9](""+e[1])+"")&&yi(h,D),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&gi(p,"class",m),512&t&&S!==(S=e[9]("bonusName")+"")&&yi(v,S),4&t&&yi(_,e[2]),512&t&&k!==(k=e[9]("bonusType")+"")&&yi(P,k),256&t&&yi(E,e[8]),e[3]?B?B.p(e,t):((B=Xd(e)).c(),B.m(n,A)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=Kd(e)).c(),I.m(n,L)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=Jd(e)).c(),N.m(n,null)):N&&(N.d(1),N=null),"active"===e[1]?F?F.p(e,t):((F=Qd(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},i:se,o:se,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[18](null)}}}function tp(t,e,i){let r;Ee(t,Me,e=>i(9,r=e));let n,{bonuswalletid:o=""}=e,{bonusdate:a=""}=e,{bonusstatus:s=""}=e,{bonusname:l=""}=e,{bonustype:c=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:p=""}=e,{bonuscurrency:h=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,v=window.navigator.userAgent,w="PC"!==$e(v),b="";Object.keys(Zd).forEach(e=>{qd(e,Zd[e])});return t.$$set=e=>{"bonuswalletid"in e&&i(12,o=e.bonuswalletid),"bonusdate"in e&&i(0,a=e.bonusdate),"bonusstatus"in e&&i(1,s=e.bonusstatus),"bonusname"in e&&i(2,l=e.bonusname),"bonustype"in e&&i(13,c=e.bonustype),"bonusamount"in e&&i(3,u=e.bonusamount),"bonuswageringamount"in e&&i(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&i(5,p=e.bonusremainingamount),"bonuscurrency"in e&&i(6,h=e.bonuscurrency),"lang"in e&&i(14,m=e.lang),"clientstyling"in e&&i(15,f=e.clientstyling),"clientstylingurl"in e&&i(16,g=e.clientstylingurl),"translationurl"in e&&i(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,Le.set(e)),8192&t.$$.dirty&&c&&(i(8,b=c),"freeRound"===b?i(8,b="Free Spins"):"freeBet"===b&&i(8,b="Free Bet")),65664&t.$$.dirty&&g&&n){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qd(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,n,b,r,w,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,c,m,f,g,y,function(e){Ae[e?"unshift":"push"](()=>{n=e,i(7,n)})}]}function ip(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function rp(e,t,i){e=e.slice();return e[46]=t[i],e}function np(e){let i,r,n=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("invalidBonusCode")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function op(t){let n,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=cp(rp(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var r=rp(t,o,e);a[e]?a[e].p(r,i):(a[e]=cp(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function ap(e){let i,r,n=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noActiveBonuses")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function sp(e){let i,r,n,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),le(i,"bonusdate",n=e[46].granted),le(i,"bonusstatus",o=e[46].status),le(i,"bonusname",a=e[46].name),le(i,"bonustype",s=e[46].type),le(i,"bonusamount",l=e[46].extension.grantedPlayerCurrencyAmount),le(i,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),le(i,"bonusremainingamount",u=e[46].currentAmount),le(i,"bonuscurrency",d=e[46].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&le(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&le(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&le(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].extension.grantedPlayerCurrencyAmount)&&le(i,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&le(i,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&le(i,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&le(i,"bonuscurrency",d),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function lp(e){let i,r,n,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),le(i,"bonusdate",n=e[46].granted),le(i,"bonusstatus",o=e[46].status),le(i,"bonusname",a=e[46].name),le(i,"bonustype",s=e[46].type),le(i,"bonuscurrency",l=e[46].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&le(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&le(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&le(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&le(i,"bonuscurrency",l),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function cp(e){let i;function r(e){return"freeRound"===e[46].type?lp:sp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function up(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=dp(ip(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[11]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[11]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[11]===i[10]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[11]===i[10]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[29]),fi(l,"click",i[30]),fi(p,"click",i[32]),fi(g,"click",i[33])],w=!0)},p(t,i){if(2048&i[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&gi(n,"class",a),2048&i[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&gi(l,"class",e),265216&i[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=ip(t,_,e);x[e]?x[e].p(a,i):(x[e]=dp(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&i[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&gi(p,"class",m),3072&i[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function dp(i){let r,n,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function pp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[14]("forfeitBonus")+"",v=i[14]("forfeitBonusCancel")+"",w=i[14]("forfeitBonusConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[20]),fi(h,"click",i[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&yi(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&yi(d,v),16384&t[0]&&w!==(w=e[14]("forfeitBonusConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function hp(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,T=i[14]("title")+"",E=i[14]("bonusCode")+"",A=i[14]("getBonus")+"",L=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),M=i[5]&&np(i);function $(e){return 0===e[12].length?ap:op}let D=$(i),S=D(i),k=0!==i[12].length&&up(i),B=i[13]&&pp(i);return{c(){r=di("div"),L&&L.c(),n=mi(),o=di("h2"),a=hi(T),s=mi(),l=di("div"),c=di("label"),u=hi(E),d=mi(),p=di("div"),h=di("input"),m=mi(),f=di("button"),g=hi(A),y=mi(),M&&M.c(),v=mi(),w=di("div"),S.c(),b=mi(),k&&k.c(),_=mi(),B&&B.c(),x=I(),gi(o,"class","ActiveBonusesTitle "+(i[15]?"ActiveBonusesTitleNone":"")),gi(c,"for","BonusCode"),gi(h,"class","BonusCodeInput "+(i[15]?"BonusCodeInputMobile":"")),gi(h,"type","text"),gi(h,"id","BonusCode"),gi(f,"class","SubmitBonusCode "+(i[15]?"SubmitBonusCodeMobile":"")),f.disabled=i[4],gi(p,"class","BonusCodeWrapper "+(i[15]?"BonusCodeWrapperMobile":"")),gi(l,"class","BonusCodeContainer "+(i[15]?"BonusCodeContainerMobile":"")),gi(w,"class","ActiveBonusesGrid "+(i[15]?"ActiveBonusesGridMobile":"")),gi(r,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(r,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,r,t),L&&L.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),vi(h,i[6]),si(p,m),si(p,f),si(f,g),si(l,y),M&&M.m(l,null),si(r,v),si(r,w),S.m(w,null),si(r,b),k&&k.m(r,null),li(e,_,t),B&&B.m(e,t),li(e,x,t),C||(P=[fi(h,"input",i[28]),fi(h,"keyup",i[17]),fi(f,"click",i[19])],C=!0)},p(e,t){e[15]&&L.p(e,t),16384&t[0]&&T!==(T=e[14]("title")+"")&&yi(a,T),16384&t[0]&&E!==(E=e[14]("bonusCode")+"")&&yi(u,E),64&t[0]&&h.value!==e[6]&&vi(h,e[6]),16384&t[0]&&A!==(A=e[14]("getBonus")+"")&&yi(g,A),16&t[0]&&(f.disabled=e[4]),e[5]?M?M.p(e,t):((M=np(e)).c(),M.m(l,null)):M&&(M.d(1),M=null),D===(D=$(e))&&S?S.p(e,t):(S.d(1),(S=D(e))&&(S.c(),S.m(w,null))),0!==e[12].length?k?k.p(e,t):((k=up(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),e[13]?B?B.p(e,t):((B=pp(e)).c(),B.m(x.parentNode,x)):B&&(B.d(1),B=null)},d(e){e&&ci(r),L&&L.d(),M&&M.d(),S.d(),k&&k.d(),e&&ci(_),B&&B.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[34](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[34](null)}}}function mp(t,e,r){let i;Ee(t,Me,e=>r(14,i=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{playercurrency:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h=window.navigator.userAgent,m="PC"!==$e(h),f,g=!1,y="",v=0,w=0,b=0,_=0,x=0,C=[],P="",T=!1;Object.keys(Vd).forEach(e=>{Gd(e,Vd[e])});const E=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,r(13,T=!0))},A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},L=t=>{var e={method:"GET",headers:{"X-SessionId":a}},i=new URL(`${o}/v1/player/${s}/bonusWallet`);i.searchParams.append("filter","status=active"),i.searchParams.append("pagination",`offset=${t},limit=6`),fetch(i,e).then(e=>e.json()).then(e=>{r(10,_=Math.ceil(e.total/6)),0<=t-6&&r(7,v=t-6),t+6<e.total&&r(8,w=t+6),r(9,b=6*(_-1)),r(11,x=t/6),r(12,C=e.items)},e=>{console.error(e)})},M=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,T=!1)};return De(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"endpoint"in e&&r(22,o=e.endpoint),"session"in e&&r(23,a=e.session),"playerid"in e&&r(24,s=e.playerid),"lang"in e&&r(0,l=e.lang),"playercurrency"in e&&r(25,c=e.playercurrency),"clientstyling"in e&&r(1,u=e.clientstyling),"clientstylingurl"in e&&r(2,d=e.clientstylingurl),"translationurl"in e&&r(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,Le.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&L(0),12&t.$$.dirty[0]&&d&&n){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&n&&((e=document.createElement("style")).innerHTML=u,n.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Gd(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,n,!0,g,y,v,w,b,_,x,C,T,i,m,A,()=>{r(4,f=!y)},L,()=>{var e=new URL(`${o}/v1/player/${s}/claimbonus`),t={method:"POST",headers:{"X-SessionId":a,accept:"application/json"}};e.searchParams.append("currency",c),e.searchParams.append("bonusCode",y),fetch(e.href,t).then(e=>{200==e.status?(r(5,g=!1),L(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(r(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},M,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/v1/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(L(0),M())})},o,a,s,c,p,()=>A(),function(){y=this.value,r(6,y)},()=>L(0),()=>L(v),e=>L(6*e),()=>L(w),()=>L(b),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function fp(e,t){B(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},tp,ep,i,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),p()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),p()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),p()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),p()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),p()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),p()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),p()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),p()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},mp,hp,i,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),p()}});const gp={en:{title:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"},"zh-hk":{title:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",securityQuestion:"安全問題:",securityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",firstName:"名:",securityAnswer:"安全答案:",securityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",userTitle:"標題:",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",userAppSettings:"生物识别",userSMSNotification:"啟用短信通知",userBiometrics:"启用生物识别",userEmailNotification:"啟用電子郵件",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!"},fr:{title:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",securityQuestion:"Questions de sécurité:",securityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",firstName:"Prénom:",securityAnswer:"Reponses de sécurité:",securityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",userTitle:"Titre:",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",userAppSettings:"Biométrie",userSMSNotification:"Activer les notifications par sms",userBiometrics:"Activer la biométrie",userEmailNotification:"Activer les e-mails",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!"},ro:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Raspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"},tr:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 12 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"İlk adı:",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"},es:{title:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",securityQuestion:"Tipo de Documento (DNI, CE o Pasaporte):",securityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",firstName:"Nombre",securityAnswer:"Número de Documento:",securityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",userTitle:"Título:",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",userAppSettings:"Biometría",userSMSNotification:"Habilitar notificaciones SMS",userBiometrics:"Habilitar datos biométricos",userEmailNotification:"Habilitar Emails",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!"},pt:{title:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",securityQuestion:"Pergunta de segurança:",securityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",firstName:"Primeiro nome:",securityAnswer:"Resposta de segurança:",securityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",userTitle:"Título:",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",userAppSettings:"Biometrics",userSMSNotification:"Ativar notificações por SMS",userBiometrics:"Ativar biometria.",userEmailNotification:"Ativar notificações por e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!"}};function yp(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var i,r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[r],window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],i&&i.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,i=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof i?(t=Array.prototype.slice.call(arguments,1),i.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var vp,wp,bp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},_p=function(e,...t){try{return yp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},xp=function(e,t){try{return yp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Cp(e,t,i){e=e.slice();return e[108]=t[i],e}function Pp(i){let n,O,R,H,z,W,j,U,Y,r,G,V,q,Z,o,X,a,K,J,Q,ee,s,te,l,e,ie,re,ne,c,oe,ae,se,le,ce,u,ue,de,pe,he,d,me,fe,ge,ye,ve,p,we,be,_e,xe,Ce,Pe,Te,Ee,h,Ae,Le,Me,$e,De,m,Se,ke,Be,Ie,Ne,f,Fe,Oe,Re,He,ze,g,We,je,Ue,Ye,Ge,y,Ve,qe,Ze,Xe,Ke,v,Je,Qe,et,tt,it,w,rt,nt,ot,at,b,st,lt,_,ct,ut,dt,x,pt,ht,mt,ft,gt,C,yt,vt,wt,P,bt,_t,xt,Ct,T,Pt,Tt,Et,E,At,Lt,Mt,$t,Dt,St,kt,Bt,It,Nt,Ft,Ot,Rt,Ht,zt=i[38]("title")+"",Wt=i[38]("personalDetails")+"",jt=i[38]("userName")+"",Ut=i[38]("userPhone")+"",Yt=("true"==i[1]?i[38]("profileSecurityQuestion2"):i[38]("profileSecurityQuestion"))+"",Gt=("true"==i[1]?i[38]("profileSecurityAnswer2"):i[38]("profileSecurityAnswer"))+"",Vt=i[38]("userEmail")+"",qt=i[38]("dateOfBirth")+"",Zt=i[38]("firstName")+"",Xt=i[38]("lastName")+"",Kt=i[38]("userTitle")+"",Jt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ri=i[38]("userPostalCode")+"",ni=i[38]("userProfileSaveChanges")+"",A=i[39]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),oi=i[17],L=[];for(let e=0;e<oi.length;e+=1)L[e]=Lp(Cp(i,oi,e));let M=i[26]&&Mp(i),$=i[24]&&$p(i),D=i[25]&&Dp(i),S=i[21]&&Sp(i),k=i[23]&&kp(i),B=i[22]&&Bp(i),I=(i[18]||i[19])&&Ip(i),N=i[28]&&Op(i),F=i[27]&&Rp(i);return{c(){n=di("form"),A&&A.c(),O=mi(),R=di("h2"),H=hi(zt),z=mi(),W=di("div"),j=di("h3"),U=hi(Wt),Y=mi(),r=di("section"),G=di("div"),V=di("label"),q=hi(jt),Z=mi(),o=di("input"),X=mi(),a=di("div"),K=di("label"),J=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<L.length;e+=1)L[e].c();te=mi(),l=di("input"),ie=mi(),M&&M.c(),ne=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),$&&$.c(),he=mi(),d=di("div"),me=di("label"),fe=hi(Gt),ge=hi(":"),(ye=di("span")).textContent="*",ve=mi(),p=di("input"),be=mi(),D&&D.c(),xe=mi(),Ce=di("div"),Pe=di("label"),Te=hi(Vt),Ee=mi(),h=di("input"),Ae=mi(),Le=di("div"),Me=di("label"),$e=hi(qt),De=mi(),m=di("input"),Se=mi(),ke=di("div"),Be=di("label"),Ie=hi(Zt),Ne=mi(),f=di("input"),Fe=mi(),Oe=di("div"),Re=di("label"),He=hi(Xt),ze=mi(),g=di("input"),We=mi(),je=di("div"),Ue=di("label"),Ye=hi(Kt),Ge=mi(),y=di("input"),Ve=mi(),qe=di("div"),Ze=di("label"),Xe=hi(Jt),Ke=mi(),v=di("input"),Je=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),w=di("section"),rt=di("div"),nt=di("label"),ot=hi(ei),at=mi(),b=di("input"),lt=mi(),_=di("div"),ct=di("label"),ut=hi(ti),dt=mi(),x=di("input"),mt=mi(),S&&S.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),wt=mi(),P=di("input"),_t=mi(),k&&k.c(),Ct=mi(),T=di("div"),Pt=di("label"),Tt=hi(ri),Et=mi(),E=di("input"),Mt=mi(),B&&B.c(),Dt=mi(),I&&I.c(),St=mi(),N&&N.c(),kt=mi(),Bt=di("section"),It=di("button"),Nt=hi(ni),Ot=mi(),F&&F.c(),gi(R,"class","MyAccountCategoryTitle "+(i[39]?"MyAccountCategoryTitleNone":"")),gi(W,"class","PlayerNotificationsHeader"),gi(o,"type","text"),gi(o,"class","FieldDisabled"),o.value=i[37],o.readOnly=!0,gi(G,"class","PlayerInfoBox"),void 0===i[13]&&bi(()=>i[61].call(s)),gi(l,"type","text"),gi(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),gi(l,"placeholder",e=i[4]?i[32].number:""),gi(ee,"class","PlayerPhoneNumber"),gi(a,"class",re="PlayerInfoBox "+(i[26]?"InvalidField":"")),gi(le,"class","FormRequired"),gi(oe,"for","SecurityQuestion"),gi(u,"type","text"),gi(u,"placeholder",ue=i[4]?i[45]:""),gi(c,"class",pe="PlayerInfoBox "+(i[24]?"InvalidField":"")),gi(ye,"class","FormRequired"),gi(me,"for","SecurityAnswer"),gi(p,"type","text"),gi(p,"placeholder",we=i[4]?i[44]:""),gi(d,"class",_e="PlayerInfoBox "+(i[25]?"InvalidField":"")),gi(h,"type","email"),gi(h,"class","FieldDisabled"),h.value=i[33],h.readOnly=!0,gi(Ce,"class","PlayerInfoBox"),gi(m,"type","text"),gi(m,"class","FieldDisabled"),m.value=i[30],m.readOnly=!0,gi(Le,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi(ke,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Oe,"class","PlayerInfoBox"),gi(y,"type","text"),gi(y,"class","FieldDisabled"),y.value=i[35],y.readOnly=!0,gi(je,"class","PlayerInfoBox"),gi(v,"type","text"),gi(v,"class","FieldDisabled"),v.value=i[31],v.readOnly=!0,gi(qe,"class","PlayerInfoBox"),gi(r,"class","PlayerDetailsContent"),gi(Qe,"class","PlayerLocationHeader"),gi(b,"type","text"),gi(b,"class","PlayerCountry FieldDisabled"),gi(b,"placeholder",i[0]),b.value=st=i[16].Name,b.readOnly=!0,gi(rt,"class","PlayerInfoBox"),gi(x,"type","text"),gi(x,"placeholder",pt=i[4]?i[42]:""),x.value=ht=i[4]?"":i[29].city,gi(_,"class",ft="PlayerInfoBox "+(i[21]?"InvalidField":"")),gi(P,"placeholder",i[41]),gi(P,"type","text"),P.value=bt=i[4]?"":i[29].address,gi(C,"class",xt="PlayerInfoBox "+(i[23]?"InvalidField":"")),gi(E,"type","text"),gi(E,"placeholder",At=i[4]?i[43]:""),E.value=Lt=i[4]?"":i[29].postalCode,gi(T,"class",$t="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(w,"class","PlayerLocationContent"),gi(It,"class",Ft="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(Bt,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(n,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,n,t),A&&A.m(n,null),si(n,O),si(n,R),si(R,H),si(n,z),si(n,W),si(W,j),si(j,U),si(n,Y),si(n,r),si(r,G),si(G,V),si(V,q),si(G,Z),si(G,o),si(r,X),si(r,a),si(a,K),si(K,J),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);wi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),M&&M.m(a,null),si(r,ne),si(r,c),si(c,oe),si(oe,ae),si(oe,se),si(oe,le),si(c,ce),si(c,u),vi(u,i[11]),si(c,de),$&&$.m(c,null),si(r,he),si(r,d),si(d,me),si(me,fe),si(me,ge),si(me,ye),si(d,ve),si(d,p),vi(p,i[12]),si(d,be),D&&D.m(d,null),si(r,xe),si(r,Ce),si(Ce,Pe),si(Pe,Te),si(Ce,Ee),si(Ce,h),si(r,Ae),si(r,Le),si(Le,Me),si(Me,$e),si(Le,De),si(Le,m),si(r,Se),si(r,ke),si(ke,Be),si(Be,Ie),si(ke,Ne),si(ke,f),si(r,Fe),si(r,Oe),si(Oe,Re),si(Re,He),si(Oe,ze),si(Oe,g),si(r,We),si(r,je),si(je,Ue),si(Ue,Ye),si(je,Ge),si(je,y),si(r,Ve),si(r,qe),si(qe,Ze),si(Ze,Xe),si(qe,Ke),si(qe,v),si(n,Je),si(n,Qe),si(Qe,et),si(et,tt),si(n,it),si(n,w),si(w,rt),si(rt,nt),si(nt,ot),si(rt,at),si(rt,b),si(w,lt),si(w,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),S&&S.m(_,null),si(w,gt),si(w,C),si(C,yt),si(yt,vt),si(C,wt),si(C,P),i[71](P),si(C,_t),k&&k.m(C,null),si(w,Ct),si(w,T),si(T,Pt),si(Pt,Tt),si(T,Et),si(T,E),i[73](E),si(T,Mt),B&&B.m(T,null),si(n,Dt),I&&I.m(n,null),si(n,St),N&&N.m(n,null),si(n,kt),si(n,Bt),si(Bt,It),si(It,Nt),si(n,Ot),F&&F.m(n,null),Rt||(Ht=[fi(s,"change",i[61]),fi(s,"change",i[62]),fi(l,"input",i[63]),fi(l,"keyup",i[46]),fi(l,"keyup",i[64]),fi(u,"input",i[65]),fi(u,"keyup",i[66]),fi(u,"blur",i[47]),fi(p,"input",i[67]),fi(p,"keyup",i[68]),fi(p,"blur",i[48]),fi(x,"blur",i[49]),fi(x,"keyup",i[70]),fi(P,"blur",i[51]),fi(P,"keyup",i[72]),fi(E,"blur",i[50]),fi(E,"keyup",i[74]),fi(It,"click",i[78])],Rt=!0)},p(t,i){if(t[39]&&A.p(t,i),128&i[1]&&zt!==(zt=t[38]("title")+"")&&yi(H,zt),128&i[1]&&Wt!==(Wt=t[38]("personalDetails")+"")&&yi(U,Wt),128&i[1]&&jt!==(jt=t[38]("userName")+"")&&yi(q,jt),64&i[1]&&o.value!==t[37]&&(o.value=t[37]),128&i[1]&&Ut!==(Ut=t[38]("userPhone")+"")&&yi(J,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var r=Cp(t,oi,e);L[e]?L[e].p(r,i):(L[e]=Lp(r),L[e].c(),L[e].m(s,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=oi.length}139264&i[0]&&wi(s,t[13]),16&i[0]|2&i[1]&&e!==(e=t[4]?t[32].number:"")&&gi(l,"placeholder",e),16384&i[0]&&l.value!==t[14]&&vi(l,t[14]),t[26]?M?M.p(t,i):((M=Mp(t)).c(),M.m(a,null)):M&&(M.d(1),M=null),67108864&i[0]&&re!==(re="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",re),2&i[0]|128&i[1]&&Yt!==(Yt=("true"==t[1]?t[38]("profileSecurityQuestion2"):t[38]("profileSecurityQuestion"))+"")&&yi(ae,Yt),16&i[0]&&ue!==(ue=t[4]?t[45]:"")&&gi(u,"placeholder",ue),2048&i[0]&&u.value!==t[11]&&vi(u,t[11]),t[24]?$?$.p(t,i):(($=$p(t)).c(),$.m(c,null)):$&&($.d(1),$=null),16777216&i[0]&&pe!==(pe="PlayerInfoBox "+(t[24]?"InvalidField":""))&&gi(c,"class",pe),2&i[0]|128&i[1]&&Gt!==(Gt=("true"==t[1]?t[38]("profileSecurityAnswer2"):t[38]("profileSecurityAnswer"))+"")&&yi(fe,Gt),16&i[0]&&we!==(we=t[4]?t[44]:"")&&gi(p,"placeholder",we),4096&i[0]&&p.value!==t[12]&&vi(p,t[12]),t[25]?D?D.p(t,i):((D=Dp(t)).c(),D.m(d,null)):D&&(D.d(1),D=null),33554432&i[0]&&_e!==(_e="PlayerInfoBox "+(t[25]?"InvalidField":""))&&gi(d,"class",_e),128&i[1]&&Vt!==(Vt=t[38]("userEmail")+"")&&yi(Te,Vt),4&i[1]&&h.value!==t[33]&&(h.value=t[33]),128&i[1]&&qt!==(qt=t[38]("dateOfBirth")+"")&&yi($e,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Zt!==(Zt=t[38]("firstName")+"")&&yi(Ie,Zt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Xt!==(Xt=t[38]("lastName")+"")&&yi(He,Xt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Kt!==(Kt=t[38]("userTitle")+"")&&yi(Ye,Kt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Jt!==(Jt=t[38]("currency")+"")&&yi(Xe,Jt),1&i[1]&&v.value!==t[31]&&(v.value=t[31]),128&i[1]&&Qt!==(Qt=t[38]("locationDetails")+"")&&yi(tt,Qt),128&i[1]&&ei!==(ei=t[38]("userCountry")+"")&&yi(ot,ei),1&i[0]&&gi(b,"placeholder",t[0]),65536&i[0]&&st!==(st=t[16].Name)&&b.value!==st&&(b.value=st),128&i[1]&&ti!==(ti=t[38]("userCity")+"")&&yi(ut,ti),16&i[0]&&pt!==(pt=t[4]?t[42]:"")&&gi(x,"placeholder",pt),536870928&i[0]&&ht!==(ht=t[4]?"":t[29].city)&&x.value!==ht&&(x.value=ht),t[21]?S?S.p(t,i):((S=Sp(t)).c(),S.m(_,null)):S&&(S.d(1),S=null),2097152&i[0]&&ft!==(ft="PlayerInfoBox "+(t[21]?"InvalidField":""))&&gi(_,"class",ft),128&i[1]&&ii!==(ii=t[38]("userAddress")+"")&&yi(vt,ii),536870928&i[0]&&bt!==(bt=t[4]?"":t[29].address)&&P.value!==bt&&(P.value=bt),t[23]?k?k.p(t,i):((k=kp(t)).c(),k.m(C,null)):k&&(k.d(1),k=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ri!==(ri=t[38]("userPostalCode")+"")&&yi(Tt,ri),16&i[0]&&At!==(At=t[4]?t[43]:"")&&gi(E,"placeholder",At),536870928&i[0]&&Lt!==(Lt=t[4]?"":t[29].postalCode)&&E.value!==Lt&&(E.value=Lt),t[22]?B?B.p(t,i):((B=Bp(t)).c(),B.m(T,null)):B&&(B.d(1),B=null),4194304&i[0]&&$t!==($t="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(T,"class",$t),t[18]||t[19]?I?I.p(t,i):((I=Ip(t)).c(),I.m(n,St)):I&&(I.d(1),I=null),t[28]?N?N.p(t,i):((N=Op(t)).c(),N.m(n,kt)):N&&(N.d(1),N=null),128&i[1]&&ni!==(ni=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ni),1081344&i[0]&&Ft!==(Ft="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(It,"class",Ft),t[27]?F?F.p(t,i):((F=Rp(t)).c(),F.m(n,null)):F&&(F.d(1),F=null)},d(e){e&&ci(n),A&&A.d(),ui(L,e),M&&M.d(),$&&$.d(),D&&D.d(),i[69](null),S&&S.d(),i[71](null),k&&k.d(),i[73](null),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),Rt=!1,ai(Ht)}}}function Tp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Ep(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Ap(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.selected=!0,i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Lp(e){let i;function r(e){return e[108].Prefix===e[29].mobiePrefix?Ap:Ep}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Mp(e){let i,r,n=e[38]("userPhoneError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPhoneError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function $p(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Dp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sp(e){let i,r,n=e[38]("userCityError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userCityError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function kp(e){let i,r,n=e[38]("userAddressError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userAddressError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Bp(e){let i,r,n=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPostalCodeError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ip(e){let i,r,n,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&Np(e),u=e[18]&&Fp(e);return{c(){i=di("div"),r=di("h3"),n=hi(l),o=mi(),a=di("section"),c&&c.c(),s=mi(),u&&u.c(),gi(i,"class","PlayerNotificationsHeader"),gi(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,i,t),si(i,r),si(r,n),li(e,o,t),li(e,a,t),c&&c.m(a,null),si(a,s),u&&u.m(a,null)},p(e,t){128&t[1]&&l!==(l=e[38]("userNotifications")+"")&&yi(n,l),e[19]?c?c.p(e,t):((c=Np(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=Fp(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(i),e&&ci(o),e&&ci(a),c&&c.d(),u&&u.d()}}}function Np(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","SMSNotification"),gi(o,"name","Enable SMS notifications"),gi(s,"class","Checkmark"),gi(n,"for","SMSNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[8],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[75]),fi(o,"change",i[54])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),128&t[1]&&h!==(h=e[38]("userSMSNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function Fp(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","EmailNotification"),gi(o,"name","Enable Emails"),gi(s,"class","Checkmark"),gi(n,"for","EmailNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[9],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[76]),fi(o,"change",i[54])],d=!0)},p(e,t){512&t[0]&&(o.checked=e[9]),128&t[1]&&h!==(h=e[38]("userEmailNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function Op(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",w=i[38]("userBiometrics")+"";return{c(){r=di("div"),n=di("h3"),o=hi(v),a=mi(),s=di("section"),l=di("div"),c=di("label"),u=di("input"),d=mi(),p=di("span"),h=mi(),m=di("span"),f=hi(w),gi(r,"class","PlayerNotificationsHeader"),gi(u,"type","checkbox"),gi(u,"id","BiometricsEnabled"),gi(u,"name","Biometric Enabled"),gi(p,"class","Checkmark"),gi(c,"for","Biometrics"),gi(l,"class","PlayerNotificationBox"),gi(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),li(e,a,t),li(e,s,t),si(s,l),si(l,c),si(c,u),u.checked=i[10],si(c,d),si(c,p),si(c,h),si(c,m),si(m,f),g||(y=[fi(u,"change",i[77]),fi(u,"change",i[54])],g=!0)},p(e,t){128&t[1]&&v!==(v=e[38]("userAppSettings")+"")&&yi(o,v),1024&t[0]&&(u.checked=e[10]),128&t[1]&&w!==(w=e[38]("userBiometrics")+"")&&yi(f,w)},d(e){e&&ci(r),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function Rp(e){let i,r,n,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),r=di("p"),n=hi(o),gi(r,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Hp(i){let r;function n(e){return e[3]?Tp:Pp}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[79](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[79](null)}}}function zp(t,e,i){let N;Ee(t,Me,e=>i(38,N=e));let r,n,o,a,s,{endpoint:l=""}=e,{lang:c="en"}=e,{countrycode:u="IR"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{custominputtextswitch:m="false"}=e,F=!0,O=window.navigator.userAgent,R="PC"!==$e(O),H=!0,f=!1,g=!1,y=!1,v="",w="",b="",_="",x=!1,z={Name:"I.e Ireland"},C=[],W=[],P=[],T=!1,E=!1,A={items:[]},j=!1,U="",Y="",G="",V=!1,q=!1,Z=!1,L=!1,X={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(gp).forEach(e=>{fp(e,gp[e])});e=window.matchMedia("(min-width: 768px)");let K={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},M={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},$={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:J,birth:Q,city:ee,currency:te,mobile:D,email:ie,firstname:re,userTitles:ne,language:oe,lastname:ae,postalCode:se,securityAnswer:S,securityQuestion:k,username:le}=$;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,H=!1),$=e.data.profileDetails,i(37,le=$.username),i(32,D=$.mobile),i(33,ie=$.email),i(34,re=$.firstname),i(36,ae=$.lastname),oe=$.language,i(30,Q=(null==(t=$.birth)?void 0:t.day)+"/"+(null==(t=$.birth)?void 0:t.month)+"/"+(null==(t=$.birth)?void 0:t.year)),i(31,te=$.currency),i(35,ne=$.title),i(11,v=$.securityQuestion),i(12,w=$.securityAnswer),i(13,b=null==(t=$.mobile)?void 0:t.prefix),i(14,_=null==(t=$.mobile)?void 0:t.number),i(29,M.address=$.address1,M),i(29,M.city=$.city,M),i(29,M.mobilePrefix=null==D?void 0:D.prefix,M),i(29,M.mobileNumber=null==D?void 0:D.number,M),i(29,M.postalCode=$.postalCode,M),i(29,M.securityAnswer=$.securityAnswer,M),i(29,M.securityQuestion=$.securityQuestion,M);break;case"ProfileConsentData":P=e.data.consent.items,Array.isArray(P)&&P.forEach(e=>{"emailmarketing"==e.tagCode?(i(18,T=!0),i(9,g="Accepted"==e.status),i(29,M.acceptNewsEmail=g,M)):"sms"==e.tagCode&&(i(19,E=!0),i(8,f="Accepted"==e.status),i(29,M.acceptSMSOffers=f,M))});break;case"ConfirmProfileInfoSave":L&&(xp("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),_p(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,Z=!0),setTimeout(()=>{i(27,Z=!1)},3e3)}},B=()=>{i(20,j=!(V||q||U||G||Y||s))},ue=e=>{e.preventDefault(),1==x&&1==j&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:K},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:A},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;K={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:b,postalCode:n.value,securityAnswer:w,securityQuestion:v},e=K,t=M,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),A={items:[]},E&&A.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),T&&A.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),B()};return De(()=>(window.addEventListener("message",ce,!1),i(28,L=!!bp(O)),L&&(xp("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),_p("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",ce)})),t.$$set=e=>{"endpoint"in e&&i(55,l=e.endpoint),"lang"in e&&i(56,c=e.lang),"countrycode"in e&&i(0,u=e.countrycode),"clientstyling"in e&&i(57,d=e.clientstyling),"clientstylingurl"in e&&i(58,p=e.clientstylingurl),"translationurl"in e&&i(59,h=e.translationurl),"custominputtextswitch"in e&&i(1,m=e.custominputtextswitch)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&c&&(e=c,Le.set(e)),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&l&&u&&fetch(l+"/v1/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/v1/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{W=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code)),i(16,z=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,F=!1)})}),16777216&t.$$.dirty[1]&&l&&fetch(l+"/v1/player/phonecodes").then(e=>e.json()).then(e=>{i(17,C=e.phoneCodes)}),4&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&p&&r){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,r,F,H,n,o,a,f,g,y,v,w,b,_,x,z,C,T,E,j,U,Y,G,V,q,s,Z,L,M,Q,te,D,ie,re,ne,ae,le,N,R,e,J,ee,se,S,k,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),B()},()=>{i(24,V=!(()=>{if(k)switch(m){case"true":if(X.document.test(k)&&k.length<=50)return!0;break;case"false":if(k&&k.length<=120)return!0}return!1})()),B()},()=>{i(25,q=!(()=>{if(S)switch(m){case"true":if(X.document.test(S)&&S.length<=50)return!0;break;case"false":if(S&&S.length<=120)return!0}return!1})()),B()},()=>{i(21,U=!(a.value&&a.value.length<=50)),B()},()=>{i(22,Y=!(n.value&&n.value.length<=20)),B()},()=>{i(23,G=!(o.value&&o.value.length<=100)),B()},ue,de,I,l,c,d,p,h,()=>de(),function(){b=pe(this),i(13,b),i(17,C)},()=>I(),function(){_=this.value,i(14,_)},()=>I(),function(){v=this.value,i(11,v)},()=>I(),function(){w=this.value,i(12,w)},()=>I(),function(e){Ae[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>I(),function(e){Ae[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>I(),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(5,n)})},()=>I(),function(){f=this.checked,i(8,f)},function(){g=this.checked,i(9,g)},function(){y=this.checked,i(10,y)},e=>ue(e),function(e){Ae[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Wp(e,t){B(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},zp,Hp,i,{endpoint:55,lang:56,countrycode:0,clientstyling:57,clientstylingurl:58,translationurl:59,custominputtextswitch:1},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","lang","countrycode","clientstyling","clientstylingurl","translationurl","custominputtextswitch"]}get endpoint(){return this.$$.ctx[55]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[56]}set lang(e){this.$$set({lang:e}),p()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$$set({countrycode:e}),p()}get clientstyling(){return this.$$.ctx[57]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[58]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[59]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[1]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}});const jp={en:{title:"Change Password",currentPassword:"Current Password:",invalidCurrentPassword:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",newPassword:"New Password:",invalidNewPassword:"The new password must be different from the old password.",invalidNewPasswordSecondary:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",confirmPassword:"Confirm Password:",confirmPasswordInvalid:"Password must match the new password and must follow the same rules.",submitChangePassword:"Change Password",simplePasswordError:"Password must be 8-20 characters long.",returnToMenu:"Return to menu",changePasswordText:"Change Password",passwordReset:"PASSWORD RESET",passwordResetConfirmation:"Your password has been reset successfully.",backButtonText:"Back"},"zh-hk":{title:"更改密碼",currentPassword:"當前密碼",invalidCurrentPassword:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",newPassword:"新密碼",invalidNewPassword:"新密碼必須與舊密碼不同。",invalidNewPasswordSecondary:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",confirmPassword:"確認密碼",simplePasswordError:"密码长度必须为 8-20 个字符。",confirmPasswordInvalid:"密碼必須與新密碼匹配,並且必須遵循相同的規則。",submitChangePassword:"更改密碼",returnToMenu:"返回菜單",changePasswordText:"更改密碼",passwordReset:"重設密碼",passwordResetConfirmation:"您的密碼已成功重置。",backButtonText:"回到賭場"},fr:{title:"Modifier le mot de passe",currentPassword:"Mot de passe actuel:",invalidCurrentPassword:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",newPassword:"Nouveau mot de passe:",invalidNewPassword:"Le nouveau mot de passe doit être different de l'ancien.",invalidNewPasswordSecondary:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",confirmPassword:"Confirmer le mot de passe:",confirmPasswordInvalid:"Le mot de passe doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",submitChangePassword:"Modifier le mot de passe",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",returnToMenu:"Retour au menu",changePasswordText:"Modifier le mot de passe",passwordReset:"Réinitialisation du mot de passe",passwordResetConfirmation:"Votre mot de passe a été réinitialisé avec succès.",backButtonText:"Retour"},ro:{title:"Schimbă parola",currentPassword:"Parola curentă",invalidCurrentPassword:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",newPassword:"Parola nouă",invalidNewPassword:"Noua parolă trebuie să fie diferită de cea veche.",invalidNewPasswordSecondary:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",confirmPassword:"Confirmă parola",confirmPasswordInvalid:"Parolele trebuie să coincidă și să îndeplinească aceleași condiții.",submitChangePassword:"Schimbă parola",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",returnToMenu:"Înapoi la meniu",changePasswordText:"Schimbă parola",passwordReset:"Resetează parola",passwordResetConfirmation:"Parola a fost resetată cu succes.",backButtonText:"Înapoi"},es:{title:"Cambiar Contraseña",currentPassword:"Contraseña Actual",invalidCurrentPassword:"La contraseña debe ser entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",newPassword:"Nueva contraseña:",invalidNewPassword:"La nueva contraseña debe ser diferente de la contraseña anterior.",invalidNewPasswordSecondary:"Cambiar Contraseñay contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",confirmPassword:"Confirmar Contraseña:",confirmPasswordInvalid:"La Contraseña debe coincidir con la Nueva Contraseña y debe seguir las mismas reglas.",submitChangePassword:"Cambiar Contraseña",simplePasswordError:"La contraseña debe ser entre 8 a 20 caracteres.",returnToMenu:"Regresar al menu",changePasswordText:"Cambiar Contraseña",passwordReset:"REESTABLECER CONTRASEÑA",passwordResetConfirmation:"Tu contraseña se ha reestablecido exitosamente..",backButtonText:"Regresar"},pt:{title:"Mudar senha",currentPassword:"Senha atual",invalidCurrentPassword:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",newPassword:"Nova Senha",invalidNewPassword:"A nova senha deve ser diferente da senha antiga.",invalidNewPasswordSecondary:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",confirmPassword:"Confirme sua senha",confirmPasswordInvalid:"A senha deve corresponder à nova senha e deve seguir as mesmas regras.",submitChangePassword:"Mudar senha",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",returnToMenu:"Voltar ao menu",changePasswordText:"Mudar senha",passwordReset:"REDEFINIÇÃO DE SENHA",passwordResetConfirmation:"Sua senha foi redefinida com sucesso.",backButtonText:"Voltar"}};function Up(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C=i[19]("changePasswordText")+"",P=i[19]("passwordReset")+"",T=i[19]("passwordResetConfirmation")+"",E=i[19]("backButtonText")+"",A=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("g"),a=pi("path"),s=mi(),l=di("span"),c=hi(p),gi(a,"id","Chevron_Right"),gi(a,"d","M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"),gi(n,"version","1.1"),gi(n,"id","Capa_1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(n,"x","0px"),gi(n,"y","0px"),gi(n,"viewBox","0 0 240.823 240.823"),L(n,"enable-background","new 0 0 240.823 240.823"),gi(n,"xml:space","preserve"),gi(n,"width","18px"),gi(n,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(r,l),si(l,c),u||(d=fi(r,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(r),u=!1,d()}}}(i);return{c(){A&&A.c(),r=mi(),n=di("div"),o=di("h3"),a=hi(C),s=mi(),l=di("div"),c=di("div"),(u=di("div")).innerHTML='<div class="Checkmark"></div>',d=mi(),p=di("div"),h=di("h3"),m=hi(P),f=mi(),g=di("p"),y=hi(T),v=mi(),w=di("div"),b=hi(E),gi(n,"class","PlayerChangePasswordHeader"),gi(u,"class","IconContainer"),gi(p,"class","TextContainer"),gi(c,"class","SuccessWrapper"),gi(w,"class","PlayerChangePasswordBackButton"),gi(l,"class","ChangedPasswordSuccessfully")},m(e,t){A&&A.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(c,p),si(p,h),si(h,m),si(p,f),si(p,g),si(g,y),si(l,v),si(l,w),si(w,b),_||(x=fi(w,"click",i[46]),_=!0)},p(e,t){e[20]&&A.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&yi(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&yi(m,P),524288&t[0]&&T!==(T=e[19]("passwordResetConfirmation")+"")&&yi(y,T),524288&t[0]&&E!==(E=e[19]("backButtonText")+"")&&yi(b,E)},d(e){A&&A.d(e),e&&ci(r),e&&ci(n),e&&ci(s),e&&ci(l),_=!1,x()}}}function Yp(i){let O,r,R,H,n,o,a,z,W,s,j,U,l,Y,c,u,G,V,d,q,Z,p,X,h,m,K,J,f,Q,ee,g,te,y,v,w,ie,b,_,re,ne,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",T=i[19]("confirmPassword")+"",E=i[19]("submitChangePassword")+"",A=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function oe(e){return e[10]?Vp:Gp}let L=oe(i),M=L(i),$=i[4]&&qp(i);function ae(e){return e[11]?Jp:Kp}let D=ae(i),S=D(i);function se(e){return e[13]?eh:e[5]?Qp:void 0}let k=se(i),B=k&&k(i);function le(e){return e[12]?nh:rh}let ce=le(i),I=ce(i),N=i[6]&&oh(i),F=i[18]&&ah(i);return{c(){A&&A.c(),O=mi(),r=di("h2"),R=hi(x),H=mi(),n=di("section"),o=di("div"),a=di("label"),z=hi(C),W=mi(),s=di("input"),j=mi(),M.c(),U=mi(),$&&$.c(),Y=mi(),c=di("div"),u=di("label"),G=hi(P),V=mi(),d=di("input"),q=mi(),S.c(),Z=mi(),B&&B.c(),X=mi(),h=di("div"),m=di("label"),K=hi(T),J=mi(),f=di("input"),Q=mi(),I.c(),ee=mi(),N&&N.c(),te=mi(),F&&F.c(),y=mi(),v=di("section"),w=di("button"),ie=hi(E),gi(r,"class","ChangePasswordTitle "+(i[20]?"ChangePasswordTitleNone":"")),gi(a,"for","CurrentPassword"),gi(s,"id","CurrentPassword"),gi(s,"type","password"),gi(o,"class",l="PlayerChangePasswordBox "+(i[4]?"InvalidField":"")),gi(u,"for","NewPassword"),gi(d,"id","NewPassword"),gi(d,"autocomplete","new-password"),gi(d,"type","password"),gi(c,"class",p="PlayerChangePasswordBox "+(i[5]?"InvalidField":"")),gi(m,"for","ConfirmPassword"),gi(f,"id","ConfirmPassword"),gi(f,"type","password"),gi(h,"class",g="PlayerChangePasswordBox "+(i[6]?"InvalidField":"")),gi(n,"class","PlayerChangePasswordContent"),gi(w,"class",b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),w.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){A&&A.m(e,t),li(e,O,t),li(e,r,t),si(r,R),li(e,H,t),li(e,n,t),si(n,o),si(o,a),si(a,z),si(o,W),si(o,s),vi(s,i[14]),i[33](s),si(o,j),M.m(o,null),si(o,U),$&&$.m(o,null),si(n,Y),si(n,c),si(c,u),si(u,G),si(c,V),si(c,d),vi(d,i[15]),i[37](d),si(c,q),S.m(c,null),si(c,Z),B&&B.m(c,null),si(n,X),si(n,h),si(h,m),si(m,K),si(h,J),si(h,f),vi(f,i[16]),i[41](f),si(h,Q),I.m(h,null),si(h,ee),N&&N.m(h,null),li(e,te,t),F&&F.m(e,t),li(e,y,t),li(e,v,t),si(v,w),si(w,ie),re||(ne=[fi(s,"input",i[32]),fi(s,"blur",function(){ue(i[23](i[4],i[14],i[7]))&&i[23](i[4],i[14],i[7]).apply(this,arguments)}),fi(d,"input",i[36]),fi(d,"blur",function(){ue(i[23](i[5],i[15],i[8]))&&i[23](i[5],i[15],i[8]).apply(this,arguments)}),fi(f,"input",i[40]),fi(f,"blur",function(){ue(i[23](i[6],i[16],i[9]))&&i[23](i[6],i[16],i[9]).apply(this,arguments)}),fi(w,"click",i[44])],re=!0)},p(e,t){(i=e)[20]&&A.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(z,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),L===(L=oe(i))&&M?M.p(i,t):(M.d(1),(M=L(i))&&(M.c(),M.m(o,U))),i[4]?$?$.p(i,t):(($=qp(i)).c(),$.m(o,null)):$&&($.d(1),$=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(i[4]?"InvalidField":""))&&gi(o,"class",l),524288&t[0]&&P!==(P=i[19]("newPassword")+"")&&yi(G,P),32768&t[0]&&d.value!==i[15]&&vi(d,i[15]),D===(D=ae(i))&&S?S.p(i,t):(S.d(1),(S=D(i))&&(S.c(),S.m(c,Z))),k===(k=se(i))&&B?B.p(i,t):(B&&B.d(1),(B=k&&k(i))&&(B.c(),B.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(i[5]?"InvalidField":""))&&gi(c,"class",p),524288&t[0]&&T!==(T=i[19]("confirmPassword")+"")&&yi(K,T),65536&t[0]&&f.value!==i[16]&&vi(f,i[16]),ce===(ce=le(i))&&I?I.p(i,t):(I.d(1),(I=ce(i))&&(I.c(),I.m(h,ee))),i[6]?N?N.p(i,t):((N=oh(i)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(i[6]?"InvalidField":""))&&gi(h,"class",g),i[18]?F?F.p(i,t):((F=ah(i)).c(),F.m(y.parentNode,y)):F&&(F.d(1),F=null),524288&t[0]&&E!==(E=i[19]("submitChangePassword")+"")&&yi(ie,E),8&t[0]&&b!==(b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(w,"class",b),8&t[0]&&_!==(_=!i[3])&&(w.disabled=_)},d(e){A&&A.d(e),e&&ci(O),e&&ci(r),e&&ci(H),e&&ci(n),i[33](null),M.d(),$&&$.d(),i[37](null),S.d(),B&&B.d(),i[41](null),I.d(),N&&N.d(),e&&ci(te),F&&F.d(e),e&&ci(y),e&&ci(v),re=!1,ai(ne)}}}function Gp(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Vp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function qp(e){let i;function r(e){return"true"==e[0]?Xp:Zp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Zp(e){let i,r,n=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidCurrentPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Xp(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Kp(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Jp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function Qp(e){let i;function r(e){return"true"==e[0]?ih:th}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function eh(e){let i,r,n=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function th(e){let i,r,n=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPasswordSecondary")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ih(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function nh(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function oh(e){let i,r,n=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("confirmPasswordInvalid")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ah(e){let i,r,n;return{c(){i=di("div"),r=di("p"),n=hi(e[17]),gi(r,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){131072&t[0]&&yi(n,e[17])},d(e){e&&ci(i)}}}function sh(i){let r,n=function(e){let i;function r(e){return e[2]?Up:Yp}let n=r(e),o=n(e);return{c(){i=di("form"),o.c(),gi(i,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){li(e,i,t),o.m(i,null)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[47](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[47](null)}}}function lh(t,e,r){let i;Ee(t,Me,e=>r(19,i=e));let n,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=!1;const N=window.matchMedia("(min-width: 768px)"),h={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let m,f,g,y=!1,v=!1,w=!1,b=!1,_=!1,x=!1,C=!1,P="",T="",E="",A=!1,L="",M=!1;Object.keys(jp).forEach(e=>{Wp(e,jp[e])});const $=e=>{switch(e){case"userCurrentPassword":r(10,b=!b),r(7,m.type=b?"text":"password",m);break;case"userNewPassword":r(11,_=!_),r(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":r(12,x=!x),r(9,g.type=x?"text":"password",g)}},D=e=>!!h.password.test(e),S=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:T},window.location.href)},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},B=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":r(2,A=!0);break;case"ShowPasswordChangedError":r(18,M=e.data.showErrorPasswordChanged),r(17,L=e.data.errorPasswordChanged)}};return De(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&r(27,o=e.lang),"simplepasswordvalidation"in e&&r(0,a=e.simplepasswordvalidation),"clientstyling"in e&&r(28,s=e.clientstyling),"clientstylingurl"in e&&r(29,l=e.clientstylingurl),"translationurl"in e&&r(30,c=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&a&&"true"==a&&(h.password=/^(?!.* ).{8,20}$/),134217728&t.$$.dirty[0]&&o&&(e=o,Le.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;268435458&t.$$.dirty[0]&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wp(e,t[e])})}).catch(e=>{console.log(e)})},[a,n,A,p,y,v,w,m,f,g,b,_,x,C,P,T,E,L,M,i,d,N,$,(e,t,i)=>{"CurrentPassword"===i.id?r(4,y=!D(t)):"NewPassword"===i.id&&(r(5,v=!D(t)),P&&r(13,C=P===T),!E)||r(6,w=T!==E||!D(t)),r(3,p=!(y||v||w||C||!P||!T||!E))},S,k,B,o,s,l,c,()=>k(),function(){P=this.value,r(14,P)},function(e){Ae[e?"unshift":"push"](()=>{m=e,r(7,m)})},()=>$("userCurrentPassword"),()=>$("userCurrentPassword"),function(){T=this.value,r(15,T)},function(e){Ae[e?"unshift":"push"](()=>{f=e,r(8,f)})},()=>$("userNewPassword"),()=>$("userNewPassword"),function(){E=this.value,r(16,E)},function(e){Ae[e?"unshift":"push"](()=>{g=e,r(9,g)})},()=>$("userConfirmPassword"),()=>$("userConfirmPassword"),e=>S(e),()=>k(),()=>B(),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(1,n)})}]}function ch(e,t){B(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:30px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox input::-ms-reveal,.PlayerChangePasswordBox input::-ms-clear{display:none}.PlayerChangePasswordBox.InvalidField input{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:38px;cursor:pointer;color:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibilityMobile{top:35px}.InvalidInput,.InvalidInputNew{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;padding-top:5px;margin:0;line-height:12px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:16px;line-height:18px;margin-top:0}.ChangedPasswordSuccessfully{color:var(--emfe-w-color-white, #FFFFFF);position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:var(--emfe-w-color-gray-300, #58586B)}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},lh,sh,i,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),p()}});const uh={en:{title:"Reality Check",never:"Never",minutes:"Minutes",oneHour:"1 Hour",hours:"Hours",successMessage:"Reality check has been successfully updated.",realityCheckText:"The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",realityCheckLoading:"Loading items, please wait ...",setFrequency:"Set frequency"},"zh-hk":{title:"現實檢查",never:"絕不",minutes:"分鐘",oneHour:"1小時",hours:"小時",successMessage:"現實檢查已成功更新。",realityCheckText:"該工具允許您設置在遊戲會話中在屏幕上看到消息的頻率。 它將顯示自會話開始以來經過的時間。",realityCheckLoading:"正在加載項目,請稍候...",setFrequency:"設置頻率"},fr:{title:"Verification de la réalité",never:"Jamais",minutes:"Minutes",oneHour:"1 Heure",hours:"Heure",successMessage:"Le contrôle de la réalité a été mis à jour avec succès.",realityCheckText:"La fonction de contrôle de la réalité vous permet de définir la fréquence à laquelle vous verrez un contrôlede la réalité sur l'écran au cours de votre sessions de jeu , c'est-à-dire un affichage du temps écoulé depuis le début de votre session.",realityCheckLoading:"Chargement des éléments, veuillez patienter ...",setFrequency:"Régler la fréquence"},ro:{title:"Verificare timp",never:"Niciodata",minutes:"Minute",oneHour:"1 Ora",hours:"Ore",successMessage:"Frecvența a fost setată cu succes!",realityCheckText:"Opțiunea Reality Check îți permite să setezi frecvența cu care vei vedea verificarea timpului de joc pe parcursul sesiunii tale de joc. O astfel de verificare reprezintă afișarea timpului trecut de la începerea sesiunii de joc.",realityCheckLoading:"Se încarcă...",setFrequency:"Stabilește frecvența"},es:{title:"Verificación de la realidad",never:"Nunca",minutes:"Minutos",oneHour:"1 Hora",hours:"Horas",successMessage:"La verificación de la realidad se ha actualizado con éxito.",realityCheckText:"La función de Verificación de la realidad le permite establecer la frecuencia con la que verá una Verificación de la realidad en la pantalla dentro de su sesión de juego. Una verificación de la realidad significa una visualización del tiempo transcurrido desde que comenzó su sesión. Puede controlar la frecuencia con la que aparecerá la Verificación de realidad en su pantalla.",realityCheckLoading:"Cargando items",setFrequency:"Estabelecer frecuencia"},pt:{title:"Verificação da realidade",never:"Nunca",minutes:"Minutos",oneHour:"1 hora",hours:"Horas",successMessage:"A verificação da realidade foi atualizada com sucesso.",realityCheckText:"O recurso Verificação da Realidade permite que você defina a frequência com que você verá uma Verificação da Realidade na tela durante sua sessão de jogo. Uma verificação da realidade significa uma exibição do tempo decorrido desde o início da sua sessão.",realityCheckLoading:"Carregando itens, por favor aguarde...",setFrequency:"Definir frequência"}};function dh(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function ph(e){let i;return{c(){(i=di("div")).textContent=""+e[6],gi(i,"class","successMessageMobile")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function hh(e){let i,r;return{c(){i=di("div"),r=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function mh(i){let r,n,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=gh(dh(i,u,e));return{c(){r=di("form");for(let e=0;e<d.length;e+=1)d[e].c();n=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(r,"class","customRadio")},m(e,t){li(e,r,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);si(r,n),si(r,o),si(o,a),si(a,s),l||(c=fi(a,"click",i[22]),l=!0)},p(t,i){if(130&i[0]){let e;for(u=t[7],e=0;e<u.length;e+=1){const s=dh(t,u,e);d[e]?d[e].p(s,i):(d[e]=gh(s),d[e].c(),d[e].m(r,n))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&i[0]&&e!==(e=t[4]("setFrequency")+"")&&yi(s,e)},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function fh(e){let i,r,n=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[4]("realityCheckLoading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function gh(i){let r,n,o,a,s,t,l,c,e=i[36]+"";return t=function(t){let i;return{p(...e){(i=e).forEach(e=>t.push(e))},r(){i.forEach(e=>t.splice(t.indexOf(e),1))}}}(i[21][0]),{c(){r=di("div"),n=di("input"),o=mi(),a=di("label"),s=hi(e),gi(n,"type","radio"),gi(n,"id",i[35]),n.__value=i[35],n.value=n.__value,gi(a,"for",i[35]),t.p(n)},m(e,t){li(e,r,t),si(r,n),n.checked=n.__value===i[1],si(r,o),si(r,a),si(a,s),l||(c=fi(n,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(n.checked=n.__value===e[1])},d(e){e&&ci(r),t.r(),l=!1,c()}}}function yh(i){let r,n,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&ph(i);return{c(){v&&v.c(),r=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=pi("g"),u=pi("g"),d=pi("path"),p=mi(),h=di("h2"),m=hi(y),gi(d,"class","aaa"),gi(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(d,"transform","translate(15 15) rotate(180)"),gi(u,"transform","translate(20 158)"),gi(c,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","15"),gi(o,"height","15"),gi(o,"viewBox","0 0 15 15"),gi(h,"class","RealityCheckTitleMobile"),gi(h,"part","RealityCheckTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),f||(g=fi(n,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=ph(e)).c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&yi(m,y)},d(e){v&&v.d(e),e&&ci(r),e&&ci(n),f=!1,g()}}}(i),g=i[3]&&hh(i);function y(e){return e[2]?fh:mh}let v=y(i),w=v(i);return{c(){r=di("div"),f&&f.c(),n=mi(),g&&g.c(),o=mi(),a=di("h2"),s=hi(h),l=mi(),c=di("div"),u=di("p"),d=hi(m),p=mi(),w.c(),this.c=se,gi(a,"class","RealityCheckTitle "+(i[5]?"RealityCheckTitleNone":"")),gi(c,"class","RealityCheckDescription "+(i[5]?"RealityCheckDescriptionMobile":"")),gi(r,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(r,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,r,t),f&&f.m(r,null),si(r,n),g&&g.m(r,null),si(r,o),si(r,a),si(a,s),si(r,l),si(r,c),si(c,u),si(u,d),si(c,p),w.m(c,null),i[23](r)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=hh(e)).c(),g.m(r,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&yi(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&yi(d,m),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(c,null)))},i:se,o:se,d(e){e&&ci(r),f&&f.d(),g&&g.d(),w.d(),i[23](null)}}}function vh(i,e,r){let n;Ee(i,Me,e=>r(4,n=e));let o,{realitycheck:a=""}=e,{endpoint:s=""}=e,{playerid:l=""}=e,{session:c=""}=e,{lang:u="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,t=window.navigator.userAgent,m="PC"!==$e(t),f="",g=!0,y=(Object.keys(uh).forEach(e=>{ch(e,uh[e])}),!1),v=n("successMessage"),w=[],b=[];const _=e=>{e.preventDefault(),window.postMessage({type:"SubmittedRealityCheck",realityCheckUpdatedValue:f},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},C=e=>{e.data&&"RealityCheckValueUpdated"===e.data.type&&(r(3,y=!0),setTimeout(()=>{r(3,y=!1)},2e3))};return De(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&r(10,a=e.realitycheck),"endpoint"in e&&r(11,s=e.endpoint),"playerid"in e&&r(12,l=e.playerid),"session"in e&&r(13,c=e.session),"lang"in e&&r(14,u=e.lang),"clientstyling"in e&&r(15,d=e.clientstyling),"clientstylingurl"in e&&r(16,p=e.clientstylingurl),"translationurl"in e&&r(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,Le.set(t)),14336&i.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/v1/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(18,w=e.AvailableRealityCheckValues),w.forEach(e=>{0==e?b.push({value:e.toString(),text:n("never")}):e<60?b.push({value:e.toString(),text:e+" "+n("minutes")}):60==e?b.push({value:e.toString(),text:n("oneHour")}):60<e&&b.push({value:e.toString(),text:e/60+" "+n("hours")})}),r(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&w&&a&&r(1,f=a),65537&i.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e,t;32769&i.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&i.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ch(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,n,m,v,b,_,x,a,s,l,c,u,d,p,h,w,()=>x(),function(){f=this.__value,r(1,f)},[[]],e=>_(e),function(e){Ae[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function wh(e,t){B(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},vh,yh,i,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["realitycheck","endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl"]}get realitycheck(){return this.$$.ctx[10]}set realitycheck(e){this.$$set({realitycheck:e}),p()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[12]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}});const bh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function _h(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function xh(e,t,i){e=e.slice();return e[45]=t[i],e}function Ch(t){let n,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ah(xh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var r=xh(t,o,e);a[e]?a[e].p(r,i):(a[e]=Ah(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Ph(e){let i,r,n=e[14]("noBonusHistory")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noBonusHistory")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Th(e){let i,r,n,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),le(i,"bonusdate",n=e[45].granted),le(i,"bonusstatus",o=e[45].status),le(i,"bonusname",a=e[45].name),le(i,"bonustype",s=e[45].type),le(i,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),le(i,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),le(i,"bonusremainingamount",u=e[45].currentAmount),le(i,"bonuscurrency",d=e[45].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&le(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&le(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&le(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&le(i,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&le(i,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&le(i,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&le(i,"bonuscurrency",d),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Eh(e){let i,r,n,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),le(i,"bonusdate",n=e[45].granted),le(i,"bonusstatus",o=e[45].status),le(i,"bonusname",a=e[45].name),le(i,"bonustype",s=e[45].type),le(i,"bonuscurrency",l=e[45].currency),le(i,"lang",e[0]),le(i,"clientstyling",e[1]),le(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&le(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&le(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&le(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&le(i,"bonuscurrency",l),1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"clientstyling",e[1]),4&t[0]&&le(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Ah(e){let i;function r(e){return"freeRound"===e[45].type?Eh:Th}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Lh(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Mh(_h(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[12]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[12]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[12]===i[11]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[12]===i[11]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[26]),fi(l,"click",i[27]),fi(p,"click",i[29]),fi(g,"click",i[30])],w=!0)},p(t,i){if(4096&i[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&gi(n,"class",a),4096&i[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&gi(l,"class",e),137216&i[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=_h(t,_,e);x[e]?x[e].p(a,i):(x[e]=Mh(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&i[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&gi(p,"class",m),6144&i[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function Mh(i){let r,n,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function $h(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,T,E,A,L,M=i[14]("title")+"",$=i[14]("dateFrom")+"",D=i[14]("dateTo")+"",S=i[14]("dateFilter")+"",k=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function B(e){return 0===e[13].length?Ph:Ch}let I=B(i),N=I(i),F=0!==i[13].length&&Lh(i);return{c(){r=di("div"),k&&k.c(),n=mi(),o=di("h2"),a=hi(M),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi($),h=mi(),m=di("vaadin-date-picker"),f=mi(),g=di("div"),y=di("label"),v=hi(D),w=mi(),b=di("vaadin-date-picker"),_=mi(),x=di("button"),C=hi(S),P=mi(),T=di("div"),N.c(),E=mi(),F&&F.c(),gi(o,"class","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(o,"part","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(d,"for","BonusCalendarStartDate"),le(m,"max",i[6]),le(m,"value",i[7]),le(m,"placeholder","From"),le(m,"class","VaadinDatePicker"),gi(u,"class","BonusesCalendarStartDate "+(i[15]?"BonusesCalendarMobile":"")),gi(y,"for","BonusesCalendarEndDate"),le(b,"max",i[6]),le(b,"value",i[6]),le(b,"placeholder","To"),le(b,"class","VaadinDatePicker"),gi(g,"class","BonusesCalendarEndDate "+(i[15]?"BonusesCalendarMobile":"")),gi(c,"class","BonusesCalendarContainer "+(i[15]?"BonusesCalendarContainerMobile":"")),gi(x,"class","BonusesCalendarFilter "+(i[15]?"BonusesCalendarFilterMobile":"")),gi(l,"class","BonusCalendarWrapper "+(i[15]?"BonusCalendarWrapperMobile":"")),gi(T,"class","BonusesGrid "+(i[15]?"BonusesGridMobile":"")),gi(r,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,r,t),k&&k.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(u,d),si(d,p),si(u,h),si(u,m),i[23](m),si(c,f),si(c,g),si(g,y),si(y,v),si(g,w),si(g,b),i[24](b),si(l,_),si(l,x),si(x,C),si(r,P),si(r,T),N.m(T,null),si(r,E),F&&F.m(r,null),A||(L=fi(x,"click",i[25]),A=!0)},p(e,t){e[15]&&k.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yi(a,M),16384&t[0]&&$!==($=e[14]("dateFrom")+"")&&yi(p,$),64&t[0]&&le(m,"max",e[6]),128&t[0]&&le(m,"value",e[7]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&yi(v,D),64&t[0]&&le(b,"max",e[6]),64&t[0]&&le(b,"value",e[6]),16384&t[0]&&S!==(S=e[14]("dateFilter")+"")&&yi(C,S),I===(I=B(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(T,null))),0!==e[13].length?F?F.p(e,t):((F=Lh(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&ci(r),k&&k.d(),i[23](null),i[24](null),N.d(),F&&F.d(),A=!1,L()}}}(i);return{c(){r=di("div"),n.c(),this.c=se},m(e,t){li(e,r,t),n.m(r,null),i[31](r)},p(e,t){n.p(e,t)},i:se,o:se,d(e){e&&ci(r),n.d(),i[31](null)}}}function Dh(t,e,r){let i;Ee(t,Me,e=>r(14,i=e));let n,o,a,s,l,{endpoint:c=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:p="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g=window.navigator.userAgent,y="PC"!==$e(g),v=(s=W(new Date).format("YYYY-MM-DD"),l=W(new Date).subtract(3,"months").format("YYYY-MM-DD")),w=s,b=0,_=0,x=0,C=0,P=0,T=[];Object.keys(bh).forEach(e=>{wh(e,bh[e])});const E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},A=t=>{var e=new URL(`${c}/player/${d}/bonusWallet`),i=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(w).toISOString()}]`,i=(e.searchParams.append("filter",i),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,i).then(e=>e.json()).then(e=>{r(11,C=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,_=t+6),r(10,x=6*(C-1)),r(12,P=t/6),r(13,T=e.items)},e=>{console.error(e)})},L=e=>{v=e.target.value},M=e=>{w=e.target.value};De(()=>()=>{o.removeEventListener("change",L),a.removeEventListener("change",M)});return t.$$set=e=>{"endpoint"in e&&r(18,c=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,p=e.lang),"clientstyling"in e&&r(1,h=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,Le.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",L,!1),a.addEventListener("change",M,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&A(0),12&t.$$.dirty[0]&&m&&n){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&n&&((e=document.createElement("style")).innerHTML=h,n.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,n,o,a,s,l,b,_,x,C,P,T,i,y,E,A,c,u,d,f,()=>E(),function(e){Ae[e?"unshift":"push"](()=>{o=e,r(4,o)})},function(e){Ae[e?"unshift":"push"](()=>{a=e,r(5,a)})},()=>A(0),()=>A(0),()=>A(b),e=>A(6*e),()=>A(_),()=>A(x),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function Sh(e,t){B(e,t)}customElements.define=(vp=customElements.define,function(...e){try{return vp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry"))return!1;throw e}}),customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Dh,$h,i,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),p()}});const kh={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."}};function Bh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Ih(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Nh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Ih:Bh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","DepositTitle "+(i[4]?"DepositTitleNone":"")),gi(r,"class","DepositWrapper "+(i[4]?"DepositWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function Fh(r,e,n){let t;Ee(r,Me,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==$e(i),g=!0,y=0,v="";Object.keys(kh).forEach(e=>{Sh(e,kh[e])});const w=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},b=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"GoToDeposit"},window.location.href)}};return De(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Le.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sh(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,w,m,a,s,l,c,u,d,p,h,()=>w(),function(e){Ae[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function Oh(e,t){B(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Fh,Nh,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const Rh={en:{title:"Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"退出",loading:"加載請稍候…"},fr:{title:"Retrait",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere",loading:"Se încarcă..."},es:{title:"Retirar",loading:"Cargando..."},pt:{title:"Retirada",loading:"Carregando, por favor espere ..."}};function Hh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function zh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Wh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?zh:Hh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(r,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function jh(r,e,n){let t;Ee(r,Me,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==$e(i),g=!0,y=0,v="";Object.keys(Rh).forEach(e=>{Oh(e,Rh[e])});const w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},b=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"ChangeAccountPage",page:{path:"/deposit",id:469}},window.location.href)}};return De(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Le.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Oh(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializewithdraw`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,w,m,a,s,l,c,u,d,p,h,()=>w(),function(e){Ae[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function Uh(e,t){B(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},jh,Wh,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const Yh={en:{title:"Pending Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"待取款",loading:"加載請稍候…"},fr:{title:"Retrait en cours",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere în așteptare",loading:"Se încarcă..."},es:{title:"Retiro Pendiente",loading:"Cargando..."},pt:{title:"Retirada pendente",loading:"Carregando, por favor espere ..."}};function Gh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Vh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function qh(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Vh:Gh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(r,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function Zh(i,e,r){let t;Ee(i,Me,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(Yh).forEach(e=>{Uh(e,Yh[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Le.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/pendingwithdrawals`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Uh(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function Xh(e,t){B(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Zh,qh,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Kh={en:{title:"Transaction History",loading:"Loading, please wait ..."},"zh-hk":{title:"交易記錄",loading:"加載請稍候…"},fr:{title:"Historique des transactions",loading:"Chargement, veuillez patienter ..."},ro:{title:"Istoric tranzacții",loading:"Se încarcă..."},es:{title:"Historial de transacciones",loading:"Cargando ... Por favor espere ..."},pt:{title:"Histórico de transações",loading:"Carregando, por favor espere ..."}};function Jh(e){let i,r,n;return{c(){i=di("div"),_((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!_(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function Qh(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function em(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?Qh:Jh}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(r,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:se,o:se,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function tm(i,e,r){let t;Ee(i,Me,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(Kh).forEach(e=>{Xh(e,Kh[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Le.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xh(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Ae[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function im(e,t){B(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},tm,em,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const rm={en:{title:"Gaming History",return:"Return",previous:"Prev",next:"Next",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",numberOfResults:"Show:",noRecord:"You haven't played any games so far.",transactionId:"Transaction ID",date:"Date",gameName:"Game Name",stake:"Stake"},"zh-hk":{title:"遊戲歷史",return:"回來",previous:"上一頁",next:"下一個",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",numberOfResults:"節目:",noRecord:"到目前為止,您還沒有玩任何遊戲。",transactionId:"交易編號",date:"日期",gameName:"遊戲名稱",stake:"賭注"},fr:{title:"Historique des jeux",return:"Revenir",previous:"Précedent",next:"Suivant",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",numberOfResults:"Afficher:",noRecord:"Vous n'avez joué à aucun jeu jusqu'à présent.",transactionId:"Transaction ID",date:"Date",gameName:"Nom du jeu",stake:"Mise"},ro:{title:"Istoric jocuri",return:"Înapoi la meniu",previous:"Înapoi",next:"Înainte",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",numberOfResults:"Arată",noRecord:"Nu ai niciun istoric de jocuri în acest moment."},es:{title:"Historial de apuestas",return:"Regresar",previous:"Previo",next:"Siguiente",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",numberOfResults:"Mostrar:",noRecord:"Aún no ha jugado ningún juego",transactionId:"ID de Transacción",date:"Fecha",gameName:"Nombre del juego",stake:"Apostado"},pt:{title:"Histórico de jogos",return:"Voltar ao menu",previous:"Anterior",next:"Próximo",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",numberOfResults:"Mostrar:",noRecord:"Você não jogou nenhum jogo até agora."}};function nm(e,t,i){e=e.slice();return e[55]=t[i],e}function om(e,t,i){e=e.slice();return e[58]=t[i],e}function am(i){let r,n,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=sm(om(i,u,e));return{c(){r=di("div"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(s,"class","PlayerGamingHistoryItemCount"),void 0===i[7]&&bi(()=>i[33].call(s)),gi(r,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[33]),fi(s,"change",i[34])],l=!0)},p(t,i){if(16384&i[0]&&e!==(e=t[14]("numberOfResults")+"")&&yi(o,e),32768&i[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=om(t,u,e);d[e]?d[e].p(o,i):(d[e]=sm(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function sm(e){let i,r,t=e[58]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:se,d(e){e&&ci(i)}}}function lm(e){let i,r,n=e[14]("noRecord")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noRecord")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function cm(e){let i,r,n;return{c(){i=di("p"),r=hi("Invalid data: "),n=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r),si(i,n)},p(e,t){256&t[0]&&yi(n,e[8])},d(e){e&&ci(i)}}}function um(i){let r,n,o,a,s,l,F,c,u,O,d,p,R,H,z,W,j,U,Y,h,G,m,f,g,y,e,V,v,q,w,b,Z,_,x,X,K,C,P,T,E,A,J,Q,L=i[14]("transactionId")+"",M=i[14]("date")+"",$=i[14]("gameName")+"",D=i[14]("stake")+"",S=i[14]("return")+"",k=i[14]("previous")+"",B=i[14]("next")+"",I=i[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=pm(nm(i,I,e));return{c(){r=di("div"),n=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(L),F=mi(),c=di("th"),u=hi(M),O=mi(),d=di("th"),p=hi($),R=mi(),H=di("th"),z=hi(D),W=mi(),j=di("th"),U=hi(S),Y=mi(),h=di("tbody");for(let e=0;e<N.length;e+=1)N[e].c();G=mi(),m=di("div"),f=di("button"),g=pi("svg"),y=pi("path"),V=mi(),v=di("span"),q=hi(k),Z=mi(),_=di("button"),x=di("span"),X=hi(B),K=mi(),C=pi("svg"),P=pi("path"),gi(r,"class","PlayerGamingHistoryContainer"),gi(y,"fill",e=i[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(y,"class","a"),gi(y,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(y,"transform","translate(19.246 -6.188) rotate(90)"),gi(g,"xmlns","http://www.w3.org/2000/svg"),gi(g,"width","8"),gi(g,"height","13.992"),gi(g,"viewBox","0 0 8 13.992"),gi(v,"class","PlayerPaginationControlsText"),gi(f,"class",w="PlayerPaginationControls "+(i[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=b=!i[5],gi(x,"class","PlayerPaginationControlsText"),gi(P,"fill",T=i[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(P,"class","a"),gi(P,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(P,"transform","translate(-11.246 20.179) rotate(-90)"),gi(C,"xmlns","http://www.w3.org/2000/svg"),gi(C,"width","8"),gi(C,"height","13.992"),gi(C,"viewBox","0 0 8 13.992"),gi(_,"class",E="PlayerPaginationControls "+(i[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=A=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(s,l),si(a,F),si(a,c),si(c,u),si(a,O),si(a,d),si(d,p),si(a,R),si(a,H),si(H,z),si(a,W),si(a,j),si(j,U),si(n,Y),si(n,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);li(e,G,t),li(e,m,t),si(m,f),si(f,g),si(g,y),si(f,V),si(f,v),si(v,q),si(m,Z),si(m,_),si(_,x),si(x,X),si(_,K),si(_,C),si(C,P),J||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],J=!0)},p(t,i){if(16384&i[0]&&L!==(L=t[14]("transactionId")+"")&&yi(l,L),16384&i[0]&&M!==(M=t[14]("date")+"")&&yi(u,M),16384&i[0]&&$!==($=t[14]("gameName")+"")&&yi(p,$),16384&i[0]&&D!==(D=t[14]("stake")+"")&&yi(z,D),16384&i[0]&&S!==(S=t[14]("return")+"")&&yi(U,S),1073152&i[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var r=nm(t,I,e);N[e]?N[e].p(r,i):(N[e]=pm(r),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&i[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(y,"fill",e),16384&i[0]&&k!==(k=t[14]("previous")+"")&&yi(q,k),32&i[0]&&w!==(w="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&gi(f,"class",w),32&i[0]&&b!==(b=!t[5])&&(f.disabled=b),16384&i[0]&&B!==(B=t[14]("next")+"")&&yi(X,B),16&i[0]&&T!==(T=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(P,"fill",T),16&i[0]&&E!==(E="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&gi(_,"class",E),16&i[0]&&A!==(A=!t[4])&&(_.disabled=A)},d(e){e&&ci(r),ui(N,e),e&&ci(G),e&&ci(m),J=!1,ai(Q)}}}function dm(e){let i;return{c(){gi(i=di("div"),"class","DataLoader")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function pm(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,T,E,A,L,M=e[55].roundId+"",$=e[20](e[55])+"",D=e[55].gameModel.name+"",S=e[55].stakeAmount+"",k=e[55].returnAmount+"";return{c(){i=di("tr"),r=di("td"),n=di("span"),o=hi(M),l=mi(),c=di("td"),u=di("span"),d=hi($),h=mi(),m=di("td"),f=di("span"),g=hi(D),v=mi(),w=di("td"),b=di("span"),_=hi(S),C=mi(),P=di("td"),T=di("span"),E=hi(k),L=mi(),gi(r,"data-label",a=e[14]("transactionId")),gi(r,"title",s=e[55].roundId),gi(c,"data-label",p=e[14]("date")),gi(m,"data-label",y=e[14]("gameName")),gi(w,"data-label",x=e[14]("stake")),gi(P,"data-label",A=e[14]("return"))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,l),si(i,c),si(c,u),si(u,d),si(i,h),si(i,m),si(m,f),si(f,g),si(i,v),si(i,w),si(w,b),si(b,_),si(i,C),si(i,P),si(P,T),si(T,E),si(i,L)},p(e,t){8192&t[0]&&M!==(M=e[55].roundId+"")&&yi(o,M),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(r,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(r,"title",s),8192&t[0]&&$!==($=e[20](e[55])+"")&&yi(d,$),16384&t[0]&&p!==(p=e[14]("date"))&&gi(c,"data-label",p),8192&t[0]&&D!==(D=e[55].gameModel.name+"")&&yi(g,D),16384&t[0]&&y!==(y=e[14]("gameName"))&&gi(m,"data-label",y),8192&t[0]&&S!==(S=e[55].stakeAmount+"")&&yi(_,S),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(w,"data-label",x),8192&t[0]&&k!==(k=e[55].returnAmount+"")&&yi(E,k),16384&t[0]&&A!==(A=e[14]("return"))&&gi(P,"data-label",A)},d(e){e&&ci(i)}}}function hm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,T,E,A,L,M,$=i[14]("title")+"",D=i[14]("dateFrom")+"",S=i[14]("dateTo")+"",k=i[14]("dateFilter")+"",B=i[16]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=!i[12].matches&&am(i);function O(e){return e[9]?dm:0<e[13].length?um:0<e[8].length?cm:lm}let N=O(i),F=N(i);return{c(){r=di("div"),n=di("div"),B&&B.c(),o=mi(),a=di("h2"),s=hi($),l=mi(),c=di("div"),u=di("div"),d=di("div"),p=di("div"),h=di("span"),m=hi(D),f=mi(),g=di("vaadin-date-picker"),y=mi(),v=di("div"),w=di("span"),b=hi(S),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),T=hi(k),E=mi(),I&&I.c(),A=mi(),F.c(),this.c=se,gi(a,"class","PlayerGamingHistoryTitle "+(i[16]?"PlayerGamingHistoryTitleNone":"")),le(g,"max",i[10]),le(g,"placeholder","From"),le(g,"value",i[11]),le(g,"class","VaadinDatePicker"),gi(p,"class","PlayerGamingDateWrapper"),le(x,"max",i[10]),le(x,"placeholder","To"),le(x,"value",i[10]),le(x,"class","VaadinDatePicker"),gi(v,"class","PlayerGamingDateWrapper"),gi(d,"class","PlayerGamingDateContainer"),gi(P,"class","PlayerGamingHistoryFilterButton"),gi(u,"class","PlayerGamingHistoryFilterWrapper"),gi(c,"class","PlayerGamingHistoryTopSection"),gi(n,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,r,t),si(r,n),B&&B.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(d,p),si(p,h),si(h,m),si(p,f),si(p,g),i[30](g),si(d,y),si(d,v),si(v,w),si(w,b),si(v,_),si(v,x),i[31](x),si(u,C),si(u,P),si(P,T),si(u,E),I&&I.m(u,null),si(n,A),F.m(n,null),i[37](n),i[38](r),L||(M=fi(P,"click",i[32]),L=!0)},p(e,t){e[16]&&B.p(e,t),16384&t[0]&&$!==($=e[14]("title")+"")&&yi(s,$),16384&t[0]&&D!==(D=e[14]("dateFrom")+"")&&yi(m,D),1024&t[0]&&le(g,"max",e[10]),2048&t[0]&&le(g,"value",e[11]),16384&t[0]&&S!==(S=e[14]("dateTo")+"")&&yi(b,S),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&k!==(k=e[14]("dateFilter")+"")&&yi(T,k),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=am(e)).c(),I.m(u,null)),N===(N=O(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(n,null)))},i:se,o:se,d(e){e&&ci(r),B&&B.d(),i[30](null),i[31](null),I&&I.d(),F.d(),i[37](null),i[38](null),L=!1,M()}}}function mm(t,e,n){let i;Ee(t,Me,e=>n(14,i=e));let r,o,a,s,l,c,{endpoint:u=""}=e,{playerid:d=""}=e,{session:p=""}=e,{lang:h="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{gmversion:y=""}=e,v="",w="",b="",_=W().format("YYYY-MM-DD"),x=W().format("YYYY-MM-DD"),C=["5","10","25","50"],P="5",T="",E=!1,A=window.navigator.userAgent,L="PC"!==$e(A),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(rm).forEach(e=>{im(e,rm[e])}),window.matchMedia("(min-width: 768px)")),M=window.matchMedia("(max-width: 1280px)"),$=[];const D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:L},window.location.href)},F=()=>{n(12,M=window.matchMedia("(max-width: 1280px)"))},O=(e,t,i)=>{var e=new URL(e),r=(n(13,$=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,E=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,$=e.transactions),n(13,$=(e=>{let r=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=r.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,r.set(e.roundId,i))}),Array.from(r.values())})($)),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,E=!1)},e=>{n(9,E=!1),console.error(e)})},S=(e,t,i)=>{var r;"gm16"===y?O(e,t,i):(t=t,i=i,e=new URL(e),n(13,$=[]),n(8,T=""),r={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,E=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,$=e.transactions),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,E=!1)},e=>{n(9,E=!1),console.error(e)}))},k=e=>{e.data&&e.data.type},B=e=>{_=e.target.value},I=e=>{x=e.target.value};return De(()=>(window.addEventListener("message",k,!1),window.addEventListener("resize",F,!1),()=>{o.removeEventListener("change",B),a.removeEventListener("change",I),window.removeEventListener("message",k),window.removeEventListener("resize",k)})),t.$$set=e=>{"endpoint"in e&&n(21,u=e.endpoint),"playerid"in e&&n(22,d=e.playerid),"session"in e&&n(23,p=e.session),"lang"in e&&n(24,h=e.lang),"clientstyling"in e&&n(25,m=e.clientstyling),"clientstylingurl"in e&&n(26,f=e.clientstylingurl),"translationurl"in e&&n(27,g=e.translationurl),"gmversion"in e&&n(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",B,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,Le.set(e),n(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),S(v,!1,!0)),67108868&t.$$.dirty[0]&&f&&s){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e;33554436&t.$$.dirty[0]&&m&&s&&((e=document.createElement("style")).innerHTML=m,s.appendChild(e)),134217728&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{im(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,w,b,void 0,P,T,E,l,c,M,$,i,C,L,N,D,S,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>D(),function(e){Ae[e?"unshift":"push"](()=>{o=e,n(0,o)})},function(e){Ae[e?"unshift":"push"](()=>{a=e,n(1,a)})},()=>S(v,!1,!0),function(){P=pe(this),n(7,P),n(15,C)},()=>S(v,!1,!0),()=>S(b,!0,!1),()=>S(w,!0,!1),function(e){Ae[e?"unshift":"push"](()=>{r=e,n(6,r)})},function(e){Ae[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function fm(e,t){B(e,t)}customElements.define=(wp=customElements.define,function(...e){try{return wp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry"))return!1;throw e}}),customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingHistoryWrapper .PlayerGamingHistoryTitle{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerGamingDateContainer{display:inline-flex;gap:20px}.PlayerGamingHistoryFilterWrapper,.PlayerGamingDateWrapper{display:inline-flex;align-items:center;gap:10px}.PlayerGamingHistoryFilterWrapper{margin-bottom:20px;gap:20px;width:100%}.PlayerGamingItemCountContainer{margin-left:auto}.PlayerGamingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:10px 0}.PlayerGamingHistoryContainer table{border:0}.PlayerGamingHistoryContainer table tr{border:0;background:var(--emfe-w-color-white, #FFFFFF)}.PlayerGamingHistoryContainer table tr:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead tr{border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead th{font-size:14px;font-weight:400}.PlayerGamingHistoryItemCount{padding:8px;border-radius:5px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);-webkit-appearance:none;-moz-appearance:none;appearance:none;width:60px;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center;cursor:pointer}.PlayerGamingHistoryItemCount:focus,.PlayerGamingHistoryItemCount :focus-within,.PlayerGamingHistoryItemCount :focus-visible,.PlayerGamingHistoryItemCount :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;gap:8px;cursor:pointer}.PlayerPaginationControls.PlayerPaginationControlsDisabled{color:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerPaginationControlsArea{margin-top:30px;display:flex;justify-content:center}.PlayerGamingHistoryFilterWrapper span{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:300;font-size:14px}.PlayerGamingHistoryFilterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:0;width:120px;height:40px;font-size:15px;text-transform:uppercase;padding:10px;cursor:pointer}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper{align-items:flex-start;gap:10px;flex-direction:column}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateContainer{gap:0;flex-direction:row;width:100%;justify-content:space-between}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper{display:block;gap:0;align-items:end;width:48%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper span{display:block;margin-bottom:5px}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingHistoryFilterButton{padding:15px 20px;width:100%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryTitle{font-size:16px;font-weight:400}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea{justify-content:center;gap:30px}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControls{align-items:center}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControlsText{font-size:16px}.PlayerGamingHistoryWrapperMobile .VaadinDatePicker{width:100%}table{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:fixed}table tr{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}table th,table td{padding:10px;text-align:center}table th:first-child,table td:first-child{padding-left:20px}table th:first-child span,table td:first-child span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}table th:last-child,table td:last-child{padding-right:20px}table th{font-size:0.85em;letter-spacing:0.1em;text-align:left}table tr td{font-size:12px;font-weight:300;text-align:left}@media screen and (max-width: 1024px){.PlayerGamingHistoryWrapper{padding:20px}.PlayerGamingHistoryContainer{box-shadow:none;padding:0}table{border:0}tbody{background:var(--emfe-w-color-gray-50, #F9F8F8)}table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}table tr{border-bottom:3px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);padding:10px}table tr:not(:last-child){margin-bottom:0.625em}table tr th,table tr td{border:0;border-radius:5px}table tr th:nth-child(even),table tr td:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}table th:first-child,table td:first-child{padding-left:10px}table th:last-child,table td:last-child{padding-right:10px}table td{border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:0.8em;text-align:right;display:flex}table th:first-child span,table td:first-child span{width:50%;text-align:right}table td::before{content:attr(data-label);float:left;font-weight:bold;text-transform:uppercase;flex:1}table td:last-child{border-bottom:0}}.DataLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.DataLoader:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},mm,hm,i,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl","gmversion"]}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[22]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}get gmversion(){return this.$$.ctx[28]}set gmversion(e){this.$$set({gmversion:e}),p()}});const gm={en:{title:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{title:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{title:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"}};function ym(i){let r,n,o,a,s,l,c,t,u,d,p;return{c(){r=di("div"),n=di("div"),o=di("div"),(a=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',s=mi(),l=di("slot"),gi(a,"class","ModalCloseBtn"),gi(a,"role","button"),gi(o,"class","LoginModalContainer"),gi(o,"part","LoginModalContainer"),gi(n,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),i[8](n),i[9](r),u=!0,d||(p=fi(a,"click",i[5]),d=!0)},p(e,t){i=e,(!u||16&t&&c!==(c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":"")))&&gi(n,"class",c)},i(e){u||(bi(()=>{u&&(t=t||te(n,Ru,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||te(n,Ru,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(r),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function vm(e){let i,r,n="true"==e[0]&&ym(e);return{c(){n&&n.c(),i=I(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){"true"==e[0]?n?(n.p(e,t),1&t&&J(n,1)):((n=ym(e)).c(),J(n,1),n.m(i.parentNode,i)):n&&(X(),Q(n,1,1,()=>{n=null}),K())},i(e){r||(J(n),r=!0)},o(e){Q(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function wm(t,e,i){let r,n,{show:o="false"}=e,{duration:a="350"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,c=!1,u=window.navigator.userAgent;const d=e=>{if("OpenLoginRegisterModal"===e.data.type)switch(window.postMessage({type:"DisableScroll"},window.location.href),i(0,o="true"),e.data.transition){case"Register":window.postMessage({type:"ToRegister"},window.location.href);break;case"Login":window.postMessage({type:"ToLogin"},window.location.href);break;case"ForgotPassword":window.postMessage({type:"ToForgotPassword",key:e.data.key},window.location.href)}"UserSessionID"===e.data.type&&(window.postMessage({type:"EnableScroll"},window.location.href),i(0,o="false"))};return De(()=>(window.addEventListener("message",d,!1),i(4,c=dn(u)),()=>{window.removeEventListener("message",d)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(6,s=e.clientstyling),"clientstylingurl"in e&&i(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),132&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,n,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){Ae[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){Ae[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function bm(e){let i,r;return{c(){i=di("general-player-login-register-modal"),le(r=di("om-betting-history-details"),"item-layout","V2"),le(r,"cashoutserver","V2"),le(r,"matchscorelayout","V2"),le(r,"matchscorescope","BHDetailed"),le(r,"tournament-route",":sportId/:tournamentId"),le(r,"match-route",":sportId/:tournamentId/:matchId"),le(r,"betid",e[1]),le(i,"show",e[5]),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3])},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t&&le(r,"betid",e[1]),32&t&&le(i,"show",e[5]),4&t&&le(i,"clientstyling",e[2]),8&t&&le(i,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}function _m(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_=i[6]("bettingHistory.title")+"",x=i[6]("bettingHistory.openBets")+"",C=i[6]("bettingHistory.settledBets")+"",P=i[7]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),T="true"===i[5]&&i[1]&&bm(i);return{c(){r=di("div"),P&&P.c(),n=mi(),o=di("h2"),a=hi(_),s=mi(),l=di("div"),c=di("button"),u=hi(x),d=mi(),p=di("button"),h=hi(C),m=mi(),f=di("om-betting-history-list"),g=mi(),T&&T.c(),y=mi(),v=di("div"),this.c=se,gi(o,"class","BettingHistoryTitle "+(i[7]?"BettingHistoryTitleNone":"")),gi(o,"part","`BettingHistoryTitleMobile"),gi(c,"class","BettingHistoryButton "+(i[7]?"BettingHistoryButtonMobile":"")),M(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),M(p,"BettingHistoryButtonSelected","settledBets"===i[0]),M(p,"mobile",i[7]),gi(l,"class","BettingHistoryTabs"),le(f,"bet-status",i[0]),le(f,"item-layout","V2"),le(f,"match-score-layout","v2"),le(f,"match-score-scope","BHDetailed"),le(f,"date-format","dd.mm.yyyy"),le(f,"time-format","HH:MM"),le(f,"tournament-route",":sportId/:tournamentId"),le(f,"match-route",":betId"),gi(v,"class","OM-MatchScore OM-MatchScore__List"),gi(r,"class","BettingHistoryWrapper"),M(r,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,r,t),P&&P.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(r,m),si(r,f),si(r,g),T&&T.m(r,null),si(r,y),si(r,v),i[16](r),w||(b=[fi(c,"click",i[14]),fi(p,"click",i[15]),fi(f,"routeChange",i[10])],w=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&yi(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&yi(u,x),1&t&&M(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&M(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?T?T.p(e,t):((T=bm(e)).c(),T.m(r,y)):T&&(T.d(1),T=null)},i:se,o:se,d(e){e&&ci(r),P&&P.d(),T&&T.d(),i[16](null),w=!1,ai(b)}}}function xm(t,e,i){let r;Ee(t,Me,e=>i(6,r=e));let n,{betstatus:o="openBets"}=e,{lang:a="en"}=e,{selectedBetId:s=null}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,d="false",p=window.navigator.userAgent,h="PC"!==$e(p);Object.entries(gm).forEach(([e,t])=>{fm(e,t)});const m=e=>{i(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&i(5,d="false")};return De(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&i(0,o=e.betstatus),"lang"in e&&i(11,a=e.lang),"selectedBetId"in e&&i(1,s=e.selectedBetId),"clientstyling"in e&&i(2,l=e.clientstyling),"clientstylingurl"in e&&i(3,c=e.clientstylingurl),"translationurl"in e&&i(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,Le.set(e)),20&t.$$.dirty&&l&&n&&((e=document.createElement("style")).innerHTML=l,n.appendChild(e)),24&t.$$.dirty&&c&&n){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,n,d,r,h,m,f,e=>{e=e.detail.params.betId;i(1,s=e),i(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){Ae[e?"unshift":"push"](()=>{n=e,i(4,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LoginModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.LoginModalWindow .LoginModalContainer{width:90%;max-width:992px;height:auto;min-height:650px;padding:30px 60px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-registration-color-modal-bg, var(--emfe-w-color-white, #FFFFFF))}.LoginModalWindow .ModalCloseBtn{position:absolute;top:15px;right:15px;width:24px;height:24px;border-radius:100%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.LoginModalWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.LoginModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.LoginModalMobileWindow{width:100%;display:block}.LoginModalMobileWindow .LoginModalContainer{width:100%;height:100%;padding:0;border-top:0;border-radius:0}.LoginModalMobileWindow .LoginModalContainer .ModalCloseBtn{top:10px;right:10px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},wm,vm,i,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}}),customElements.get("player-account-betting-history")||customElements.define("player-account-betting-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@import \'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css\';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #fff);border:2px solid var(--emfe-w-color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emfe-w-color-white, #fff);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},xm,_m,i,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["betstatus","lang","selectedBetId","clientstyling","clientstylingurl","translationurl"]}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Cm={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"}},ce={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function Pm(e,t){B(e,t)}const Tm={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",newPeriodLimit:"New monthly limit",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",setLimit:"SET LIMIT",loss:"Loss Limit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",deposit:"Deposit Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",popupUpdateLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",popupRemoveLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",notFoundException:"Limit does not exist",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",okButton:"OK"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Der eingegebene Wert muss kleiner sein als. {minValue} {currency}.",invalidInputMessageLimitMax:"Der eingegebene Wert muss höher sein als {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},hr:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:"minutes",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrijednost koju ste unijeli mora biti manja odn {minValue} {currency}.",invalidInputMessageLimitMax:"Vrijednost koju ste unijeli mora biti veća od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},sl:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:"minutes",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",popup3:"Thank you! \n We have transmitted your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrednost, ki jo vnesete, mora biti manjša od {minValue} {currency}.",invalidInputMessageLimitMax:"Vrednost, ki jo vnesete, mora biti višja od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},pl:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:"",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:"minutes",setLimit:"USTAW LIMIT",loss:"Limit Strat",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Wprowadzona wartość musi być niższa niż {minValue} {currency}.",invalidInputMessageLimitMax:"Wprowadzona wartość musi być wyższa niż {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},fr:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",newPeriodLimit:"New monthly limit",per:"par",updateText:"sera appliqué sur",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."},ro:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",newPeriodLimit:"New monthly limit",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!",okButton:"OK",invalidInputMessageLimitMin:"Valoarea introdusa trebuie sa fie mai mica decat {minValue} {currency}.",invalidInputMessageLimitMax:"Valoarea introdusa trebuie sa fie mai mare decat {maxValue} {currency}."},es:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",newPeriodLimit:"New monthly limit",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",setLimit:"Fijar límite",loss:"Límite de pérdida",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimitMin:"El valor ingresado debe ser menor que {minValue} {currency}.",invalidInputMessageLimitMax:"El valor ingresado debe ser mayor que {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado",okButton:"OK"},pt:{loadingText:"Carregando, por favor espere...",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."}},Em=u["document"];function Am(e,t,i){e=e.slice();return e[101]=t[i],e}function Lm(e,t,i){e=e.slice();return e[104]=t[i],e[106]=i,e}function Mm(e,t,i){e=e.slice();return e[104]=t[i],e}function $m(e,t,i){e=e.slice();return e[109]=t[i],e}function Dm(e){let i,r;function n(e){return e[18]?Sm:km}let o=n(e),a=o(e);return{c(){i=di("div"),r=di("div"),a.c(),gi(r,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,r),a.m(r,null)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},d(e){e&&ci(i),a.d()}}}function Sm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[22]("popupTitle")+"";function b(e){return e[16]?Nm:2==e[20]?Im:Bm}let _=b(i),x=_(i);function C(e){return e[16]?Rm:2==e[20]?Om:Fm}let P=C(i),T=P(i);function E(e){return 2==e[20]?zm:Hm}let A=E(i),L=A(i);return{c(){r=di("div"),n=di("span"),o=hi(w),a=mi(),(s=di("button")).textContent="X",l=mi(),c=di("div"),u=di("div"),x.c(),d=mi(),T.c(),p=mi(),h=di("p"),m=hi(i[19]),f=mi(),L.c(),g=I(),gi(n,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(r,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s),li(e,l,t),li(e,c,t),si(c,u),x.m(u,null),si(u,d),T.m(u,null),si(c,p),si(c,h),si(h,m),li(e,f,t),L.m(e,t),li(e,g,t),y||(v=fi(s,"click",i[31]),y=!0)},p(e,t){4194304&t[0]&&w!==(w=e[22]("popupTitle")+"")&&yi(o,w),_!==(_=b(e))&&(x.d(1),x=_(e))&&(x.c(),x.m(u,d)),P===(P=C(e))&&T?T.p(e,t):(T.d(1),(T=P(e))&&(T.c(),T.m(u,null))),524288&t[0]&&yi(m,e[19]),A===(A=E(e))&&L?L.p(e,t):(L.d(1),(L=A(e))&&(L.c(),L.m(g.parentNode,g)))},d(e){e&&ci(r),e&&ci(l),e&&ci(c),x.d(),T.d(),e&&ci(f),L.d(e),e&&ci(g),y=!1,v()}}}function km(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Bm(e){let i,r,n,o,a,s;return{c(){i=pi("svg"),r=pi("defs"),n=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(n,"type","text/css"),gi(s,"class","fil0"),gi(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"xml:space","preserve"),gi(i,"version","1.1"),L(i,"shape-rendering","geometricPrecision"),L(i,"text-rendering","geometricPrecision"),L(i,"image-rendering","optimizeQuality"),gi(i,"viewBox","0 0 90 69"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"fill-rule","evenodd"),gi(i,"clip-rule","evenodd")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function Im(e){let i,r,n;return{c(){i=pi("svg"),r=pi("g"),gi(n=pi("path"),"id","XMLID_6_"),gi(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),gi(r,"id","XMLID_1_"),gi(i,"version","1.1"),gi(i,"id","Layer_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 512 512"),L(i,"enable-background","new 0 0 512 512"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n)},d(e){e&&ci(i)}}}function Nm(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b;return{c(){i=pi("svg"),r=pi("g"),n=pi("path"),o=pi("path"),a=pi("g"),s=pi("g"),l=pi("g"),c=pi("g"),u=pi("g"),d=pi("g"),p=pi("g"),h=pi("g"),m=pi("g"),f=pi("g"),g=pi("g"),y=pi("g"),v=pi("g"),w=pi("g"),b=pi("g"),gi(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),gi(o,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),gi(i,"version","1.1"),gi(i,"id","Capa_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 52 52"),L(i,"enable-background","new 0 0 52 52"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,o),si(i,a),si(i,s),si(i,l),si(i,c),si(i,u),si(i,d),si(i,p),si(i,h),si(i,m),si(i,f),si(i,g),si(i,y),si(i,v),si(i,w),si(i,b)},d(e){e&&ci(i)}}}function Fm(e){let i,r,n=e[22]("popupSuccess")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupSuccess")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Om(e){let i,r,n=e[22]("docsRequired")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("docsRequired")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Rm(e){let i,r,n=e[22]("popupError")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Hm(i){let r,n,o,a,s=i[22]("okButton")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","ConfirmButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function zm(i){let r,n,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){r=di("button"),n=hi(u),o=mi(),a=di("button"),s=hi(d),gi(r,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,r,t),si(r,n),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(r,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(n,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function Wm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,e=i[13]?""+i[22]("amount"):""+i[22]("newPeriodLimit"),_=i[22]("setLimit")+"",x=i[4],C=[];for(let e=0;e<x.length;e+=1)C[e]=ef(Mm(i,x,e));let P=i[12]&&tf(i),T=i[13]&&nf(i),E=i[21]&&af(i);return{c(){r=di("div"),n=di("div"),o=di("div");for(let e=0;e<C.length;e+=1)C[e].c();a=mi(),s=di("form"),P&&P.c(),l=mi(),T&&T.c(),c=mi(),u=di("label"),d=di("span"),p=hi(e),h=mi(),m=di("input"),f=mi(),E&&E.c(),g=mi(),y=di("button"),v=hi(_),gi(o,"class","LimitsList "+(i[23]?"Desktop":"")),gi(d,"class","LimitInputText"),gi(m,"type","number"),gi(m,"pattern","[0-9]*"),gi(u,"class","LimitAmountInputWrapper"),gi(y,"class","LimitSubmitButton"),gi(y,"type","button"),y.disabled=!0,gi(s,"class","LimitsInteractionArea "+(i[23]?"Desktop":"")),gi(n,"class","LimitsPageContainer"),gi(r,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(n,a),si(n,s),P&&P.m(s,null),si(s,l),T&&T.m(s,null),si(s,c),si(s,u),si(u,d),si(d,p),si(u,h),si(u,m),vi(m,i[8]),si(u,f),E&&E.m(u,null),si(s,g),si(s,y),si(y,v),i[51](y),w||(b=[fi(m,"input",i[50]),fi(m,"keydown",i[33]),fi(m,"keyup",i[27]),fi(y,"click",i[26]),fi(s,"submit",i[26])],w=!0)},p(t,i){if(1623195666&i[0]){let e;for(x=t[4],e=0;e<x.length;e+=1){var r=Mm(t,x,e);C[e]?C[e].p(r,i):(C[e]=ef(r),C[e].c(),C[e].m(o,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=x.length}t[12]?P?P.p(t,i):((P=tf(t)).c(),P.m(s,l)):P&&(P.d(1),P=null),t[13]?T?T.p(t,i):((T=nf(t)).c(),T.m(s,c)):T&&(T.d(1),T=null),4202496&i[0]&&e!==(e=t[13]?""+t[22]("amount"):""+t[22]("newPeriodLimit"))&&yi(p,e),256&i[0]&&de(m.value)!==t[8]&&vi(m,t[8]),t[21]?E?E.p(t,i):((E=af(t)).c(),E.m(u,null)):E&&(E.d(1),E=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(r),ui(C,e),P&&P.d(),T&&T.d(),E&&E.d(),i[51](null),w=!1,ai(b)}}}function jm(e){let i;return{c(){(i=di("p")).textContent="500 Server error"},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Um(e){return{c:se,m:se,p:se,d:se}}function Ym(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:se,d(e){e&&ci(i)}}}function Gm(e){let i,r,n,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function Vm(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function qm(t){let n,o=t[104].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=Qm($m(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[104].currentLimits,e=0;e<o.length;e+=1){var r=$m(t,o,e);a[e]?a[e].p(r,i):(a[e]=Qm(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Zm(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function Xm(e){let i,r,n=e[22]("removedLimitText")+" "+e[109].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=e[22]("removedLimitText")+" "+e[109].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function Km(e){let i,r,n=""+e[109].updateAmount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} ${e[22](""+e[109].period)} ${e[22]("updateText")} `+e[109].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=""+e[109].updateAmount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} ${e[22](""+e[109].period)} ${e[22]("updateText")} `+e[109].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function Jm(i){let r,n,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[109])}return{c(){r=di("button"),n=hi(s),gi(r,"class","RemoveLimitButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Qm(e){let i,r,n,o,a,s,l,c,u=""+e[109].amount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} `+e[22](""+e[109].period),d=!e[109].isModified&&-1<e[1].indexOf(e[104].value);function p(e,t){return(s=null==(s=16&t[0]?null:s)?!!(e[109].isModified&&0<+e[109].updateAmount.replaceAll(",","")):s)?Km:e[109].isModified?Xm:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&Jm(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(n,"class","CurrentLimit"),gi(r,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),m&&m.m(r,null),si(i,l),f&&f.m(i,null),si(i,c)},p(e,t){4194320&t[0]&&u!==(u=""+e[109].amount+e[109].currency+` ${"None"!==e[109].period||"cumulativeSession"!==e[109].value?" ":e[22]("per")} `+e[22](""+e[109].period))&&yi(o,u),h===(h=p(e,t))&&m?m.p(e,t):(m&&m.d(1),(m=h&&h(e))&&(m.c(),m.m(r,null))),(d=18&t[0]?!e[109].isModified&&-1<e[1].indexOf(e[104].value):d)?f?f.p(e,t):((f=Jm(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function ef(e){let i,r,n,o,a,s=e[30](e[104])+"";function l(e){return"lugas"===e[104].value?Zm:0<e[104].currentLimits.length?qm:"lugas"===e[104].value?Vm:Gm}let c=l(e),u=c(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),u.c(),a=mi(),gi(r,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[104])+"")&&yi(n,s),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(i,a)))},d(e){e&&ci(i),u.d()}}}function tf(i){let r,n,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=rf(Lm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&bi(()=>i[47].call(s)),gi(r,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[47]),fi(s,"change",i[48])],l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("limitType")+"")&&yi(o,e),1073741840&i[0]){let e;for(u=t[4],e=0;e<u.length;e+=1){const o=Lm(t,u,e);d[e]?d[e].p(o,i):(d[e]=rf(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}128&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function rf(e){let i,r,n=e[30](e[104])+"";return{c(){i=di("option"),r=hi(n),i.__value=e[106],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[30](e[104])+"")&&yi(r,n)},d(e){e&&ci(i)}}}function nf(i){let r,n,o,a,s,l,c,e=i[22]("period")+"",u=i[3][i[5]].periods,d=[];for(let e=0;e<u.length;e+=1)d[e]=of(Am(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&bi(()=>i[49].call(s)),gi(r,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[6],!0),l||(c=fi(s,"change",i[49]),l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("period")+"")&&yi(o,e),4194344&i[0]){let e;for(u=t[3][t[5]].periods,e=0;e<u.length;e+=1){const o=Am(t,u,e);d[e]?d[e].p(o,i):(d[e]=of(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}104&i[0]&&wi(s,t[6])},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function of(e){let i,r,n,o=e[22](e[101])+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[101],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[101])+"")&&yi(r,o),40&t[0]&&n!==(n=e[101])&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function af(e){let i,r,n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}});return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4197633&t[0]&&n!==(n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}}))&&yi(r,n)},d(e){e&&ci(i)}}}function sf(i){let r,n,o,a,s=i[17]&&Dm(i);function l(e){return e[14]&&!e[17]?Ym:e[14]?Um:e[15]?jm:Wm}let c=l(i),u=c(i);return{c(){r=di("meta"),n=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=se,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1")},m(e,t){si(Em.head,r),li(e,n,t),li(e,o,t),s&&s.m(o,null),si(o,a),u.m(o,null),i[52](o)},p(e,t){e[17]?s?s.p(e,t):((s=Dm(e)).c(),s.m(o,a)):s&&(s.d(1),s=null),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(o,null)))},i:se,o:se,d(e){ci(r),e&&ci(n),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function lf(s,e,l){let c;Ee(s,Me,e=>l(22,c=e));let u,a,t,d,O,{lang:p="en"}=e,{currency:h=""}=e,{limits:r=""}=e,{session:m=""}=e,{userid:f=""}=e,{endpoint:g=""}=e,{apiversion:y=""}=e,{customcurrencysymbols:v=""}=e,{deletelimit:o=""}=e,{amountsconfig:w=""}=e,{periodsconfig:R=""}=e,{clientstyling:H=""}=e,{clientstylingurl:z=""}=e,{translationurl:W=""}=e,j=window.navigator.userAgent,U=!dn(j),b=[],_="",x="",C="",P=0,T="",E="",Y="",A={},G=!1,V=!1,L=!0,M=!1,q=!1,$=!1,D=!1,S="",k=[],i=!1,Z={},B={EUR:"€",RON:" lei",USD:"$"};const X={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},K=(Object.keys(Tm).forEach(e=>{Pm(e,Tm[e])}),()=>{l(5,_=b[P].value),l(6,x=ce[_].periods[0]),l(13,V=1<ce[_].periods.length)}),J=()=>{C=b[P].product},I=e=>{if(!(300<=e.status))return l(16,q=!1),e.json();{let r;throw l(15,M=!0),e.json().then(e=>{for(const t in X)for(const i of X[t])JSON.stringify(e).includes(i)&&(r=t);console.log("errType",r),r||n(e)}).finally(()=>{r&&n(r),l(15,M=!1),l(14,L=!1)}),new Error("An error occured during the fetch request")}},N=()=>{switch(y){case"gmcore":{l(14,L=!0);let e=new URL(`/v2/player/${f}/limits`,g),t={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then(e=>I(e)).then(e=>{k=e,$&&n(),Q(k),ee(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{l(14,L=!1)})}break;case"gm16":{l(14,L=!0),k=[];let e=new URL(`v1/player/${f}/limits/monetary`,g),t=new URL(`v1/player/${f}/limits/session`,g),i=!1,r={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then(e=>I(e)).then(e=>{k.push(e),$&&n(),"gmcore"===y&&Q(k),"gm16"===y&&te(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{i&&l(14,L=!1),i=!0}),fetch(t.href,r).then(e=>I(e)).then(e=>{k.push(e),$&&n(),"gm16"===y&&ie(k),"gm16"===y&&re(k),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,M=!0)}).finally(()=>{i&&l(14,L=!1),i=!0});return}}},Q=o=>{b.forEach(n=>{n.currentLimits=[];var e=Array.isArray(o[ce[n.value].callValue])?o[ce[n.value].callValue]:[o[ce[n.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,r=o[ce[n.value].callValue][t];n.currentLimits.push({}),n.currentLimits[t].limitType=n.value,n.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),n.currentLimits[t].currency=null!=(i=B[r.currency])?i:r.currency,n.currentLimits[t].period=r.period,n.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.updateAmount),n.currentLimits[t].isModified=r.isModified,n.currentLimits[t].expiryDate=new Date(r.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),n.currentLimits=F(n.currentLimits))})},ee=r=>{const n=c("minutes");b.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=r[ce[i.value].callValue])&&e.forEach((e,t)=>{t=r[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:n,isModified:t.isModified,period:"cumulativeSession"===i.value?t.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"})}),i.currentLimits=F(i.currentLimits)})},te=r=>{var e;null!=(e=r[0])&&e.limits&&b.forEach(e=>{var t;e.currentLimits=[];for(const i of r[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const r=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),currency:null!=(t=B[r.currency])?t:r.currency,isModified:0<r.schedules.length,period:r.period,product:r.products[0],updateAmount:0<r.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.schedules[0].updateAmount):"",expiryDate:0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:r.id})}e.currentLimits=F(e.currentLimits)})},ie=t=>{var e;null!=(e=t[1])&&e.sessionLimit&&b.filter(e=>"sessionLimit"===e.value).forEach(e=>{e.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.minutes),currency:c("minutes"),isModified:t[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.updateMinutes),expiryDate:t[1].sessionLimit.expiryDate}),e.currentLimits=F(e.currentLimits)})},re=i=>{var e;null!=(e=i[1])&&e.cumulativeSessionLimits&&b.filter(e=>"cumulativeSession"===e.value).forEach(e=>{for(const t of i[1].cumulativeSessionLimits)e.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:c("minutes"),isModified:t.isModified,period:t.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:t.expiryDate});e.currentLimits=F(e.currentLimits)})},F=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},ne=()=>{l(21,i=!1),null!=A&&A[_]?(l(10,T=A[_].min),l(11,E=A[_].max)):(l(10,T=1),l(11,E=9999999))},n=e=>{var t,i;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),M)l(16,q=!0),e&&!e.thirdPartyResponse&&l(19,S=c(""+e)),e&&e.thirdPartyResponse&&l(19,S=e.thirdPartyResponse.message),e&&null!=e&&e.error.includes("Limit update is not permitted due to LimitUpdateControl")&&l(19,S=c("popupUpdateLimitException")),e&&null!=e&&e.error.includes("Limit remove is not permitted due to LimitUpdateControl")&&l(19,S=c("popupRemoveLimitException")),e&&null!=e&&e.error.includes("[NotFoundException] Limit does not exist")&&l(19,S=c("notFoundException")),l(18,D=!0);else switch(y){case"gmcore":"sessionLimit"===_||"cumulativeSession"===_?k&&(t=k[ce[_].callValue].filter(e=>(e.period===x||"None"===x)&&e.products[0]===C)[0],i=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),i=c("popupImmediateUpdate").replace("{selectedLimit}",c(""+_)).replace("{updatedAmount}",i).replace("{currency}",c("minutes")).replace("{selectedPeriod}",c(""+x)),l(19,S=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)):k&&(t=k[ce[_].callValue].filter(e=>e.period===x&&e.products[0]===C)[0],i=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.amount),i=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",i).replace("{currency}",B[t.currency]||t.currency).replace("{selectedPeriod}",c(""+x)),l(19,S=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)),l(18,D=!0);break;case"gm16":if("lugas"===_)2==d&&l(19,S=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(O)+` ${h} `+c("popup2_b")),3==d&&l(19,S=c("popup3")),l(18,D=!0);else if("sessionLimit"===_||"cumulativeSession"===_)l(19,S=c("sessionLimitUpdated")),l(18,D=!0);else{var r,n=(null==(r=k[0])?void 0:r.limits)||k.limits;if(k){const r=n.filter(e=>e.type===ce[_].callValue16&&(e.period===x||"None"===e.period)&&e.products[0]===C)[0],o=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),a=0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";n=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",o).replace("{currency}",B[r.currency]||r.currency).replace("{selectedPeriod}",c(""+x));l(19,S=0<r.schedules.length?c("popupPendingUpdate")+" "+a:n)}l(18,D=!0)}break;default:throw new Error("Invalid apiversion attribute: "+y)}},oe=e=>{switch(y){case"gmcore":t=e,l(5,_=t.limitType),l(6,x=t.period),l(17,$=!0),l(14,L=!0),i=new URL(`v2/player/${f}/limits/`+{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[t.limitType],g),"sessionLimit"!==t.limitType&&i.searchParams.append("periods",t.period),t={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}},fetch(i.href,t).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)});break;case"gm16":("sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?e=>{const t=new URL(`/v1/player/${f}/limits/session/session`,g),i=new URL(`/v1/player/${f}/limits/session/cumulativeSession?periods=${e.period}`,g);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}l(17,$=!0),l(14,L=!0);let n={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,n).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})}:e=>{const t=new URL(`/v1/player/${f}/limits/monetary/${e.id}`,g);l(17,$=!0),l(14,L=!0);let i={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})})(e)}var t,i},ae=e=>{return c(e?e.value+e.product:_)},se=()=>{l(18,D=l(17,$=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href)};return s.$$set=e=>{"lang"in e&&l(34,p=e.lang),"currency"in e&&l(0,h=e.currency),"limits"in e&&l(35,r=e.limits),"session"in e&&l(36,m=e.session),"userid"in e&&l(37,f=e.userid),"endpoint"in e&&l(38,g=e.endpoint),"apiversion"in e&&l(39,y=e.apiversion),"customcurrencysymbols"in e&&l(40,v=e.customcurrencysymbols),"deletelimit"in e&&l(1,o=e.deletelimit),"amountsconfig"in e&&l(41,w=e.amountsconfig),"periodsconfig"in e&&l(42,R=e.periodsconfig),"clientstyling"in e&&l(43,H=e.clientstyling),"clientstylingurl"in e&&l(44,z=e.clientstylingurl),"translationurl"in e&&l(45,W=e.translationurl)},s.$$.update=()=>{if(512&s.$$.dirty[1]&&v&&v){let t={};v.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),B=Object.assign(Object.assign({},B),t)}if(3072&s.$$.dirty[1]&&R&&w){[...w.matchAll(/\(([^)]+)\)/g)].flat().filter(e=>!e.includes("(")).forEach(e=>{ce[e]?b.push(Object.assign({},ce[e])):console.error("Unknown limit: "+e)});{var e,t;const o=w.split(",").map(e=>e.split(":")),a=R.split(",").map(e=>e.split(":"));for([e,t]of o.entries())if(t[0]!==a[e][0])throw new Error(`Limit config mismatch: "${t[0]}" does not match "${a[e][0]}"`);var i=o.reduce((e,t,i)=>{var r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:a[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:ce[r].callValue,callValue16:ce[r].callValue16,title:ce[r].title};return e.push(t),e},[]);for(let e=0;e<i.length;e++)l(4,b[e].product=i[e].product,b),l(4,b[e].min=parseInt(i[e].minMax.split("-")[0],10),b),l(4,b[e].max=parseInt(i[e].minMax.split("-")[1],10),b),l(3,ce[i[e].value].periods=i[e].periods,ce);Y=null==(n=b[0])?void 0:n.value,b.forEach(e=>{A[e.value]={min:e.min,max:e.max},Z[e.value]=e.product}),A&&(A[Y]?(l(10,T=A[Y].min),l(11,E=A[Y].max)):(l(10,T=1),l(11,E=9999999)))}l(5,_=b[0].value),l(6,x=ce[_].periods[0]),C=b[0].product,l(12,G=1<b.length),l(13,V=1<ce[_].periods.length)}if(8&s.$$.dirty[1]&&p&&(n=p,Le.set(n)),488&s.$$.dirty[1]&&f&&m&&g&&y&&p&&N(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&z&&u){let e=new URL(z),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var r,n;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&H&&u&&((r=document.createElement("style")).innerHTML=H,u.appendChild(r)),16384&s.$$.dirty[1]&&W&&fetch(W).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Pm(e,t[e])})}).catch(e=>{console.log(e)})},[h,o,u,ce,b,_,x,P,a,t,T,E,G,V,L,M,q,$,D,S,d,i,c,U,K,J,()=>{switch(y){case"gmcore":if(0<a){l(17,$=!0),l(14,L=!0);let e=new URL(`v2/player/${f}/limits`,g),t={};"sessionLimit"===_?t={sessionLimit:a,sessionLimitUnit:"minute"}:t[ce[_].callValue]="cumulativeSession"===_?[{period:x,minutes:a}]:[{period:"None"===ce[_].periods[0]?null:x,amount:a,currency:h}];var i={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,i).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})}break;case"gm16":"lugas"===_?0<a&&(l(17,$=!0),l(14,L=!0),i=new URL(`v2/player/${f}/limit/lugas`,g),o={amount:a,roleLimitAmount:0,softMigration:!1,keepLimit:!1},o={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)},fetch(i.href,o).then(e=>I(e)).then(e=>{l(20,d=e.popup),e.operatorDepositLimitAmount,O=e.regulatorDepositLimitAmount,N()}).catch(e=>{console.log(e),l(15,M=!0)})):"sessionLimit"===_?0<a&&(l(17,$=!0),l(14,L=!0),o=new URL(`v1/player/${f}/limits/session/`,g),n={sessionLimit:a,sessionLimitUnit:"minute"},n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(o.href,n).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})):"cumulativeSession"===_?0<a&&(l(17,$=!0),l(14,L=!0),n=new URL(`v1/player/${f}/limits/session/`,g),r={cumulativeSessionLimits:[{period:x,minutes:a}]},r={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(n.href,r).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)})):a<=0||(l(17,$=!0),l(14,L=!0),r=b[P].currentLimits.filter(e=>e.period===x)[0],e=new URL(`v1/player/${f}/limits/monetary/`+(r?r.id:""),g),t=r?"PUT":"POST",r=r?{amount:a,skipCoolOff:!1}:{amount:a,currency:h,period:"None"===ce[_].periods[0]?null:x,type:ce[_].callValue16,products:[null!=C?C:"All"],walletTypes:["All"]},t={method:t,headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(e.href,t).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,M=!0)}));break;default:throw Error("Invalid apiversion attribute: "+y)}var e,t,r,n,o},()=>{var e=a-Math.floor(a)==0;a>=T&&a<=E&&e?(l(21,i=!1),t.removeAttribute("disabled")):(l(21,i=!0),t.setAttribute("disabled","true"))},ne,oe,ae,se,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),se()},e=>{13===e.keyCode&&i&&e.preventDefault()},p,r,m,f,g,y,v,w,R,H,z,W,e=>oe(e),function(){P=pe(this),l(7,P)},()=>{J(),K(),ne()},function(){x=pe(this),l(6,x),l(3,ce),l(5,_)},function(){a=de(this.value),l(8,a)},function(e){Ae[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){Ae[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function cf(e,t){B(e,t)}customElements.get("player-account-gaming-limits-page-2-gm16")||customElements.define("player-account-gaming-limits-page-2-gm16",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}input:focus{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid var(--emfe-w-color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emfe-w-color-black, #000000)}.PendingLimit{color:var(--emfe-w-color-black, #000000)}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:11}.PopupContainer{background:var(--emfe-w-color-white, #FFFFFF);font-size:1.3rem;color:var(--emfe-w-color-black, #000000);width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},lf,sf,i,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,customcurrencysymbols:40,deletelimit:1,amountsconfig:41,periodsconfig:42,clientstyling:43,clientstylingurl:44,translationurl:45},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","customcurrencysymbols","deletelimit","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),p()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),p()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),p()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),p()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),p()}get customcurrencysymbols(){return this.$$.ctx[40]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get deletelimit(){return this.$$.ctx[1]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get amountsconfig(){return this.$$.ctx[41]}set amountsconfig(e){this.$$set({amountsconfig:e}),p()}get periodsconfig(){return this.$$.ctx[42]}set periodsconfig(e){this.$$set({periodsconfig:e}),p()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),p()}});const uf={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function df(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function pf(i){let r,n,o,a,s,l,c,u,d,p,h,m,e=i[9]("expandLimits")+"",f=i[7],g=[];for(let e=0;e<f.length;e+=1)g[e]=yf(df(i,f,e));return{c(){r=di("div"),n=di("div"),o=di("button"),a=hi(e),s=mi(),l=pi("svg"),c=pi("path"),u=pi("path"),d=mi(),p=di("div");for(let e=0;e<g.length;e+=1)g[e].c();gi(c,"d","M10.5 15l7.5 7.5 7.5-7.5z"),gi(u,"d","M0 0h36v36h-36z"),gi(u,"fill","none"),gi(l,"class","ExpandArrow"),gi(l,"xmlns","http://www.w3.org/2000/svg"),gi(l,"width","36"),gi(l,"height","36"),gi(l,"viewBox","0 0 36 36"),gi(l,"fill","#999"),M(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),M(p,"hidden",i[5]),gi(n,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(r,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(n,d),si(n,p);for(let e=0;e<g.length;e+=1)g[e]&&g[e].m(p,null);h||(m=fi(o,"click",i[11]),h=!0)},p(t,i){if(512&i[0]&&e!==(e=t[9]("expandLimits")+"")&&yi(a,e),256&i[0]&&M(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var r=df(t,f,e);g[e]?g[e].p(r,i):(g[e]=yf(r),g[e].c(),g[e].m(p,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}32&i[0]&&M(p,"hidden",t[5])},d(e){e&&ci(r),ui(g,e),h=!1,m()}}}function hf(e){return{c:se,m:se,p:se,d:se}}function mf(e){let i,r,n=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ff(e){let i,r,n,o,a,s,l,c,u,d,p,h,m=e[36].type+"",f=e[36].amount+"",g=e[36].currency+"",y=e[36].period+"",v=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(m),a=di("span"),s=hi(f),l=mi(),c=hi(g),u=mi(),d=hi(y),p=di("span"),h=hi(v),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(a,l),si(a,c),si(a,u),si(a,d),si(i,p),si(p,h)},p(e,t){128&t[0]&&m!==(m=e[36].type+"")&&yi(o,m),128&t[0]&&f!==(f=e[36].amount+"")&&yi(s,f),128&t[0]&&g!==(g=e[36].currency+"")&&yi(c,g),128&t[0]&&y!==(y=e[36].period+"")&&yi(d,y),128&t[0]&&v!==(v=e[36].date+"")&&yi(h,v)},d(e){e&&ci(i)}}}function gf(e){let i,r,n,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(i,l),si(l,c)},p(e,t){128&t[0]&&u!==(u=e[36].type+"")&&yi(o,u),512&t[0]&&d!==(d=e[9]("limitRemoved")+"")&&yi(s,d),128&t[0]&&p!==(p=e[36].date+"")&&yi(c,p)},d(e){e&&ci(i)}}}function yf(i){let r,n,o,a=i[38];function s(e){return e[36].removed?gf:ff}let l=s(i),c=l(i);const u=()=>i[20](r,a),d=()=>i[20](null,a);return{c(){r=di("div"),c.c(),n=mi(),gi(r,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,r,t),c.m(r,null),si(r,n),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(r,n))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(r,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(r),c.d(),d()}}}function vf(i){let r;function n(e){return e[6]?mf:e[4]?hf:pf}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=se},m(e,t){li(e,r,t),a.m(r,null),i[21](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:se,o:se,d(e){e&&ci(r),a.d(),i[21](null)}}}function wf(i,e,r){let n;Ee(i,Me,e=>r(9,n=e));let o,t=window.navigator.userAgent,a=!dn(t),{lang:s=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:u=""}=e,{apiversion:d=""}=e,{numberofentries:p="10"}=e,{customcurrencysymbols:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,y=new Array,v=parseInt(p,10),w=!1,b=!0,_=[],x=[],C=!0,P=!1,T={EUR:"€",RON:"lei"};Object.keys(uf).forEach(e=>{cf(e,uf[e])});let E=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&r(7,x=_.slice(0,v))})});return De(()=>()=>{E.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&r(0,s=e.lang),"userid"in e&&r(12,l=e.userid),"session"in e&&r(13,c=e.session),"endpoint"in e&&r(14,u=e.endpoint),"apiversion"in e&&r(15,d=e.apiversion),"numberofentries"in e&&r(1,p=e.numberofentries),"customcurrencysymbols"in e&&r(16,h=e.customcurrencysymbols),"clientstyling"in e&&r(17,m=e.clientstyling),"clientstylingurl"in e&&r(18,f=e.clientstylingurl),"translationurl"in e&&r(19,g=e.translationurl)},i.$$.update=()=>{if(65536&i.$$.dirty[0]&&h&&h){let t={};h.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),T=Object.assign(Object.assign({},T),t)}if(61440&i.$$.dirty[0]&&u&&l&&c&&d&&((e=new URL("gmcore"===d?`v2/player/${l}/transactions/limit`:`v1/player/${l}/limits/monetary/history`,u)).searchParams.append("startDate",""+new Date("2022").toISOString()),e.searchParams.append("endDate",""+new Date("2099").toISOString()),e.searchParams.append("limit","10000"),t={method:"GET",headers:{"X-SessionID":c}},fetch(e.href,t).then(e=>{if(300<=e.status)throw r(4,b=!1),r(6,w=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!uf[s];return e.map(e=>{var t={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return t.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),t.currency=i?T[e.limitCurrencyCode]:e.limitCurrencyCode,t.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),t.period=n(""+e.limitPeriod.toLowerCase()),t.type="gmcore"===d?n("historyLimitType"+e.limitType.split(" ")[0]):n("historyLimitType"+e.limitType.split(" ")[0])+" "+n("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),r(7,x=_.slice(0,v))),r(4,b=!1)},e=>{console.error("There was an error",e),r(6,w=!0)})),56&i.$$.dirty[0]&&y[0]&&!b&&!C&&E.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,Le.set(e)),262144&i.$$.dirty[0]&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}var e,t;131076&i.$$.dirty[0]&&m&&o&&((t=document.createElement("style")).innerHTML=m,o.appendChild(t)),524292&i.$$.dirty[0]&&g&&o&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{cf(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,b,C,w,x,P,n,a,()=>{r(5,C=!C),r(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){Ae[e?"unshift":"push"](()=>{y[t]=e,r(3,y)})},function(e){Ae[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.get("player-account-gaming-limits-history-2")||customElements.define("player-account-gaming-limits-history-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},wf,vf,i,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,clientstyling:17,clientstylingurl:18,translationurl:19},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),p()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),p()}});const bf=u["document"];function _f(e,t,i){e=e.slice();return e[39]=t[i],e[41]=i,e}function xf(e,t,i){e=e.slice();return e[42]=t[i],e[41]=i,e}function Cf(i){let r,n,o,a,s=1<i[21].length&&function(i){let n,o=i[21],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tf(xf(i,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","TabsContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null);i[30](n)},p(t,i){if(10551296&i[0]){let e;for(o=t[21],e=0;e<o.length;e+=1){var r=xf(t,o,e);a[e]?a[e].p(r,i):(a[e]=Tf(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e),i[30](null)}}}(i),l=i[21],c=[];for(let e=0;e<l.length;e+=1)c[e]=Ef(_f(i,l,e));let u="true"===i[6]&&Af(i);return{c(){s&&s.c(),r=mi(),n=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=I(),gi(n,"class","PlayerAccountGamingLmitsWrapper2")},m(e,t){s&&s.m(e,t),li(e,r,t),li(e,n,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(n,null);i[31](n),li(e,o,t),u&&u.m(e,t),li(e,a,t)},p(t,i){if(1<t[21].length&&s.p(t,i),794303&i[0]){let e;for(l=t[21],e=0;e<l.length;e+=1){const a=_f(t,l,e);c[e]?c[e].p(a,i):(c[e]=Ef(a),c[e].c(),c[e].m(n,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Af(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(r),e&&ci(n),ui(c,e),i[31](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function Pf(e){return{c:se,m:se,p:se,d:se}}function Tf(i){let r,n,o,a,s=(i[16][i[41]]??i[42])+"";function l(){return i[29](i[41])}return{c(){r=di("div"),n=hi(s),gi(r,"class","LimitsTab")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[41]]??i[42])+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function Ef(e){let i,r,n;return{c(){le(i=di("player-account-gaming-limits-page-2-gm16"),"class","hidden selected"),le(i,"lang",e[0]),le(i,"currency",e[4]),le(i,"amountsconfig",r=e[18][e[41]]),le(i,"periodsconfig",n=e[19][e[41]]),le(i,"userid",e[1]),le(i,"deletelimit",e[7]),le(i,"session",e[2]),le(i,"endpoint",e[3]),le(i,"apiversion",e[5]),le(i,"clientstyling",e[10]),le(i,"clientstylingurl",e[11]),le(i,"translationurl",e[12]),le(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&le(i,"lang",e[0]),16&t[0]&&le(i,"currency",e[4]),262144&t[0]&&r!==(r=e[18][e[41]])&&le(i,"amountsconfig",r),524288&t[0]&&n!==(n=e[19][e[41]])&&le(i,"periodsconfig",n),2&t[0]&&le(i,"userid",e[1]),128&t[0]&&le(i,"deletelimit",e[7]),4&t[0]&&le(i,"session",e[2]),8&t[0]&&le(i,"endpoint",e[3]),32&t[0]&&le(i,"apiversion",e[5]),1024&t[0]&&le(i,"clientstyling",e[10]),2048&t[0]&&le(i,"clientstylingurl",e[11]),4096&t[0]&&le(i,"translationurl",e[12]),512&t[0]&&le(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Af(e){let i;return{c(){le(i=di("player-account-gaming-limits-history-2"),"lang",e[0]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"endpoint",e[3]),le(i,"apiversion",e[5]),le(i,"numberofentries",e[8]),le(i,"clientstyling",e[10]),le(i,"clientstylingurl",e[11]),le(i,"translationurl",e[12]),le(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&le(i,"lang",e[0]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),8&t[0]&&le(i,"endpoint",e[3]),32&t[0]&&le(i,"apiversion",e[5]),256&t[0]&&le(i,"numberofentries",e[8]),1024&t[0]&&le(i,"clientstyling",e[10]),2048&t[0]&&le(i,"clientstylingurl",e[11]),4096&t[0]&&le(i,"translationurl",e[12]),512&t[0]&&le(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Lf(i){let r,n,o,a,s,l,c,u,d,p=i[20]("title")+"",h=i[22]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[20]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","GamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[28]),m=!0)},p(e,t){1048576&t[0]&&g!==(g=e[20]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function m(e){return e[13]?Pf:Cf}let f=m(i),g=f(i);return{c(){r=di("meta"),n=mi(),o=di("div"),a=di("div"),s=di("div"),h&&h.c(),l=mi(),c=di("h2"),u=hi(p),d=mi(),g.c(),this.c=se,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1"),gi(c,"class","GamingLimitsTitle "+(i[22]?"GamingLimitsTitleNone":"")),gi(s,"class","TitleSection"),gi(a,"class","GamingLimitsWrapper "+(i[22]?"GamingLimitsWrapperMobile":""))},m(e,t){si(bf.head,r),li(e,n,t),li(e,o,t),si(o,a),si(a,s),h&&h.m(s,null),si(s,l),si(s,c),si(c,u),si(a,d),g.m(a,null),i[32](o)},p(e,t){e[22]&&h.p(e,t),1048576&t[0]&&p!==(p=e[20]("title")+"")&&yi(u,p),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(a,null)))},i:se,o:se,d(e){ci(r),e&&ci(n),e&&ci(o),h&&h.d(),g.d(),i[32](null)}}}function Mf(i,e,r){let t,{lang:n=""}=(Ee(i,Me,e=>r(20,t=e)),e),{userid:o=""}=e,{session:a=""}=e,{endpoint:s=""}=e,{currency:l=""}=e,{apiversion:c=""}=e,{tablabels:u=""}=e,{historyenabled:d="true"}=e,{deletelimit:p=""}=e,{limitsamount:h=""}=e,{limitsperiods:m=""}=e,{numberofentries:f=""}=e,{customcurrencysymbols:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:w=""}=e;var b,_;({withLocale:b,translations:_}={withLocale:"en",translations:{}}),Le.subscribe(e=>{null==e&&($r.set(_),Le.set(b))});let x,C,P,T,E,A,L=!0,M=[],$=window.navigator.userAgent,D="PC"!==$e($);Object.keys(Cm).forEach(e=>{B(e,Cm[e])});const S=t=>{if(0<P.children.length)for(let e=0;e<P.children.length;e++)t===e?(P.children[e].classList.remove("hidden"),null!=T&&T.children[e].classList.add("selected")):(P.children[e].classList.add("hidden"),null!=T&&T.children[e].classList.remove("selected"))},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:D},window.location.href)};return De(()=>()=>{r(15,P=null),r(17,T=null)}),i.$$set=e=>{"lang"in e&&r(0,n=e.lang),"userid"in e&&r(1,o=e.userid),"session"in e&&r(2,a=e.session),"endpoint"in e&&r(3,s=e.endpoint),"currency"in e&&r(4,l=e.currency),"apiversion"in e&&r(5,c=e.apiversion),"tablabels"in e&&r(25,u=e.tablabels),"historyenabled"in e&&r(6,d=e.historyenabled),"deletelimit"in e&&r(7,p=e.deletelimit),"limitsamount"in e&&r(26,h=e.limitsamount),"limitsperiods"in e&&r(27,m=e.limitsperiods),"numberofentries"in e&&r(8,f=e.numberofentries),"customcurrencysymbols"in e&&r(9,g=e.customcurrencysymbols),"clientstyling"in e&&r(10,y=e.clientstyling),"clientstylingurl"in e&&r(11,v=e.clientstylingurl),"translationurl"in e&&r(12,w=e.translationurl)},i.$$.update=()=>{if(33554479&i.$$.dirty[0]&&o&&a&&s&&u&&n&&c){var e=h,t=m;if(r(18,E=e.replace(/\s/g,"").split("|")),r(19,A=t.replace(/\s/g,"").split("|")),0===E.length)throw new Error("Please provide a full limits configuration.");if(E.length!==A.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");h.split("|").forEach(e=>{M.includes(e)||M.push(e)}),r(16,C=u.split(",").map(e=>e.trim())),r(13,L=!1)}if(40960&i.$$.dirty[0]&&P&&!L&&S(0),18432&i.$$.dirty[0]&&v&&x){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{x.appendChild(t)},1)})}17408&i.$$.dirty[0]&&y&&x&&((e=document.createElement("style")).innerHTML=y,x.appendChild(e))},[n,o,a,s,l,c,d,p,f,g,y,v,w,L,x,P,C,T,E,A,t,M,D,S,k,u,h,m,()=>k(),e=>S(e),function(e){Ae[e?"unshift":"push"](()=>{T=e,r(17,T)})},function(e){Ae[e?"unshift":"push"](()=>{P=e,r(15,P)})},function(e){Ae[e?"unshift":"push"](()=>{x=e,r(14,x)})}]}customElements.get("player-account-gaming-limits-wrapper-2")||customElements.define("player-account-gaming-limits-wrapper-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B);justify-content:center;background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));margin:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Mf,Lf,i,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:25,historyenabled:6,deletelimit:7,limitsamount:26,limitsperiods:27,numberofentries:8,customcurrencysymbols:9,clientstyling:10,clientstylingurl:11,translationurl:12},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),p()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),p()}get tablabels(){return this.$$.ctx[25]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[7]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[26]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[27]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[8]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[9]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const $f=u["document"];function Df(e){let i,r,n,o,a,s,l;function c(e){return e[37]&&e[36]===e[43][0]?Jf:e[37]&&e[36]===e[43][1]?Kf:e[37]&&e[36]===e[43][2]?Xf:e[37]&&e[36]===e[43][3]?Zf:e[37]&&e[36]===e[43][4]?qf:e[37]&&e[36]==e[43][5]?Vf:e[37]&&e[36]===e[43][6]?Gf:e[37]&&e[36]===e[43][7]?Yf:e[37]&&e[36]===e[43][8]?Uf:e[37]&&e[36]===e[43][9]?jf:e[37]&&e[36]===e[43][10]?Wf:e[37]&&e[36]===e[43][11]?zf:e[37]&&e[36]===e[43][12]?Hf:e[37]&&e[36]===e[43][13]?Rf:e[37]&&e[36]===e[43][14]?Of:e[37]&&e[36]===e[43][15]?Ff:e[37]&&e[36]===e[43][16]?Nf:e[37]&&e[36]===e[43][17]?If:e[37]&&e[36]===e[43][18]?Bf:e[37]&&e[36]===e[43][19]?kf:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),le(r,"endpoint",e[3]),le(r,"session",e[2]),le(r,"playerid",e[1]),le(r,"lang",e[4]),le(r,"selecteditem",e[41]),le(r,"userroles",e[9]),le(r,"clientstyling",e[22]),le(r,"clientstylingurl",e[23]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[22]),le(l,"clientstylingurl",e[23])},m(e,t){li(e,i,t),si(i,r),li(e,n,t),li(e,o,t),d&&d.m(o,null),li(e,a,t),li(e,s,t),si(s,l)},p(e,t){8&t[0]&&le(r,"endpoint",e[3]),4&t[0]&&le(r,"session",e[2]),2&t[0]&&le(r,"playerid",e[1]),16&t[0]&&le(r,"lang",e[4]),1024&t[1]&&le(r,"selecteditem",e[41]),512&t[0]&&le(r,"userroles",e[9]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23]),u===(u=c(e))&&d?d.p(e,t):(d&&d.d(1),(d=u&&u(e))&&(d.c(),d.m(o,null))),1&t[0]&&le(l,"customnotif",e[0]),4194304&t[0]&&le(l,"clientstyling",e[22]),8388608&t[0]&&le(l,"clientstylingurl",e[23])},d(e){e&&ci(i),e&&ci(n),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function Sf(e){let i;function r(e){return e[37]?e[37]&&e[36]===e[43][0]?vg:e[37]&&e[36]===e[43][1]?yg:e[37]&&e[36]===e[43][2]?gg:e[37]&&e[36]===e[43][3]?fg:e[37]&&e[36]===e[43][4]?mg:e[37]&&e[36]===e[43][5]?hg:e[37]&&e[36]===e[43][6]?pg:e[37]&&e[36]===e[43][7]?dg:e[37]&&e[36]===e[43][8]?ug:e[37]&&e[36]===e[43][9]?cg:e[37]&&e[36]===e[43][10]?lg:e[37]&&e[36]===e[43][11]?sg:e[37]&&e[36]===e[43][12]?ag:e[37]&&e[36]===e[43][13]?og:e[37]&&e[36]===e[43][14]?ng:e[37]&&e[36]===e[43][15]?rg:e[37]&&e[36]===e[43][16]?ig:e[37]&&e[36]===e[43][17]?tg:e[37]&&e[36]===e[43][18]?eg:e[37]&&e[36]===e[43][19]?Qf:void 0:wg}let n=r(e),o=n&&n(e);return{c(){o&&o.c(),i=I()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=n&&n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function kf(e){let i;return{c(){le(i=di("user-transaction-history"),"endpoint",e[3]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"mobile",e[42]),le(i,"translation-url",e[24]),le(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),16777216&t[0]&&le(i,"translation-url",e[24]),16&t[0]&&le(i,"language",e[4])},d(e){e&&ci(i)}}}function Bf(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","withdraw"),le(i,"channel","Desktop"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function If(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","deposit"),le(i,"channel","Desktop"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function Nf(e){let i;return{c(){le(i=di("player-kyc-verification"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"user-id",e[1]),le(i,"language",e[4]),le(i,"kyc-title",e[19]),le(i,"description",e[20]),le(i,"translation-url",e[24]),le(i,"client-styling",e[22]),le(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"user-id",e[1]),16&t[0]&&le(i,"language",e[4]),524288&t[0]&&le(i,"kyc-title",e[19]),1048576&t[0]&&le(i,"description",e[20]),16777216&t[0]&&le(i,"translation-url",e[24]),4194304&t[0]&&le(i,"client-styling",e[22]),8388608&t[0]&&le(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function Ff(e){let i;return{c(){le(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"tablabels",e[11]),le(i,"lang",e[4]),le(i,"historyenabled",e[12]),le(i,"deletelimit",e[13]),le(i,"limitsamount",e[14]),le(i,"limitsperiods",e[15]),le(i,"numberofentries",e[16]),le(i,"customcurrencysymbols",e[17]),le(i,"currency",e[18]),le(i,"apiversion",e[21]),le(i,"translationurl",e[24]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),2048&t[0]&&le(i,"tablabels",e[11]),16&t[0]&&le(i,"lang",e[4]),4096&t[0]&&le(i,"historyenabled",e[12]),8192&t[0]&&le(i,"deletelimit",e[13]),16384&t[0]&&le(i,"limitsamount",e[14]),32768&t[0]&&le(i,"limitsperiods",e[15]),65536&t[0]&&le(i,"numberofentries",e[16]),131072&t[0]&&le(i,"customcurrencysymbols",e[17]),262144&t[0]&&le(i,"currency",e[18]),2097152&t[0]&&le(i,"apiversion",e[21]),16777216&t[0]&&le(i,"translationurl",e[24]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Of(e){let i;return{c(){le(i=di("player-account-betting-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Rf(e){let i;return{c(){le(i=di("player-transaction-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Hf(e){let i;return{c(){le(i=di("player-pending-withdrawals"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function zf(e){let i;return{c(){le(i=di("player-withdrawal"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function Wf(e){let i;return{c(){le(i=di("player-deposit"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function jf(e){let i;return{c(){le(i=di("player-gaming-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),67108864&t[0]&&le(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function Uf(e){let i;return{c(){le(i=di("player-bonus-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Yf(e){let i;return{c(){le(i=di("player-active-bonuses"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"playercurrency",e[39]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[1]&&le(i,"playercurrency",e[39]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Gf(e){let i;return{c(){le(i=di("player-account-self-exclusion"),"lang",e[4]),le(i,"operator",e[5]),le(i,"supportemail",e[6]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),64&t[0]&&le(i,"supportemail",e[6]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Vf(i){let r,n,o;return{c(){le(r=di("player-account-gaming-limits"),"playercurrency",i[39]),le(r,"separatelimits",i[7]),le(r,"clientstyling",i[22]),le(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[44].call(null,r)),n=!0)},p(e,t){256&t[1]&&le(r,"playercurrency",e[39]),128&t[0]&&le(r,"separatelimits",e[7]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function qf(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Zf(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Xf(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[40]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){512&t[1]&&le(i,"realitycheck",e[40]),8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"playerid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Kf(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&le(i,"simplepasswordvalidation",e[10]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Jf(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[38]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"lang",e[4]),128&t[1]&&le(i,"countrycode",e[38]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),33554432&t[0]&&le(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function Qf(e){let i;return{c(){le(i=di("user-transaction-history"),"endpoint",e[3]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"mobile",e[42]),le(i,"translation-url",e[24]),le(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),16777216&t[0]&&le(i,"translation-url",e[24]),16&t[0]&&le(i,"language",e[4])},d(e){e&&ci(i)}}}function eg(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","withdraw"),le(i,"channel","Mobile"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function tg(e){let i,r,n,o,a,s,l,c;return{c(){le(i=di("user-deposit-withdrawal"),"endpoint",e[3]),le(i,"type","deposit"),le(i,"channel","Mobile"),le(i,"language",e[4]),le(i,"product-type",e[27]),le(i,"user-id",e[1]),le(i,"session",e[2]),le(i,"success-url",r=window.location.hostname+"/"+e[4]+e[28]),le(i,"cancel-url",n=window.location.hostname+"/"+e[4]+e[30]),le(i,"fail-url",o=window.location.hostname+"/"+e[4]+e[29]),le(i,"sports-url",a=window.location.hostname+"/"+e[4]+e[31]),le(i,"casino-url",s=window.location.hostname+"/"+e[4]+e[32]),le(i,"contact-url",l=window.location.hostname+"/"+e[4]+e[33]),le(i,"home-url",c=window.location.hostname+"/"+e[4]+e[34])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"language",e[4]),134217728&t[0]&&le(i,"product-type",e[27]),2&t[0]&&le(i,"user-id",e[1]),4&t[0]&&le(i,"session",e[2]),268435472&t[0]&&r!==(r=window.location.hostname+"/"+e[4]+e[28])&&le(i,"success-url",r),1073741840&t[0]&&n!==(n=window.location.hostname+"/"+e[4]+e[30])&&le(i,"cancel-url",n),536870928&t[0]&&o!==(o=window.location.hostname+"/"+e[4]+e[29])&&le(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a=window.location.hostname+"/"+e[4]+e[31])&&le(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s=window.location.hostname+"/"+e[4]+e[32])&&le(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l=window.location.hostname+"/"+e[4]+e[33])&&le(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c=window.location.hostname+"/"+e[4]+e[34])&&le(i,"home-url",c)},d(e){e&&ci(i)}}}function ig(e){let i;return{c(){le(i=di("player-kyc-verification"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"user-id",e[1]),le(i,"language",e[4]),le(i,"kyc-title",e[19]),le(i,"description",e[20]),le(i,"translation-url",e[24]),le(i,"client-styling",e[22]),le(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"user-id",e[1]),16&t[0]&&le(i,"language",e[4]),524288&t[0]&&le(i,"kyc-title",e[19]),1048576&t[0]&&le(i,"description",e[20]),16777216&t[0]&&le(i,"translation-url",e[24]),4194304&t[0]&&le(i,"client-styling",e[22]),8388608&t[0]&&le(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function rg(e){let i;return{c(){le(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),le(i,"userid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"tablabels",e[11]),le(i,"historyenabled",e[12]),le(i,"deletelimit",e[13]),le(i,"limitsamount",e[14]),le(i,"limitsperiods",e[15]),le(i,"numberofentries",e[16]),le(i,"customcurrencysymbols",e[17]),le(i,"currency",e[18]),le(i,"apiversion",e[21]),le(i,"translationurl",e[24]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"userid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),2048&t[0]&&le(i,"tablabels",e[11]),4096&t[0]&&le(i,"historyenabled",e[12]),8192&t[0]&&le(i,"deletelimit",e[13]),16384&t[0]&&le(i,"limitsamount",e[14]),32768&t[0]&&le(i,"limitsperiods",e[15]),65536&t[0]&&le(i,"numberofentries",e[16]),131072&t[0]&&le(i,"customcurrencysymbols",e[17]),262144&t[0]&&le(i,"currency",e[18]),2097152&t[0]&&le(i,"apiversion",e[21]),16777216&t[0]&&le(i,"translationurl",e[24]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ng(e){let i;return{c(){le(i=di("player-account-betting-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function og(e){let i;return{c(){le(i=di("player-transaction-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ag(e){let i;return{c(){le(i=di("player-pending-withdrawals"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function sg(e){let i;return{c(){le(i=di("player-withdrawal"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function lg(e){let i;return{c(){le(i=di("player-deposit"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"hasdefaultamount",e[8]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"playercurrency",e[39])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[0]&&le(i,"hasdefaultamount",e[8]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),256&t[1]&&le(i,"playercurrency",e[39])},d(e){e&&ci(i)}}}function cg(e){let i;return{c(){le(i=di("player-gaming-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),67108864&t[0]&&le(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function ug(e){let i;return{c(){le(i=di("player-bonus-history"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function dg(e){let i;return{c(){le(i=di("player-active-bonuses"),"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"playercurrency",e[39]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),256&t[1]&&le(i,"playercurrency",e[39]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function pg(e){let i;return{c(){le(i=di("player-account-self-exclusion"),"lang",e[4]),le(i,"operator",e[5]),le(i,"supportemail",e[6]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),64&t[0]&&le(i,"supportemail",e[6]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function hg(i){let r,n,o;return{c(){le(r=di("player-account-gaming-limits"),"playercurrency",i[39]),le(r,"separatelimits",i[7]),le(r,"clientstyling",i[22]),le(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[44].call(null,r)),n=!0)},p(e,t){256&t[1]&&le(r,"playercurrency",e[39]),128&t[0]&&le(r,"separatelimits",e[7]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function mg(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function fg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),32&t[0]&&le(i,"operator",e[5]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function gg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[40]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){512&t[1]&&le(i,"realitycheck",e[40]),8&t[0]&&le(i,"endpoint",e[3]),2&t[0]&&le(i,"playerid",e[1]),4&t[0]&&le(i,"session",e[2]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function yg(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&le(i,"simplepasswordvalidation",e[10]),16&t[0]&&le(i,"lang",e[4]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function vg(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[38]),le(i,"clientstyling",e[22]),le(i,"clientstylingurl",e[23]),le(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),16&t[0]&&le(i,"lang",e[4]),128&t[1]&&le(i,"countrycode",e[38]),4194304&t[0]&&le(i,"clientstyling",e[22]),8388608&t[0]&&le(i,"clientstylingurl",e[23]),33554432&t[0]&&le(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function wg(e){let i,r,n,o;return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("player-account-notifications"),le(r,"endpoint",e[3]),le(r,"session",e[2]),le(r,"playerid",e[1]),le(r,"lang",e[4]),le(r,"userroles",e[9]),le(r,"clientstyling",e[22]),le(r,"clientstylingurl",e[23]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[22]),le(o,"clientstylingurl",e[23]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){8&t[0]&&le(r,"endpoint",e[3]),4&t[0]&&le(r,"session",e[2]),2&t[0]&&le(r,"playerid",e[1]),16&t[0]&&le(r,"lang",e[4]),512&t[0]&&le(r,"userroles",e[9]),4194304&t[0]&&le(r,"clientstyling",e[22]),8388608&t[0]&&le(r,"clientstylingurl",e[23]),1&t[0]&&le(o,"customnotif",e[0]),4194304&t[0]&&le(o,"clientstyling",e[22]),8388608&t[0]&&le(o,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function bg(i){let r,n,o,a,s,l=function(e){let i,t=e[42]?Sf:Df,r=t(e);return{c(){i=di("section"),r.c(),gi(i,"class","PlayerAccountPage "+(e[42]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),r.m(i,null)},p(e,t){r.p(e,t)},d(e){e&&ci(i),r.d()}}}(i);return{c(){r=di("script"),n=di("script"),o=di("script"),a=mi(),s=di("div"),l.c(),this.c=se,gi(r,"type","module"),_(r.src,"https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0")||gi(r,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0"),gi(n,"type","module"),_(n.src,"https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0")||gi(n,"src","https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0"),gi(o,"type","module"),_(o.src,"https://unpkg.com/@everymatrix/user-transaction-history@1.17.0")||gi(o,"src","https://unpkg.com/@everymatrix/user-transaction-history@1.17.0")},m(e,t){si($f.head,r),si($f.head,n),si($f.head,o),li(e,a,t),li(e,s,t),l.m(s,null),i[56](s)},p(e,t){l.p(e,t)},i:se,o:se,d(e){ci(r),ci(n),ci(o),e&&ci(a),e&&ci(s),l.d(),i[56](null)}}}function _g(t,e,o){let a;Ee(t,Me,e=>o(68,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:r=""}=e,{limitspath:n=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:F=""}=e,{realm:O=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:H="true"}=e,{hasdefaultamount:z="false"}=e,{userroles:m=""}=e,{simplepasswordvalidation:W="false"}=e,{tablabels:j=""}=e,{historyenabled:U=""}=e,{deletelimit:Y=""}=e,{limitsamount:G=""}=e,{limitsperiods:V=""}=e,{numberofentries:q=""}=e,{customcurrencysymbols:Z=""}=e,{currency:X=""}=e,{kyctitle:K=""}=e,{kycdescription:J=""}=e,{apiversion:Q=""}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{custominputtextswitch:ee="false"}=e,{gmversion:te=""}=e,{channel:ie=""}=e,{producttype:re=""}=e,{successurl:ne=""}=e,{failurl:oe=""}=e,{cancelurl:ae=""}=e,{sportsurl:se=""}=e,{casinourl:le=""}=e,{contacturl:ce=""}=e,{homeurl:ue=""}=e;var de,pe;({withLocale:de,translations:pe}={withLocale:"en",translations:{}}),Le.subscribe(e=>{null==e&&($r.set(pe),Le.set(de))});let v,w,b,_,he,x,me=window.navigator.userAgent,fe="PC"!==$e(me),ge=[],ye=[],C="",P="",T="",ve="",E=null,A="",L={},M=!1,$=!1,we="",D="",be=!1,S=!1;Object.keys(hn).forEach(e=>{pn(e,hn[e])});const _e=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(37,S=!0),o(36,T=i.data.page.path),o(41,x=i.data.page.id),"/profile-info"==T&&(k(),B()),"/deposit"==T&&"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==T&&"function"==typeof gtag&&gtag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(37,S=!0),o(36,T=i.data.pagePath),"/profile-info"==T&&(k(),B());var r=new URL(`${s}/${p}/profile-menu?env=`+l);r.searchParams.append("device",A),xe(r).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(41,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(37,S=!1),Te());break;case"UpdatePlayerInfo":r=i.data.provisionalArray,r={mobile:{prefix:r.mobilePrefix,number:r.mobileNumber},address1:r.address,city:r.city,postalCode:r.postalCode,securityQuestion:r.securityQuestion,securityAnswer:r.securityAnswer},r=(t=new URL(`${d}/v1/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("profileUpdateSuccess")}},window.location.href),window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href))});break;case"UpdatePlayerConsent":t=new URL(`${d}/v1/player/${C}/consent`);r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,r).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let i=new URL(`${d}/v1/player/${C}/password`),r={currentPassword:e,newPassword:t},n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},o=await fetch(i.href,n);if(o.ok)window.postMessage({type:"PasswordChangedSuccessfully"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("passwordChangedSuccess")}},window.location.href);else{let e=await o.json();D=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),be=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:be,errorPasswordChanged:D},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:D}},window.location.href)}})(i.data.userCurrentPassword,i.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={coolOff:{period:i.data.timeoutSelected}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{if(200!=e.status)throw new Error("Failed to fetch");window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("timeoutSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(e=>console.error(e));break;case"SetSelfExclusion":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"AccountClosure":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);r={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("accountClosureSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"UserSessionID":P=i.data.session,C=i.data.userid,Pe();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));r=i.data.payload,r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(M=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsUpdateSuccess")}},window.location.href),I(new URL(`v2/player/${C}/limits`,d.slice(0,-2))))});break;case"PlayerAccountGamingLimitDelete":var r=i.data.limit||{},n=Array.isArray(r)?r.map(e=>e.period):r.period;let e="";switch(i.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}r={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(r)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(n)?n.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",n),fetch(t.href,r).then(e=>{200==e.status&&($=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)));break;case"SubmittedRealityCheck":{n=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/v1/player/${C}/realitycheck`),t=(n&&(we=n),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(we,10)}});fetch(e.href,t).then(e=>{200==e.status&&(Ce(new URL(`${d}/v1/player/${c}/realitycheck`)),window.postMessage({type:"RealityCheckValueUpdated"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("realityCheckSuccess")}},window.location.href))},e=>{console.error(e)});return}}};async function xe(e){return e.searchParams.append("device",A),(await fetch(e.href)).json()}const k=()=>{var e=new URL(`${d}/v1/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(38,ve=e.country),o(39,E=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},B=()=>{var e=new URL(`${d}/v1/player/${C}/consent`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{window.postMessage({type:"ProfileConsentData",consent:e},window.location.href)},e=>{console.error(e)})},Ce=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(40,he=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===M?setTimeout(()=>{M=!1},3e3):!0===$&&setTimeout(()=>{$=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{L=e,0!==Object.keys(L).length?(o(52,v=null!=(e=L.depositLimits)?e:[]),o(53,w=null!=(e=L.wageringLimits)?e:[]),o(54,b=null!=(e=L.lossLimits)?e:[]),L.hasOwnProperty("cumulativeSessionLimits")?(o(55,_=L.timeLimit),o(55,_=L.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(55,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:E,depositlimit:v,wageringlimit:w,losslimit:b,timelimit:_,showsuccessnotification:M,showdeletenotification:$,lang:p}},window.location.href)):(o(52,v=[]),o(53,w=[]),o(54,b=[]),o(55,_=[])),Se()},e=>{console.error(e)})},Pe=()=>{var e;xe(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{ge=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:ge},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",A),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ye=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ye},window.location.href))},e=>{console.error(e)}),k(),B(),Ce(new URL(`${d}/v1/player/${c}/realitycheck`))},Te=()=>{var e;(e=$e(me))&&(A="PC"===e?"dk":"mtWeb"),C=c,P=u,fe||o(37,S=!0),Pe()};return De(()=>(window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)})),t.$$set=e=>{"cmsendpoint"in e&&o(45,s=e.cmsendpoint),"env"in e&&o(46,l=e.env),"customnotifications"in e&&o(0,r=e.customnotifications),"limitspath"in e&&o(47,n=e.limitspath),"playerid"in e&&o(1,c=e.playerid),"session"in e&&o(2,u=e.session),"endpoint"in e&&o(3,d=e.endpoint),"lang"in e&&o(4,p=e.lang),"operator"in e&&o(5,h=e.operator),"supportemail"in e&&o(6,N=e.supportemail),"operatorid"in e&&o(48,F=e.operatorid),"realm"in e&&o(49,O=e.realm),"webapiendpoint"in e&&o(50,R=e.webapiendpoint),"separatelimits"in e&&o(7,H=e.separatelimits),"hasdefaultamount"in e&&o(8,z=e.hasdefaultamount),"userroles"in e&&o(9,m=e.userroles),"simplepasswordvalidation"in e&&o(10,W=e.simplepasswordvalidation),"tablabels"in e&&o(11,j=e.tablabels),"historyenabled"in e&&o(12,U=e.historyenabled),"deletelimit"in e&&o(13,Y=e.deletelimit),"limitsamount"in e&&o(14,G=e.limitsamount),"limitsperiods"in e&&o(15,V=e.limitsperiods),"numberofentries"in e&&o(16,q=e.numberofentries),"customcurrencysymbols"in e&&o(17,Z=e.customcurrencysymbols),"currency"in e&&o(18,X=e.currency),"kyctitle"in e&&o(19,K=e.kyctitle),"kycdescription"in e&&o(20,J=e.kycdescription),"apiversion"in e&&o(21,Q=e.apiversion),"clientstyling"in e&&o(22,f=e.clientstyling),"clientstylingurl"in e&&o(23,g=e.clientstylingurl),"translationurl"in e&&o(24,y=e.translationurl),"custominputtextswitch"in e&&o(25,ee=e.custominputtextswitch),"gmversion"in e&&o(26,te=e.gmversion),"channel"in e&&o(51,ie=e.channel),"producttype"in e&&o(27,re=e.producttype),"successurl"in e&&o(28,ne=e.successurl),"failurl"in e&&o(29,oe=e.failurl),"cancelurl"in e&&o(30,ae=e.cancelurl),"sportsurl"in e&&o(31,se=e.sportsurl),"casinourl"in e&&o(32,le=e.casinourl),"contacturl"in e&&o(33,ce=e.contacturl),"homeurl"in e&&o(34,ue=e.homeurl)},t.$$.update=()=>{if(16&t.$$.dirty[0]|96&t.$$.dirty[1]&&p&&S&&T&&(e=p,Le.set(e)),543&t.$$.dirty[0]|49152&t.$$.dirty[1]&&s&&d&&r&&c&&u&&p&&l&&m&&Te(),t.$$.dirty[1],4194304&t.$$.dirty[0]|16&t.$$.dirty[1]&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),8388608&t.$$.dirty[0]|16&t.$$.dirty[1]&&g&&i){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;16777216&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pn(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,u,d,p,h,N,H,z,m,W,j,U,Y,G,V,q,Z,X,K,J,Q,f,g,y,ee,te,re,ne,oe,ae,se,le,ce,ue,i,T,S,ve,E,void 0,x,fe,["/profile-info","/change-password","/reality-check","/timeout","/account-closure","/gaming-limits","/self-exclusion","/active-bonuses","/bonus-history","/gaming-history","/deposit","/withdrawal","/pending-withdrawals","/transaction-history","/betting-history","/limits","/account-verification","/cashier-deposit","/cashier-withdrawal","/transactions-history"],e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,n,F,O,R,ie,v,w,b,_,function(e){Ae[e?"unshift":"push"](()=>{i=e,o(35,i)})}]}class xg extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.PlayerAccountPage{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:250px 1fr 230px;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:30px}.PlayerAccountPage.PlayerAccountMobilePage{display:block;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:0px}.PlayerAccountPage>nav{grid-area:nav;color:red;background:var(--emfe-w-pam-color-nav-desktop-bg, var(--emfe-w-color-gray-300, #58586B))}.PlayerAccountPage>nav.PlayerAccountMobile{background:var(--emfe-w-pam-color-nav-mobile-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},_g,bg,i,{cmsendpoint:45,env:46,customnotifications:0,limitspath:47,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:48,realm:49,webapiendpoint:50,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,kyctitle:19,kycdescription:20,apiversion:21,clientstyling:22,clientstylingurl:23,translationurl:24,custominputtextswitch:25,gmversion:26,channel:51,producttype:27,successurl:28,failurl:29,cancelurl:30,sportsurl:31,casinourl:32,contacturl:33,homeurl:34},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["cmsendpoint","env","customnotifications","limitspath","playerid","session","endpoint","lang","operator","supportemail","operatorid","realm","webapiendpoint","separatelimits","hasdefaultamount","userroles","simplepasswordvalidation","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","currency","kyctitle","kycdescription","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion","channel","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl"]}get cmsendpoint(){return this.$$.ctx[45]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[46]}set env(e){this.$$set({env:e}),p()}get customnotifications(){return this.$$.ctx[0]}set customnotifications(e){this.$$set({customnotifications:e}),p()}get limitspath(){return this.$$.ctx[47]}set limitspath(e){this.$$set({limitspath:e}),p()}get playerid(){return this.$$.ctx[1]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[5]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[6]}set supportemail(e){this.$$set({supportemail:e}),p()}get operatorid(){return this.$$.ctx[48]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[49]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[50]}set webapiendpoint(e){this.$$set({webapiendpoint:e}),p()}get separatelimits(){return this.$$.ctx[7]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get hasdefaultamount(){return this.$$.ctx[8]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get userroles(){return this.$$.ctx[9]}set userroles(e){this.$$set({userroles:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[10]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get tablabels(){return this.$$.ctx[11]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[12]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[13]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[14]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[15]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[16]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[17]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get currency(){return this.$$.ctx[18]}set currency(e){this.$$set({currency:e}),p()}get kyctitle(){return this.$$.ctx[19]}set kyctitle(e){this.$$set({kyctitle:e}),p()}get kycdescription(){return this.$$.ctx[20]}set kycdescription(e){this.$$set({kycdescription:e}),p()}get apiversion(){return this.$$.ctx[21]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[25]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[26]}set gmversion(e){this.$$set({gmversion:e}),p()}get channel(){return this.$$.ctx[51]}set channel(e){this.$$set({channel:e}),p()}get producttype(){return this.$$.ctx[27]}set producttype(e){this.$$set({producttype:e}),p()}get successurl(){return this.$$.ctx[28]}set successurl(e){this.$$set({successurl:e}),p()}get failurl(){return this.$$.ctx[29]}set failurl(e){this.$$set({failurl:e}),p()}get cancelurl(){return this.$$.ctx[30]}set cancelurl(e){this.$$set({cancelurl:e}),p()}get sportsurl(){return this.$$.ctx[31]}set sportsurl(e){this.$$set({sportsurl:e}),p()}get casinourl(){return this.$$.ctx[32]}set casinourl(e){this.$$set({casinourl:e}),p()}get contacturl(){return this.$$.ctx[33]}set contacturl(e){this.$$set({contacturl:e}),p()}get homeurl(){return this.$$.ctx[34]}set homeurl(e){this.$$set({homeurl:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",xg),xg});
2295
2295
  //# sourceMappingURL=player-account-controller.js.map