@everymatrix/player-account-controller 1.17.1 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
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(
|
|
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 fe(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 S(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,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}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 A(e,t,i,n){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function bi(t,i,e){for(let e=0;e<t.options.length;e+=1){var n=t.options[e];if(n.__value===i)return n.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function pe(e){e=e.querySelector(":checked");return e&&e.__value}function L(e,t,i){e.classList[i?"add":"remove"](t)}function n(e){var t={};for(const i of e)t[i.name]=i.value;return t}const M=new Map;let D,$=0;function B(e,t,i,n,r,o,a,s=0){var l=16.666/n;let c="{\n";for(let e=0;e<=1;e+=l){const n=t+(i-t)*o(e);c+=100*e+`%{${a(n,1-n)}}
|
|
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=A(e),{stylesheet:h,rules:m}=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:{}},M.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+` ${n}ms linear ${r}ms 1 both`,$+=1,s}function N(e){D=e}function we(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],ge=[];let F=[];const R=[],z=Promise.resolve();let H=!1;function _e(){H||(H=!0,z.then(p))}function wi(e){F.push(e)}const j=new Set;let U,Y=0;function p(){if(0===Y){const n=D;do{try{for(;Y<O.length;){const n=O[Y];Y++,N(n),e=t=void 0;var e,t=n.$$;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(n){throw O.length=0,Y=0,n}for(N(null),O.length=0,Y=0;ge.length;)ge.pop()();for(let e=0;e<F.length;e+=1){var i=F[e];j.has(i)||(j.add(i),i())}}while(F.length=0,O.length);for(;R.length;)R.pop()();H=!1,j.clear(),N(n)}}function V(e,t,i){var n;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(n=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),n))}const q=new Set;let X;function Z(){X={r:0,c:[],p:X}}function J(){X.r||ai(X.c),X=X.p}function K(e,t){e&&e.i&&(q.delete(e),e.i(t))}function Q(e,t,i,n){e&&e.o?q.has(e)||(q.add(e),X.c.push(()=>{q.delete(e),n&&(i&&e.d(1),n())}),e.o(t)):n&&n()}const ee={duration:0};function te(l,e,t,i){const n={direction:"both"};let c=e(l,t,n),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,n;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),n=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-n.length)||(e.style.animation=n.join(", "),$-=i)||T(()=>{$||(M.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),M.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 r(e){const{delay:t=0,duration:i=300,easing:n=w,tick:r=se,css:o}=c||ee,a={start:P()+t,b:e};if(e||((a.group=X).r+=1),d||p)p=a;else{o&&(m(),h=I(l,u,e,i,t,n,o)),e&&r(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=I(l,u,d.b,d.duration,0,n,c.css)),d)if(e>=d.end)r(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*n(l/d.duration),r(u,1-u)}return!(!d&&!p)};let t;0===E.size&&T(S),new Promise(e=>{E.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(U||(U=Promise.resolve()).then(()=>{U=null}),U.then(()=>{c=c(n),r(e)})):r(e)},end(){m(),d=p=null}}}function r(n,e,t,i,r,o,a,s=[-1]){var l=D;N(n);const c=n.$$={fragment:null,ctx:[],props:o,update:se,not_equal:r,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(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=n).$$.dirty[0]&&(O.push(e),_e(),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 n=Array.from(o.childNodes);c.fragment&&c.fragment.l(n),n.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&K(n.$$.fragment);var d=n,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 n=[],r=[];F.forEach(e=>(-1===i.indexOf(e)?n:r).push(e)),r.forEach(e=>e()),F=n}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,ne,re="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},oe="URLSearchParams"in re,ae="Symbol"in re&&"iterator"in Symbol,he="FileReader"in re&&"Blob"in re&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in re,xe="ArrayBuffer"in re;function Ce(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 Pe(e){return e="string"!=typeof e?String(e):e}function Te(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 Ee(t){this.map={},t instanceof Ee?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 Se(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Ae(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Le(e){var t=new FileReader,i=Ae(t);return t.readAsArrayBuffer(e),i}function ke(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Me(){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():xe&&he&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ke(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):xe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ne(e))?this._bodyArrayBuffer=ke(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=Se(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 Se(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(Le);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,n=Se(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Ae(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?i[1]:"utf-8",e.readAsText(n,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);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(Ie)}),this.json=function(){return this.text().then(JSON.parse)},this}xe&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ne=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),Ee.prototype.append=function(e,t){e=Ce(e),t=Pe(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},Ee.prototype.delete=function(e){delete this.map[Ce(e)]},Ee.prototype.get=function(e){return e=Ce(e),this.has(e)?this.map[e]:null},Ee.prototype.has=function(e){return this.map.hasOwnProperty(Ce(e))},Ee.prototype.set=function(e,t){this.map[Ce(e)]=Pe(t)},Ee.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},Ee.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),Te(i)},Ee.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Te(t)},Ee.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),Te(i)},ae&&(Ee.prototype[Symbol.iterator]=Ee.prototype.entries);var De=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $e(e,t){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n=(t=t||{}).body;if(e instanceof $e){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Ee(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 Ee(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<De.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in re)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"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 Ie(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 Be(e,t){if(!(this instanceof Be))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 Ee(t.headers),this.url=t.url||"",this._initBody(e)}$e.prototype.clone=function(){return new $e(this,{body:this._bodyInit})},Me.call($e.prototype),Me.call(Be.prototype),Be.prototype.clone=function(){return new Be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ee(this.headers),url:this.url})},Be.error=function(){var e=new Be(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ne=[301,302,303,307,308],Oe=(Be.redirect=function(e,t){if(-1===Ne.indexOf(t))throw new RangeError("Invalid status code");return new Be(null,{status:t,headers:{location:e}})},re.DOMException);try{new Oe}catch(l){(Oe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe}function Fe(n,s){return new Promise(function(r,e){var o=new $e(n,s);if(o.signal&&o.signal.aborted)return e(new Oe("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,n,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new Ee,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{n.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),n)},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(){r(new Be(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 Oe("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&re.location.href?re.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":xe&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof Ee||re.Headers&&s.headers instanceof re.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(Ce(e)),a.setRequestHeader(e,Pe(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 ki(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Fe.polyfill=!0,re.fetch||(re.fetch=Fe,re.Headers=Ee,re.Request=$e,re.Response=Be),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 ze(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 He(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],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 n,r,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function je(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||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)}Ze.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=He(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){r=e instanceof Ge?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=He(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ke(u)}catch(e){r=null!=r?r:[],e instanceof Ge?r=je(je([],We(r)),We(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ge(r)}},Ze.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ke(e);else{if(e instanceof Ze){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ze.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ze.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ze.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Ze.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Ze&&e._removeParent(this)},Ze.EMPTY=((t=new Ze).closed=!0,t);var qe=Ze,Xe=qe.EMPTY;function Ze(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Je(e){return e instanceof qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Ke(e){Ue(e)?e():e.unsubscribe()}var Qe=void 0,et=!1,tt=!1,it={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=it.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,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 nt(){}var rt=null;function ot(e){if(et){var t=!rt;if(t&&(rt={errorThrown:!1,error:null}),e(),t){var t=rt,i=t.errorThrown,t=t.error;if(rt=null,i)throw t}}else e()}ze(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?Je(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=(ze(mt,dt=st),mt);function mt(e,t,i){var n=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}:n&&tt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&ut(e.next,t),error:e.error&&ut(e.error,t),complete:e.complete&&ut(e.complete,t)}):e;return n.destination=new pt(i),n}function ft(e){this.partialObserver=e}function gt(e){var t=e;it.setTimeout(function(){throw t})}var yt={closed:!0,next:nt,error:function(e){throw e},complete:nt},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 n,r=this,o=(n=e)&&n instanceof st||n&&Ue(n.next)&&Ue(n.error)&&Ue(n.complete)&&Je(n)?e:new ht(e,t,i);return ot(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},bt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},bt.prototype.forEach=function(n,e){var r=this;return new(e=wt(e))(function(e,t){var i=new ht({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.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 n=this;return new(e=wt(e))(function(e,t){var i;n.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=(ze(kt,Ct=vt),kt.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},kt.prototype._throwIfClosed=function(){if(this.closed)throw new Pt},kt.prototype.next=function(r){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=He(o.currentObservers),n=i.next();!n.done;n=i.next())n.value.next(r)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},kt.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)}})},kt.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()}})},kt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(kt.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),kt.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ct.prototype._trySubscribe.call(this,e)},kt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},kt.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Xe:(this.currentObservers=null,r.push(e),new qe(function(){t.currentObservers=null,Ve(r,e)}))},kt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},kt.prototype.asObservable=function(){var e=new vt;return e.source=this,e},kt.create=function(e,t){return new Tt(e,t)},kt),Tt=(ze(Lt,xt=t),Lt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Lt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Xe},Lt),Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0},St=(ze(At,_t=t),At.prototype.next=function(e){var t=this,i=t.isStopped,n=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(n.push(e),r)||n.push(o.now()+t),this._trimBuffer(),_t.prototype.next.call(this,e)},At.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},At.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*e;if(e<1/0&&r<i.length&&i.splice(0,i.length-r),!n){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)}},At);function At(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Et);var n=_t.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Lt(e,t){var i=xt.call(this)||this;return i.destination=e,i.source=t,i}function kt(){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 Mt=[],Dt={};const $t=[];function It(n,r=se){let o;const a=new Set;function s(e){if(i(n,e)&&(n=e,o)){const e=!$t.length;for(const e of a)e[1](),$t.push(e,n);if(e){for(let e=0;e<$t.length;e+=2)$t[e][0]($t[e+1]);$t.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=se){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||se),e(n),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Bt(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:It(t,t=>{let i=!1;const n=[];let r=0,o=se;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),u?t(e):o=ue(e)?e:se)},e=c.map((e,t)=>d(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=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===Ot);var t}var Ot="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(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 Ft(e,i)})}function zt(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 Ht(e,t){try{return t in e}catch(e){return!1}}function Wt(n,r,o){var a={};return o.isMergeableObject(n)&&zt(n).forEach(function(e){a[e]=Ft(n[e],o)}),zt(r).forEach(function(e){var t,i;(!Ht(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Ht(n,e)&&o.isMergeableObject(r[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:jt)(n[e],r[e],o):a[e]=Ft(r[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Ft;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Wt(e,t,i):Ft(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,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function qt(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function Xt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Jt(e){return e.type===y.date}function Kt(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 ni(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]/,ri=/(?:[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 n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(xi,function(e,t,i){return"string"!=typeof i?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===i?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),n}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 Si(e){return Ei(e)||{}}function Ai(e){for(var a={},t=0,i=e;t<i.length;t++){var n,r=i[t];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.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=r.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"}),r.options.reduce(function(e,t){return g(g({},e),Si(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return g(g({},e),Si(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(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Ci,function(e,t,i,n,r,o){if(t)a.minimumIntegerDigits=i.length;else{if(n&&r)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(r.stem))a.minimumIntegerDigits=r.stem.length;else if(_i.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(_i,function(e,t,i,n,r,o){return"*"===i?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=r.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Ti(o)))}else xi.test(r.stem)?a=g(g({},a),Ti(r.stem)):((o=Ei(r.stem))&&(a=g(g({},a),o)),(n=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}(r.stem))&&(a=g(g({},a),n)))}return a}var Li={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 Mi=new RegExp("^".concat(t.source,"*")),Di=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,$i=!!String.fromCodePoint,Ii=!!Object.fromEntries,Bi=!!String.prototype.codePointAt,Ni=!!String.prototype.trimStart,Oi=!!String.prototype.trimEnd,Fi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ri=!0;try{Ri="a"===(null==(sn=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:sn[0])}catch(l){Ri=!1}var zi,Hi,Wi=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},ji=$i?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;o<r;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},Ui=Ii?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],r=r[1];t[o]=r}return t},Yi=Bi?function(e,t){return e.codePointAt(t)}:function(e,t){var i,n=e.length;if(!(t<0||n<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536},Gi=Ni?function(e){return e.trimStart()}:function(e){return e.replace(Mi,"")},Vi=Oi?function(e){return e.trimEnd()}:function(e){return e.replace(Di,"")};function qi(e,t){return new RegExp(e,t)}Hi=Ri?(zi=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return zi.lastIndex=t,null!=(t=zi.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Yi(e,t);if(void 0===r||Ji(r)||33<=(i=r)&&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;n.push(r),t+=65536<=r?2:1}return ji.apply(void 0,n)};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 n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,i)).err)return r;n.push(r.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&&Zi(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r}else if((r=this.parseLiteral(e,t)).err)return r;n.push(r.val)}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},o.prototype.parseTag=function(e,t){var i,n=this.clonePosition(),r=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(r,"/>"),location:v(n,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()||!Zi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:v(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(f.INVALID_TAG,v(n,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(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{r=this.tryParseUnquoted(e,t);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:n,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Zi(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 n=this.parseIdentifierIfPossible().value;if(!n)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:n,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,n,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Hi(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,n){var r,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(n)).err?c:(h=v(n,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="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;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),(Li[t||""]||Li[i||""]||Li["".concat(i,"-001")]||Li["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===r?"H":r}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(ri,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}},{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(n)).err?c:(m=v(n,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,n=e.split(oi).filter(function(e){return 0<e.length});i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:r})}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?Ai(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.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&&(r=!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&&!r?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}n=v(n,this.clonePosition());return r?Fi(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},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()&&Ji(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 Xi=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 Zi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ji(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ki(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Xi(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 Zt(e)&&ii(e.style)||(Jt(e)||Kt(e))&&ni(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:ln,n=t&&t.serializer?t.serializer:rn;return(t&&t.strategy?t.strategy:function(e,t){return nn(e,this,1===e.length?en:tn,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function en(e,t,i,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function tn(e,t,i){var n=Array.prototype.slice.call(arguments,3),i=i(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function nn(e,t,i,n,r){return i.bind(t,e,n,r)}var rn=function(){return JSON.stringify(arguments)};function on(){this.cache=Object.create(null)}on.prototype.get=function(e){return this.cache[e]},on.prototype.set=function(e,t){this.cache[e]=t};var an,sn,ln={create:function(){return new on}},cn={variadic:function(e,t){return nn(e,this,tn,t.cache.create(),t.serializer)},monadic:function(e,t){return nn(e,this,en,t.cache.create(),t.serializer)}};(sn=an=an||{}).MISSING_VALUE="MISSING_VALUE",sn.INVALID_VALUE="INVALID_VALUE",sn.MISSING_INTL_API="MISSING_INTL_API";Gt(xn,mn=Error),xn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var un,dn,pn,hn,mn,fn=xn,gn=(Gt(_n,hn=fn),_n),yn=(Gt(wn,pn=fn),wn),vn=(Gt(bn,dn=fn),bn);function bn(e,t){return dn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),an.MISSING_VALUE,t)||this}function wn(e,t,i){return pn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),an.INVALID_VALUE,i)||this}function _n(e,t,i,n){return hn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),an.INVALID_VALUE,n)||this}function xn(e,t,i){e=mn.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function Cn(e,t,i,n,r,o,a){if(1===e.length&&Xt(e[0]))return[{type:un.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Xt(u))s.push({type:un.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:un.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(r&&d in r))throw new vn(d,a);d=r[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?un.literal:un.object,value:d});else if(Jt(u)){var p="string"==typeof u.style?n.date[u.style]:ni(u.style)?u.style.parsedOptions:void 0;s.push({type:un.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Kt(u))p="string"==typeof u.style?n.time[u.style]:ni(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:un.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Zt(u))(p="string"==typeof u.style?n.number[u.style]:ii(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:un.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ti(u)){var h=u.children,m=u.value,f=r[m];if("function"!=typeof f)throw new yn(m,"function",a);m=f(Cn(h,t,i,n,r,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?un.literal:un.object,value:e}}))}if(Qt(u)){if(!(g=u.options[d]||u.options.other))throw new gn(u.value,d,Object.keys(u.options),a);s.push.apply(s,Cn(g.value,t,i,n,r))}else if(ei(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',an.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 gn(u.value,d,Object.keys(u.options),a);s.push.apply(s,Cn(g.value,t,i,n,r,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===un.literal&&t.type===un.literal?i.value+=t.value:e.push(t),e},[])}function Pn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=un=un||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(En,"defaultLocale",{get:function(){return En.memoizedDefaultLocale||(En.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),En.memoizedDefaultLocale},enumerable:!1,configurable:!0}),En.memoizedDefaultLocale=null,En.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])},En.__parse=Ki,En.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 Tn=En;function En(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=En.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===un.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 Cn(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=En.resolveLocale(t),"string"==typeof e){if(this.message=e,!En.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=En.__parse(e,{ignoreTag:null==n?void 0:n.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=(r=En.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?g(g(g({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),n[t]||{}),e},{})):i),e},g({},r)):r),this.formatters=n&&n.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:Pn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:cn.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:Pn(t.dateTime),strategy:cn.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:Pn(t.pluralRules),strategy:cn.variadic})}}const Sn={},An=(e,t,i)=>i&&(t in Sn||(Sn[t]={}),e in Sn[t]||(Sn[t][e]=i),i),Ln=(t,i)=>{if(null!=i){if(i in Sn&&t in Sn[i])return Sn[i][t];var n=qn(i);for(let e=0;e<n.length;e++){var r=function(e,t){if(!Dn(e))return null;e=function(e){return kn[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var n=i.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const i=n.slice(e,n.length).join(".");if(i in t){t=t[i];break}}t=t[n[e]]}else t=void 0;return t}}(e,t);return e}(n[e],t);if(r)return An(t,i,r)}}};let kn;const Mn=It({});function Dn(e){return e in kn}function a(t,...i){delete Sn[t],Mn.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}Bt([Mn],([e])=>Object.keys(e)),Mn.subscribe(e=>kn=e);const $n={};function In(e){return $n[e]}function Bn(e){return null!=e&&qn(e).some(e=>{return null==(e=In(e))?void 0:e.size})}function Nn(n,e){return Promise.all(e.map(e=>{return t=n,i=e,$n[t].delete(i),0===$n[t].size&&delete $n[t],e().then(e=>e.default||e);var t,i})).then(e=>a(n,...e))}const On={};const Fn={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};const Rn=It(!1);var zn=Object.defineProperty,$i=Object.defineProperties,Ii=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Un=(e,t,i)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Yn;const Gn=It(null);function Vn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function qn(e,t=Fn.fallbackLocale){e=Vn(e);return t?[...new Set([...e,...Vn(t)])]:e}function Xn(){return null!=Yn?Yn:void 0}Gn.subscribe(e=>{Yn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ye=$i(((e,t)=>{for(var i in t=t||{})Wn.call(t,i)&&Un(e,i,t[i]);if(Hn)for(var i of Hn(t))jn.call(t,i)&&Un(e,i,t[i]);return e})({},Gn),Ii({set:t=>{if(t&&function(e){if(null!=e){var t=qn(e);for(let e=0;e<t.length;e++){var i=t[e];if(Dn(i))return i}}}(t)&&Bn(t)){var i=Fn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Xn()&&i?e=window.setTimeout(()=>Rn.set(!0),i):Rn.set(!0),function e(t){var i;return Bn(t)?(i=qn(t).map(e=>{var t=In(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),On[t]=Promise.all(i.map(([e,t])=>Nn(e,t))).then(()=>{if(Bn(t))return e(t);delete On[t]}),On[t]):t in On?On[t]:Promise.resolve()}(t).then(()=>{Gn.set(t)}).finally(()=>{clearTimeout(e),Rn.set(!1)})}return Gn.set(t)}}));var Bi=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Zn=Object.defineProperty,Jn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,er=(e,t,i)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,tr=(e,t)=>{for(var i in t=t||{})Kn.call(t,i)&&er(e,i,t[i]);if(Jn)for(var i of Jn(t))Qn.call(t,i)&&er(e,i,t[i]);return e},ir=(e,t)=>{var i={};for(n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&Jn)for(var n of Jn(e))t.indexOf(n)<0&&Qn.call(e,n)&&(i[n]=e[n]);return i};const nr=(e,t)=>{var i=Fn["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rr=Bi(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=nr("number",i)),new Intl.NumberFormat(t,e)}),or=Bi(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=nr("date",i):0===Object.keys(e).length&&(e=nr("date","short")),new Intl.DateTimeFormat(t,e)}),ar=Bi(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=nr("time",i):0===Object.keys(e).length&&(e=nr("time","short")),new Intl.DateTimeFormat(t,e)}),sr=Bi((e,t=Xn())=>new Tn(e,t,Fn.formats,{ignoreTag:Fn.ignoreTag})),ve=Bt([ye,Mn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Xn(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ln(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!=(n=null!=(i=null==(i=(n=Fn).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let c=l;try{c=sr(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),lr=(Bt([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return ar(tr({locale:t},e))})(t).format(e)),Bt([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return or(tr({locale:t},e))})(t).format(e)),Bt([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return rr(tr({locale:t},e))})(t).format(e)),Bt([ye,Mn],()=>(e,t=Xn())=>Ln(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Mt.indexOf(e)&&(t=new St(t),Dt[e]=t,Mt.push(e)),Dt[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))),be=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function cr(e,t){a(e,t)}const ur={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 dr(e,t){a(e,t)}const pr={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 hr(e,t){a(e,t)}const mr={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 fr(i){let n,r,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){n=di("div"),r=di("button"),o=di("span"),a=hi(c),gi(n,"class","GeneralLogout")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),s||(l=fi(r,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(n),s=!1,l()}}}function gr(o){let i,n,r,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,n,r=o[2]("logoutButton")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&r!==(r=e[2]("logoutButton")+"")&&yi(n,r)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),n=di("span"),r=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(r,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(r,"data-name","Layer 1"),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"viewBox","0 0 150 150"),L(n,"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,n),si(n,r),si(r,a),si(a,s),si(s,l),si(r,c),si(r,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 yr(i){let n;function r(e){return"PlayerAccountMenu"===e[0]?gr:fr}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[14](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[14](null)}}}function vr(t,e,i){let n;fe(t,ve,e=>i(2,n=e));let r,{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"!==be(m);e=window.matchMedia("(min-width: 768px)");Object.keys(mr).forEach(e=>{hr(e,mr[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,ye.set(e)),514&t.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),1026&t.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hr(e,t[e])})}).catch(e=>{console.log(e)})},[s,r,n,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}function br(e,t,i){e=e.slice();return e[32]=t[i],e}function wr(i){let n,r,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){n=di("div"),r=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(r,"class","PlayerAccountMenuItemWrapper"),gi(n,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(r,s),si(r,l),si(l,c),si(n,u),p||(h=fi(n,"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(n,"class",d)},d(e){e&&ci(n),p=!1,h()}}}function _r(i){let n,r=function(t){let i,n,r,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(n,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=[fi(r,"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(n),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,n;return{c(){i=di("div"),le(n=di("general-logout"),"endpoint",e[1]),le(n,"session",e[0]),le(n,"buttonlocation","PlayerAccountMenu"),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]&&le(n,"endpoint",e[1]),1&t[0]&&le(n,"session",e[0]),4&t[0]&&le(n,"clientstyling",e[2]),8&t[0]&&le(n,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=wr(br(t,g,e));let v=!t[10]&&function(e){let i,n;return{c(){i=di("div"),le(n=di("general-logout"),"endpoint",e[1]),le(n,"session",e[0]),le(n,"buttonlocation","PlayerAccountMenu"),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]&&le(n,"endpoint",e[1]),1&t[0]&&le(n,"session",e[0]),4&t[0]&&le(n,"clientstyling",e[2]),8&t[0]&&le(n,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),n=di("div"),m&&m.c(),r=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(n,"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,n),m&&m.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(n,u),f&&f.m(n,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 n=br(t,g,e);y[e]?y[e].p(n,i):(y[e]=wr(n),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(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[20](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[20](null)}}}function xr(i,e,n){let t;fe(i,ve,e=>n(9,t=e));let r,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"!==be(g),v="",b="";e=window.matchMedia("(min-width: 768px)");Object.keys(pr).forEach(e=>{dr(e,pr[e])});const w=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":n(5,f=e.data.accountMenuInfo);break;case"UserSessionID":n(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),n(6,o=e.id)},x=()=>{n(6,o=u)};return we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&n(1,a=e.endpoint),"session"in e&&n(0,s=e.session),"playerid"in e&&n(14,l=e.playerid),"lang"in e&&n(15,c=e.lang),"selecteditem"in e&&n(16,u=e.selecteditem),"userroles"in e&&n(17,d=e.userroles),"clientstyling"in e&&n(2,p=e.clientstyling),"clientstylingurl"in e&&n(3,h=e.clientstylingurl),"translationurl"in e&&n(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,ye.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=>{n(7,v=e.username),n(8,b=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&x(),24&i.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&r&&((e=document.createElement("style")).innerHTML=p,r.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dr(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,r,f,o,v,b,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){ge[e?"unshift":"push"](()=>{r=e,n(4,r)})}]}function Cr(e,t,i){e=e.slice();return e[14]=t[i],e}function Pr(t){let r,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tr(Cr(t,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(r,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var n=Cr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Tr(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e)}}}function Tr(e){let i,n,r,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),n=di("div"),r=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(r,"class","PlayerAccountNotificationIcon"),_(r.src,o=e[14].icon)||gi(r,"src",o),gi(r,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(n,"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,n),si(n,r),si(n,s),si(n,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!_(r.src,o=e[14].icon)&&gi(r,"src",o),2&t&&a!==(a=e[14].title)&&gi(r,"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 Er(i){let n;function r(e){if(e[1].length)return Pr}let o=r(i),a=o&&o(i);return{c(){n=di("div"),a&&a.c(),this.c=se},m(e,t){li(e,n,t),a&&a.m(n,null),i[7](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a&&a.d(),i[7](null)}}}function Sr(t,e,i){let n,{customnotif:r=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==be(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=()=>{r.replace(" ",""),u=r.split(",")};return we(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,r=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&r&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&n){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&n&&((e=document.createElement("style")).innerHTML=o,n.appendChild(e))},[n,c,l,d,r,o,a,function(e){ge[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function Ar(e,t){a(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vr,yr,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-white, #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-white, #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-white, #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-white, #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-pink-500, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #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-pink-500, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-white, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},xr,_r,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Sr,Er,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 Lr={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 kr(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function Mr(e){let i,n,t=e[22]+"";return{c(){i=di("option"),n=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function Dr(i){let n,r,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")+"",E=i[3]("save")+"",S=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),A=i[5],L=[];for(let e=0;e<A.length;e+=1)L[e]=Mr(kr(i,A,e));return{c(){n=di("div"),r=di("form"),S&&S.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<L.length;e+=1)L[e].c();v=mi(),b=di("div"),w=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]&&wi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(w,"class","TimeoutSave"),gi(b,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(r,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),S&&S.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),si(c,h),si(h,m),si(r,f),si(r,g),si(g,y);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(y,null);bi(y,i[2],!0),si(r,v),si(r,b),si(b,w),si(w,_),i[15](n),x||(C=[fi(y,"change",i[13]),fi(w,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&S.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(A=t[5],e=0;e<A.length;e+=1){var n=kr(t,A,e);L[e]?L[e].p(n,i):(L[e]=Mr(n),L[e].c(),L[e].m(y,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=A.length}36&i&&bi(y,t[2]),8&i&&E!==(E=t[3]("save")+"")&&yi(_,E)},i:se,o:se,d(e){e&&ci(n),S&&S.d(),ui(L,e),i[15](null),x=!1,ai(C)}}}function $r(t,e,i){let n;fe(t,ve,e=>i(3,n=e));let r,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==be(u),p=(Object.keys(Lr).forEach(e=>{Ar(e,Lr[e])}),[{value:n("cooloff24"),text:n("cooloff24Text")},{value:n("cooloff7"),text:n("cooloff7Text")},{value:n("cooloff30"),text:n("cooloff30Text")},{value:n("cooloff3"),text:n("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,ye.set(e)),1026&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;514&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[o,r,h,n,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){ge[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}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-dunkel, #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-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},$r,Dr,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()}});Br=Ir={path:void 0,exports:{},require:function(e,t){return ki(null==t&&Ir.path)}},Ir.exports,Br.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 O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(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 z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function H(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));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,n){return Mt(e,t,i,n,!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,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var i,n,r,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(r=t[n=G[i]])||(e[n]=r);return e}function X(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 X||null!=e&&null!=e._isAMomentObject}function Z(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=[],n=arguments.length,r=0;r<n;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];i.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[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,n=W({},e);for(i in t)f(t,i)&&(O(e[i])&&O(t[i])?(n[i]={},W(n[i],e[i]),W(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&O(e[i])&&(n[i]=W({},n[i]));return n}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 n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function n(e,t,i,n){var r="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),re[t]=re[t]||function(n){for(var e,r=n.match(ie),t=0,o=r.length;t<o;t++)oe[r[t]]?r[t]=oe[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(r[i])?r[i].call(e,n):r[i];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=i&&ne.test(e);)e=e.replace(ne,n),ne.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,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}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(),Ie(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var r=/\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,Ee=/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,n){Ae[e]=u(i)?i:function(e,t){return e&&n?n:i}}function Se(e,t){return f(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},Le={};function x(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),R(i)&&(r=function(e,t){t[i]=h(e)}),n=e.length,t=0;t<n;t++)Le[e[t]]=r}function ke(e,r){x(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var C,P=0,T=1,E=2,S=3,A=4,L=5,Me=6,De=7,$e=8;function Ie(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},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("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,n){n=i._locale.monthsParse(e,n,i._strict);null!=n?t[T]=n:g(i).invalidMonth=e});var Be="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("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=b,Re=b;function ze(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(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function He(e){return null!=e?(ze(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=[],n=[],r=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),r.sort(e),o=0;o<12;o++)i[o]=_(i[o]),n[o]=_(n[o]);for(o=0;o<24;o++)r[o]=_(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(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,n,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,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,n,r){var o,t=1+7*(t-1)+(7+i-n)%7+Ve(e,n,r),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 Xe(e,t,i){var n,r,o=Ve(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+k(r=e.year()-1,t,i):o>k(e.year(),t,i)?(n=o-k(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function k(e,t,i){var n=Ve(e,t,i),t=Ve(e+1,t,i);return(je(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("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),ke(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("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)}),ke(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:g(i).invalidWeekday=e}),ke(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,it=b;function nt(){function e(e,t){return t.length-e.length}for(var t,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=c([2e3,1]).day(l),t=_(this.weekdaysMin(n,"")),i=_(this.weekdaysShort(n,"")),n=_(this.weekdays(n,"")),r.push(t),o.push(i),a.push(n),s.push(t),s.push(i),s.push(n);r.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("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,rt),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("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"],S),x(["k","kk"],function(e,t,i){e=h(e);t[S]=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[S]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var n=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n,2)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var n=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n))}),x("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n,2)),t[L]=h(e.substr(r))});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:Be,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},M={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(n=pt(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(r,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===M[t]&&Br&&Br.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,ki(),ht(e)}catch(e){M[t]=null}return M[t]}function ht(e,t){return e&&((t=s(t)?D(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 M[e],null;var i,n=lt;if(t.abbr=e,null!=M[e])K("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."),n=M[e]._config;else if(null!=t.parentLocale)if(null!=M[t.parentLocale])n=M[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;n=i._config}return M[e]=new ee(Q(n,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),M[e]}function D(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]>Ie(t[P],t[T])?E:t[S]<0||24<t[S]||24===t[S]&&(0!==t[A]||0!==t[L]||0!==t[Me])?S:t[A]<0||59<t[A]?A:t[L]<0||59<t[L]?L:t[Me]<0||999<t[Me]?Me:-1,g(e)._overflowDayOfYear&&(t<P||E<t)&&(t=E),g(e)._overflowWeeks&&-1===t&&(t=De),g(e)._overflowWeekday&&-1===t&&(t=$e),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,n,r,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])){r=bt[t][0],n=!1!==bt[t][2];break}if(null==r)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(!n&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=r+(o||"")+(a||""),Lt(e)}else e._isValid=!1}function Tt(e,t,i,n,r,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(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Et(e){var t,i,n,r,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],n=t,r=e,i&&Ke.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(i=o[8],n=o[9],r=o[10],i?Ct[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function St(e,t,i){return null!=e?e:null!=t?t:i}function At(e){var t,i,n,r,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,n=St(d.GG,u._a[P],Xe($(),1,4).year),r=St(d.W,1),((o=St(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Xe($(),a,s),n=St(d.gg,u._a[P],c.year),r=St(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),r<1||r>k(n,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(n,r,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=St(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[S]&&0===e._a[A]&&0===e._a[L]&&0===e._a[Me]&&(e._nextDay=!0,e._a[S]=0),e._d=(e._useUTC?Ge:Ye).apply(null,p),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[S]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,n,r=""+e._i,o=r.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)n=i[l],(t=(r.match(Se(n,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&g(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),a+=t.length),oe[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),d=n,h=e,null!=(p=t)&&f(Le,d)&&Le[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),e._a[S]<=12&&!0===g(e).bigHour&&0<e._a[S]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[S]=(o=e._locale,c=e._a[S],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])),At(e),ft(e)}else Et(e);else Pt(e);var c,u,d,p,h}function kt(e){var t,i=e._i,n=e._f;{var r,o;return(e._locale=e._locale||D(e._l),null===i||void 0===n&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new X(ft(i)):(z(i)?e._d=i:a(n)?function(e){var t,i,n,r,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Lt(t),j(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,i=t):(null==n||o<n||a)&&(n=o,i=t,a)&&(s=!0);W(e,i||t)}(e):n?Lt(e):s(n=(i=e)._i)?i._d=new Date(m.now()):z(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Pt(r),!1===r._isValid&&(delete r._isValid,Et(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:m.createFromInputFallback(r))):r._d=new Date(+o[1])):a(n)?(i._a=H(n.slice(0),function(e){return parseInt(e,10)}),At(i)):O(n)?(r=i)._d||(t=void 0===(o=ce(r._i)).day?o.date:o.day,r._a=H([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),At(r)):R(n)?i._d=new Date(n):m.createFromInputFallback(i),j(e)||(e._d=null),e))}}function Mt(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(O(e)&&F(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,(r=new X(ft(kt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function $(e,t,i,n){return Mt(e,t,i,n,!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=$.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=$.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function Dt(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return $();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var e=ce(e),t=e.year||0,i=e.quarter||0,n=e.month||0,r=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,n=!1,r=$t.length;for(t in e)if(f(e,t)&&(-1===C.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[$t[i]]){if(n)return!1;parseFloat(e[$t[i]])!==h(e[$t[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=D(),this._bubble()}function Bt(e){return e instanceof It}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,i){n(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)})}Ot("Z",":"),Ot("ZZ",""),w("Z",Ee),w("ZZ",Ee),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Ee,e)});var Ft=/([\+\-]|\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(Ft)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||z(e)?e:$(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):$(e).local()}function Ht(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 I(e,t){var i,n,r=e;return Bt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=jt.exec(e))?(i="-"===t[1]?-1:1,r={y:0,d:h(t[E])*i,h:h(t[S])*i,m:h(t[A])*i,s:h(t[L])*i,ms:h(Nt(1e3*t[Me]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,r={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==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=$(r.from),i=$(r.to),t=t.isValid()&&i.isValid()?(i=zt(i,t),t.isBefore(i)?n=Gt(t,i):((n=Gt(i,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),n=new It(r),Bt(e)&&f(e,"_locale")&&(n._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}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(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(K(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),qt(this,I(e,t),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(n=null==n||n,t&&ze(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n)&&m.updateOffset(e,o||t)}I.fn=It.prototype,I.invalid=function(){return I(NaN)};Be=Vt(1,"add"),Je=Vt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||R(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!R(e)&&Xt(t)}).length),i&&n)||function(e){var t,i,n=O(e)&&!F(e),r=!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],r=r||f(e,i);return n&&r}(e)||null==e;var t,i,n}function Jt(e,t){var i,n;return e.date()<t.date()?-Jt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(n=e.clone().add(i,"months"))<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=D(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 ni(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ri(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),i.push(_(r[o].narrow)),n.push(_(r[o].name)),n.push(_(r[o].abbr)),n.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+n.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){n(0,[e,e.length],0,t)}function si(e,t,i,n,r){var o;return null==e?Xe(this,n,r).year:(t>(o=k(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),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,n,r))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),w("N",ri),w("NN",ri),w("NNN",ri),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,n){n=i._locale.erasParse(e,n,i._strict);n?g(i).era=n: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,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,r):t[P]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(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),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=h(e)}),ke(["gg","GG"],function(e,t,i,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),w("Q",r),x("Q",function(e,t){t[T]=3*(h(e)-1)}),n("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"],E),x("Do",function(e,t){t[E]=h(e.match(v)[0])});_e=pe("Date",!0);n("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)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),w("m",v),w("mm",v,y),x(["m","mm"],A);ge=pe("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),w("s",v),w("ss",v,y),x(["s","ss"],L);var li,xe=pe("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),w("S",we,r),w("SS",we,y),w("SSS",we,fe),li="SSSS";li.length<=9;li+="S")w(li,Ce);function ci(e,t){t[Me]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")x(li,ci);ye=pe("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=X.prototype;function ui(e){return e}r.add=Be,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!F(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||f(e,n[r]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||$(),i=zt(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,$(e)))},r.clone=function(){return new X(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=zt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Jt(this,n)/12;break;case"month":o=Jt(this,n);break;case"quarter":o=Jt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:p(o)},r.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni: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},r.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from($(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to($(),e)},r.get=function(e){return u(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,i,n){return e=l(e)?e:$(e),t=l(t)?t:$(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},r.isSame=function(e,t){var e=l(e)?e:$(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()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return j(this)},r.lang=Qe,r.locale=Kt,r.localeData=Qt,r.max=be,r.min=ve,r.parsingFlags=function(){return W({},g(this))},r.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)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni: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},r.subtract=Je,r.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},r.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.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},r.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&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraYear=function(){for(var e,t,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(e=i[n].since<=i[n].until?1:-1,t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return(this.year()-m(i[n].since).year())*e+i[n].offset;return this.year()},r.year=Ue,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=He,r.daysInMonth=function(){return Ie(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return k(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){var t,i,n;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,n=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=n.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},r.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},r.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},r.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")},r.hour=r.hours=b,r.minute=r.minutes=ge,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ht(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&&(n=Ht(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,I(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ht(this),"m"),this},r.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},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=Wt,r.isUTC=Wt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",_e),r.months=e("months accessor is deprecated. Use month instead",He),r.years=e("years accessor is deprecated. Use year instead",Ue),r.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()}),r.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=kt(t))._a?(e=(t._isUTC?c:$)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<n;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,n){var r=D(),n=c().set(n,t);return r[i](n,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 n=[],r=0;r<12;r++)n[r]=di(e,r,i,"month");return n}function hi(e,t,i,n){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var r,o=D(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=di(t,(r+a)%7,n,"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,n){var r=this._relativeTime[i];return u(r)?r(e,t,i,n):r.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,n=this._eras||D("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=m(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=m(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},y.erasParse=function(e,t,i){var n,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if(0<=[o,a,s].indexOf(e))return l[n]},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||Oe).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[Oe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var n,r;if(this._monthsParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))||-1!==(r=C.call(this._longMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))||-1!==(r=C.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},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=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var n,r;if(this._weekdaysParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.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")||nt.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")||nt.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.",D);var mi=Math.abs;function fi(e,t,i,n){t=I(t,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*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"),Be=bi("m"),be=bi("h"),ve=bi("d"),Je=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 Ei(e,t,i,n){var r=I(e).abs(),o=Pi(r.as("s")),a=Pi(r.as("m")),s=Pi(r.as("h")),l=Pi(r.as("d")),c=Pi(r.as("M")),u=Pi(r.as("w")),r=Pi(r.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])||(r<=1?["y"]:["yy",r]))[2]=t,o[3]=0<+e,o[4]=n,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,o)}var Si=Math.abs;function Ai(e){return(0<e)-(e<0)||+e}function Li(){var e,t,i,n,r,o,a,s,l,c,u;return this.isValid()?(s=Si(this._milliseconds)/1e3,l=Si(this._days),c=Si(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(u)?"-":"",o=Ai(this._days)!==Ai(u)?"-":"",a=Ai(this._milliseconds)!==Ai(u)?"-":"",(u<0?"-":"")+"P"+(i?r+i+"Y":"")+(c?r+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"):this.localeData().invalidDate()}var B=It.prototype;return B.isValid=function(){return this._isValid},B.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},B.add=function(e,t){return fi(this,e,t,1)},B.subtract=function(e,t){return fi(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/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+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=we,B.asSeconds=fe,B.asMinutes=Be,B.asHours=be,B.asDays=ve,B.asWeeks=Je,B.asMonths=b,B.asQuarters=ge,B.asYears=xe,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),n.milliseconds=e%1e3,e=p(e/1e3),n.seconds=e%60,e=p(e/60),n.minutes=e%60,e=p(e/60),n.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},B.clone=function(){return I(this)},B.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=_e,B.minutes=Ue,B.hours=y,B.days=_i,B.weeks=function(){return p(this.days()/7)},B.months=xi,B.years=Ci,B.humanize=function(e,t){var i,n;return this.isValid()?(i=!1,n=Ti,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ti,t),null!=t.s)&&null==t.ss&&(n.ss=t.s-1),t=Ei(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=Li,B.toString=Li,B.toJSON=Li,B.locale=Kt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Li),B.lang=Qe,n("X",0,0,"unix"),n("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=$,m.fn=r,m.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return $(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=z,m.locale=ht,m.invalid=U,m.duration=I,m.isMoment=l,m.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},m.parseZone=function(){return $.apply(null,arguments).parseZone()},m.localeData=D,m.isDuration=Bt,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,n;return null!=t?(n=lt,null!=M[e]&&null!=M[e].parentLocale?M[e].set(Q(M[e]._config,t)):(t=Q(n=null!=(i=pt(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=M[e],M[e]=n),ht(e)):null!=M[e]&&(null!=M[e].parentLocale?(M[e]=M[e].parentLocale,e===ht()&&ht(e)):null!=M[e]&&delete M[e]),M[e]},m.locales=function(){return te(M)},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=r,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 Ir,Br,W=Ir.exports;function Nr(e,t){a(e,t)}const Or={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 Fr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Fr);let Rr,zr=null,Hr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Wr(e){requestAnimationFrame(function(){Hr?Hr(e):(zr||(zr=new Promise(e=>{Rr=e}),"complete"===document.readyState?Rr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Rr()})),zr.then(function(){e&&e()}))})}const jr="__seenByShadyCSS",Ur="__shadyCSSCachedStyle";let Yr=null,Gr=null;class Vr{constructor(){this.customStyles=[],this.enqueued=!1,Wr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Gr&&(this.enqueued=!0,Wr(Gr))}addCustomStyle(e){e[jr]||(e[jr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Ur]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var i=t[e];if(!i[Ur]){var n=this.getStyleForCustomStyle(i);if(n){const t=n.__appliedElement||n;Yr&&Yr(t),i[Ur]=t}}}return t}}Object.defineProperties(Vr.prototype,{transformCallback:{get:()=>Yr,set(e){Yr=e}},validateCallback:{get:()=>Gr,set(e){let t=!1;Gr||(t=!0),Gr=e,t&&this.enqueueDocumentValidation()}}});const qr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Xr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Zr=/@media\s(.*)/;function Jr(e,t){for(var i in t)null===i?e.style.removeProperty(i):e.style.setProperty(i,t[i])}function Kr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Qr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let eo,to;function io(e){eo=(!e||!e.shimcssproperties)&&(Qr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(to=window.ShadyCSS.cssBuild);Ni=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?eo=window.ShadyCSS.nativeCss:window.ShadyCSS?(io(window.ShadyCSS),window.ShadyCSS=void 0):io(window.WebComponents&&window.WebComponents.flags);const no=eo,ro=new Vr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,i){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,i){},styleSubtree(e,t){ro.processStyles(),Jr(e,t)},styleElement(e){ro.processStyles()},styleDocument(e){ro.processStyles(),Jr(document.body,e)},getComputedStyleValue:(e,t)=>Kr(e,t),flushCustomStyles(){},nativeCss:no,nativeShadow:Qr,cssBuild:to,disableRuntime:Ni}),window.ShadyCSS.CustomStyleInterface=ro,window.JSCompiler_renameProperty=function(e,t){return e};let oo,ao,so=/(url\()([^)]*)(\))/g,lo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function co(e,t){if(e&&lo.test(e))return e;if("//"===e)return e;if(void 0===oo){oo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",oo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,oo)try{return new URL(e,t).href}catch(t){return e}return ao||((ao=document.implementation.createHTMLDocument("temp")).base=ao.createElement("base"),ao.head.appendChild(ao.base),ao.anchor=ao.createElement("a"),ao.body.appendChild(ao.anchor)),ao.base.href=t,ao.anchor.href=e,ao.anchor.href||e}function uo(e,r){return e.replace(so,function(e,t,i,n){return t+"'"+co(i.replace(/["']/g,""),r)+"'"+n})}function po(e){return e.substring(0,e.lastIndexOf("/")+1)}const ho=!window.ShadyDOM||!window.ShadyDOM.inUse,mo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),ho&&"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 fo=window.Polymer&&window.Polymer.rootPath||po(document.baseURI||window.location.href),go=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,yo=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,vo=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,bo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,wo=window.Polymer&&window.Polymer.legacyOptimizations||!1,_o=window.Polymer&&window.Polymer.legacyWarnings||!1,xo=window.Polymer&&window.Polymer.syncInitialRender||!1,Co=window.Polymer&&window.Polymer.legacyUndefined||!1,Po=window.Polymer&&window.Polymer.orderedComputed||!1,To=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Eo=window.Polymer&&window.Polymer.fastDomIf||!1,So=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Ao=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Lo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ko={},Mo={};function Do(e,t){ko[e]=Mo[e.toLowerCase()]=t}function $o(e){return ko[e]||Mo[e.toLowerCase()]}class Io extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=$o(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,n){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=co(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=po(e)),this.__assetpath}register(e){if(e=e||this.id){if(vo&&void 0!==$o(e))throw Do(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);Do(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Io.prototype.modules=ko,customElements.define("dom-module",Io);const Bo="link[rel=import][type~=css]",No="include",Oo="shady-unscoped";function Fo(e){return Io.import(e)}function Ro(e){var e=uo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function zo(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=Fo(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Wo(t));var i=t.querySelector("template");i&&e.push(...Ho(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ho(e,t){if(!e._styles){var i=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var r=n[e],o=r.getAttribute(No);o&&i.push(...zo(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(r.textContent=uo(r.textContent,t)),i.push(r)}e._styles=i}return e._styles}function Wo(t){const i=[],n=t.querySelectorAll(Bo);for(let e=0;e<n.length;e++){var r=n[e];if(r.import){const t=r.import,n=r.hasAttribute(Oo);if(n&&!t._unscopedStyle){const i=Ro(t);i.setAttribute(Oo,""),t._unscopedStyle=i}else t._style||(t._style=Ro(t));i.push(n?t._unscopedStyle:t._style)}}return i}const jo="include",Uo=window.ShadyCSS.CustomStyleInterface;class Yo extends HTMLElement{constructor(){super(),this._style=null,Uo.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var n=(this._style=e).getAttribute(jo);n&&(e.removeAttribute(jo),e.textContent=function(){let t=n.trim().split(/\s+/),i="";for(let e=0;e<t.length;e++)i+=function(e){var o=Fo(e);if(o&&void 0===o._cssText){let e=function(){let t="",i=Wo(o);for(let e=0;e<i.length;e++)t+=i[e].textContent;return t}(),r=o.querySelector("template");r&&(e+=function(){let t="";var i=Ho(r,o.assetpath);for(let e=0;e<i.length;e++){var n=i[e];n.parentNode&&n.parentNode.removeChild(n),t+=n.textContent}return t}()),o._cssText=e||null}return o||console.warn("Could not find style data in module named",e),o&&o._cssText||""}(t[e]);return i}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Yo);Oi=document.createElement("template"),Oi.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Oi.content),Ri=document.createElement("template"),Ri.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(Ri.content),t=document.createElement("template"),t.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(t.content),$i=document.createElement("template"),$i.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild($i.content),Ii=document.createElement("template"),Ii.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ii.content),Bi=document.createElement("template"),Bi.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bi.content),Oi=document.createElement("template");Oi.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Oi.content);const Go=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Vo(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function qo(n,...e){Xo(n,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 Vo(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+n[i+1],n[0]);return Go&&(i=Go.createHTML(i)),t.innerHTML=i,t}const Xo=(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")},Zo=qo`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
|
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=S(e),{stylesheet:h,rules:m}=M.get(p)||(p=p,u={stylesheet:(u=e,m=di("style"),u=S(u),h=m,si(u.head||u,h),h.sheet,m.sheet),rules:{}},M.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+` ${n}ms linear ${r}ms 1 both`,$+=1,s}function N(e){D=e}function we(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],ge=[];let F=[];const R=[],z=Promise.resolve();let H=!1;function _e(){H||(H=!0,z.then(p))}function wi(e){F.push(e)}const j=new Set;let U,Y=0;function p(){if(0===Y){const n=D;do{try{for(;Y<O.length;){const n=O[Y];Y++,N(n),e=t=void 0;var e,t=n.$$;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(n){throw O.length=0,Y=0,n}for(N(null),O.length=0,Y=0;ge.length;)ge.pop()();for(let e=0;e<F.length;e+=1){var i=F[e];j.has(i)||(j.add(i),i())}}while(F.length=0,O.length);for(;R.length;)R.pop()();H=!1,j.clear(),N(n)}}function V(e,t,i){var n;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(n=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),n))}const q=new Set;let X;function Z(){X={r:0,c:[],p:X}}function J(){X.r||ai(X.c),X=X.p}function K(e,t){e&&e.i&&(q.delete(e),e.i(t))}function Q(e,t,i,n){e&&e.o?q.has(e)||(q.add(e),X.c.push(()=>{q.delete(e),n&&(i&&e.d(1),n())}),e.o(t)):n&&n()}const ee={duration:0};function te(l,e,t,i){const n={direction:"both"};let c=e(l,t,n),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,n;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),n=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-n.length)||(e.style.animation=n.join(", "),$-=i)||P(()=>{$||(M.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),M.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 r(e){const{delay:t=0,duration:i=300,easing:n=w,tick:r=se,css:o}=c||ee,a={start:x()+t,b:e};if(e||((a.group=X).r+=1),d||p)p=a;else{o&&(m(),h=B(l,u,e,i,t,n,o)),e&&r(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=B(l,u,d.b,d.duration,0,n,c.css)),d)if(e>=d.end)r(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*n(l/d.duration),r(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(n),r(e)})):r(e)},end(){m(),d=p=null}}}function r(n,e,t,i,r,o,a,s=[-1]){var l=D;N(n);const c=n.$$={fragment:null,ctx:[],props:o,update:se,not_equal:r,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(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=n).$$.dirty[0]&&(O.push(e),_e(),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 n=Array.from(o.childNodes);c.fragment&&c.fragment.l(n),n.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&K(n.$$.fragment);var d=n,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 n=[],r=[];F.forEach(e=>(-1===i.indexOf(e)?n:r).push(e)),r.forEach(e=>e()),F=n}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,ne,re="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},oe="URLSearchParams"in re,ae="Symbol"in re&&"iterator"in Symbol,he="FileReader"in re&&"Blob"in re&&function(){try{return new Blob,!0}catch(e){return!1}}(),me="FormData"in re,xe="ArrayBuffer"in re;function Ce(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 Pe(e){return e="string"!=typeof e?String(e):e}function Te(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 Ee(t){this.map={},t instanceof Ee?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 Se(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Ae(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Le(e){var t=new FileReader,i=Ae(t);return t.readAsArrayBuffer(e),i}function Me(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function De(){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():xe&&he&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Me(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):xe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ne(e))?this._bodyArrayBuffer=Me(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=Se(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 Se(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(Le);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,n=Se(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Ae(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?i[1]:"utf-8",e.readAsText(n,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);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}xe&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ne=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),Ee.prototype.append=function(e,t){e=Ce(e),t=Pe(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},Ee.prototype.delete=function(e){delete this.map[Ce(e)]},Ee.prototype.get=function(e){return e=Ce(e),this.has(e)?this.map[e]:null},Ee.prototype.has=function(e){return this.map.hasOwnProperty(Ce(e))},Ee.prototype.set=function(e,t){this.map[Ce(e)]=Pe(t)},Ee.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},Ee.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),Te(i)},Ee.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Te(t)},Ee.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),Te(i)},ae&&(Ee.prototype[Symbol.iterator]=Ee.prototype.entries);var ke=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $e(e,t){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n=(t=t||{}).body;if(e instanceof $e){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Ee(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 Ee(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<ke.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in re)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"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 Ee(t.headers),this.url=t.url||"",this._initBody(e)}$e.prototype.clone=function(){return new $e(this,{body:this._bodyInit})},De.call($e.prototype),De.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ee(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],Oe=(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}})},re.DOMException);try{new Oe}catch(s){(Oe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe}function Fe(n,s){return new Promise(function(r,e){var o=new $e(n,s);if(o.signal&&o.signal.aborted)return e(new Oe("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,n,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new Ee,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{n.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),n)},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(){r(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 Oe("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&re.location.href?re.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":xe&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof Ee||re.Headers&&s.headers instanceof re.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(Ce(e)),a.setRequestHeader(e,Pe(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 Mi(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Fe.polyfill=!0,re.fetch||(re.fetch=Fe,re.Headers=Ee,re.Request=$e,re.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 ze(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 He(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],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 n,r,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function je(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||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)}Ze.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=He(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){r=e instanceof Ge?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=He(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ke(u)}catch(e){r=null!=r?r:[],e instanceof Ge?r=je(je([],We(r)),We(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ge(r)}},Ze.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ke(e);else{if(e instanceof Ze){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ze.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ze.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ze.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Ze.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Ze&&e._removeParent(this)},Ze.EMPTY=((t=new Ze).closed=!0,t);var qe=Ze,Xe=qe.EMPTY;function Ze(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Je(e){return e instanceof qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Ke(e){Ue(e)?e():e.unsubscribe()}var Qe=void 0,et=!1,tt=!1,it={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=it.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,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 nt(){}var rt=null;function ot(e){if(et){var t=!rt;if(t&&(rt={errorThrown:!1,error:null}),e(),t){var t=rt,i=t.errorThrown,t=t.error;if(rt=null,i)throw t}}else e()}ze(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?Je(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=(ze(mt,dt=st),mt);function mt(e,t,i){var n=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}:n&&tt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&ut(e.next,t),error:e.error&&ut(e.error,t),complete:e.complete&&ut(e.complete,t)}):e;return n.destination=new pt(i),n}function ft(e){this.partialObserver=e}function gt(e){var t=e;it.setTimeout(function(){throw t})}var yt={closed:!0,next:nt,error:function(e){throw e},complete:nt},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 n,r=this,o=(n=e)&&n instanceof st||n&&Ue(n.next)&&Ue(n.error)&&Ue(n.complete)&&Je(n)?e:new ht(e,t,i);return ot(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},bt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},bt.prototype.forEach=function(n,e){var r=this;return new(e=wt(e))(function(e,t){var i=new ht({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.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 n=this;return new(e=wt(e))(function(e,t){var i;n.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=(ze(Mt,Ct=vt),Mt.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},Mt.prototype._throwIfClosed=function(){if(this.closed)throw new Pt},Mt.prototype.next=function(r){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=He(o.currentObservers),n=i.next();!n.done;n=i.next())n.value.next(r)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},Mt.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)}})},Mt.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()}})},Mt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Mt.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),Mt.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ct.prototype._trySubscribe.call(this,e)},Mt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Mt.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Xe:(this.currentObservers=null,r.push(e),new qe(function(){t.currentObservers=null,Ve(r,e)}))},Mt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},Mt.prototype.asObservable=function(){var e=new vt;return e.source=this,e},Mt.create=function(e,t){return new Tt(e,t)},Mt),Tt=(ze(Lt,xt=t),Lt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Lt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Xe},Lt),Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0},St=(ze(At,_t=t),At.prototype.next=function(e){var t=this,i=t.isStopped,n=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(n.push(e),r)||n.push(o.now()+t),this._trimBuffer(),_t.prototype.next.call(this,e)},At.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},At.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*e;if(e<1/0&&r<i.length&&i.splice(0,i.length-r),!n){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)}},At);function At(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Et);var n=_t.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Lt(e,t){var i=xt.call(this)||this;return i.destination=e,i.source=t,i}function Mt(){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=[],kt={};const $t=[];function Bt(n,r=se){let o;const a=new Set;function s(e){if(i(n,e)&&(n=e,o)){const e=!$t.length;for(const e of a)e[1](),$t.push(e,n);if(e){for(let e=0;e<$t.length;e+=2)$t[e][0]($t[e+1]);$t.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=se){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||se),e(n),()=>{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 n=[];let r=0,o=se;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),u?t(e):o=ue(e)?e:se)},e=c.map((e,t)=>d(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=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===Ot);var t}var Ot="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(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 Ft(e,i)})}function zt(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 Ht(e,t){try{return t in e}catch(e){return!1}}function Wt(n,r,o){var a={};return o.isMergeableObject(n)&&zt(n).forEach(function(e){a[e]=Ft(n[e],o)}),zt(r).forEach(function(e){var t,i;(!Ht(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Ht(n,e)&&o.isMergeableObject(r[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:jt)(n[e],r[e],o):a[e]=Ft(r[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Ft;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Wt(e,t,i):Ft(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,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function qt(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function Xt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Jt(e){return e.type===y.date}function Kt(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 ni(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]/,ri=/(?:[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 n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(xi,function(e,t,i){return"string"!=typeof i?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===i?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),n}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 Si(e){return Ei(e)||{}}function Ai(e){for(var a={},t=0,i=e;t<i.length;t++){var n,r=i[t];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.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=r.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"}),r.options.reduce(function(e,t){return g(g({},e),Si(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return g(g({},e),Si(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(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Ci,function(e,t,i,n,r,o){if(t)a.minimumIntegerDigits=i.length;else{if(n&&r)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(r.stem))a.minimumIntegerDigits=r.stem.length;else if(_i.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(_i,function(e,t,i,n,r,o){return"*"===i?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=r.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Ti(o)))}else xi.test(r.stem)?a=g(g({},a),Ti(r.stem)):((o=Ei(r.stem))&&(a=g(g({},a),o)),(n=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}(r.stem))&&(a=g(g({},a),n)))}return a}var Li={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,"*")),ki=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,$i=!!String.fromCodePoint,Bi=!!Object.fromEntries,Ii=!!String.prototype.codePointAt,Ni=!!String.prototype.trimStart,Oi=!!String.prototype.trimEnd,Fi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ri=!0;try{Ri="a"===(null==(sn=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:sn[0])}catch(s){Ri=!1}var zi,Hi,Wi=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},ji=$i?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;o<r;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},Ui=Bi?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],r=r[1];t[o]=r}return t},Yi=Ii?function(e,t){return e.codePointAt(t)}:function(e,t){var i,n=e.length;if(!(t<0||n<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536},Gi=Ni?function(e){return e.trimStart()}:function(e){return e.replace(Di,"")},Vi=Oi?function(e){return e.trimEnd()}:function(e){return e.replace(ki,"")};function qi(e,t){return new RegExp(e,t)}Hi=Ri?(zi=qi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return zi.lastIndex=t,null!=(t=zi.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Yi(e,t);if(void 0===r||Ji(r)||33<=(i=r)&&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;n.push(r),t+=65536<=r?2:1}return ji.apply(void 0,n)};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 n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,i)).err)return r;n.push(r.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&&Zi(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r}else if((r=this.parseLiteral(e,t)).err)return r;n.push(r.val)}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:n,err:null}},o.prototype.parseTag=function(e,t){var i,n=this.clonePosition(),r=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(r,"/>"),location:v(n,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()||!Zi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:v(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(f.INVALID_TAG,v(n,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(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{r=this.tryParseUnquoted(e,t);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:n,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Zi(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 n=this.parseIdentifierIfPossible().value;if(!n)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:n,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,n,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Hi(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,n){var r,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(n)).err?c:(h=v(n,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="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;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),(Li[t||""]||Li[i||""]||Li["".concat(i,"-001")]||Li["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===r?"H":r}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(ri,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}},{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(n)).err?c:(m=v(n,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,n=e.split(oi).filter(function(e){return 0<e.length});i<n.length;i++){var r=n[i].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:r})}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?Ai(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.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&&(r=!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&&!r?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}n=v(n,this.clonePosition());return r?Fi(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},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()&&Ji(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 Xi=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 Zi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ji(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ki(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Xi(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 Zt(e)&&ii(e.style)||(Jt(e)||Kt(e))&&ni(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:ln,n=t&&t.serializer?t.serializer:rn;return(t&&t.strategy?t.strategy:function(e,t){return nn(e,this,1===e.length?en:tn,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function en(e,t,i,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function tn(e,t,i){var n=Array.prototype.slice.call(arguments,3),i=i(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function nn(e,t,i,n,r){return i.bind(t,e,n,r)}var rn=function(){return JSON.stringify(arguments)};function on(){this.cache=Object.create(null)}on.prototype.get=function(e){return this.cache[e]},on.prototype.set=function(e,t){this.cache[e]=t};var an,sn,ln={create:function(){return new on}},cn={variadic:function(e,t){return nn(e,this,tn,t.cache.create(),t.serializer)},monadic:function(e,t){return nn(e,this,en,t.cache.create(),t.serializer)}};(sn=an=an||{}).MISSING_VALUE="MISSING_VALUE",sn.INVALID_VALUE="INVALID_VALUE",sn.MISSING_INTL_API="MISSING_INTL_API";Gt(xn,mn=Error),xn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var un,dn,pn,hn,mn,fn=xn,gn=(Gt(_n,hn=fn),_n),yn=(Gt(wn,pn=fn),wn),vn=(Gt(bn,dn=fn),bn);function bn(e,t){return dn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),an.MISSING_VALUE,t)||this}function wn(e,t,i){return pn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),an.INVALID_VALUE,i)||this}function _n(e,t,i,n){return hn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),an.INVALID_VALUE,n)||this}function xn(e,t,i){e=mn.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function Cn(e,t,i,n,r,o,a){if(1===e.length&&Xt(e[0]))return[{type:un.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Xt(u))s.push({type:un.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:un.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(r&&d in r))throw new vn(d,a);d=r[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?un.literal:un.object,value:d});else if(Jt(u)){var p="string"==typeof u.style?n.date[u.style]:ni(u.style)?u.style.parsedOptions:void 0;s.push({type:un.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Kt(u))p="string"==typeof u.style?n.time[u.style]:ni(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:un.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Zt(u))(p="string"==typeof u.style?n.number[u.style]:ii(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:un.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ti(u)){var h=u.children,m=u.value,f=r[m];if("function"!=typeof f)throw new yn(m,"function",a);m=f(Cn(h,t,i,n,r,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?un.literal:un.object,value:e}}))}if(Qt(u)){if(!(g=u.options[d]||u.options.other))throw new gn(u.value,d,Object.keys(u.options),a);s.push.apply(s,Cn(g.value,t,i,n,r))}else if(ei(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',an.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 gn(u.value,d,Object.keys(u.options),a);s.push.apply(s,Cn(g.value,t,i,n,r,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===un.literal&&t.type===un.literal?i.value+=t.value:e.push(t),e},[])}function Pn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=un=un||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(En,"defaultLocale",{get:function(){return En.memoizedDefaultLocale||(En.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),En.memoizedDefaultLocale},enumerable:!1,configurable:!0}),En.memoizedDefaultLocale=null,En.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])},En.__parse=Ki,En.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 Tn=En;function En(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=En.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===un.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 Cn(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=En.resolveLocale(t),"string"==typeof e){if(this.message=e,!En.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=En.__parse(e,{ignoreTag:null==n?void 0:n.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=(r=En.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?g(g(g({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),n[t]||{}),e},{})):i),e},g({},r)):r),this.formatters=n&&n.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:Pn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:cn.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:Pn(t.dateTime),strategy:cn.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:Pn(t.pluralRules),strategy:cn.variadic})}}const Sn={},An=(e,t,i)=>i&&(t in Sn||(Sn[t]={}),e in Sn[t]||(Sn[t][e]=i),i),Ln=(t,i)=>{if(null!=i){if(i in Sn&&t in Sn[i])return Sn[i][t];var n=qn(i);for(let e=0;e<n.length;e++){var r=function(e,t){if(!kn(e))return null;e=function(e){return Mn[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var n=i.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const i=n.slice(e,n.length).join(".");if(i in t){t=t[i];break}}t=t[n[e]]}else t=void 0;return t}}(e,t);return e}(n[e],t);if(r)return An(t,i,r)}}};let Mn;const Dn=Bt({});function kn(e){return e in Mn}function k(t,...i){delete Sn[t],Dn.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}It([Dn],([e])=>Object.keys(e)),Dn.subscribe(e=>Mn=e);const $n={};function Bn(e){return $n[e]}function In(e){return null!=e&&qn(e).some(e=>{return null==(e=Bn(e))?void 0:e.size})}function Nn(n,e){return Promise.all(e.map(e=>{return t=n,i=e,$n[t].delete(i),0===$n[t].size&&delete $n[t],e().then(e=>e.default||e);var t,i})).then(e=>k(n,...e))}const On={};const Fn={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};const Rn=Bt(!1);var zn=Object.defineProperty,$i=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Un=(e,t,i)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Yn;const Gn=Bt(null);function Vn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function qn(e,t=Fn.fallbackLocale){e=Vn(e);return t?[...new Set([...e,...Vn(t)])]:e}function Xn(){return null!=Yn?Yn:void 0}Gn.subscribe(e=>{Yn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ye=$i(((e,t)=>{for(var i in t=t||{})Wn.call(t,i)&&Un(e,i,t[i]);if(Hn)for(var i of Hn(t))jn.call(t,i)&&Un(e,i,t[i]);return e})({},Gn),Bi({set:t=>{if(t&&function(e){if(null!=e){var t=qn(e);for(let e=0;e<t.length;e++){var i=t[e];if(kn(i))return i}}}(t)&&In(t)){var i=Fn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Xn()&&i?e=window.setTimeout(()=>Rn.set(!0),i):Rn.set(!0),function e(t){var i;return In(t)?(i=qn(t).map(e=>{var t=Bn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),On[t]=Promise.all(i.map(([e,t])=>Nn(e,t))).then(()=>{if(In(t))return e(t);delete On[t]}),On[t]):t in On?On[t]:Promise.resolve()}(t).then(()=>{Gn.set(t)}).finally(()=>{clearTimeout(e),Rn.set(!1)})}return Gn.set(t)}}));var Ii=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Zn=Object.defineProperty,Jn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,er=(e,t,i)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,tr=(e,t)=>{for(var i in t=t||{})Kn.call(t,i)&&er(e,i,t[i]);if(Jn)for(var i of Jn(t))Qn.call(t,i)&&er(e,i,t[i]);return e},ir=(e,t)=>{var i={};for(n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&Jn)for(var n of Jn(e))t.indexOf(n)<0&&Qn.call(e,n)&&(i[n]=e[n]);return i};const nr=(e,t)=>{var i=Fn["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},rr=Ii(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=nr("number",i)),new Intl.NumberFormat(t,e)}),or=Ii(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=nr("date",i):0===Object.keys(e).length&&(e=nr("date","short")),new Intl.DateTimeFormat(t,e)}),ar=Ii(e=>{var{locale:t,format:i}=e,e=ir(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=nr("time",i):0===Object.keys(e).length&&(e=nr("time","short")),new Intl.DateTimeFormat(t,e)}),sr=Ii((e,t=Xn())=>new Tn(e,t,Fn.formats,{ignoreTag:Fn.ignoreTag})),ve=It([ye,Dn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Xn(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ln(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!=(n=null!=(i=null==(i=(n=Fn).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let c=l;try{c=sr(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),lr=(It([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return ar(tr({locale:t},e))})(t).format(e)),It([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return or(tr({locale:t},e))})(t).format(e)),It([ye],()=>(e,t)=>((e={})=>{var{locale:t=Xn()}=e,e=ir(e,["locale"]);return rr(tr({locale:t},e))})(t).format(e)),It([ye,Dn],()=>(e,t=Xn())=>Ln(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new St(t),kt[e]=t,Dt.push(e)),kt[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))),be=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function cr(e,t){k(e,t)}const ur={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 dr(e,t){k(e,t)}const pr={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 hr(e,t){k(e,t)}const mr={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 fr(i){let n,r,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){n=di("div"),r=di("button"),o=di("span"),a=hi(c),gi(n,"class","GeneralLogout")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),s||(l=fi(r,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(n),s=!1,l()}}}function gr(o){let i,n,r,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,n,r=o[2]("logoutButton")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&r!==(r=e[2]("logoutButton")+"")&&yi(n,r)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),n=di("span"),r=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(r,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(r,"data-name","Layer 1"),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"viewBox","0 0 150 150"),A(n,"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,n),si(n,r),si(r,a),si(a,s),si(s,l),si(r,c),si(r,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 yr(i){let n;function r(e){return"PlayerAccountMenu"===e[0]?gr:fr}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[14](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[14](null)}}}function vr(t,e,i){let n;fe(t,ve,e=>i(2,n=e));let r,{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"!==be(m);e=window.matchMedia("(min-width: 768px)");Object.keys(mr).forEach(e=>{hr(e,mr[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,ye.set(e)),514&t.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),1026&t.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hr(e,t[e])})}).catch(e=>{console.log(e)})},[s,r,n,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}function br(e,t,i){e=e.slice();return e[32]=t[i],e}function wr(i){let n,r,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){n=di("div"),r=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(r,"class","PlayerAccountMenuItemWrapper"),gi(n,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(r,s),si(r,l),si(l,c),si(n,u),p||(h=fi(n,"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(n,"class",d)},d(e){e&&ci(n),p=!1,h()}}}function _r(i){let n,r=function(t){let i,n,r,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(n,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=[fi(r,"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(n),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,n;return{c(){i=di("div"),le(n=di("general-logout"),"endpoint",e[1]),le(n,"session",e[0]),le(n,"buttonlocation","PlayerAccountMenu"),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]&&le(n,"endpoint",e[1]),1&t[0]&&le(n,"session",e[0]),4&t[0]&&le(n,"clientstyling",e[2]),8&t[0]&&le(n,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=wr(br(t,g,e));let v=!t[10]&&function(e){let i,n;return{c(){i=di("div"),le(n=di("general-logout"),"endpoint",e[1]),le(n,"session",e[0]),le(n,"buttonlocation","PlayerAccountMenu"),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]&&le(n,"endpoint",e[1]),1&t[0]&&le(n,"session",e[0]),4&t[0]&&le(n,"clientstyling",e[2]),8&t[0]&&le(n,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),n=di("div"),m&&m.c(),r=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(n,"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,n),m&&m.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(n,u),f&&f.m(n,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 n=br(t,g,e);y[e]?y[e].p(n,i):(y[e]=wr(n),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(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[20](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[20](null)}}}function xr(i,e,n){let t;fe(i,ve,e=>n(9,t=e));let r,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"!==be(g),v="",b="";e=window.matchMedia("(min-width: 768px)");Object.keys(pr).forEach(e=>{dr(e,pr[e])});const w=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":n(5,f=e.data.accountMenuInfo);break;case"UserSessionID":n(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),n(6,o=e.id)},x=()=>{n(6,o=u)};return we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&n(1,a=e.endpoint),"session"in e&&n(0,s=e.session),"playerid"in e&&n(14,l=e.playerid),"lang"in e&&n(15,c=e.lang),"selecteditem"in e&&n(16,u=e.selecteditem),"userroles"in e&&n(17,d=e.userroles),"clientstyling"in e&&n(2,p=e.clientstyling),"clientstylingurl"in e&&n(3,h=e.clientstylingurl),"translationurl"in e&&n(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,ye.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=>{n(7,v=e.username),n(8,b=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&x(),24&i.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&r&&((e=document.createElement("style")).innerHTML=p,r.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dr(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,r,f,o,v,b,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){ge[e?"unshift":"push"](()=>{r=e,n(4,r)})}]}function Cr(e,t,i){e=e.slice();return e[14]=t[i],e}function Pr(t){let r,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tr(Cr(t,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(r,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var n=Cr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Tr(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e)}}}function Tr(e){let i,n,r,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),n=di("div"),r=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(r,"class","PlayerAccountNotificationIcon"),_(r.src,o=e[14].icon)||gi(r,"src",o),gi(r,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(n,"class","PlayerAccountNotificationBoxHeader"),gi(d,"class","PlayerAccountNotificationText"),gi(i,"class","PlayerAccountNotificationBox"),A(i,"background",e[14].backgroundColor)},m(e,t){li(e,i,t),si(i,n),si(n,r),si(n,s),si(n,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!_(r.src,o=e[14].icon)&&gi(r,"src",o),2&t&&a!==(a=e[14].title)&&gi(r,"alt",a),2&t&&h!==(h=e[14].title+"")&&yi(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&A(i,"background",e[14].backgroundColor)},d(e){e&&ci(i)}}}function Er(i){let n;function r(e){if(e[1].length)return Pr}let o=r(i),a=o&&o(i);return{c(){n=di("div"),a&&a.c(),this.c=se},m(e,t){li(e,n,t),a&&a.m(n,null),i[7](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a&&a.d(),i[7](null)}}}function Sr(t,e,i){let n,{customnotif:r=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==be(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=()=>{r.replace(" ",""),u=r.split(",")};return we(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,r=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&r&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&n){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&n&&((e=document.createElement("style")).innerHTML=o,n.appendChild(e))},[n,c,l,d,r,o,a,function(e){ge[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function Ar(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vr,yr,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},xr,_r,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Sr,Er,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 Lr={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 Mr(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function Dr(e){let i,n,t=e[22]+"";return{c(){i=di("option"),n=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function kr(i){let n,r,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")+"",E=i[3]("save")+"",S=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),A=i[5],L=[];for(let e=0;e<A.length;e+=1)L[e]=Dr(Mr(i,A,e));return{c(){n=di("div"),r=di("form"),S&&S.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<L.length;e+=1)L[e].c();v=mi(),b=di("div"),w=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]&&wi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(w,"class","TimeoutSave"),gi(b,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(r,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),S&&S.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),si(c,h),si(h,m),si(r,f),si(r,g),si(g,y);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(y,null);bi(y,i[2],!0),si(r,v),si(r,b),si(b,w),si(w,_),i[15](n),x||(C=[fi(y,"change",i[13]),fi(w,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&S.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(A=t[5],e=0;e<A.length;e+=1){var n=Mr(t,A,e);L[e]?L[e].p(n,i):(L[e]=Dr(n),L[e].c(),L[e].m(y,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=A.length}36&i&&bi(y,t[2]),8&i&&E!==(E=t[3]("save")+"")&&yi(_,E)},i:se,o:se,d(e){e&&ci(n),S&&S.d(),ui(L,e),i[15](null),x=!1,ai(C)}}}function $r(t,e,i){let n;fe(t,ve,e=>i(3,n=e));let r,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==be(u),p=(Object.keys(Lr).forEach(e=>{Ar(e,Lr[e])}),[{value:n("cooloff24"),text:n("cooloff24Text")},{value:n("cooloff7"),text:n("cooloff7Text")},{value:n("cooloff30"),text:n("cooloff30Text")},{value:n("cooloff3"),text:n("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,ye.set(e)),1026&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;514&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[o,r,h,n,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){ge[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},$r,kr,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()}});Ir=Br={path:void 0,exports:{},require:function(e,t){return Mi(null==t&&Br.path)}},Br.exports,Ir.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 O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(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 z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function H(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));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,n){return Dt(e,t,i,n,!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,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var i,n,r,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(r=t[n=G[i]])||(e[n]=r);return e}function X(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 X||null!=e&&null!=e._isAMomentObject}function Z(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=[],n=arguments.length,r=0;r<n;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];i.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[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,n=W({},e);for(i in t)f(t,i)&&(O(e[i])&&O(t[i])?(n[i]={},W(n[i],e[i]),W(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&O(e[i])&&(n[i]=W({},n[i]));return n}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 n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function n(e,t,i,n){var r="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),re[t]=re[t]||function(n){for(var e,r=n.match(ie),t=0,o=r.length;t<o;t++)oe[r[t]]?r[t]=oe[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(r[i])?r[i].call(e,n):r[i];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=i&&ne.test(e);)e=e.replace(ne,n),ne.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,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}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 r=/\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,Ee=/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,n){Ae[e]=u(i)?i:function(e,t){return e&&n?n:i}}function Se(e,t){return f(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},Le={};function x(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),R(i)&&(r=function(e,t){t[i]=h(e)}),n=e.length,t=0;t<n;t++)Le[e[t]]=r}function Me(e,r){x(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var C,P=0,T=1,E=2,S=3,A=4,L=5,De=6,ke=7,$e=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},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("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,n){n=i._locale.monthsParse(e,n,i._strict);null!=n?t[T]=n: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("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=b,Re=b;function ze(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 He(e){return null!=e?(ze(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=[],n=[],r=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),r.sort(e),o=0;o<12;o++)i[o]=_(i[o]),n[o]=_(n[o]);for(o=0;o<24;o++)r[o]=_(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(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,n,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,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,n,r){var o,t=1+7*(t-1)+(7+i-n)%7+Ve(e,n,r),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 Xe(e,t,i){var n,r,o=Ve(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+M(r=e.year()-1,t,i):o>M(e.year(),t,i)?(n=o-M(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function M(e,t,i){var n=Ve(e,t,i),t=Ve(e+1,t,i);return(je(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("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),Me(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("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)}),Me(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:g(i).invalidWeekday=e}),Me(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,it=b;function nt(){function e(e,t){return t.length-e.length}for(var t,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=c([2e3,1]).day(l),t=_(this.weekdaysMin(n,"")),i=_(this.weekdaysShort(n,"")),n=_(this.weekdays(n,"")),r.push(t),o.push(i),a.push(n),s.push(t),s.push(i),s.push(n);r.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("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,rt),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("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"],S),x(["k","kk"],function(e,t,i){e=h(e);t[S]=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[S]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var n=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n,2)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var n=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n))}),x("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[S]=h(e.substr(0,n)),t[A]=h(e.substr(n,2)),t[L]=h(e.substr(r))});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:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(n=pt(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(r,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===D[t]&&Ir&&Ir.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Mi(),ht(e)}catch(e){D[t]=null}return D[t]}function ht(e,t){return e&&((t=s(t)?k(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,n=lt;if(t.abbr=e,null!=D[e])K("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."),n=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])n=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;n=i._config}return D[e]=new ee(Q(n,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),D[e]}function k(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[S]<0||24<t[S]||24===t[S]&&(0!==t[A]||0!==t[L]||0!==t[De])?S:t[A]<0||59<t[A]?A:t[L]<0||59<t[L]?L:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<P||E<t)&&(t=E),g(e)._overflowWeeks&&-1===t&&(t=ke),g(e)._overflowWeekday&&-1===t&&(t=$e),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,n,r,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])){r=bt[t][0],n=!1!==bt[t][2];break}if(null==r)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(!n&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=r+(o||"")+(a||""),Lt(e)}else e._isValid=!1}function Tt(e,t,i,n,r,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(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Et(e){var t,i,n,r,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],n=t,r=e,i&&Ke.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(i=o[8],n=o[9],r=o[10],i?Ct[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function St(e,t,i){return null!=e?e:null!=t?t:i}function At(e){var t,i,n,r,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,n=St(d.GG,u._a[P],Xe($(),1,4).year),r=St(d.W,1),((o=St(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Xe($(),a,s),n=St(d.gg,u._a[P],c.year),r=St(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),r<1||r>M(n,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(n,r,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=St(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[S]&&0===e._a[A]&&0===e._a[L]&&0===e._a[De]&&(e._nextDay=!0,e._a[S]=0),e._d=(e._useUTC?Ge:Ye).apply(null,p),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[S]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,n,r=""+e._i,o=r.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)n=i[l],(t=(r.match(Se(n,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&g(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),a+=t.length),oe[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),d=n,h=e,null!=(p=t)&&f(Le,d)&&Le[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),e._a[S]<=12&&!0===g(e).bigHour&&0<e._a[S]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[S]=(o=e._locale,c=e._a[S],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])),At(e),ft(e)}else Et(e);else Pt(e);var c,u,d,p,h}function Mt(e){var t,i=e._i,n=e._f;{var r,o;return(e._locale=e._locale||k(e._l),null===i||void 0===n&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new X(ft(i)):(z(i)?e._d=i:a(n)?function(e){var t,i,n,r,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Lt(t),j(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,i=t):(null==n||o<n||a)&&(n=o,i=t,a)&&(s=!0);W(e,i||t)}(e):n?Lt(e):s(n=(i=e)._i)?i._d=new Date(m.now()):z(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Pt(r),!1===r._isValid&&(delete r._isValid,Et(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:m.createFromInputFallback(r))):r._d=new Date(+o[1])):a(n)?(i._a=H(n.slice(0),function(e){return parseInt(e,10)}),At(i)):O(n)?(r=i)._d||(t=void 0===(o=ce(r._i)).day?o.date:o.day,r._a=H([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),At(r)):R(n)?i._d=new Date(n):m.createFromInputFallback(i),j(e)||(e._d=null),e))}}function Dt(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(O(e)&&F(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,(r=new X(ft(Mt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function $(e,t,i,n){return Dt(e,t,i,n,!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=$.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=$.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function kt(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return $();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=ce(e),t=e.year||0,i=e.quarter||0,n=e.month||0,r=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,n=!1,r=$t.length;for(t in e)if(f(e,t)&&(-1===C.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[$t[i]]){if(n)return!1;parseFloat(e[$t[i]])!==h(e[$t[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=k(),this._bubble()}function It(e){return e instanceof Bt}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,i){n(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)})}Ot("Z",":"),Ot("ZZ",""),w("Z",Ee),w("ZZ",Ee),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Ee,e)});var Ft=/([\+\-]|\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(Ft)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||z(e)?e:$(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):$(e).local()}function Ht(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,n,r=e;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=jt.exec(e))?(i="-"===t[1]?-1:1,r={y:0,d:h(t[E])*i,h:h(t[S])*i,m:h(t[A])*i,s:h(t[L])*i,ms:h(Nt(1e3*t[De]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,r={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==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=$(r.from),i=$(r.to),t=t.isValid()&&i.isValid()?(i=zt(i,t),t.isBefore(i)?n=Gt(t,i):((n=Gt(i,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),n=new Bt(r),It(e)&&f(e,"_locale")&&(n._locale=e._locale),It(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}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(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(K(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(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),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(n=null==n||n,t&&ze(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Vt(1,"add"),Je=Vt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||R(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!R(e)&&Xt(t)}).length),i&&n)||function(e){var t,i,n=O(e)&&!F(e),r=!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],r=r||f(e,i);return n&&r}(e)||null==e;var t,i,n}function Jt(e,t){var i,n;return e.date()<t.date()?-Jt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(n=e.clone().add(i,"months"))<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=k(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 ni(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ri(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),i.push(_(r[o].narrow)),n.push(_(r[o].name)),n.push(_(r[o].abbr)),n.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+n.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){n(0,[e,e.length],0,t)}function si(e,t,i,n,r){var o;return null==e?Xe(this,n,r).year:(t>(o=M(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),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,n,r))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),w("N",ri),w("NN",ri),w("NNN",ri),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,n){n=i._locale.erasParse(e,n,i._strict);n?g(i).era=n: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,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,r):t[P]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(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),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=h(e)}),Me(["gg","GG"],function(e,t,i,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),w("Q",r),x("Q",function(e,t){t[T]=3*(h(e)-1)}),n("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"],E),x("Do",function(e,t){t[E]=h(e.match(v)[0])});_e=pe("Date",!0);n("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)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),w("m",v),w("mm",v,y),x(["m","mm"],A);ge=pe("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),w("s",v),w("ss",v,y),x(["s","ss"],L);var li,xe=pe("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),w("S",we,r),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),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=X.prototype;function ui(e){return e}r.add=Ie,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!F(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||f(e,n[r]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||$(),i=zt(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,$(e)))},r.clone=function(){return new X(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=zt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Jt(this,n)/12;break;case"month":o=Jt(this,n);break;case"quarter":o=Jt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:p(o)},r.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni: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},r.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from($(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to($(),e)},r.get=function(e){return u(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,i,n){return e=l(e)?e:$(e),t=l(t)?t:$(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},r.isSame=function(e,t){var e=l(e)?e:$(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()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return j(this)},r.lang=Qe,r.locale=Kt,r.localeData=Qt,r.max=be,r.min=ve,r.parsingFlags=function(){return W({},g(this))},r.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)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni: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},r.subtract=Je,r.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},r.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.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},r.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&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++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""},r.eraYear=function(){for(var e,t,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(e=i[n].since<=i[n].until?1:-1,t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return(this.year()-m(i[n].since).year())*e+i[n].offset;return this.year()},r.year=Ue,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=He,r.daysInMonth=function(){return Be(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return M(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return M(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return M(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return M(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){var t,i,n;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,n=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=n.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},r.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},r.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},r.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")},r.hour=r.hours=b,r.minute=r.minutes=ge,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ht(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&&(n=Ht(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,B(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Ht(this),"m"),this},r.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},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=Wt,r.isUTC=Wt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",_e),r.months=e("months accessor is deprecated. Use month instead",He),r.years=e("years accessor is deprecated. Use year instead",Ue),r.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()}),r.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=Mt(t))._a?(e=(t._isUTC?c:$)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<n;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,n){var r=k(),n=c().set(n,t);return r[i](n,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 n=[],r=0;r<12;r++)n[r]=di(e,r,i,"month");return n}function hi(e,t,i,n){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var r,o=k(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=di(t,(r+a)%7,n,"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,n){var r=this._relativeTime[i];return u(r)?r(e,t,i,n):r.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,n=this._eras||k("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=m(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=m(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},y.erasParse=function(e,t,i){var n,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if(0<=[o,a,s].indexOf(e))return l[n]},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||Oe).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[Oe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var n,r;if(this._monthsParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))||-1!==(r=C.call(this._longMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))||-1!==(r=C.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},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=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var n,r;if(this._weekdaysParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.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")||nt.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")||nt.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.",k);var mi=Math.abs;function fi(e,t,i,n){t=B(t,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*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"),Je=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 Ei(e,t,i,n){var r=B(e).abs(),o=Pi(r.as("s")),a=Pi(r.as("m")),s=Pi(r.as("h")),l=Pi(r.as("d")),c=Pi(r.as("M")),u=Pi(r.as("w")),r=Pi(r.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])||(r<=1?["y"]:["yy",r]))[2]=t,o[3]=0<+e,o[4]=n,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,o)}var Si=Math.abs;function Ai(e){return(0<e)-(e<0)||+e}function Li(){var e,t,i,n,r,o,a,s,l,c,u;return this.isValid()?(s=Si(this._milliseconds)/1e3,l=Si(this._days),c=Si(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(u)?"-":"",o=Ai(this._days)!==Ai(u)?"-":"",a=Ai(this._milliseconds)!==Ai(u)?"-":"",(u<0?"-":"")+"P"+(i?r+i+"Y":"")+(c?r+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"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,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/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+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Je,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,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),n.milliseconds=e%1e3,e=p(e/1e3),n.seconds=e%60,e=p(e/60),n.minutes=e%60,e=p(e/60),n.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,n.days=t,n.months=i,n.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,n;return this.isValid()?(i=!1,n=Ti,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ti,t),null!=t.s)&&null==t.ss&&(n.ss=t.s-1),t=Ei(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Li,I.toString=Li,I.toJSON=Li,I.locale=Kt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Li),I.lang=Qe,n("X",0,0,"unix"),n("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=$,m.fn=r,m.min=function(){return kt("isBefore",[].slice.call(arguments,0))},m.max=function(){return kt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return $(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=z,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 $.apply(null,arguments).parseZone()},m.localeData=k,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,n;return null!=t?(n=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(n=null!=(i=pt(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=D[e],D[e]=n),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=r,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 Br,Ir,W=Br.exports;function Nr(e,t){k(e,t)}const Or={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 Fr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Fr);let Rr,zr=null,Hr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Wr(e){requestAnimationFrame(function(){Hr?Hr(e):(zr||(zr=new Promise(e=>{Rr=e}),"complete"===document.readyState?Rr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Rr()})),zr.then(function(){e&&e()}))})}const jr="__seenByShadyCSS",Ur="__shadyCSSCachedStyle";let Yr=null,Gr=null;class Vr{constructor(){this.customStyles=[],this.enqueued=!1,Wr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Gr&&(this.enqueued=!0,Wr(Gr))}addCustomStyle(e){e[jr]||(e[jr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Ur]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var i=t[e];if(!i[Ur]){var n=this.getStyleForCustomStyle(i);if(n){const t=n.__appliedElement||n;Yr&&Yr(t),i[Ur]=t}}}return t}}Object.defineProperties(Vr.prototype,{transformCallback:{get:()=>Yr,set(e){Yr=e}},validateCallback:{get:()=>Gr,set(e){let t=!1;Gr||(t=!0),Gr=e,t&&this.enqueueDocumentValidation()}}});const qr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Xr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Zr=/@media\s(.*)/;function Jr(e,t){for(var i in t)null===i?e.style.removeProperty(i):e.style.setProperty(i,t[i])}function Kr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Qr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let eo,to;function io(e){eo=(!e||!e.shimcssproperties)&&(Qr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(to=window.ShadyCSS.cssBuild);Ni=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?eo=window.ShadyCSS.nativeCss:window.ShadyCSS?(io(window.ShadyCSS),window.ShadyCSS=void 0):io(window.WebComponents&&window.WebComponents.flags);const no=eo,ro=new Vr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,i){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,i){},styleSubtree(e,t){ro.processStyles(),Jr(e,t)},styleElement(e){ro.processStyles()},styleDocument(e){ro.processStyles(),Jr(document.body,e)},getComputedStyleValue:(e,t)=>Kr(e,t),flushCustomStyles(){},nativeCss:no,nativeShadow:Qr,cssBuild:to,disableRuntime:Ni}),window.ShadyCSS.CustomStyleInterface=ro,window.JSCompiler_renameProperty=function(e,t){return e};let oo,ao,so=/(url\()([^)]*)(\))/g,lo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function co(e,t){if(e&&lo.test(e))return e;if("//"===e)return e;if(void 0===oo){oo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",oo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,oo)try{return new URL(e,t).href}catch(t){return e}return ao||((ao=document.implementation.createHTMLDocument("temp")).base=ao.createElement("base"),ao.head.appendChild(ao.base),ao.anchor=ao.createElement("a"),ao.body.appendChild(ao.anchor)),ao.base.href=t,ao.anchor.href=e,ao.anchor.href||e}function uo(e,r){return e.replace(so,function(e,t,i,n){return t+"'"+co(i.replace(/["']/g,""),r)+"'"+n})}function po(e){return e.substring(0,e.lastIndexOf("/")+1)}const ho=!window.ShadyDOM||!window.ShadyDOM.inUse,mo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),ho&&"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 fo=window.Polymer&&window.Polymer.rootPath||po(document.baseURI||window.location.href),go=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,yo=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,vo=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,bo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,wo=window.Polymer&&window.Polymer.legacyOptimizations||!1,_o=window.Polymer&&window.Polymer.legacyWarnings||!1,xo=window.Polymer&&window.Polymer.syncInitialRender||!1,Co=window.Polymer&&window.Polymer.legacyUndefined||!1,Po=window.Polymer&&window.Polymer.orderedComputed||!1,To=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Eo=window.Polymer&&window.Polymer.fastDomIf||!1,So=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Ao=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Lo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Mo={},Do={};function ko(e,t){Mo[e]=Do[e.toLowerCase()]=t}function $o(e){return Mo[e]||Do[e.toLowerCase()]}class Bo extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=$o(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,n){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=co(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=po(e)),this.__assetpath}register(e){if(e=e||this.id){if(vo&&void 0!==$o(e))throw ko(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ko(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Bo.prototype.modules=Mo,customElements.define("dom-module",Bo);const Io="link[rel=import][type~=css]",No="include",Oo="shady-unscoped";function Fo(e){return Bo.import(e)}function Ro(e){var e=uo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function zo(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=Fo(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Wo(t));var i=t.querySelector("template");i&&e.push(...Ho(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ho(e,t){if(!e._styles){var i=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var r=n[e],o=r.getAttribute(No);o&&i.push(...zo(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(r.textContent=uo(r.textContent,t)),i.push(r)}e._styles=i}return e._styles}function Wo(t){const i=[],n=t.querySelectorAll(Io);for(let e=0;e<n.length;e++){var r=n[e];if(r.import){const t=r.import,n=r.hasAttribute(Oo);if(n&&!t._unscopedStyle){const i=Ro(t);i.setAttribute(Oo,""),t._unscopedStyle=i}else t._style||(t._style=Ro(t));i.push(n?t._unscopedStyle:t._style)}}return i}const jo="include",Uo=window.ShadyCSS.CustomStyleInterface;class Yo extends HTMLElement{constructor(){super(),this._style=null,Uo.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var n=(this._style=e).getAttribute(jo);n&&(e.removeAttribute(jo),e.textContent=function(){let t=n.trim().split(/\s+/),i="";for(let e=0;e<t.length;e++)i+=function(e){var o=Fo(e);if(o&&void 0===o._cssText){let e=function(){let t="",i=Wo(o);for(let e=0;e<i.length;e++)t+=i[e].textContent;return t}(),r=o.querySelector("template");r&&(e+=function(){let t="";var i=Ho(r,o.assetpath);for(let e=0;e<i.length;e++){var n=i[e];n.parentNode&&n.parentNode.removeChild(n),t+=n.textContent}return t}()),o._cssText=e||null}return o||console.warn("Could not find style data in module named",e),o&&o._cssText||""}(t[e]);return i}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Yo);Oi=document.createElement("template"),Oi.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Oi.content),Ri=document.createElement("template"),Ri.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(Ri.content),t=document.createElement("template"),t.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(t.content),$i=document.createElement("template"),$i.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild($i.content),Bi=document.createElement("template"),Bi.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bi.content),Ii=document.createElement("template"),Ii.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ii.content),Oi=document.createElement("template");Oi.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Oi.content);const Go=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Vo(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function qo(n,...e){Xo(n,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 Vo(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+n[i+1],n[0]);return Go&&(i=Go.createHTML(i)),t.innerHTML=i,t}const Xo=(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")},Zo=qo`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
|
4
4
|
<template>
|
|
5
5
|
<style include="lumo-menu-overlay">
|
|
6
6
|
[part="overlay"] {
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
}
|
|
323
323
|
</style>
|
|
324
324
|
</template>
|
|
325
|
-
</dom-module>`;document.head.appendChild(Ri.content);let Jo=0;function Ko(r){let o=r.__mixinApplications,a=(o||(o=new WeakMap,r.__mixinApplications=o),Jo++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,n=i.get(e);return n||(n=r(e),i.set(e,n),(e=Object.create(n.__mixinSet||t||null))[a]=!0,n.__mixinSet=e),n}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Qo(e){return 0<=e.indexOf(".")}function ea(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function ta(e,t){return 0===e.indexOf(t+".")}function ia(e,t){return 0===t.indexOf(e+".")}function na(e,t,i){return t+i.slice(e.length)}function ra(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var n=t[e].toString().split(".");for(let e=0;e<n.length;e++)i.push(n[e])}return i.join(".")}return t}function oa(e){return(Array.isArray(e)?ra(e):e.toString()).split(".")}function aa(e,t,i){let n=e,r=oa(t);for(let e=0;e<r.length;e++){if(!n)return;n=n[r[e]]}return i&&(i.path=r.join(".")),n}function sa(e,t,i){let n=e,r=oa(t),o=r[r.length-1];if(1<r.length){for(let e=0;e<r.length-1;e++)if(!(n=n[r[e]]))return;n[o]=i}else n[t]=i;return r.join(".")}const la={},ca=/-[a-z]/g,ua=/([A-Z])/g;function da(e){return la[e]||(la[e]=e.indexOf("-")<0?e:e.replace(ca,e=>e[1].toUpperCase()))}function pa(e){return la[e]||(la[e]=e.replace(ua,"-$1").toLowerCase())}let ha=0,ma=0,fa=[],ga=0,ya=!1,va=document.createTextNode("");new window.MutationObserver(function(){ya=!1;var t=fa.length;for(let e=0;e<t;e++){var i=fa[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}fa.splice(0,t),ma+=t}).observe(va,{characterData:!0});const ba={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)}},wa={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},_a={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},xa={run:e=>(ya||(ya=!0,va.textContent=ga++),fa.push(e),ha++),cancel(e){var t=e-ma;if(0<=t){if(!fa[t])throw new Error("invalid async handle: "+e);fa[t]=null}}},Ca=xa,Pa=Ko(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 n=this.__data[e],r=this._shouldPropertyChange(e,t,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ca.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,n){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,n)}_attributeToProperty(e,t,i){var n;this.__serializing||(this[n=(n=this.__dataAttributes)&&n[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(n)))}_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}}}),Ta={};let Ea=HTMLElement.prototype;for(;Ea;){var Sa=Object.getOwnPropertyNames(Ea);for(let e=0;e<Sa.length;e++)Ta[Sa[e]]=!0;Ea=Object.getPrototypeOf(Ea)}const Aa=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,La=Ko(e=>{return class extends Pa(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(da(t[e]))}static attributeNameForProperty(e){return pa(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(Aa(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,n,r;i=this,n=e,Ta[n]||void 0!==(r=i[n])&&(i.__data?i._setPendingProperty(n,r):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[n]=r)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),ka={"dom-if":!0,"dom-repeat":!0};let Ma=!1,Da=!1;const $a=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);n&&i.startsWith("on-")?e.setAttribute(i,n.createScript(t,i)):e.setAttribute(i,t)}})();const Ia=Ko(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 n=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(r,t,i)||n,e=r,Ma||(Ma=!0,(o=document.createElement("textarea")).placeholder="a",Da=o.placeholder===o.textContent),Da&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),r.firstChild&&this._parseTemplateChildNodes(r,t,i),(n=r.hasAttributes&&r.hasAttributes()?this._parseTemplateNodeAttributes(r,t,i)||n:n)||i.noted;var o}static _parseTemplateChildNodes(n,r,o){if("script"!==n.localName&&"style"!==n.localName)for(let t,i=n.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&ka[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"];$a(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,n.removeChild(e),e=t;if(r.stripWhiteSpace&&!i.textContent.trim()){n.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,r,a)&&(a.infoIndex=r.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,n,r){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,n,r,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,n,r){return"on-"===n.slice(0,3)?(e.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:r}),!0):"id"===n&&(i.id=r,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,n){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var r,o,a=(n=n||this.constructor._parseTemplate(e)).nodeInfoList,e=n.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!n.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 n=i.parentInfo&&e(t,i.parentInfo);if(!n)return t;for(let e=n.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(r=s.$,o=c,(p=e).id&&(r[p.id]=o),r=c,p=e,o=n,p.templateInfo&&(r._templateInfo=p.templateInfo,r._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,n){function r(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=n=n||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let Ba=0;const Na=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Oa="__computeInfo",Fa=/[A-Z]/;function Ra(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(var r in n){var o=n[r],a=n[r]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else n=e[t]={};return n}function za(r,e,o,a,s,l){if(e){let n=!1;var c,u=Ba++;for(c in o){var d=e[s?ea(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&&!Ha(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(r,c,o,a,e.info,s,l),n=!0)}return n}}function Ha(e,t){var i;return!t||(i=t.name)==e||t.structured&&ta(i,e)||t.wildcard&&ia(i,e)}function Wa(e,t,i,n,r){var o="string"==typeof r.method?e[r.method]:r.method,a=r.property;o?o.call(e,e.__data[a],n[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function ja(e,t,i,n){i={value:i,queueProperty:!0};n&&(i.path=n),b(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Ua(e,t,i,n,r,o){let a=(o?ea(t):t)!=t?t:null,s=a?aa(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),ja(e,r.eventName,s,a)}function Ya(e,t,i,n,r){let o=e.__data[t];go&&(o=go(o,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,o)}const Ga=(e,t,i)=>{let n=0,r=t.length-1,o=-1;for(;n<=r;){var a=n+r>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)n=1+a;else{if(!(0<s)){o=a;break}r=a-1}}o<0&&(o=r+1),t.splice(o,0,e)},Va=(t,e,i,n,r)=>{var o=e[r?ea(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===Ba||r&&!Ha(t,a.trigger)||(a.info.lastRun=Ba,Ga(a.info,i,n))}};function qa(e,t,i,n,r){t=Qa(e,t,i,0,r);return t!==Na&&(i=r.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function Xa(t,i,e,n,r,o,a){e.bindings=e.bindings||[];var s={kind:n,target:r,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),n=s,Boolean(n.target)&&"attribute"!=n.kind&&"text"!=n.kind&&!n.isCompound&&"{"===n.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||pa(r)+"-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=as(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Za,info:g,trigger:e})}}}}function Za(e,t,i,n,r,o,a){var s,a=a[r.index],l=r.binding,c=r.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=na(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=r.evaluator._evaluateBinding(e,c,t,i,n,o))!==Na&&(r=e,t=c,n=i=a,e=o=s,(a=c=l).isCompound&&((l=n.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===n.localName||"textarea"===n.localName))&&null==e?"":e,go&&(o=go(o,c.target,c.kind,i)),"attribute"==c.kind?r._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)&&r._enqueueClient(i):r._setUnmanagedPropertyToNode(i,t,o)))}function Ja(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(n){{var r=c,o=u.target,a=l.source,s=l.negate;let e,t=n.detail,i=t&&t.path;e=i?(a=na(o,a,i),t&&t.value):n.currentTarget[o],e=s?!e:e,r[C.READ_ONLY]&&r[C.READ_ONLY][a]||!r._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||r._invalidateProperties()}})}}function Ka(i,n,r,o,e,t){t=n.static||t&&("object"!=typeof t||t[n.methodName]);var a={methodName:n.methodName,args:n.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<n.args.length&&(e=n.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,r,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(n.methodName,r,{fn:o,info:a}),a}function Qa(e,t,i,n,r){var o=e._methodHost||e,a=o[r.methodName];if(a)return(e=e._marshalArgs(r.args,t,i))===Na?Na:a.apply(o,e);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const es=[],ts="(?:[a-zA-Z_$][\\w.:$\\-*]*)",is="(?:("+ts+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",ns=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+ts+"\\s*(?:\\(\\s*(?:(?:"+is+"(?:,\\s*"+is+")*)?)\\)\\s*)?)(?:]]|}})","g");function rs(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function os(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=as(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function as(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch(n="0"<=(n="-"===n?t[1]:n)&&n<="9"?"#":n){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=ea(t),i.structured=Qo(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function ss(e,t,i){let n=aa(e,i);return n=void 0===n?t[i]:n}function ls(e,t,i,n){n={indexSplices:n};Co&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(i+".splices",n),e.notifyPath(i+".length",t.length),Co&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function cs(e,t,i,n,r,o){ls(e,t,i,[{index:n,addedCount:r,removed:o,object:t,type:"splice"}])}const us=Ko(e=>{const c=Ia(La(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;ds.length&&((e=ds[ds.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 n=Ra(this,t,!0)[e];(n=n||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=Ra(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,n){if(n||ea(Array.isArray(e)?e[0]:e)!==e){if(!n){n=aa(this,e);if(!(e=sa(this,e,t))||!super._shouldPropertyChange(e,t,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var r=this;var o=e;var a=t;var s=r.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];ia(l,o)?(e=na(l,c,o),r._setPendingPropertyOrPath(e,a,!0,!0)):ia(c,o)&&(e=na(c,l,o),r._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 n=this.__dataHasPaths&&Qo(e),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||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,r,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=r,n=o,d=u,p=t[C.COMPUTE];if(p)if(Po){Ba++;var h,m,f=function(r){let o=r.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=r[C.COMPUTE];let e,{counts:t,ready:i,total:n}=function(e){const t=e[Oa],i={},n=e[C.COMPUTE],r=[];let o=0;for(var a in t){const n=t[a];o+=i[a]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var s in n)t[s]||r.push(s);return{counts:i,ready:r,total:o}}(r);for(;e=i.shift();){o.set(e,o.size);const r=a[e];r&&r.forEach(e=>{e=e.info.methodInfo;--n,0==--t[e]&&i.push(e)})}if(0!==n){const o=r;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}r.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)Va(h,p,g,f,d);for(;m=g.shift();)qa(t,"",i,0,m)&&Va(m.methodInfo,p,g,f,d);Object.assign(n,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;za(t,p,e,n,d);)Object.assign(n,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,o,u),this._flushClients(),za(this,this[C.REFLECT],r,o,u),za(this,this[C.OBSERVE],r,o,u),a){var y=this,v=a,b=r,w=o,_=u,x;let e,t,i=y[C.NOTIFY],n=Ba++;for(x in v)v[x]&&(i&&function(n,e,r,o,a,s,l,c){let u=!1,d=e[l?ea(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===r||l&&!Ha(o,e.trigger)||(e.info&&(e.info.lastRun=r),e.fn(n,o,a,s,e.info,l,c),u=!0);return u}(y,i,n,x,b,w,_)||_&&(s=y,x=x,l=b,c=void 0,c=ea(x),c!==x)&&(ja(s,pa(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]&&za(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(n,e,r,t){var i=(t,i)=>{za(this,n.propertyEffects,t,r,i,n.nodeList);for(let e=n.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,r,i)};n.runEffects?n.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=ra(e),t=ra(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=ra(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};ls(this,aa(this,e,i),i.path,t)}get(e,t){return aa(t||this,e)}set(e,t,i){i?sa(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=aa(this,e,i),n=e.length,r=e.push(...t);return t.length&&cs(this,e,i.path,n,t.length,[]),r}pop(e){var t={path:""},e=aa(this,e,t),i=Boolean(e.length),n=e.pop();return i&&cs(this,e,t.path,e.length,0,[n]),n}splice(e,t,i,...n){var r={path:""},e=aa(this,e,r);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...n),(n.length||i.length)&&cs(this,e,r.path,t,n.length,i),i}shift(e){var t={path:""},e=aa(this,e,t),i=Boolean(e.length),n=e.shift();return i&&cs(this,e,t.path,0,0,[n]),n}unshift(e,...t){var i={path:""},e=aa(this,e,i),n=e.unshift(...t);return t.length&&cs(this,e,i.path,0,t.length,[]),n}notifyPath(e,t){let i;var n;i=1==arguments.length?(t=aa(this,e,n={path:""}),n.path):Array.isArray(e)?ra(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 n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:Wa,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:Wa,info:n,trigger:{name:t}})}_createMethodObserver(e,t){var i=os(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ka(this,i,C.OBSERVE,Qa,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:Ua,info:{eventName:pa(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:Ya,info:{attrName:t}})}_createComputedProperty(e,t,i){var n=os(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");t=Ka(this,n,C.COMPUTE,qa,e,i);Ra(this,Oa)[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:n,literal:r}=a[o];if(!r)if(i){const a=ia(e,s),u=ss(c,l,a?s:e);n={path:a?s:e,value:u,base:a?aa(c,e):u}}else n=t?ss(c,l,e):c[e];if(Co&&!this._overrideLegacyUndefined&&void 0===n&&1<a.length)return Na;u[o]=n}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),n=this.__preBoundTemplateInfo==i;if(!n)for(var r in i.propertyEffects)this._createPropertyAccessor(r);if(t)if((i=Object.create(i)).wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=n)?n.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),ds.push(this);t=super._stampTemplate(t,e);if(ds.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 n=this,{nodeList:r,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=r[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)}Ja(s,n,c)}s.__dataHost=n}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:n}=e,r=(t?t.nextSibling=i:n&&(n.firstChild=i),i?i.previousSibling=t:n&&(n.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<r.length;e++){var o=r[e];b(b(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let n=c._parseTemplateNode.call(this,e,t,i);var r;return e.nodeType===Node.TEXT_NODE&&(r=this._parseBindings(e.textContent,t))&&(e.textContent=rs(r)||" ",Xa(this,t,i,"text","textContent",r),n=!0),n}static _parseTemplateNodeAttribute(n,r,o,a,e){var s=this._parseBindings(e,r);if(s){let e=a,t="property",i=(Fa.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),rs(s));return i&&"attribute"==t&&("class"==a&&n.hasAttribute("class")&&(i+=" "+n.getAttribute(a)),n.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&n.setAttribute(a,""),"input"===n.localName&&"value"===e&&n.setAttribute(e,""),n.removeAttribute(e),"property"===t&&(a=da(a)),Xa(this,r,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,n,r,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let n=c._parseTemplateNestedTemplate.call(this,e,t,i);var r=e.parentNode,o=i.templateInfo,a="dom-if"===r.localName,s="dom-repeat"===r.localName,s=(To&&(a||s)&&(r.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,n=!1),o.hostProps);if(Eo&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),To||(i.parentInfo.noted=!0));else for(var l in s)Xa(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return n}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=ns.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(),n=!1,r="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(r=i.substring(o+2),i=i.substring(0,o),n=!0);var d=os(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:n,signature:d,dependencies:p,event:r}),u=ns.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,n,r,o){let a;return a=t.signature?Qa(e,i,n,0,t.signature):i!=t.source?aa(e,t.source):o&&Qo(i)?aa(e,i):e.__data[i],a=t.negate?!a:a}}}),ds=[],ps=Ko(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof n?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 n=e[t];i[t]="function"==typeof n?{type:n}:n}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class n extends Pa(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 n}),hs=window.ShadyCSS&&window.ShadyCSS.cssBuild,ms=Ko(e=>{const n=ps(us(e));return class extends n{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){n._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):wo||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,n=t,t=e[t],r=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(n)?console.warn(`Cannot redefine computed property '${n}'.`):i._createComputedProperty(n,t.computed,r)),t.readOnly&&!i._hasReadOnlyEffect(n)?i._createReadOnlyProperty(n,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(n)&&console.warn(`Cannot make readOnly property '${n}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(n)?i._createReflectedProperty(n):!1===t.reflectToAttribute&&i._hasReflectEffect(n)&&console.warn(`Cannot make reflected property '${n}' non-reflected.`),t.notify&&!i._hasNotifyEffect(n)?i._createNotifyingProperty(n):!1===t.notify&&i._hasNotifyEffect(n)&&console.warn(`Cannot make notify property '${n}' non-notify.`),t.observer&&i._createPropertyObserver(n,t.observer,r[t.observer]),i._addPropertyToAttributeMap(n);var i,n,r}static createObservers(t,i){var n=this.prototype;for(let e=0;e<t.length;e++)n._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||vo&&!bo||(t=Io.import(e,"template"),!vo)||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=po(e.url):(e=Io.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=fo,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 n=i[t];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=n)}}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 uo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,r=this,o=t,a=e,s=i?co(i):"";if(!hs){var l=o.content.querySelectorAll("style"),c=Ho(o),u=(e=Fo(a))?Wo(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=r._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let n=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[n];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):n++,e.textContent=r._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),Lo&&hs&&mo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),r._styleSheet=new CSSStyleSheet,r._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])),xo&&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=co(this.importPath)),co(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,n._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!_o||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.`),n._addTemplatePropertyEffect.call(this,e,t,i)}}}),fs=ms(HTMLElement);class gs{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,ys.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ys.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 gs?e._cancelAsync():e=new gs,e.setConfig(t,i),e}}let ys=new Set;function vs(e){ys.add(e)}let bs="string"==typeof document.head.style.touchAction,ws="__polymerGestures",_s="__polymerGesturesHandled",xs="__polymerGesturesTouchAction",Cs=["mousedown","mousemove","mouseup","click"],Ps=[0,1,4,2],Ts=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Es(e){return-1<Cs.indexOf(e)}let Ss=!1;function As(e){return!Es(e)&&"touchend"!==e&&bs&&Ss&&yo?{passive:!0}:void 0}try{var Ls=Object.defineProperty({},"passive",{get(){Ss=!0}});window.addEventListener("test",null,Ls),window.removeEventListener("test",null,Ls)}catch(e){}let ks=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Ms=[],Ds={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},$s={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Is(e){var n,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[_s]={skip:!0},"click"===e.type)){let t=!1,i=zs(e);for(let e=0;e<i.length;e++){if(i[e].nodeType===Node.ELEMENT_NODE)if("label"===i[e].localName)Ms.push(i[e]);else if(n=i[e],Ds[n.localName]){var r=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var i=e.getRootNode();if(e.id){var n=i.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(e){}}return t}(i[e]);for(let e=0;e<r.length;e++)t=t||-1<Ms.indexOf(r[e])}if(i[e]===Os.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function Bs(i){var n=ks?["click"]:Cs;for(let e,t=0;t<n.length;t++)e=n[t],i?(Ms.length=0,document.addEventListener(e,Is,!0)):document.removeEventListener(e,Is,!0)}function Ns(t){var e=t.type;if(Es(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&&!Ts&&(e=Ps[t.which]||0),Boolean(1&e)}}}let Os={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Fs(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Rs(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){Os.mouse.mouseIgnoreJob||Bs(!0),Os.mouse.target=zs(e)[0],Os.mouse.mouseIgnoreJob=gs.debounce(Os.mouse.mouseIgnoreJob,ba.after(2500),function(){Bs(),Os.mouse.target=null,Os.mouse.mouseIgnoreJob=null})},!!Ss&&{passive:!0});const zs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Hs={},Ws=[];function js(e){var t=zs(e);return 0<t.length?t[0]:e.target}function Us(i){var n,r=i.type,o=i.currentTarget[ws];if(o){var a=o[r];if(a){if(!i[_s]&&(i[_s]={},"touch"===r.slice(0,5))){o=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(Os.touch.id=o.identifier),Os.touch.id!==o.identifier)return;if(!(bs||"touchstart"!==r&&"touchmove"!==r)){o=i;var s=o.changedTouches[0],e=o.type;if("touchstart"===e)Os.touch.x=s.clientX,Os.touch.y=s.clientY,Os.touch.scrollDecided=!1;else if("touchmove"===e&&!Os.touch.scrollDecided){Os.touch.scrollDecided=!0;let e=function(e){let i="auto",n=zs(e);for(let e,t=0;t<n.length;t++)if((e=n[t])[xs]){i=e[xs];break}return i}(o),t=!1,i=Math.abs(Os.touch.x-s.clientX),n=Math.abs(Os.touch.y-s.clientY);o.cancelable&&("none"===e?t=!0:"pan-x"===e?t=i<n:"pan-y"===e&&(t=n<i)),t?o.preventDefault():Xs("track")}}}if(!(n=i[_s]).skip){for(let e,t=0;t<Ws.length;t++)a[(e=Ws[t]).name]&&!n[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<Ws.length;t++)a[(e=Ws[t]).name]&&!n[e.name]&&(n[e.name]=!0,e[r](i))}}}}function Ys(e,t,i){return Hs[t]&&(function(n,e,t){let i=Hs[e],r=i.deps,o=i.name,a=n[ws];a||(n[ws]=a={});for(let e,t,i=0;i<r.length;i++)e=r[i],ks&&Es(e)&&"click"!==e||((t=a[e])||(a[e]=t={_count:0}),0===t._count&&n.addEventListener(e,Us,As(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);n.addEventListener(e,t),i.touchAction&&Vs(n,i.touchAction)}(e,t,i),1)}function Gs(t){Ws.push(t);for(let e=0;e<t.emits.length;e++)Hs[t.emits[e]]=t}function Vs(e,t){bs&&e instanceof HTMLElement&&xa.run(()=>{e.style.touchAction=t}),e[xs]=t}function qs(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=i,b(e).dispatchEvent(t),t.defaultPrevented&&(e=i.preventer||i.sourceEvent)&&e.preventDefault&&e.preventDefault()}function Xs(e){e=function(i){for(let t,e=0;e<Ws.length;e++){t=Ws[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 Zs(e,t,i,n){t&&qs(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:Xs})}function Js(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 Ks(a,s,l){if(s){let e,t=a.moves[a.moves.length-2],i=a.moves[a.moves.length-1],n=i.x-a.x,r=i.y-a.y,o=0;t&&(e=i.x-t.x,o=i.y-t.y),qs(s,"track",{state:a.state,x:l.clientX,y:l.clientY,dx:n,dy:r,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var i=l.clientX,n=l.clientY;let e=document.elementFromPoint(i,n),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,n)))break;t&&(e=t)}return e}}})}}function Qs(e,t,i){var n,r=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=js(i||t);!a||$s[a.localName]&&a.hasAttribute("disabled")||!(isNaN(r)||isNaN(o)||r<=25&&o<=25)&&("click"!==(r=t).type||0!==r.detail&&(o=js(r)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),n=r.pageX,r=r.pageY,n>=o.left)&&n<=o.right&&r>=o.top&&r<=o.bottom)||e.prevent||qs(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}Gs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Rs(this.info)},mousedown:function(e){if(Ns(e)){let t=js(e),i=this;Fs(this.info,function(e){Ns(e)||(Zs("up",t,e),Rs(i.info))},function(e){Ns(e)&&Zs("up",t,e),Rs(i.info)}),Zs("down",t,e)}},touchstart:function(e){Zs("down",js(e),e.changedTouches[0],e)},touchend:function(e){Zs("up",js(e),e.changedTouches[0],e)}}),Gs({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Rs(this.info)},mousedown:function(e){if(Ns(e)){let n=js(e),r=this,t=function(e){var t=e.clientX,i=e.clientY;Js(r.info,t,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&Xs("tap"),r.info.addMove({x:t,y:i}),Ns(e)||(r.info.state="end",Rs(r.info)),n&&Ks(r.info,n,e),r.info.started=!0)};Fs(this.info,t,function(e){r.info.started&&t(e),Rs(r.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=js(e),e=e.changedTouches[0],i=e.clientX,n=e.clientY;Js(this.info,i,n)&&("start"===this.info.state&&Xs("tap"),this.info.addMove({x:i,y:n}),Ks(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=js(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Ks(this.info,t,e))}}),Gs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Ns(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Ns(e)&&Qs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Qs(this.info,e.changedTouches[0],e)}});const el=Ko(e=>class extends e{_addEventListenerToNode(e,t,i){Ys(e,t,i)||super._addEventListenerToNode(e,t,i)}_removeEventListenerFromNode(e,t,i){if(l=e,c=t,r=i,Hs[c]){var n=l;l=c,c=r;var r,o=(r=Hs[l]).deps,a=r.name,s=n[ws];if(s)for(let e,t,i=0;i<o.length;i++)e=o[i],(t=s[e])&&t[a]&&(t[a]=(t[a]||1)-1,t._count=(t._count||1)-1,0===t._count)&&n.removeEventListener(e,Us,As(e));n.removeEventListener(l,c)}else super._removeEventListenerFromNode(e,t,i);var l,c,r}}),tl=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._setTheme(i)}},il=e=>class extends tl(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,i=Object.getPrototypeOf(this.prototype)._template;i&&!e&&Array.from(i.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(i){const e=Io.prototype.modules;let n=!1;const r=this.is+"-default-theme";Object.keys(e).sort((t,i)=>{var e=0===t.indexOf("vaadin-"),n=0===i.indexOf("vaadin-"),r=["lumo-","material-"],o=0<r.filter(e=>0===t.indexOf(e)).length,r=0<r.filter(e=>0===i.indexOf(e)).length;return e!=n?e?-1:1:o!=r?o?-1:1:0}).forEach(t=>{if(t!==r){const r=e[t].getAttribute("theme-for");r&&r.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(t,i))})}}),!n&&e[r]&&this._includeStyle(r,i)}static _includeStyle(e,t){var i;t&&!t.content.querySelector(`style[include="${e}"]`)&&((i=document.createElement("style")).setAttribute("include",e),t.content.appendChild(i))}};let nl=!1;window.addEventListener("keydown",()=>{nl=!0},{capture:!0}),window.addEventListener("mousedown",()=>{nl=!1},{capture:!0});function rl(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(ys.size),ys.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const ol=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return nl}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&nl?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class al{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 n=i["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return i.scrollWidth-i.clientWidth+n;case"reverse":return i.scrollWidth-i.clientWidth-n}return n}static setNormalizedScrollLeft(e,t,i,n){if("rtl"===t&&e)switch(e){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+n;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-n;break;default:i.scrollLeft=n}else i.scrollLeft=n}}const sl=[];let ll;new MutationObserver(function(){const t=ul();sl.forEach(e=>{cl(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const cl=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},ul=function(){return document.documentElement.getAttribute("dir")},dl=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),ll=ll||al.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),cl(this,ul()))}attributeChangedCallback(e,t,i){var n;super.attributeChangedCallback(e,t,i),"dir"===e&&(e=i===ul()&&-1===sl.indexOf(this),n=!i&&t&&-1===sl.indexOf(this),i=i!==ul()&&t===ul(),e||n?(this.__subscribe(),cl(this,ul())):i&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===sl.indexOf(this)&&sl.push(this):-1<sl.indexOf(this)&&sl.splice(sl.indexOf(this),1)}__getNormalizedScrollLeft(e){return al.getNormalizedScrollLeft(ll,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return al.setNormalizedScrollLeft(ll,this.getAttribute("dir")||"ltr",e,t)}},pl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hl=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ml(e,t){if("function"==typeof e){var i=pl.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 fl(){}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)&&(hl?!(hl&&0<Object.keys(hl).map(e=>hl[e]).filter(e=>e.productionMode).length):!ml(function(){return!0}))}catch(e){return!1}}());function gl(){var e=fl,t=void 0;if(window.Vaadin.developmentMode)return ml(e,t)}let yl;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){gl,gl()};const vl=new Set,bl=e=>class extends dl(e){static finalize(){super.finalize();var e=this["is"];e&&!vl.has(e)&&(window.Vaadin.registrations.push(this),vl.add(e),window.Vaadin.developmentModeCallback)&&(yl=gs.debounce(yl,_a,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),vs(yl))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class wl extends bl(ol(il(el(fs)))){static get template(){return qo`
|
|
325
|
+
</dom-module>`;document.head.appendChild(Ri.content);let Jo=0;function Ko(r){let o=r.__mixinApplications,a=(o||(o=new WeakMap,r.__mixinApplications=o),Jo++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,n=i.get(e);return n||(n=r(e),i.set(e,n),(e=Object.create(n.__mixinSet||t||null))[a]=!0,n.__mixinSet=e),n}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Qo(e){return 0<=e.indexOf(".")}function ea(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function ta(e,t){return 0===e.indexOf(t+".")}function ia(e,t){return 0===t.indexOf(e+".")}function na(e,t,i){return t+i.slice(e.length)}function ra(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var n=t[e].toString().split(".");for(let e=0;e<n.length;e++)i.push(n[e])}return i.join(".")}return t}function oa(e){return(Array.isArray(e)?ra(e):e.toString()).split(".")}function aa(e,t,i){let n=e,r=oa(t);for(let e=0;e<r.length;e++){if(!n)return;n=n[r[e]]}return i&&(i.path=r.join(".")),n}function sa(e,t,i){let n=e,r=oa(t),o=r[r.length-1];if(1<r.length){for(let e=0;e<r.length-1;e++)if(!(n=n[r[e]]))return;n[o]=i}else n[t]=i;return r.join(".")}const la={},ca=/-[a-z]/g,ua=/([A-Z])/g;function da(e){return la[e]||(la[e]=e.indexOf("-")<0?e:e.replace(ca,e=>e[1].toUpperCase()))}function pa(e){return la[e]||(la[e]=e.replace(ua,"-$1").toLowerCase())}let ha=0,ma=0,fa=[],ga=0,ya=!1,va=document.createTextNode("");new window.MutationObserver(function(){ya=!1;var t=fa.length;for(let e=0;e<t;e++){var i=fa[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}fa.splice(0,t),ma+=t}).observe(va,{characterData:!0});const ba={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)}},wa={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},_a={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},xa={run:e=>(ya||(ya=!0,va.textContent=ga++),fa.push(e),ha++),cancel(e){var t=e-ma;if(0<=t){if(!fa[t])throw new Error("invalid async handle: "+e);fa[t]=null}}},Ca=xa,Pa=Ko(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 n=this.__data[e],r=this._shouldPropertyChange(e,t,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ca.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,n){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,n)}_attributeToProperty(e,t,i){var n;this.__serializing||(this[n=(n=this.__dataAttributes)&&n[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(n)))}_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}}}),Ta={};let Ea=HTMLElement.prototype;for(;Ea;){var Sa=Object.getOwnPropertyNames(Ea);for(let e=0;e<Sa.length;e++)Ta[Sa[e]]=!0;Ea=Object.getPrototypeOf(Ea)}const Aa=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,La=Ko(e=>{return class extends Pa(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(da(t[e]))}static attributeNameForProperty(e){return pa(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(Aa(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,n,r;i=this,n=e,Ta[n]||void 0!==(r=i[n])&&(i.__data?i._setPendingProperty(n,r):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[n]=r)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),Ma={"dom-if":!0,"dom-repeat":!0};let Da=!1,ka=!1;const $a=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);n&&i.startsWith("on-")?e.setAttribute(i,n.createScript(t,i)):e.setAttribute(i,t)}})();const Ba=Ko(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 n=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(r,t,i)||n,e=r,Da||(Da=!0,(o=document.createElement("textarea")).placeholder="a",ka=o.placeholder===o.textContent),ka&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),r.firstChild&&this._parseTemplateChildNodes(r,t,i),(n=r.hasAttributes&&r.hasAttributes()?this._parseTemplateNodeAttributes(r,t,i)||n:n)||i.noted;var o}static _parseTemplateChildNodes(n,r,o){if("script"!==n.localName&&"style"!==n.localName)for(let t,i=n.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&Ma[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"];$a(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,n.removeChild(e),e=t;if(r.stripWhiteSpace&&!i.textContent.trim()){n.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,r,a)&&(a.infoIndex=r.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,n,r){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,n,r,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,n,r){return"on-"===n.slice(0,3)?(e.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:r}),!0):"id"===n&&(i.id=r,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,n){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var r,o,a=(n=n||this.constructor._parseTemplate(e)).nodeInfoList,e=n.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!n.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 n=i.parentInfo&&e(t,i.parentInfo);if(!n)return t;for(let e=n.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(r=s.$,o=c,(p=e).id&&(r[p.id]=o),r=c,p=e,o=n,p.templateInfo&&(r._templateInfo=p.templateInfo,r._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,n){function r(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=n=n||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let Ia=0;const Na=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Oa="__computeInfo",Fa=/[A-Z]/;function Ra(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(var r in n){var o=n[r],a=n[r]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else n=e[t]={};return n}function za(r,e,o,a,s,l){if(e){let n=!1;var c,u=Ia++;for(c in o){var d=e[s?ea(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&&!Ha(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(r,c,o,a,e.info,s,l),n=!0)}return n}}function Ha(e,t){var i;return!t||(i=t.name)==e||t.structured&&ta(i,e)||t.wildcard&&ia(i,e)}function Wa(e,t,i,n,r){var o="string"==typeof r.method?e[r.method]:r.method,a=r.property;o?o.call(e,e.__data[a],n[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function ja(e,t,i,n){i={value:i,queueProperty:!0};n&&(i.path=n),b(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Ua(e,t,i,n,r,o){let a=(o?ea(t):t)!=t?t:null,s=a?aa(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),ja(e,r.eventName,s,a)}function Ya(e,t,i,n,r){let o=e.__data[t];go&&(o=go(o,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,o)}const Ga=(e,t,i)=>{let n=0,r=t.length-1,o=-1;for(;n<=r;){var a=n+r>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)n=1+a;else{if(!(0<s)){o=a;break}r=a-1}}o<0&&(o=r+1),t.splice(o,0,e)},Va=(t,e,i,n,r)=>{var o=e[r?ea(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===Ia||r&&!Ha(t,a.trigger)||(a.info.lastRun=Ia,Ga(a.info,i,n))}};function qa(e,t,i,n,r){t=Qa(e,t,i,0,r);return t!==Na&&(i=r.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function Xa(t,i,e,n,r,o,a){e.bindings=e.bindings||[];var s={kind:n,target:r,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),n=s,Boolean(n.target)&&"attribute"!=n.kind&&"text"!=n.kind&&!n.isCompound&&"{"===n.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||pa(r)+"-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=as(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Za,info:g,trigger:e})}}}}function Za(e,t,i,n,r,o,a){var s,a=a[r.index],l=r.binding,c=r.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=na(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=r.evaluator._evaluateBinding(e,c,t,i,n,o))!==Na&&(r=e,t=c,n=i=a,e=o=s,(a=c=l).isCompound&&((l=n.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===n.localName||"textarea"===n.localName))&&null==e?"":e,go&&(o=go(o,c.target,c.kind,i)),"attribute"==c.kind?r._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)&&r._enqueueClient(i):r._setUnmanagedPropertyToNode(i,t,o)))}function Ja(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(n){{var r=c,o=u.target,a=l.source,s=l.negate;let e,t=n.detail,i=t&&t.path;e=i?(a=na(o,a,i),t&&t.value):n.currentTarget[o],e=s?!e:e,r[C.READ_ONLY]&&r[C.READ_ONLY][a]||!r._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||r._invalidateProperties()}})}}function Ka(i,n,r,o,e,t){t=n.static||t&&("object"!=typeof t||t[n.methodName]);var a={methodName:n.methodName,args:n.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<n.args.length&&(e=n.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,r,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(n.methodName,r,{fn:o,info:a}),a}function Qa(e,t,i,n,r){var o=e._methodHost||e,a=o[r.methodName];if(a)return(e=e._marshalArgs(r.args,t,i))===Na?Na:a.apply(o,e);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const es=[],ts="(?:[a-zA-Z_$][\\w.:$\\-*]*)",is="(?:("+ts+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",ns=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+ts+"\\s*(?:\\(\\s*(?:(?:"+is+"(?:,\\s*"+is+")*)?)\\)\\s*)?)(?:]]|}})","g");function rs(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function os(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=as(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function as(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch(n="0"<=(n="-"===n?t[1]:n)&&n<="9"?"#":n){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=ea(t),i.structured=Qo(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function ss(e,t,i){let n=aa(e,i);return n=void 0===n?t[i]:n}function ls(e,t,i,n){n={indexSplices:n};Co&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(i+".splices",n),e.notifyPath(i+".length",t.length),Co&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function cs(e,t,i,n,r,o){ls(e,t,i,[{index:n,addedCount:r,removed:o,object:t,type:"splice"}])}const us=Ko(e=>{const c=Ba(La(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;ds.length&&((e=ds[ds.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 n=Ra(this,t,!0)[e];(n=n||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=Ra(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,n){if(n||ea(Array.isArray(e)?e[0]:e)!==e){if(!n){n=aa(this,e);if(!(e=sa(this,e,t))||!super._shouldPropertyChange(e,t,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var r=this;var o=e;var a=t;var s=r.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];ia(l,o)?(e=na(l,c,o),r._setPendingPropertyOrPath(e,a,!0,!0)):ia(c,o)&&(e=na(c,l,o),r._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 n=this.__dataHasPaths&&Qo(e),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||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,r,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=r,n=o,d=u,p=t[C.COMPUTE];if(p)if(Po){Ia++;var h,m,f=function(r){let o=r.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=r[C.COMPUTE];let e,{counts:t,ready:i,total:n}=function(e){const t=e[Oa],i={},n=e[C.COMPUTE],r=[];let o=0;for(var a in t){const n=t[a];o+=i[a]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var s in n)t[s]||r.push(s);return{counts:i,ready:r,total:o}}(r);for(;e=i.shift();){o.set(e,o.size);const r=a[e];r&&r.forEach(e=>{e=e.info.methodInfo;--n,0==--t[e]&&i.push(e)})}if(0!==n){const o=r;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}r.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)Va(h,p,g,f,d);for(;m=g.shift();)qa(t,"",i,0,m)&&Va(m.methodInfo,p,g,f,d);Object.assign(n,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;za(t,p,e,n,d);)Object.assign(n,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,o,u),this._flushClients(),za(this,this[C.REFLECT],r,o,u),za(this,this[C.OBSERVE],r,o,u),a){var y=this,v=a,b=r,w=o,_=u,x;let e,t,i=y[C.NOTIFY],n=Ia++;for(x in v)v[x]&&(i&&function(n,e,r,o,a,s,l,c){let u=!1,d=e[l?ea(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===r||l&&!Ha(o,e.trigger)||(e.info&&(e.info.lastRun=r),e.fn(n,o,a,s,e.info,l,c),u=!0);return u}(y,i,n,x,b,w,_)||_&&(s=y,x=x,l=b,c=void 0,c=ea(x),c!==x)&&(ja(s,pa(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]&&za(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(n,e,r,t){var i=(t,i)=>{za(this,n.propertyEffects,t,r,i,n.nodeList);for(let e=n.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,r,i)};n.runEffects?n.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=ra(e),t=ra(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=ra(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};ls(this,aa(this,e,i),i.path,t)}get(e,t){return aa(t||this,e)}set(e,t,i){i?sa(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=aa(this,e,i),n=e.length,r=e.push(...t);return t.length&&cs(this,e,i.path,n,t.length,[]),r}pop(e){var t={path:""},e=aa(this,e,t),i=Boolean(e.length),n=e.pop();return i&&cs(this,e,t.path,e.length,0,[n]),n}splice(e,t,i,...n){var r={path:""},e=aa(this,e,r);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...n),(n.length||i.length)&&cs(this,e,r.path,t,n.length,i),i}shift(e){var t={path:""},e=aa(this,e,t),i=Boolean(e.length),n=e.shift();return i&&cs(this,e,t.path,0,0,[n]),n}unshift(e,...t){var i={path:""},e=aa(this,e,i),n=e.unshift(...t);return t.length&&cs(this,e,i.path,0,t.length,[]),n}notifyPath(e,t){let i;var n;i=1==arguments.length?(t=aa(this,e,n={path:""}),n.path):Array.isArray(e)?ra(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 n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:Wa,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:Wa,info:n,trigger:{name:t}})}_createMethodObserver(e,t){var i=os(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ka(this,i,C.OBSERVE,Qa,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:Ua,info:{eventName:pa(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:Ya,info:{attrName:t}})}_createComputedProperty(e,t,i){var n=os(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");t=Ka(this,n,C.COMPUTE,qa,e,i);Ra(this,Oa)[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:n,literal:r}=a[o];if(!r)if(i){const a=ia(e,s),u=ss(c,l,a?s:e);n={path:a?s:e,value:u,base:a?aa(c,e):u}}else n=t?ss(c,l,e):c[e];if(Co&&!this._overrideLegacyUndefined&&void 0===n&&1<a.length)return Na;u[o]=n}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),n=this.__preBoundTemplateInfo==i;if(!n)for(var r in i.propertyEffects)this._createPropertyAccessor(r);if(t)if((i=Object.create(i)).wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=n)?n.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),ds.push(this);t=super._stampTemplate(t,e);if(ds.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 n=this,{nodeList:r,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=r[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)}Ja(s,n,c)}s.__dataHost=n}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:n}=e,r=(t?t.nextSibling=i:n&&(n.firstChild=i),i?i.previousSibling=t:n&&(n.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<r.length;e++){var o=r[e];b(b(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let n=c._parseTemplateNode.call(this,e,t,i);var r;return e.nodeType===Node.TEXT_NODE&&(r=this._parseBindings(e.textContent,t))&&(e.textContent=rs(r)||" ",Xa(this,t,i,"text","textContent",r),n=!0),n}static _parseTemplateNodeAttribute(n,r,o,a,e){var s=this._parseBindings(e,r);if(s){let e=a,t="property",i=(Fa.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),rs(s));return i&&"attribute"==t&&("class"==a&&n.hasAttribute("class")&&(i+=" "+n.getAttribute(a)),n.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&n.setAttribute(a,""),"input"===n.localName&&"value"===e&&n.setAttribute(e,""),n.removeAttribute(e),"property"===t&&(a=da(a)),Xa(this,r,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,n,r,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let n=c._parseTemplateNestedTemplate.call(this,e,t,i);var r=e.parentNode,o=i.templateInfo,a="dom-if"===r.localName,s="dom-repeat"===r.localName,s=(To&&(a||s)&&(r.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,n=!1),o.hostProps);if(Eo&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),To||(i.parentInfo.noted=!0));else for(var l in s)Xa(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return n}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=ns.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(),n=!1,r="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(r=i.substring(o+2),i=i.substring(0,o),n=!0);var d=os(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:n,signature:d,dependencies:p,event:r}),u=ns.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,n,r,o){let a;return a=t.signature?Qa(e,i,n,0,t.signature):i!=t.source?aa(e,t.source):o&&Qo(i)?aa(e,i):e.__data[i],a=t.negate?!a:a}}}),ds=[],ps=Ko(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof n?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 n=e[t];i[t]="function"==typeof n?{type:n}:n}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class n extends Pa(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 n}),hs=window.ShadyCSS&&window.ShadyCSS.cssBuild,ms=Ko(e=>{const n=ps(us(e));return class extends n{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){n._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):wo||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,n=t,t=e[t],r=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(n)?console.warn(`Cannot redefine computed property '${n}'.`):i._createComputedProperty(n,t.computed,r)),t.readOnly&&!i._hasReadOnlyEffect(n)?i._createReadOnlyProperty(n,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(n)&&console.warn(`Cannot make readOnly property '${n}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(n)?i._createReflectedProperty(n):!1===t.reflectToAttribute&&i._hasReflectEffect(n)&&console.warn(`Cannot make reflected property '${n}' non-reflected.`),t.notify&&!i._hasNotifyEffect(n)?i._createNotifyingProperty(n):!1===t.notify&&i._hasNotifyEffect(n)&&console.warn(`Cannot make notify property '${n}' non-notify.`),t.observer&&i._createPropertyObserver(n,t.observer,r[t.observer]),i._addPropertyToAttributeMap(n);var i,n,r}static createObservers(t,i){var n=this.prototype;for(let e=0;e<t.length;e++)n._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||vo&&!bo||(t=Bo.import(e,"template"),!vo)||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=po(e.url):(e=Bo.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=fo,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 n=i[t];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=n)}}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 uo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,r=this,o=t,a=e,s=i?co(i):"";if(!hs){var l=o.content.querySelectorAll("style"),c=Ho(o),u=(e=Fo(a))?Wo(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=r._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let n=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[n];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):n++,e.textContent=r._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),Lo&&hs&&mo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),r._styleSheet=new CSSStyleSheet,r._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])),xo&&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=co(this.importPath)),co(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,n._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!_o||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.`),n._addTemplatePropertyEffect.call(this,e,t,i)}}}),fs=ms(HTMLElement);class gs{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,ys.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ys.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 gs?e._cancelAsync():e=new gs,e.setConfig(t,i),e}}let ys=new Set;function vs(e){ys.add(e)}let bs="string"==typeof document.head.style.touchAction,ws="__polymerGestures",_s="__polymerGesturesHandled",xs="__polymerGesturesTouchAction",Cs=["mousedown","mousemove","mouseup","click"],Ps=[0,1,4,2],Ts=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Es(e){return-1<Cs.indexOf(e)}let Ss=!1;function As(e){return!Es(e)&&"touchend"!==e&&bs&&Ss&&yo?{passive:!0}:void 0}try{var Ls=Object.defineProperty({},"passive",{get(){Ss=!0}});window.addEventListener("test",null,Ls),window.removeEventListener("test",null,Ls)}catch(e){}let Ms=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Ds=[],ks={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},$s={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Bs(e){var n,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[_s]={skip:!0},"click"===e.type)){let t=!1,i=zs(e);for(let e=0;e<i.length;e++){if(i[e].nodeType===Node.ELEMENT_NODE)if("label"===i[e].localName)Ds.push(i[e]);else if(n=i[e],ks[n.localName]){var r=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var i=e.getRootNode();if(e.id){var n=i.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(e){}}return t}(i[e]);for(let e=0;e<r.length;e++)t=t||-1<Ds.indexOf(r[e])}if(i[e]===Os.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function Is(i){var n=Ms?["click"]:Cs;for(let e,t=0;t<n.length;t++)e=n[t],i?(Ds.length=0,document.addEventListener(e,Bs,!0)):document.removeEventListener(e,Bs,!0)}function Ns(t){var e=t.type;if(Es(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&&!Ts&&(e=Ps[t.which]||0),Boolean(1&e)}}}let Os={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Fs(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Rs(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){Os.mouse.mouseIgnoreJob||Is(!0),Os.mouse.target=zs(e)[0],Os.mouse.mouseIgnoreJob=gs.debounce(Os.mouse.mouseIgnoreJob,ba.after(2500),function(){Is(),Os.mouse.target=null,Os.mouse.mouseIgnoreJob=null})},!!Ss&&{passive:!0});const zs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Hs={},Ws=[];function js(e){var t=zs(e);return 0<t.length?t[0]:e.target}function Us(i){var n,r=i.type,o=i.currentTarget[ws];if(o){var a=o[r];if(a){if(!i[_s]&&(i[_s]={},"touch"===r.slice(0,5))){o=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(Os.touch.id=o.identifier),Os.touch.id!==o.identifier)return;if(!(bs||"touchstart"!==r&&"touchmove"!==r)){o=i;var s=o.changedTouches[0],e=o.type;if("touchstart"===e)Os.touch.x=s.clientX,Os.touch.y=s.clientY,Os.touch.scrollDecided=!1;else if("touchmove"===e&&!Os.touch.scrollDecided){Os.touch.scrollDecided=!0;let e=function(e){let i="auto",n=zs(e);for(let e,t=0;t<n.length;t++)if((e=n[t])[xs]){i=e[xs];break}return i}(o),t=!1,i=Math.abs(Os.touch.x-s.clientX),n=Math.abs(Os.touch.y-s.clientY);o.cancelable&&("none"===e?t=!0:"pan-x"===e?t=i<n:"pan-y"===e&&(t=n<i)),t?o.preventDefault():Xs("track")}}}if(!(n=i[_s]).skip){for(let e,t=0;t<Ws.length;t++)a[(e=Ws[t]).name]&&!n[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<Ws.length;t++)a[(e=Ws[t]).name]&&!n[e.name]&&(n[e.name]=!0,e[r](i))}}}}function Ys(e,t,i){return Hs[t]&&(function(n,e,t){let i=Hs[e],r=i.deps,o=i.name,a=n[ws];a||(n[ws]=a={});for(let e,t,i=0;i<r.length;i++)e=r[i],Ms&&Es(e)&&"click"!==e||((t=a[e])||(a[e]=t={_count:0}),0===t._count&&n.addEventListener(e,Us,As(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);n.addEventListener(e,t),i.touchAction&&Vs(n,i.touchAction)}(e,t,i),1)}function Gs(t){Ws.push(t);for(let e=0;e<t.emits.length;e++)Hs[t.emits[e]]=t}function Vs(e,t){bs&&e instanceof HTMLElement&&xa.run(()=>{e.style.touchAction=t}),e[xs]=t}function qs(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=i,b(e).dispatchEvent(t),t.defaultPrevented&&(e=i.preventer||i.sourceEvent)&&e.preventDefault&&e.preventDefault()}function Xs(e){e=function(i){for(let t,e=0;e<Ws.length;e++){t=Ws[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 Zs(e,t,i,n){t&&qs(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:Xs})}function Js(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 Ks(a,s,l){if(s){let e,t=a.moves[a.moves.length-2],i=a.moves[a.moves.length-1],n=i.x-a.x,r=i.y-a.y,o=0;t&&(e=i.x-t.x,o=i.y-t.y),qs(s,"track",{state:a.state,x:l.clientX,y:l.clientY,dx:n,dy:r,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var i=l.clientX,n=l.clientY;let e=document.elementFromPoint(i,n),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,n)))break;t&&(e=t)}return e}}})}}function Qs(e,t,i){var n,r=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=js(i||t);!a||$s[a.localName]&&a.hasAttribute("disabled")||!(isNaN(r)||isNaN(o)||r<=25&&o<=25)&&("click"!==(r=t).type||0!==r.detail&&(o=js(r)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),n=r.pageX,r=r.pageY,n>=o.left)&&n<=o.right&&r>=o.top&&r<=o.bottom)||e.prevent||qs(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}Gs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Rs(this.info)},mousedown:function(e){if(Ns(e)){let t=js(e),i=this;Fs(this.info,function(e){Ns(e)||(Zs("up",t,e),Rs(i.info))},function(e){Ns(e)&&Zs("up",t,e),Rs(i.info)}),Zs("down",t,e)}},touchstart:function(e){Zs("down",js(e),e.changedTouches[0],e)},touchend:function(e){Zs("up",js(e),e.changedTouches[0],e)}}),Gs({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Rs(this.info)},mousedown:function(e){if(Ns(e)){let n=js(e),r=this,t=function(e){var t=e.clientX,i=e.clientY;Js(r.info,t,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&Xs("tap"),r.info.addMove({x:t,y:i}),Ns(e)||(r.info.state="end",Rs(r.info)),n&&Ks(r.info,n,e),r.info.started=!0)};Fs(this.info,t,function(e){r.info.started&&t(e),Rs(r.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=js(e),e=e.changedTouches[0],i=e.clientX,n=e.clientY;Js(this.info,i,n)&&("start"===this.info.state&&Xs("tap"),this.info.addMove({x:i,y:n}),Ks(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=js(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Ks(this.info,t,e))}}),Gs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Ns(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Ns(e)&&Qs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Qs(this.info,e.changedTouches[0],e)}});const el=Ko(e=>class extends e{_addEventListenerToNode(e,t,i){Ys(e,t,i)||super._addEventListenerToNode(e,t,i)}_removeEventListenerFromNode(e,t,i){if(l=e,c=t,r=i,Hs[c]){var n=l;l=c,c=r;var r,o=(r=Hs[l]).deps,a=r.name,s=n[ws];if(s)for(let e,t,i=0;i<o.length;i++)e=o[i],(t=s[e])&&t[a]&&(t[a]=(t[a]||1)-1,t._count=(t._count||1)-1,0===t._count)&&n.removeEventListener(e,Us,As(e));n.removeEventListener(l,c)}else super._removeEventListenerFromNode(e,t,i);var l,c,r}}),tl=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._setTheme(i)}},il=e=>class extends tl(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,i=Object.getPrototypeOf(this.prototype)._template;i&&!e&&Array.from(i.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(i){const e=Bo.prototype.modules;let n=!1;const r=this.is+"-default-theme";Object.keys(e).sort((t,i)=>{var e=0===t.indexOf("vaadin-"),n=0===i.indexOf("vaadin-"),r=["lumo-","material-"],o=0<r.filter(e=>0===t.indexOf(e)).length,r=0<r.filter(e=>0===i.indexOf(e)).length;return e!=n?e?-1:1:o!=r?o?-1:1:0}).forEach(t=>{if(t!==r){const r=e[t].getAttribute("theme-for");r&&r.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(t,i))})}}),!n&&e[r]&&this._includeStyle(r,i)}static _includeStyle(e,t){var i;t&&!t.content.querySelector(`style[include="${e}"]`)&&((i=document.createElement("style")).setAttribute("include",e),t.content.appendChild(i))}};let nl=!1;window.addEventListener("keydown",()=>{nl=!0},{capture:!0}),window.addEventListener("mousedown",()=>{nl=!1},{capture:!0});function rl(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(ys.size),ys.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const ol=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return nl}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&nl?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class al{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 n=i["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return i.scrollWidth-i.clientWidth+n;case"reverse":return i.scrollWidth-i.clientWidth-n}return n}static setNormalizedScrollLeft(e,t,i,n){if("rtl"===t&&e)switch(e){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+n;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-n;break;default:i.scrollLeft=n}else i.scrollLeft=n}}const sl=[];let ll;new MutationObserver(function(){const t=ul();sl.forEach(e=>{cl(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const cl=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},ul=function(){return document.documentElement.getAttribute("dir")},dl=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),ll=ll||al.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),cl(this,ul()))}attributeChangedCallback(e,t,i){var n;super.attributeChangedCallback(e,t,i),"dir"===e&&(e=i===ul()&&-1===sl.indexOf(this),n=!i&&t&&-1===sl.indexOf(this),i=i!==ul()&&t===ul(),e||n?(this.__subscribe(),cl(this,ul())):i&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===sl.indexOf(this)&&sl.push(this):-1<sl.indexOf(this)&&sl.splice(sl.indexOf(this),1)}__getNormalizedScrollLeft(e){return al.getNormalizedScrollLeft(ll,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return al.setNormalizedScrollLeft(ll,this.getAttribute("dir")||"ltr",e,t)}},pl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hl=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ml(e,t){if("function"==typeof e){var i=pl.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 fl(){}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)&&(hl?!(hl&&0<Object.keys(hl).map(e=>hl[e]).filter(e=>e.productionMode).length):!ml(function(){return!0}))}catch(e){return!1}}());function gl(){var e=fl,t=void 0;if(window.Vaadin.developmentMode)return ml(e,t)}let yl;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){gl,gl()};const vl=new Set,bl=e=>class extends dl(e){static finalize(){super.finalize();var e=this["is"];e&&!vl.has(e)&&(window.Vaadin.registrations.push(this),vl.add(e),window.Vaadin.developmentModeCallback)&&(yl=gs.debounce(yl,_a,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),vs(yl))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class wl extends bl(ol(il(el(fs)))){static get template(){return qo`
|
|
326
326
|
<style>
|
|
327
327
|
:host {
|
|
328
328
|
display: inline-block;
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
</style>
|
|
748
|
-
</custom-style>`,document.head.appendChild($i.content),Ii=document.createElement("template"),Ii.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABAAAACspBAAAGxvY2EAAA5EAAAAWAAAAFh55IAsbWF4cAAADpwAAAAfAAAAIAFKAXBuYW1lAAAOvAAAATEAAAIuUUJZCHBvc3QAAA/wAAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wgc1Z9N0jpNnEL6kbRVS6HA2hQYGh9TGR1CbCqa2rXrWOkQE/sHNJgmtZvoVNZqE1B1DNHxzTQxCehUTYiJTQyENui0qSLezr3PduyQfgmRWOfde8+9551z7rnn/O4jLoJ/bRP0UaKQMLFJjpBAvphLZC3Dk0ok7WBzR2/upJs7Ryw/nfFbln/uuN/apCvwrKLrSvUqRufbm5pn0fs0w4gYxnGVP6qHnO4bWiDQGQgwtS6lm3lB3QoX1M2vwEmuzirF39y+Es2+DJ8d1pkyqBIqoze3D1+Zz4DrFoazxI8dWwMrDlZ2DMqQAR9AROsJU+2cmlTPazTco52F1xTa2a2+K8vvq92dVHmtLoPeQX/AZPRYGthDYOeZjBjKoFsVGulR3lWU95WeCK44qHU7MhWUGUKZDT3oKUcG2GWuh+EDDfUYA/jhAhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgRW95uEtpJ1Vfn9XiLriRBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKiflqHRSoWZc3m11Wa/fJdFgXD4sSYfleJBKd8GMz7J8dZn/cGRCcKGDnA2Ge3fKzcvlnTDNthGWLXzX/WaXtUAmRgeLlHSr30r0G9UTXMb0AtmwzOoy73fkSlHZkduw/TYuU9cAD4YutPoxTTsA3797wVr4Z/1NC5zARHr4vtxJjxIfiZMhMkbWk+14BnJZKwqGZwDfswLyxWDSg11rFLJF7Nopxjd1h1/QOT+oezgfu3Yq+Hk+duf5x+40o1GTkaIgikK/IEnC6aYxCUBaZJSN4XTYFjU/YMNIKqJwhDGOCCI8FDXnXmXjtGhGJyShqjAOnBOkW2JG9S7GgYeMWAU5JzhnWmBOaOM+CKEPoqSfFDC2Unq+DLlUgUVUFFLZGJg6jtlojsdsa8kPObPuJdi5dnBdBsLJMGTWDa4t2JvtwuPo9s+Y86suv/W33QG1rAaOAUV+vx4K6f2D04PVKlC7WLSrZzAi45ZV6lIC7WoXqmRyvUqoVwrzUoVsIjeTXWQv+RH5GTlBXiB/In8ln0IbBCAFOajAJrgZYyOHWqOfUe/aHjI12R6OQo1jCgt215l+4f6XPb+0MNou0V+43n2F77tSfRb24d7zitgnKmvYHs69zugaPvBwv6ioXkb2LdL65Atw51uLkXlu1bhMMRcXSPcYoqKIRlh34lQP8/5JbuUFye4vxD6/6MxFF11C0uVLr9Ulgw44tS3pMViNLUExbycFgLIct+QDMibRimx1ydUz8FXZiuOIDBOMVX2nUZc+huNE5XUJ81uiJoiabwqaVF0uacKbau/pl4R2VW0XXlJra6boVrYG646TF5NYzwy4vjENVrDlcNpZPl8DH6XX8XWCx0mvWVZY6KFLrvsY66/zPict5FnxaNUR/juvZCM3TvD60E2W1tZizbXTPDuabcm0nbbzpWKpmA1ayBQ8giedLUM+A0kNjBjQjmuYz7YrgIXYvmF63ZLBwSXrpn9Tb9wwdd/U1H0PMQK3XcO8ul3WT7PyPPdpy0TemKxNRcJNauiXJnnUDpUppQWs4SnUIy0EESGYqJYQLGHxzaGWwVIaS6Y7mQFM8ZjYDQ3axjf61SWjU33JwOZA1pwaG1L9mzf71aHRdX1JHw6Fp0aXhNwbqyeGNg4NbdzGCBxoz4ZXjy4Nu69Zr6sDY6vMrLU5nA1P8JkbdWXJ6ERfMryvNh1JfQ9+T4dIhGvK9w3dxjBBzatsQ/MlOHVIDnYpDz6odAXlQ01t2Pa5Iafd8MMpxAeDKP0C6CjgVLT5osB6icUx01lWjXxzT/GyRF2welEM5Z/7jG3VjQ1SrNn5IbyzOG5dobB3/QHxyZvsXcoz8IoEwS7plCg+zxHQk424q9BfEpkESJbFHQusDBSWFkuBkoPO0kLKwRVYjxGXlHTcTDQMJ/H6TX9afkO7mnraTO1feTnZAXLu4cp7HAXMmNG1yeFk9TgS/NHhZR/4QoBTr/ZB+6hCgyl15Nq1UbN6nE1/ZnP1U2cizCBpvs8cJQZJ4LkYx5N/yZPAUZNQQ0V4f3BQllWrK3YRzl30dOT6RVn2upNur6woSa8CqpdT/aKnBM4o3jNur9d9xqtUT6veBEt9Ca9at+ERzEEhUkR8sa5mQ4aVvJoVeEA8zI4ei5mULXFGyU7z/6TAeYLVcpzSWZY8PYYF5yrTV60sT0+XV141vX++Wf16V2bFeGVPZXxFpkvyeKTWLlzfW0mnKxsY6Y3294/0998SCfX1blm5pbcvFGlq/r07MRAMhYIDiW5JFKWW3vdrEpCsZSJG+om7Zu/PSScZJhNkLbmW5Wsr12pWqW5zKtlwRS4bFOxUw17mCzy6lskCDl1WYOGWDYrADrMA7BDDweWWNd5koiJnR1dz+ytLP2q0SqPB1lnK2ccB7RYe4FSoPks3iB3t4txTSHctb2sy1ivk0pvHuCNm6w1f6wxv3+OCgN78LqdQnUVh7R0oTAp0zOf2rbW770Vu5C2dIyGdTnHo8zSji7dppj0USoVCz+lhRMTh53Teq9VbGfbjuSbAooSdXayY4PYHg374C6f7gl1B/DXuJ4/QXxOBdJFJspFsI3egpoWUUCjlTIFnNYNl+ZyZKmBeYKGHkD1QyDlhaKbKwKcIJqJ4TLJ2OmdY/JWXae4DdGBw8HZ7eXcgFF2zr2SoalDry5iKqoa0Puhe3hPQ2s3elTYM+MI+n3rK0KgL7/La3GeMLt6m7u912vGnvtORiIa0qBmhqVi+XW9XNBmqb8eVgKzIHfGI5bNoG7X0UCzeISmqIcO/nY8FH7U8avX9fx/ST+hx0sezPw9Qy8Mum3GWf2N4Uy/yIYGVBXbJHWIZp7dfTcptdMTr9Qmq7DaiK/ukqCL4kt4RUfS5XPnMtmT22/mQFqF7emSqtrlu8SVElxDRJrZODkpuwe0VfTfjdEp1f7A7v+fozNBXUJ/6WTuK2TtFlpFVZAZ3LcFvUi1Z2p2YT+EMAkGJVStOzLTAPg4IqWIAlzRSjOBkl2zxj3TKycpzT/MnvX3uaSMWM+gU0rkXjohhefVRMaps3/kLMSKv23lT23uxQrkQjyOJleMDsdhAnD6ZGElWZ5MjCXzCE/hkWX+WF4knzGhVOyK2eQZekV3eyo0zL8kuYWCnDCvjjhAkcTPOBDXVdoav3HVcFnQjLvtV9S2p0zA6JegPwMQxt+yFb3ll9zGlq/5dRKb3cEyQYoaNYpharJ7xCB7AWxsLY3jjZXY0XsZj0Wjwc9I6PP/dKABnCZaqHpaZEACxk4ZeLZSKNgZABl+lYQX1sJQOSX3n6r410evcoud5JeAGUXVP9H1tZOKejTq4Ono0z0erro1FrnOpohva1d/hTdtVsQdKN5W9RlT3NjD0nznyKNTgKAMfWNWcyodV0IGLPIHOF0o4JyqufaK4z6WIIzuGh3d8c8cwQg8ER+OVxyrjdm8vNuhts4LoOihGxIMuUdgzwiYN7xhh1+oZnJNuTG7gQZvu4XWZ9GAZZjGEubwePqYhtKDTH+9VQkl17/iGybsnJ+8+sKtyPrcll9ty65Zsdst/9iqpEKh7M5VdBxh3csOdNc6tW3I1uyM1PzOXegSOrLFsFNI2O27M+TF2ApnN9MUv5ud6LjxIvEQnHRzxIu4IsA9MLFkJn2tcZoZ7ON7dXe7ujrc8HrusPKamlqXwd77lQUuLpilau4PUMapueBb7irU4RoUXEYXuVuIGlRGmOp+2lNkaRPVziOqmlaZvaqG4dFgSj0jxEJWrv12IUWntmw+rfQarRE0Aph4ocI6nlUlGqs+u3/+T/ethW62PpHp2eHbZstnh/wOO95yDAHicY2BkYGAA4pmJ6QHx/DZfGbiZXwBFGGpUNzQi6P+vmacy3QJyORiYQKIANoULVXicY2BkYGAO+p8FJF8wAAHzVAZGBlSgDQBW9gNvAAAAeJxjYGBgYH4xNDAAzwQmjwAAAAAATgCaAOgBCgEsAU4BcAGaAcQB7gIaApwC6ASaBLwE1gTyBQ4FKgV6BdAF/gZEBmYGtgcYB5AIGAhSCGoI/glGCb4J2goECjwKggq4CvALUAuWC7x4nGNgZGBg0GZMYRBlAAEmIOYCQgaG/2A+AwAYlAG8AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjtlugzAQRbkJUEJIuu/7vqR8lGNPAcWx0YAb5e/LklR96EgenSufGY038PqKvf9rhgGG8BEgxA4ijBBjjAQTTLGLPezjAIc4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(Ii.content),Bi=document.createElement("template"),Bi.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bi.content),Oi=document.createElement("template"),Oi.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Oi.content),Ri=qo`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
|
|
748
|
+
</custom-style>`,document.head.appendChild($i.content),Bi=document.createElement("template"),Bi.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABAAAACspBAAAGxvY2EAAA5EAAAAWAAAAFh55IAsbWF4cAAADpwAAAAfAAAAIAFKAXBuYW1lAAAOvAAAATEAAAIuUUJZCHBvc3QAAA/wAAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wgc1Z9N0jpNnEL6kbRVS6HA2hQYGh9TGR1CbCqa2rXrWOkQE/sHNJgmtZvoVNZqE1B1DNHxzTQxCehUTYiJTQyENui0qSLezr3PduyQfgmRWOfde8+9551z7rnn/O4jLoJ/bRP0UaKQMLFJjpBAvphLZC3Dk0ok7WBzR2/upJs7Ryw/nfFbln/uuN/apCvwrKLrSvUqRufbm5pn0fs0w4gYxnGVP6qHnO4bWiDQGQgwtS6lm3lB3QoX1M2vwEmuzirF39y+Es2+DJ8d1pkyqBIqoze3D1+Zz4DrFoazxI8dWwMrDlZ2DMqQAR9AROsJU+2cmlTPazTco52F1xTa2a2+K8vvq92dVHmtLoPeQX/AZPRYGthDYOeZjBjKoFsVGulR3lWU95WeCK44qHU7MhWUGUKZDT3oKUcG2GWuh+EDDfUYA/jhAhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgRW95uEtpJ1Vfn9XiLriRBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKiflqHRSoWZc3m11Wa/fJdFgXD4sSYfleJBKd8GMz7J8dZn/cGRCcKGDnA2Ge3fKzcvlnTDNthGWLXzX/WaXtUAmRgeLlHSr30r0G9UTXMb0AtmwzOoy73fkSlHZkduw/TYuU9cAD4YutPoxTTsA3797wVr4Z/1NC5zARHr4vtxJjxIfiZMhMkbWk+14BnJZKwqGZwDfswLyxWDSg11rFLJF7Nopxjd1h1/QOT+oezgfu3Yq+Hk+duf5x+40o1GTkaIgikK/IEnC6aYxCUBaZJSN4XTYFjU/YMNIKqJwhDGOCCI8FDXnXmXjtGhGJyShqjAOnBOkW2JG9S7GgYeMWAU5JzhnWmBOaOM+CKEPoqSfFDC2Unq+DLlUgUVUFFLZGJg6jtlojsdsa8kPObPuJdi5dnBdBsLJMGTWDa4t2JvtwuPo9s+Y86suv/W33QG1rAaOAUV+vx4K6f2D04PVKlC7WLSrZzAi45ZV6lIC7WoXqmRyvUqoVwrzUoVsIjeTXWQv+RH5GTlBXiB/In8ln0IbBCAFOajAJrgZYyOHWqOfUe/aHjI12R6OQo1jCgt215l+4f6XPb+0MNou0V+43n2F77tSfRb24d7zitgnKmvYHs69zugaPvBwv6ioXkb2LdL65Atw51uLkXlu1bhMMRcXSPcYoqKIRlh34lQP8/5JbuUFye4vxD6/6MxFF11C0uVLr9Ulgw44tS3pMViNLUExbycFgLIct+QDMibRimx1ydUz8FXZiuOIDBOMVX2nUZc+huNE5XUJ81uiJoiabwqaVF0uacKbau/pl4R2VW0XXlJra6boVrYG646TF5NYzwy4vjENVrDlcNpZPl8DH6XX8XWCx0mvWVZY6KFLrvsY66/zPict5FnxaNUR/juvZCM3TvD60E2W1tZizbXTPDuabcm0nbbzpWKpmA1ayBQ8giedLUM+A0kNjBjQjmuYz7YrgIXYvmF63ZLBwSXrpn9Tb9wwdd/U1H0PMQK3XcO8ul3WT7PyPPdpy0TemKxNRcJNauiXJnnUDpUppQWs4SnUIy0EESGYqJYQLGHxzaGWwVIaS6Y7mQFM8ZjYDQ3axjf61SWjU33JwOZA1pwaG1L9mzf71aHRdX1JHw6Fp0aXhNwbqyeGNg4NbdzGCBxoz4ZXjy4Nu69Zr6sDY6vMrLU5nA1P8JkbdWXJ6ERfMryvNh1JfQ9+T4dIhGvK9w3dxjBBzatsQ/MlOHVIDnYpDz6odAXlQ01t2Pa5Iafd8MMpxAeDKP0C6CjgVLT5osB6icUx01lWjXxzT/GyRF2welEM5Z/7jG3VjQ1SrNn5IbyzOG5dobB3/QHxyZvsXcoz8IoEwS7plCg+zxHQk424q9BfEpkESJbFHQusDBSWFkuBkoPO0kLKwRVYjxGXlHTcTDQMJ/H6TX9afkO7mnraTO1feTnZAXLu4cp7HAXMmNG1yeFk9TgS/NHhZR/4QoBTr/ZB+6hCgyl15Nq1UbN6nE1/ZnP1U2cizCBpvs8cJQZJ4LkYx5N/yZPAUZNQQ0V4f3BQllWrK3YRzl30dOT6RVn2upNur6woSa8CqpdT/aKnBM4o3jNur9d9xqtUT6veBEt9Ca9at+ERzEEhUkR8sa5mQ4aVvJoVeEA8zI4ei5mULXFGyU7z/6TAeYLVcpzSWZY8PYYF5yrTV60sT0+XV141vX++Wf16V2bFeGVPZXxFpkvyeKTWLlzfW0mnKxsY6Y3294/0998SCfX1blm5pbcvFGlq/r07MRAMhYIDiW5JFKWW3vdrEpCsZSJG+om7Zu/PSScZJhNkLbmW5Wsr12pWqW5zKtlwRS4bFOxUw17mCzy6lskCDl1WYOGWDYrADrMA7BDDweWWNd5koiJnR1dz+ytLP2q0SqPB1lnK2ccB7RYe4FSoPks3iB3t4txTSHctb2sy1ivk0pvHuCNm6w1f6wxv3+OCgN78LqdQnUVh7R0oTAp0zOf2rbW770Vu5C2dIyGdTnHo8zSji7dppj0USoVCz+lhRMTh53Teq9VbGfbjuSbAooSdXayY4PYHg374C6f7gl1B/DXuJ4/QXxOBdJFJspFsI3egpoWUUCjlTIFnNYNl+ZyZKmBeYKGHkD1QyDlhaKbKwKcIJqJ4TLJ2OmdY/JWXae4DdGBw8HZ7eXcgFF2zr2SoalDry5iKqoa0Puhe3hPQ2s3elTYM+MI+n3rK0KgL7/La3GeMLt6m7u912vGnvtORiIa0qBmhqVi+XW9XNBmqb8eVgKzIHfGI5bNoG7X0UCzeISmqIcO/nY8FH7U8avX9fx/ST+hx0sezPw9Qy8Mum3GWf2N4Uy/yIYGVBXbJHWIZp7dfTcptdMTr9Qmq7DaiK/ukqCL4kt4RUfS5XPnMtmT22/mQFqF7emSqtrlu8SVElxDRJrZODkpuwe0VfTfjdEp1f7A7v+fozNBXUJ/6WTuK2TtFlpFVZAZ3LcFvUi1Z2p2YT+EMAkGJVStOzLTAPg4IqWIAlzRSjOBkl2zxj3TKycpzT/MnvX3uaSMWM+gU0rkXjohhefVRMaps3/kLMSKv23lT23uxQrkQjyOJleMDsdhAnD6ZGElWZ5MjCXzCE/hkWX+WF4knzGhVOyK2eQZekV3eyo0zL8kuYWCnDCvjjhAkcTPOBDXVdoav3HVcFnQjLvtV9S2p0zA6JegPwMQxt+yFb3ll9zGlq/5dRKb3cEyQYoaNYpharJ7xCB7AWxsLY3jjZXY0XsZj0Wjwc9I6PP/dKABnCZaqHpaZEACxk4ZeLZSKNgZABl+lYQX1sJQOSX3n6r410evcoud5JeAGUXVP9H1tZOKejTq4Ono0z0erro1FrnOpohva1d/hTdtVsQdKN5W9RlT3NjD0nznyKNTgKAMfWNWcyodV0IGLPIHOF0o4JyqufaK4z6WIIzuGh3d8c8cwQg8ER+OVxyrjdm8vNuhts4LoOihGxIMuUdgzwiYN7xhh1+oZnJNuTG7gQZvu4XWZ9GAZZjGEubwePqYhtKDTH+9VQkl17/iGybsnJ+8+sKtyPrcll9ty65Zsdst/9iqpEKh7M5VdBxh3csOdNc6tW3I1uyM1PzOXegSOrLFsFNI2O27M+TF2ApnN9MUv5ud6LjxIvEQnHRzxIu4IsA9MLFkJn2tcZoZ7ON7dXe7ujrc8HrusPKamlqXwd77lQUuLpilau4PUMapueBb7irU4RoUXEYXuVuIGlRGmOp+2lNkaRPVziOqmlaZvaqG4dFgSj0jxEJWrv12IUWntmw+rfQarRE0Aph4ocI6nlUlGqs+u3/+T/ethW62PpHp2eHbZstnh/wOO95yDAHicY2BkYGAA4pmJ6QHx/DZfGbiZXwBFGGpUNzQi6P+vmacy3QJyORiYQKIANoULVXicY2BkYGAO+p8FJF8wAAHzVAZGBlSgDQBW9gNvAAAAeJxjYGBgYH4xNDAAzwQmjwAAAAAATgCaAOgBCgEsAU4BcAGaAcQB7gIaApwC6ASaBLwE1gTyBQ4FKgV6BdAF/gZEBmYGtgcYB5AIGAhSCGoI/glGCb4J2goECjwKggq4CvALUAuWC7x4nGNgZGBg0GZMYRBlAAEmIOYCQgaG/2A+AwAYlAG8AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjtlugzAQRbkJUEJIuu/7vqR8lGNPAcWx0YAb5e/LklR96EgenSufGY038PqKvf9rhgGG8BEgxA4ijBBjjAQTTLGLPezjAIc4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(Bi.content),Ii=document.createElement("template"),Ii.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ii.content),Oi=document.createElement("template"),Oi.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Oi.content),Ri=qo`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
|
|
749
749
|
<template>
|
|
750
750
|
<style include="lumo-required-field lumo-field-button">
|
|
751
751
|
:host {
|
|
@@ -1275,7 +1275,7 @@
|
|
|
1275
1275
|
}
|
|
1276
1276
|
</style>
|
|
1277
1277
|
</template>
|
|
1278
|
-
</dom-module>`;document.head.appendChild(t.content);class Tl{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function El(e){return function n(i,r){let o=r.substring(i.start,i.end-1);if(i.parsedCssText=i.cssText=o.trim(),i.parent){let e=i.previous?i.previous.end:i.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=r.substring(e,i.start-1))).replace(kl.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),i.parsedSelector=i.selector=o.trim());i.atRule=0===t.indexOf($l),i.atRule?0===t.indexOf(Dl)?i.type=Sl.MEDIA_RULE:t.match(kl.keyframesRule)&&(i.type=Sl.KEYFRAMES_RULE,i.keyframesName=i.selector.split(kl.multipleSpaces).pop()):0===t.indexOf(Ml)?i.type=Sl.MIXIN_RULE:i.type=Sl.STYLE_RULE}let a=i.rules;if(a)for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++)n(e,r);return i}(function(i){var n,r,o=new Tl;o.start=0,o.end=i.length;let a=o;for(let e=0,t=i.length;e<t;e++)i[e]===Al?(a.rules||(a.rules=[]),r=(n=a).rules[n.rules.length-1]||null,(a=new Tl).start=e+1,a.parent=n,a.previous=r,n.rules.push(a)):i[e]===Ll&&(a.end=e+1,a=a.parent||o);return o}(e=e.replace(kl.comments,"").replace(kl.port,"")),e)}const Sl={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Al="{",Ll="}",kl={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Ml="--",Dl="@media",$l="@",Il=new Set;function Bl(e,t){return e?("string"==typeof e&&(e=El(e)),t&&Ol(e,t),function n(e,r,t=""){let o="";if(e.cssText||e.rules){var a=e.rules;if(!a||(i=a[0],Boolean(i)&&Boolean(i.selector)&&0===i.selector.indexOf(Ml)))o=(o=(o=r?e.cssText:e.cssText.replace(kl.customProp,"").replace(kl.mixinProp,"").replace(kl.mixinApply,"").replace(kl.varApply,"")).trim())&&" "+o+"\n";else for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++)o=n(e,r,o)}var i;return o&&(e.selector&&(t+=e.selector+" "+Al+"\n"),t+=o,e.selector)&&(t+=Ll+"\n\n"),t}(e,no)):""}function Nl(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=El(e.textContent)),e.__cssRules||null}function Ol(i,n,r,o){if(i){let e=!1,t=i.type;o&&t===Sl.MEDIA_RULE&&(a=i.selector.match(Zr))&&!window.matchMedia(a[1]).matches&&(e=!0),t===Sl.STYLE_RULE?n(i):r&&t===Sl.KEYFRAMES_RULE?r(i):t===Sl.MIXIN_RULE&&(e=!0);var a,s=i.rules;if(s&&!e)for(let e,t=0,i=s.length;t<i&&(e=s[t]);t++)Ol(e,n,r,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Fl="css-build";function Rl(e){return""!==(e=e,void 0!==to?to:(void 0===e.__cssBuild&&((t=e.getAttribute(Fl))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Fl)return e[1]}return""}(e))&&(i=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(i),e.__cssBuild=t)),e.__cssBuild||""));var t,i}const zl=/;\s*/m,Hl=/^\s*(initial)|(inherit)\s*$/,Wl=/\s*!important/;class jl{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ul=null;class Yl{constructor(){this._currentElement=null,this._measureElement=null,this._map=new jl}detectMixin(e){return e=Xr.test(e)||qr.test(e),Xr.lastIndex=0,qr.lastIndex=0,e}gatherStyles(e){var t,i=function(){var t=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){var n=i[e];if(n.hasAttribute("shady-unscoped")){if(!Qr){{r=void 0;o=void 0;var r=n;var o=r.textContent;if(!Il.has(o)){Il.add(o);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=o,document.head.appendChild(r)}}n.parentNode.removeChild(n)}}else t.push(n.textContent),n.parentNode.removeChild(n)}return t.join("").trim()}();return i?((t=document.createElement("style")).textContent=i,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var i=Nl(e);return this.transformRules(i,t),e.textContent=Bl(i),i}transformCustomStyle(e){var t=Nl(e);return Ol(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Bl(t),t}transformRules(e,t){this._currentElement=t,Ol(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,r){return e=e.replace(qr,(e,t,i,n)=>this._produceCssProperties(e,t,i,n,r)),this._consumeCssProperties(e,r)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const i={};let n=!1;return Ol(e,e=>{(n=n||e===t)||e.selector===t.selector&&Object.assign(i,this._cssTextToMap(e.parsedCssText))}),i}_consumeCssProperties(e,t){for(;r=Xr.exec(e);){var i=r[0],n=r[1],r=r.index,o=r+i.indexOf("@apply"),i=r+i.length,o=e.slice(0,o),i=e.slice(i),a=t?this._fallbacksFromPreviousRules(t):{},n=(Object.assign(a,this._cssTextToMap(o)),this._atApplyToCssProperties(n,a));e=""+o+n+i,Xr.lastIndex=r+n.length}return e}_atApplyToCssProperties(n,r){n=n.replace(zl,"");let o=[],a=this._map.get(n);if(a||(this._map.set(n,{}),a=this._map.get(n)),a){let e,t,i;this._currentElement&&(a.dependants[this._currentElement]=!0);var s=a.properties;for(e in s)i=r&&r[e],t=[e,": var(",n,"_-_",e],i&&t.push(",",i.replace(Wl,"")),t.push(")"),Wl.test(s[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var i=Hl.exec(t);return t=i?i[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,n=!1){let r,o,a=e.split(";"),s={};for(let e,t,i=0;i<a.length;i++)(e=a[i])&&1<(t=e.split(":")).length&&(r=t[0].trim(),o=t.slice(1).join(":"),n&&(o=this._replaceInitialOrInherit(r,o)),s[r]=o);return s}_invalidateMixinEntry(e){if(Ul)for(var t in e.dependants)t!==this._currentElement&&Ul(t)}_produceCssProperties(e,t,i,n,r){if(i&&function e(t,i){var n,r,o,a=t.indexOf("var(");return-1===a?i(t,"","",""):(o=function(i){let n=0;for(let e=a+3,t=i.length;e<t;e++)if("("===i[e])n++;else if(")"===i[e]&&0==--n)return e;return-1}(t),n=t.substring(a+4,o),r=t.substring(0,a),t=e(t.substring(o+1),i),-1===(o=n.indexOf(","))?i(r,n.trim(),"",t):i(r,n.substring(0,o).trim(),n.substring(o+1).trim(),t))}(i,(e,t)=>{t&&this._map.get(t)&&(n=`@apply ${t};`)}),!n)return e;let o=this._consumeCssProperties(""+n,r),a=e.slice(0,e.indexOf("--")),s=this._cssTextToMap(o,!0),l=s,c=this._map.get(t),u=c&&c.properties;u?l=Object.assign(Object.create(u),s):this._map.set(t,l);let d,p,h=[],m=!1;for(d in l)p=s[d],void 0===p&&(p="initial"),!u||d in u||(m=!0),h.push(`${t}_-_${d}: `+p);return m&&this._invalidateMixinEntry(c),c&&(c.properties=l),""+(a=i?e+";"+a:a)+h.join("; ")+";"}}Yl.prototype._separator="_-_",Object.defineProperty(Yl.prototype,"invalidCallback",{get:()=>Ul,set(e){Ul=e}});const Gl={},Vl="_applyShimCurrentVersion",ql="_applyShimNextVersion",Xl="_applyShimValidatingVersion",Zl=Promise.resolve();function Jl(e){var e=Gl[e];e&&((e=e)[Vl]=e[Vl]||0,e[Xl]=e[Xl]||0,e[ql]=(e[ql]||0)+1)}function Kl(e){return e[Vl]===e[ql]}const Ql=new Yl;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const l=new class{constructor(){this.customStyleInterface=null,Ql.invalidCallback=Jl}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ql.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Rl(e)||(Gl[t]=e,t=Ql.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var i=t[e],i=this.customStyleInterface.getStyleForCustomStyle(i);i&&Ql.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Jr(e,t),e.shadowRoot){this.styleElement(e);var i=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<i.length;e++)this.styleSubtree(i[e])}else{var n=e.children||e.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}}styleElement(e){this.ensure();var t,i,n=function(e){let t=e.localName,i="",n="";return t?i=-1<t.indexOf("-")?t:(n=t,e.getAttribute&&e.getAttribute("is")||""):(i=e.is,n=e.extends),{is:i,typeExtension:n}}(e)["is"],r=Gl[n];r&&Rl(r)||!r||Kl(r)||(!Kl(i=r)&&i[Xl]===i[ql]||(this.prepareTemplate(r,n),(t=r)[Xl]=t[ql],t._validating)||(t._validating=!0,Zl.then(function(){t[Vl]=t[ql],t._validating=!1})),(i=e.shadowRoot)&&(n=i.querySelector("style"))&&(n.__cssRules=r._styleAst,n.textContent=Bl(r._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};$i=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,i){l.flushCustomStyles(),l.prepareTemplate(e,t)},prepareTemplateStyles(e,t,i){window.ShadyCSS.prepareTemplate(e,t,i)},prepareTemplateDom(e,t){},styleSubtree(e,t){l.flushCustomStyles(),l.styleSubtree(e,t)},styleElement(e){l.flushCustomStyles(),l.styleElement(e)},styleDocument(e){l.flushCustomStyles(),l.styleDocument(e)},getComputedStyleValue:(e,t)=>Kr(e,t),flushCustomStyles(){l.flushCustomStyles()},nativeCss:no,nativeShadow:Qr,cssBuild:to,disableRuntime:Ni},$i&&(window.ShadyCSS.CustomStyleInterface=$i)}window.ShadyCSS.ApplyShim=Ql;const ec=/:host\(:dir\((ltr|rtl)\)\)/g,tc=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ic=/:dir\((?:ltr|rtl)\)/,nc=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),rc=[];let oc=null,ac="";function sc(){ac=document.documentElement.getAttribute("dir")}function lc(e){e.__autoDirOptOut||e.setAttribute("dir",ac)}function cc(){sc(),ac=document.documentElement.getAttribute("dir");for(let e=0;e<rc.length;e++)lc(rc[e])}const uc=Ko(e=>{nc||oc||(sc(),(oc=new MutationObserver(cc)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const i=La(e);class t extends i{static _processStyleText(e,t){return e=i._processStyleText.call(this,e,t),!nc&&ic.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(ec,':host([dir="$1"])')).replace(tc,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){i.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(oc&&oc.takeRecords().length&&cc(),rc.push(this),lc(this))}disconnectedCallback(){var e;i.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=rc.indexOf(this))&&rc.splice(e,1)}}return t.__activateDir=!1,t});let dc=!1,pc=[],hc=[];function mc(){dc=!0,requestAnimationFrame(function(){dc=!1;for(var e=pc;e.length;)fc(e.shift());setTimeout(function(){var i=hc;for(let e=0,t=i.length;e<t;e++)fc(i.shift())})})}function fc(e){var t=e[0],i=e[1],n=e[2];try{i.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function gc(e,t,i){dc||mc(),hc.push([e,t,i])}function yc(){document.body.removeAttribute("unresolved")}function vc(e,t,i){return{index:e,removed:t,addedCount:i}}"interactive"===document.readyState||"complete"===document.readyState?yc():window.addEventListener("DOMContentLoaded",yc);const bc=0,wc=1,_c=2,xc=3;function Cc(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,i=0,n=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,i,n){for(let e=0;e<n;e++)if(t[e]!==i[e])return e;return n}(c,p,n)),d==c.length&&m==p.length&&(i=function(e,t,i){let n=e.length,r=t.length,o=0;for(;o<i&&e[--n]===t[--r];)o++;return o}(c,p,n-e)),h+=e,m-=i,(d-=i)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=vc(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[vc(u,[],d-u)];var f=function(e){let t=e.length-1,i=e[0].length-1,n=e[t][i],r=[];for(;0<t||0<i;){var o,a,s,l;0==t?(r.push(_c),i--):0==i?(r.push(xc),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==n?r.push(bc):(r.push(wc),n=o),t--,i--):n=l==a?(r.push(xc),t--,a):(r.push(_c),i--,s))}return r.reverse(),r}(function(i,n,r,o){var a,s,l=m-o+1,c=d-n+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[n+e-1]===r[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 r=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case bc:t&&(r.push(t),t=void 0),o++,a++;break;case wc:(t=t||vc(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case _c:(t=t||vc(o,[],0)).addedCount++,o++;break;case xc:(t=t||vc(o,[],0)).removed.push(p[a]),a++}return t&&r.push(t),r}}function Pc(e){return"slot"===e.localName}let Tc=class{static getFlattenedNodes(e){var t=b(e);return Pc(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>Pc(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(){Pc(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(){Pc(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,xa.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 n={target:this._target,addedNodes:[],removedNodes:[]},i=this.constructor.getFlattenedNodes(this._target),r=Cc(i,this._effectiveNodes);for(let i,e=0;e<r.length&&(i=r[e]);e++)for(let e,t=0;t<i.removed.length&&(e=i.removed[t]);t++)n.removedNodes.push(e);for(let t,e=0;e<r.length&&(t=r[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)n.addedNodes.push(i[e]);this._effectiveNodes=i;let e=!1;return(n.addedNodes.length||n.removedNodes.length)&&(e=!0,this.callback.call(this._target,n)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];Pc(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];Pc(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}};function Ec(e,t){return Ac.call(e,t)}const Sc=Element.prototype,Ac=Sc.matches||Sc.matchesSelector||Sc.mozMatchesSelector||Sc.msMatchesSelector||Sc.oMatchesSelector||Sc.webkitMatchesSelector;class s{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Tc(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,i=e.ownerDocument;for(;t&&t!==i&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var i=this.node instanceof Document?this.node:this.node.ownerDocument;return b(i).importNode(e,t)}getEffectiveChildNodes(){return Tc.getFlattenedNodes(this.node)}queryDistributedElements(n){var r=this.getEffectiveChildNodes(),o=[];for(let e,t=0,i=r.length;t<i&&(e=r[t]);t++)e.nodeType===Node.ELEMENT_NODE&&Ec(e,n)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Lc(i,n){for(let t=0;t<n.length;t++){let e=n[t];Object.defineProperty(i,e,{get:function(){return this.node[e]},configurable:!0})}}class kc{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s;let Mc=s;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class l extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(s.prototype).forEach(e=>{"activeElement"!=e&&(l.prototype[e]=s.prototype[e])}),Lc(l.prototype,["classList"]),Mc=l,Object.defineProperties(kc.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&Nc(e).getOwnerRoot(),i=this.path;for(let e=0;e<i.length;e++){var n=i[e];if(Nc(n).getOwnerRoot()===t)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var Dc=s.prototype;var $c=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<$c.length;t++){let e=$c[t];Dc[e]=function(){return this.node[e].apply(this.node,arguments)}}}Lc(s.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var Ic=s.prototype;var Bc=["textContent","innerHTML","className"];for(let e=0;e<Bc.length;e++){let t=Bc[e];Object.defineProperty(Ic,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const Nc=function(e){if((e=e||document)instanceof Mc)return e;if(e instanceof kc)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?kc:Mc)(e),e.__domApi=t),t},Oc=window.ShadyDOM,Fc=window.ShadyCSS;function Rc(e,t){return b(e).getRootNode()===t}const zc="disable-upgrade",Hc=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Wc=Ko(e=>{e=ms(e);let t=Hc(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(zc)}_initializeProperties(){this.hasAttribute(zc)?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,n){e==zc?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,i,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),jc="disable-upgrade";let Uc=window.ShadyCSS;const Yc=Ko(e=>{const t=el(ms(e)),i=hs?t:uc(t),n=Hc(i),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends i{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,i){(this.__dataAttributes&&this.__dataAttributes[e]||e===jc)&&this.attributeChangedCallback(e,t,i,null)}setAttribute(e,t){var i;Ao&&!this._legacyForceObservedAttributes?(i=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,i,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;Ao&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return Ao&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):n.call(this).concat(jc)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,i,n){t!==i&&(e==jc?this.__isUpgradeDisabled&&null==i&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,i,n),this.attributeChanged(e,t,i)))}attributeChanged(e,t,i){}_initializeProperties(){var e;wo&&this.hasAttribute(jc)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),Ao&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var i=this.attributes;for(let e=0,t=i.length;e<t;e++){var n=i[e];this.__attributeReaction(n.name,null,n.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,i){this._propertyToAttribute(e,t,i)}serializeValueToAttribute(e,t,i){this._valueToNodeAttribute(i||this,e,t)}extend(i,n){if(!i||!n)return i||n;var r=Object.getOwnPropertyNames(n);for(let e,t=0;t<r.length&&(e=r[t]);t++){var o=Object.getOwnPropertyDescriptor(n,e);o&&Object.defineProperty(i,e,o)}return i}mixin(e,t){for(var i in t)e[i]=t[i];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,i){i=i||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed}),e.detail=t,t=i.node||this;return b(t).dispatchEvent(e),e}listen(e,t,i){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),r=n.get(e);r||(r={},n.set(e,r));var o=t+i;r[o]||(r[o]=this._addMethodEventListenerToNode(e,t,i,this))}unlisten(e,t,i){e=e||this;var n=this.__boundListeners&&this.__boundListeners.get(e),i=t+i,r=n&&n[i];r&&(this._removeEventListenerFromNode(e,t,r),n[i]=null)}setScrollDirection(e,t){Vs(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=Nc(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return Nc(this).getEffectiveChildNodes()}queryDistributedElements(e){return Nc(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var i=this.getEffectiveChildNodes(),n=[];for(let e,t=0;e=i[t];t++)e.nodeType!==Node.COMMENT_NODE&&n.push(e.textContent);return n.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?Nc(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,i=!1]=[e,t];if(Oc&&Fc&&Oc.handlesDynamicScoping){const r=Fc.ScopingShim;if(r){const o=r.scopeForNode(e),a=b(e).getRootNode(),s=e=>{if(Rc(e,a)){var t=Array.from(Oc.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var i,n=t[e];Rc(n,a)&&(i=r.currentScopeForNode(n))!==o&&(""!==i&&r.unscopeNode(n,i),r.scopeNode(n,o))}}};if(s(e),i){const i=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var i=t[e];for(let e=0;e<i.addedNodes.length;e++){var n=i.addedNodes[e];n.nodeType===Node.ELEMENT_NODE&&s(n)}}});return i.observe(e,{childList:!0,subtree:!0}),i}}}return null}getComputedStyleValue(e){return Uc.getComputedStyleValue(this,e)}debounce(e,t,i){return this._debouncers=this._debouncers||{},this._debouncers[e]=gs.debounce(this._debouncers[e],0<i?ba.after(i):xa,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?ba.run(e.bind(this),t):~xa.run(e.bind(this))}cancelAsync(e){e<0?xa.cancel(~e):ba.cancel(e)}create(e,t){var i=document.createElement(e);if(t)if(i.setProperties)i.setProperties(t);else for(var n in t)i[n]=t[n];return i}elementMatches(e,t){return Ec(t||this,e)}toggleAttribute(e,t){let i=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!i.hasAttribute(e):t)?(b(i).setAttribute(e,""),!0):(b(i).removeAttribute(e),!1)}toggleClass(e,t,i){i=i||this,(t=1==arguments.length?!i.classList.contains(e):t)?i.classList.add(e):i.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,i,n){this.transform("translate3d("+e+","+t+","+i+")",n=n||this)}arrayDelete(e,t){let i;if(Array.isArray(e)){if(0<=(i=e.indexOf(t)))return e.splice(i,1)}else if(0<=(i=aa(this,e).indexOf(t)))return this.splice(e,i,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Gc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Vc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},qc=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Vc);function Xc(e,t,i,n){var r,o=t,a=e,s=n,l=o._noAccessors,c=Object.getOwnPropertyNames(o);for(let e=0;e<c.length;e++){var u,d=c[e];d in s||(l?a[d]=o[d]:(u=Object.getOwnPropertyDescriptor(o,d))&&(u.configurable=!0,Object.defineProperty(a,d,u)))}for(r in Gc)t[r]&&(i[r]=i[r]||[],i[r].push(t[r]))}function Zc(e,t){for(const r in t){var i=e[r],n=t[r];e[r]=!("value"in n)&&i&&"value"in i?Object.assign({value:i.value},n):n}}const Jc=Yc(HTMLElement);function Kc(r,e,t){let o;const a={};class n extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Zc(t,o[e].properties);return Zc(t,r.properties),t}static get observers(){let i=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(i=i.concat(e.observers));return i=r.observers?i.concat(r.observers):i}created(){super.created();var t=a.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=n.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),wo&&s(e);var i=Object.getPrototypeOf(this);let t=a.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(i);if(t=a.registered)for(let e=0;e<t.length;e++)t[e].call(i)}}_applyListeners(){super._applyListeners();var t=a.listeners;if(t)for(let e=0;e<t.length;e++){var i=t[e];if(i)for(var n in i)this._addMethodEventListenerToNode(this,n,i[n])}}_ensureAttributes(){var t=a.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var i,n=t[e];for(i in n)this._ensureAttribute(i,n[i])}super._ensureAttributes()}ready(){super.ready();var t=a.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=a.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=a.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,i,n){super.attributeChanged();var r=a.attributeChanged;if(r)for(let e=0;e<r.length;e++)r[e].call(this,t,i,n)}}var i;t&&(Array.isArray(t)||(t=[t]),i=e.prototype.behaviors,o=function t(i,n,r){n=n||[];for(let e=i.length-1;0<=e;e--){var o=i[e];o?Array.isArray(o)?t(o,n):n.indexOf(o)<0&&(!r||r.indexOf(o)<0)&&n.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return n}(t,null,i),n.prototype.behaviors=i?i.concat(t):o);const s=e=>{if(o){var t=e,i=o,n=a;for(let e=0;e<i.length;e++)Xc(t,i[e],n,qc)}Xc(e,r,a,Vc)};return wo||s(n.prototype),n.generatedFrom=r,n}function Qc(e){var t="function"==typeof e?e:Qc.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function eu(e,t,i,n,r){let o;r=(n=r&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:n)!==i&&(n==n||i==i);return o&&r&&(e.__dataTemp[t]=i),r}Qc.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Jc):Jc;return(t=Kc(e,t,e.behaviors)).is=t.prototype.is=e.is,t};Ii=Ko(e=>class extends e{_shouldPropertyChange(e,t,i){return eu(this,e,t,i,!0)}}),Bi=Ko(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return eu(this,e,t,i,this.mutableData)}});Ii._mutablePropertyChange=eu;let tu=null;function iu(){return tu}iu.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:iu,writable:!0}});const nu=us(iu),ru=Ii(nu);function ou(t,i){for(let e=0;e<i.length;e++){var n=i[e];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),b(b(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const t=n.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(n,t)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}class au extends us(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 n;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(n=this.__dataHost.__dataHost)&&n._addEventListenerToNode(e,t,i)}_showHideChildren(e){ou(e,this.children)}_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}}au.prototype.__dataHost,au.prototype.__templatizeOptions,au.prototype._methodHost,au.prototype.__templatizeOwner,au.prototype.__hostProps;const su=Ii(au);function lu(e){e=e.__dataHost;return e&&e._methodHost||e}function cu(e,t,i){let n=i.mutableData?su:au;var r,o=class extends(n=du.mixin?du.mixin(n):n){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(r in l.instanceProps){delete c[r];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(r,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(n){return function(e,t,i){n.call(e.__templatizeOwner,e,t,i[t])}}((r,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 uu(t,i,n,r){var o=n.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class r extends(n.mutableData?ru:nu){}e=i.templatizeTemplateClass=r}else{const n=t.constructor;class r extends n{}e=i.templatizeTemplateClass=r}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(n){return function(e,t,i){n.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(_o&&r){var l=n;const d=r.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)n=e,tu=t,Object.setPrototypeOf(t,n.prototype),new n,tu=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const n=i.hostProps;for(var u in n)if(u="_host_"+u,u in t){const n=t[u];delete t[u],t.__data[u]=n}}}}function du(e,t,i){if(vo&&!lu(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 n=((e.__templatizeOwner=t)?t.constructor:au)._parseTemplate(e),r=n.templatizeInstanceClass;r||(r=cu(e,n,i),n.templatizeInstanceClass=r);var o=lu(e),i=(uu(e,n,i,o),class extends r{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=n.hostProps,i}let pu=!1;function hu(){var e;return wo&&!ho&&(pu||(pu=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}Oi=el(Bi(us(HTMLElement))),customElements.define("dom-bind",class extends Oi{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),vo)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,i,n){this.mutableData=!0}connectedCallback(){hu()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),Ri=Bi(fs);class mu extends Ri{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:!So,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(),hu()||(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()}}__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=du(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,n){var r=this.__instances;for(let e,t=0;t<r.length&&(e=r[t]);t++)e.forwardHostProp(i,n)},notifyInstanceProp:function(e,t,i){var n,r;((n=this.as)===(r=t)||ta(n,r)||ia(n,r))&&(n=e[this.itemsIndexAs],t==this.as&&(this.items[n]=i),r=na(this.as,JSCompiler_renameProperty("items",this)+"."+n,t),this.notifyPath(r,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=gs.debounce(this.__renderDebouncer,0<t?ba.after(t):xa,e.bind(this)),vs(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),rl()}__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),So&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(n){let t=new Array(n.length);for(let e=0;e<n.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(n[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(n[e],n[t])),t}__calculateLimit(t){let i=t;var n=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-n,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-n,0),this.__chunkCount),i=Math.min(n+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 n=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){var o=this.__instances[r],a=i[r],s=e[a];n[a]=r,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,r),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,r,a)}for(let e=this.__instances.length-1;e>=r;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 n=t.children[e];i.appendChild(n)}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 n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=i,new this.__ctor(n)}__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("."),n=i<0?e:e.substring(0,i);if(n==parseInt(n,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[n],(n=this.__instances[i])&&(i=this.as+(e?"."+e:""),n._setPendingPropertyOrPath(i,t,!1,!0),n._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,n=e;n;)if(t=n.__dataHost?n:n.__templatizeInstance){if(t.__dataHost==i)return t;n=t.__dataHost}else n=b(n).parentNode;return null}}customElements.define(mu.is,mu);class fu extends fs{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=gs.debounce(this.__renderDebouncer,xa,()=>this.__render()),vs(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),hu()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var i=b(this).parentNode;if(this.__hasInstance()){var n=this.__getInstanceNodes();if(n&&n.length&&b(this).previousSibling!==n[n.length-1])for(let e,t=0;t<n.length&&(e=n[t]);t++)b(i).insertBefore(e,this)}else{if(!i)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(i)}return!0}render(){rl()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),So&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}t=Eo?class extends fu{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(vo&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var i=t._bindTemplate(this.__template,!0);i.runEffects=(e,t,i)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,i);else if(this.__instance)if(n=n||(this.__syncInfo={runEffects:e,changedProps:{}}),i)for(const e in t){const t=ea(e);n.changedProps[t]=this.__dataHost[t]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,i),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&ou(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends fu{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=du(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ea(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var i=this.__instance.children;if(i&&i.length){var n=b(i[0]).parentNode;if(n){n=b(n);for(let e,t=0;t<i.length&&(e=i[t]);t++)n.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}},customElements.define(t.is,t),Ni=Ko(e=>{return class extends ms(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var i,n,r=t.path;r==JSCompiler_renameProperty("items",this)?(n=t.base||[],i=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),i&&(i=Cc(n,i),this.__applySplices(i)),this.__lastItems=n,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(i=r.slice((JSCompiler_renameProperty("items",this)+".").length),n=parseInt(i,10),i.indexOf(".")<0&&i==n&&this.__deselectChangedIdx(n))}__applySplices(t){let n=this.__selectedMap;for(let e=0;e<t.length;e++){let i=t[e];n.forEach((e,t)=>{e<i.index||(e>=i.index+i.removed.length?n.set(t,e+i.addedCount-i.removed.length):n.set(t,-1))});for(let e=0;e<i.addedCount;e++){var r=i.index+e;n.has(this.items[r])&&n.set(this.items[r],r)}}this.__updateLinks();let i=0;n.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null,n.delete(t)):i++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let n=this.__selectedIndexForItemIndex(e);if(0<=n){let i=0;this.__selectedMap.forEach((e,t)=>{n==i++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var i=this.__selectedMap.get(t);if(0<=i){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(i)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(fs);class gu extends Ni{static get is(){return"array-selector"}static get template(){return null}}customElements.define(gu.is,gu),Yc(HTMLElement).prototype,Qc({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const yu=Element.prototype,vu=yu.matches||yu.matchesSelector||yu.mozMatchesSelector||yu.msMatchesSelector||yu.oMatchesSelector||yu.webkitMatchesSelector;class bu{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return vu.call(e,"input, select, textarea, button, object")?vu.call(e,":not([disabled])"):vu.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&vu.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var i=this._normalizedTabIndex(e);let n,r=0<i;if(0<=i&&t.push(e),n="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<n.length;e++)r=this._collectTabbableNodes(n[e],t)||r;return r}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,i=e.length;return i<2?e:(i=Math.ceil(i/2),t=this._sortByTabIndex(e.slice(0,i)),e=this._sortByTabIndex(e.slice(i)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var i=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let wu=0;const _u={};class xu extends il(dl(fs)){static get template(){return qo`
|
|
1278
|
+
</dom-module>`;document.head.appendChild(t.content);class Tl{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function El(e){return function n(i,r){let o=r.substring(i.start,i.end-1);if(i.parsedCssText=i.cssText=o.trim(),i.parent){let e=i.previous?i.previous.end:i.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=r.substring(e,i.start-1))).replace(Ml.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),i.parsedSelector=i.selector=o.trim());i.atRule=0===t.indexOf($l),i.atRule?0===t.indexOf(kl)?i.type=Sl.MEDIA_RULE:t.match(Ml.keyframesRule)&&(i.type=Sl.KEYFRAMES_RULE,i.keyframesName=i.selector.split(Ml.multipleSpaces).pop()):0===t.indexOf(Dl)?i.type=Sl.MIXIN_RULE:i.type=Sl.STYLE_RULE}let a=i.rules;if(a)for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++)n(e,r);return i}(function(i){var n,r,o=new Tl;o.start=0,o.end=i.length;let a=o;for(let e=0,t=i.length;e<t;e++)i[e]===Al?(a.rules||(a.rules=[]),r=(n=a).rules[n.rules.length-1]||null,(a=new Tl).start=e+1,a.parent=n,a.previous=r,n.rules.push(a)):i[e]===Ll&&(a.end=e+1,a=a.parent||o);return o}(e=e.replace(Ml.comments,"").replace(Ml.port,"")),e)}const Sl={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Al="{",Ll="}",Ml={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Dl="--",kl="@media",$l="@",Bl=new Set;function Il(e,t){return e?("string"==typeof e&&(e=El(e)),t&&Ol(e,t),function n(e,r,t=""){let o="";if(e.cssText||e.rules){var a=e.rules;if(!a||(i=a[0],Boolean(i)&&Boolean(i.selector)&&0===i.selector.indexOf(Dl)))o=(o=(o=r?e.cssText:e.cssText.replace(Ml.customProp,"").replace(Ml.mixinProp,"").replace(Ml.mixinApply,"").replace(Ml.varApply,"")).trim())&&" "+o+"\n";else for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++)o=n(e,r,o)}var i;return o&&(e.selector&&(t+=e.selector+" "+Al+"\n"),t+=o,e.selector)&&(t+=Ll+"\n\n"),t}(e,no)):""}function Nl(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=El(e.textContent)),e.__cssRules||null}function Ol(i,n,r,o){if(i){let e=!1,t=i.type;o&&t===Sl.MEDIA_RULE&&(a=i.selector.match(Zr))&&!window.matchMedia(a[1]).matches&&(e=!0),t===Sl.STYLE_RULE?n(i):r&&t===Sl.KEYFRAMES_RULE?r(i):t===Sl.MIXIN_RULE&&(e=!0);var a,s=i.rules;if(s&&!e)for(let e,t=0,i=s.length;t<i&&(e=s[t]);t++)Ol(e,n,r,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Fl="css-build";function Rl(e){return""!==(e=e,void 0!==to?to:(void 0===e.__cssBuild&&((t=e.getAttribute(Fl))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Fl)return e[1]}return""}(e))&&(i=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(i),e.__cssBuild=t)),e.__cssBuild||""));var t,i}const zl=/;\s*/m,Hl=/^\s*(initial)|(inherit)\s*$/,Wl=/\s*!important/;class jl{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ul=null;class Yl{constructor(){this._currentElement=null,this._measureElement=null,this._map=new jl}detectMixin(e){return e=Xr.test(e)||qr.test(e),Xr.lastIndex=0,qr.lastIndex=0,e}gatherStyles(e){var t,i=function(){var t=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){var n=i[e];if(n.hasAttribute("shady-unscoped")){if(!Qr){{r=void 0;o=void 0;var r=n;var o=r.textContent;if(!Bl.has(o)){Bl.add(o);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=o,document.head.appendChild(r)}}n.parentNode.removeChild(n)}}else t.push(n.textContent),n.parentNode.removeChild(n)}return t.join("").trim()}();return i?((t=document.createElement("style")).textContent=i,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var i=Nl(e);return this.transformRules(i,t),e.textContent=Il(i),i}transformCustomStyle(e){var t=Nl(e);return Ol(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Il(t),t}transformRules(e,t){this._currentElement=t,Ol(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,r){return e=e.replace(qr,(e,t,i,n)=>this._produceCssProperties(e,t,i,n,r)),this._consumeCssProperties(e,r)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const i={};let n=!1;return Ol(e,e=>{(n=n||e===t)||e.selector===t.selector&&Object.assign(i,this._cssTextToMap(e.parsedCssText))}),i}_consumeCssProperties(e,t){for(;r=Xr.exec(e);){var i=r[0],n=r[1],r=r.index,o=r+i.indexOf("@apply"),i=r+i.length,o=e.slice(0,o),i=e.slice(i),a=t?this._fallbacksFromPreviousRules(t):{},n=(Object.assign(a,this._cssTextToMap(o)),this._atApplyToCssProperties(n,a));e=""+o+n+i,Xr.lastIndex=r+n.length}return e}_atApplyToCssProperties(n,r){n=n.replace(zl,"");let o=[],a=this._map.get(n);if(a||(this._map.set(n,{}),a=this._map.get(n)),a){let e,t,i;this._currentElement&&(a.dependants[this._currentElement]=!0);var s=a.properties;for(e in s)i=r&&r[e],t=[e,": var(",n,"_-_",e],i&&t.push(",",i.replace(Wl,"")),t.push(")"),Wl.test(s[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var i=Hl.exec(t);return t=i?i[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,n=!1){let r,o,a=e.split(";"),s={};for(let e,t,i=0;i<a.length;i++)(e=a[i])&&1<(t=e.split(":")).length&&(r=t[0].trim(),o=t.slice(1).join(":"),n&&(o=this._replaceInitialOrInherit(r,o)),s[r]=o);return s}_invalidateMixinEntry(e){if(Ul)for(var t in e.dependants)t!==this._currentElement&&Ul(t)}_produceCssProperties(e,t,i,n,r){if(i&&function e(t,i){var n,r,o,a=t.indexOf("var(");return-1===a?i(t,"","",""):(o=function(i){let n=0;for(let e=a+3,t=i.length;e<t;e++)if("("===i[e])n++;else if(")"===i[e]&&0==--n)return e;return-1}(t),n=t.substring(a+4,o),r=t.substring(0,a),t=e(t.substring(o+1),i),-1===(o=n.indexOf(","))?i(r,n.trim(),"",t):i(r,n.substring(0,o).trim(),n.substring(o+1).trim(),t))}(i,(e,t)=>{t&&this._map.get(t)&&(n=`@apply ${t};`)}),!n)return e;let o=this._consumeCssProperties(""+n,r),a=e.slice(0,e.indexOf("--")),s=this._cssTextToMap(o,!0),l=s,c=this._map.get(t),u=c&&c.properties;u?l=Object.assign(Object.create(u),s):this._map.set(t,l);let d,p,h=[],m=!1;for(d in l)p=s[d],void 0===p&&(p="initial"),!u||d in u||(m=!0),h.push(`${t}_-_${d}: `+p);return m&&this._invalidateMixinEntry(c),c&&(c.properties=l),""+(a=i?e+";"+a:a)+h.join("; ")+";"}}Yl.prototype._separator="_-_",Object.defineProperty(Yl.prototype,"invalidCallback",{get:()=>Ul,set(e){Ul=e}});const Gl={},Vl="_applyShimCurrentVersion",ql="_applyShimNextVersion",Xl="_applyShimValidatingVersion",Zl=Promise.resolve();function Jl(e){var e=Gl[e];e&&((e=e)[Vl]=e[Vl]||0,e[Xl]=e[Xl]||0,e[ql]=(e[ql]||0)+1)}function Kl(e){return e[Vl]===e[ql]}const Ql=new Yl;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const s=new class{constructor(){this.customStyleInterface=null,Ql.invalidCallback=Jl}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ql.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Rl(e)||(Gl[t]=e,t=Ql.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var i=t[e],i=this.customStyleInterface.getStyleForCustomStyle(i);i&&Ql.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Jr(e,t),e.shadowRoot){this.styleElement(e);var i=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<i.length;e++)this.styleSubtree(i[e])}else{var n=e.children||e.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}}styleElement(e){this.ensure();var t,i,n=function(e){let t=e.localName,i="",n="";return t?i=-1<t.indexOf("-")?t:(n=t,e.getAttribute&&e.getAttribute("is")||""):(i=e.is,n=e.extends),{is:i,typeExtension:n}}(e)["is"],r=Gl[n];r&&Rl(r)||!r||Kl(r)||(!Kl(i=r)&&i[Xl]===i[ql]||(this.prepareTemplate(r,n),(t=r)[Xl]=t[ql],t._validating)||(t._validating=!0,Zl.then(function(){t[Vl]=t[ql],t._validating=!1})),(i=e.shadowRoot)&&(n=i.querySelector("style"))&&(n.__cssRules=r._styleAst,n.textContent=Il(r._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};$i=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,i){s.flushCustomStyles(),s.prepareTemplate(e,t)},prepareTemplateStyles(e,t,i){window.ShadyCSS.prepareTemplate(e,t,i)},prepareTemplateDom(e,t){},styleSubtree(e,t){s.flushCustomStyles(),s.styleSubtree(e,t)},styleElement(e){s.flushCustomStyles(),s.styleElement(e)},styleDocument(e){s.flushCustomStyles(),s.styleDocument(e)},getComputedStyleValue:(e,t)=>Kr(e,t),flushCustomStyles(){s.flushCustomStyles()},nativeCss:no,nativeShadow:Qr,cssBuild:to,disableRuntime:Ni},$i&&(window.ShadyCSS.CustomStyleInterface=$i)}window.ShadyCSS.ApplyShim=Ql;const ec=/:host\(:dir\((ltr|rtl)\)\)/g,tc=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ic=/:dir\((?:ltr|rtl)\)/,nc=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),rc=[];let oc=null,ac="";function sc(){ac=document.documentElement.getAttribute("dir")}function lc(e){e.__autoDirOptOut||e.setAttribute("dir",ac)}function cc(){sc(),ac=document.documentElement.getAttribute("dir");for(let e=0;e<rc.length;e++)lc(rc[e])}const uc=Ko(e=>{nc||oc||(sc(),(oc=new MutationObserver(cc)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const i=La(e);class t extends i{static _processStyleText(e,t){return e=i._processStyleText.call(this,e,t),!nc&&ic.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(ec,':host([dir="$1"])')).replace(tc,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){i.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(oc&&oc.takeRecords().length&&cc(),rc.push(this),lc(this))}disconnectedCallback(){var e;i.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=rc.indexOf(this))&&rc.splice(e,1)}}return t.__activateDir=!1,t});let dc=!1,pc=[],hc=[];function mc(){dc=!0,requestAnimationFrame(function(){dc=!1;for(var e=pc;e.length;)fc(e.shift());setTimeout(function(){var i=hc;for(let e=0,t=i.length;e<t;e++)fc(i.shift())})})}function fc(e){var t=e[0],i=e[1],n=e[2];try{i.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function gc(e,t,i){dc||mc(),hc.push([e,t,i])}function yc(){document.body.removeAttribute("unresolved")}function vc(e,t,i){return{index:e,removed:t,addedCount:i}}"interactive"===document.readyState||"complete"===document.readyState?yc():window.addEventListener("DOMContentLoaded",yc);const bc=0,wc=1,_c=2,xc=3;function Cc(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,i=0,n=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,i,n){for(let e=0;e<n;e++)if(t[e]!==i[e])return e;return n}(c,p,n)),d==c.length&&m==p.length&&(i=function(e,t,i){let n=e.length,r=t.length,o=0;for(;o<i&&e[--n]===t[--r];)o++;return o}(c,p,n-e)),h+=e,m-=i,(d-=i)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=vc(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[vc(u,[],d-u)];var f=function(e){let t=e.length-1,i=e[0].length-1,n=e[t][i],r=[];for(;0<t||0<i;){var o,a,s,l;0==t?(r.push(_c),i--):0==i?(r.push(xc),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==n?r.push(bc):(r.push(wc),n=o),t--,i--):n=l==a?(r.push(xc),t--,a):(r.push(_c),i--,s))}return r.reverse(),r}(function(i,n,r,o){var a,s,l=m-o+1,c=d-n+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[n+e-1]===r[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 r=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case bc:t&&(r.push(t),t=void 0),o++,a++;break;case wc:(t=t||vc(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case _c:(t=t||vc(o,[],0)).addedCount++,o++;break;case xc:(t=t||vc(o,[],0)).removed.push(p[a]),a++}return t&&r.push(t),r}}function Pc(e){return"slot"===e.localName}let Tc=class{static getFlattenedNodes(e){var t=b(e);return Pc(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>Pc(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(){Pc(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(){Pc(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,xa.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 n={target:this._target,addedNodes:[],removedNodes:[]},i=this.constructor.getFlattenedNodes(this._target),r=Cc(i,this._effectiveNodes);for(let i,e=0;e<r.length&&(i=r[e]);e++)for(let e,t=0;t<i.removed.length&&(e=i.removed[t]);t++)n.removedNodes.push(e);for(let t,e=0;e<r.length&&(t=r[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)n.addedNodes.push(i[e]);this._effectiveNodes=i;let e=!1;return(n.addedNodes.length||n.removedNodes.length)&&(e=!0,this.callback.call(this._target,n)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];Pc(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var i=t[e];Pc(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}};function Ec(e,t){return Ac.call(e,t)}const Sc=Element.prototype,Ac=Sc.matches||Sc.matchesSelector||Sc.mozMatchesSelector||Sc.msMatchesSelector||Sc.oMatchesSelector||Sc.webkitMatchesSelector;class a{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Tc(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,i=e.ownerDocument;for(;t&&t!==i&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var i=this.node instanceof Document?this.node:this.node.ownerDocument;return b(i).importNode(e,t)}getEffectiveChildNodes(){return Tc.getFlattenedNodes(this.node)}queryDistributedElements(n){var r=this.getEffectiveChildNodes(),o=[];for(let e,t=0,i=r.length;t<i&&(e=r[t]);t++)e.nodeType===Node.ELEMENT_NODE&&Ec(e,n)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Lc(i,n){for(let t=0;t<n.length;t++){let e=n[t];Object.defineProperty(i,e,{get:function(){return this.node[e]},configurable:!0})}}class Mc{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a;let Dc=a;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class s extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(a.prototype).forEach(e=>{"activeElement"!=e&&(s.prototype[e]=a.prototype[e])}),Lc(s.prototype,["classList"]),Dc=s,Object.defineProperties(Mc.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&Nc(e).getOwnerRoot(),i=this.path;for(let e=0;e<i.length;e++){var n=i[e];if(Nc(n).getOwnerRoot()===t)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var kc=a.prototype;var $c=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<$c.length;t++){let e=$c[t];kc[e]=function(){return this.node[e].apply(this.node,arguments)}}}Lc(a.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var Bc=a.prototype;var Ic=["textContent","innerHTML","className"];for(let e=0;e<Ic.length;e++){let t=Ic[e];Object.defineProperty(Bc,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const Nc=function(e){if((e=e||document)instanceof Dc)return e;if(e instanceof Mc)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?Mc:Dc)(e),e.__domApi=t),t},Oc=window.ShadyDOM,Fc=window.ShadyCSS;function Rc(e,t){return b(e).getRootNode()===t}const zc="disable-upgrade",Hc=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Wc=Ko(e=>{e=ms(e);let t=Hc(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(zc)}_initializeProperties(){this.hasAttribute(zc)?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,n){e==zc?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,i,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),jc="disable-upgrade";let Uc=window.ShadyCSS;const Yc=Ko(e=>{const t=el(ms(e)),i=hs?t:uc(t),n=Hc(i),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends i{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,i){(this.__dataAttributes&&this.__dataAttributes[e]||e===jc)&&this.attributeChangedCallback(e,t,i,null)}setAttribute(e,t){var i;Ao&&!this._legacyForceObservedAttributes?(i=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,i,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;Ao&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return Ao&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):n.call(this).concat(jc)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,i,n){t!==i&&(e==jc?this.__isUpgradeDisabled&&null==i&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,i,n),this.attributeChanged(e,t,i)))}attributeChanged(e,t,i){}_initializeProperties(){var e;wo&&this.hasAttribute(jc)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),Ao&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var i=this.attributes;for(let e=0,t=i.length;e<t;e++){var n=i[e];this.__attributeReaction(n.name,null,n.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,i){this._propertyToAttribute(e,t,i)}serializeValueToAttribute(e,t,i){this._valueToNodeAttribute(i||this,e,t)}extend(i,n){if(!i||!n)return i||n;var r=Object.getOwnPropertyNames(n);for(let e,t=0;t<r.length&&(e=r[t]);t++){var o=Object.getOwnPropertyDescriptor(n,e);o&&Object.defineProperty(i,e,o)}return i}mixin(e,t){for(var i in t)e[i]=t[i];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,i){i=i||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed}),e.detail=t,t=i.node||this;return b(t).dispatchEvent(e),e}listen(e,t,i){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),r=n.get(e);r||(r={},n.set(e,r));var o=t+i;r[o]||(r[o]=this._addMethodEventListenerToNode(e,t,i,this))}unlisten(e,t,i){e=e||this;var n=this.__boundListeners&&this.__boundListeners.get(e),i=t+i,r=n&&n[i];r&&(this._removeEventListenerFromNode(e,t,r),n[i]=null)}setScrollDirection(e,t){Vs(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=Nc(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return Nc(this).getEffectiveChildNodes()}queryDistributedElements(e){return Nc(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var i=this.getEffectiveChildNodes(),n=[];for(let e,t=0;e=i[t];t++)e.nodeType!==Node.COMMENT_NODE&&n.push(e.textContent);return n.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?Nc(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,i=!1]=[e,t];if(Oc&&Fc&&Oc.handlesDynamicScoping){const r=Fc.ScopingShim;if(r){const o=r.scopeForNode(e),a=b(e).getRootNode(),s=e=>{if(Rc(e,a)){var t=Array.from(Oc.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var i,n=t[e];Rc(n,a)&&(i=r.currentScopeForNode(n))!==o&&(""!==i&&r.unscopeNode(n,i),r.scopeNode(n,o))}}};if(s(e),i){const i=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var i=t[e];for(let e=0;e<i.addedNodes.length;e++){var n=i.addedNodes[e];n.nodeType===Node.ELEMENT_NODE&&s(n)}}});return i.observe(e,{childList:!0,subtree:!0}),i}}}return null}getComputedStyleValue(e){return Uc.getComputedStyleValue(this,e)}debounce(e,t,i){return this._debouncers=this._debouncers||{},this._debouncers[e]=gs.debounce(this._debouncers[e],0<i?ba.after(i):xa,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?ba.run(e.bind(this),t):~xa.run(e.bind(this))}cancelAsync(e){e<0?xa.cancel(~e):ba.cancel(e)}create(e,t){var i=document.createElement(e);if(t)if(i.setProperties)i.setProperties(t);else for(var n in t)i[n]=t[n];return i}elementMatches(e,t){return Ec(t||this,e)}toggleAttribute(e,t){let i=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!i.hasAttribute(e):t)?(b(i).setAttribute(e,""),!0):(b(i).removeAttribute(e),!1)}toggleClass(e,t,i){i=i||this,(t=1==arguments.length?!i.classList.contains(e):t)?i.classList.add(e):i.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,i,n){this.transform("translate3d("+e+","+t+","+i+")",n=n||this)}arrayDelete(e,t){let i;if(Array.isArray(e)){if(0<=(i=e.indexOf(t)))return e.splice(i,1)}else if(0<=(i=aa(this,e).indexOf(t)))return this.splice(e,i,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Gc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Vc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},qc=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Vc);function Xc(e,t,i,n){var r,o=t,a=e,s=n,l=o._noAccessors,c=Object.getOwnPropertyNames(o);for(let e=0;e<c.length;e++){var u,d=c[e];d in s||(l?a[d]=o[d]:(u=Object.getOwnPropertyDescriptor(o,d))&&(u.configurable=!0,Object.defineProperty(a,d,u)))}for(r in Gc)t[r]&&(i[r]=i[r]||[],i[r].push(t[r]))}function Zc(e,t){for(const r in t){var i=e[r],n=t[r];e[r]=!("value"in n)&&i&&"value"in i?Object.assign({value:i.value},n):n}}const Jc=Yc(HTMLElement);function Kc(r,e,t){let o;const a={};class n extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Zc(t,o[e].properties);return Zc(t,r.properties),t}static get observers(){let i=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(i=i.concat(e.observers));return i=r.observers?i.concat(r.observers):i}created(){super.created();var t=a.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=n.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),wo&&s(e);var i=Object.getPrototypeOf(this);let t=a.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(i);if(t=a.registered)for(let e=0;e<t.length;e++)t[e].call(i)}}_applyListeners(){super._applyListeners();var t=a.listeners;if(t)for(let e=0;e<t.length;e++){var i=t[e];if(i)for(var n in i)this._addMethodEventListenerToNode(this,n,i[n])}}_ensureAttributes(){var t=a.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var i,n=t[e];for(i in n)this._ensureAttribute(i,n[i])}super._ensureAttributes()}ready(){super.ready();var t=a.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=a.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=a.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,i,n){super.attributeChanged();var r=a.attributeChanged;if(r)for(let e=0;e<r.length;e++)r[e].call(this,t,i,n)}}var i;t&&(Array.isArray(t)||(t=[t]),i=e.prototype.behaviors,o=function t(i,n,r){n=n||[];for(let e=i.length-1;0<=e;e--){var o=i[e];o?Array.isArray(o)?t(o,n):n.indexOf(o)<0&&(!r||r.indexOf(o)<0)&&n.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return n}(t,null,i),n.prototype.behaviors=i?i.concat(t):o);const s=e=>{if(o){var t=e,i=o,n=a;for(let e=0;e<i.length;e++)Xc(t,i[e],n,qc)}Xc(e,r,a,Vc)};return wo||s(n.prototype),n.generatedFrom=r,n}function Qc(e){var t="function"==typeof e?e:Qc.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function eu(e,t,i,n,r){let o;r=(n=r&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:n)!==i&&(n==n||i==i);return o&&r&&(e.__dataTemp[t]=i),r}Qc.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Jc):Jc;return(t=Kc(e,t,e.behaviors)).is=t.prototype.is=e.is,t};Bi=Ko(e=>class extends e{_shouldPropertyChange(e,t,i){return eu(this,e,t,i,!0)}}),Ii=Ko(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return eu(this,e,t,i,this.mutableData)}});Bi._mutablePropertyChange=eu;let tu=null;function iu(){return tu}iu.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:iu,writable:!0}});const nu=us(iu),ru=Bi(nu);function ou(t,i){for(let e=0;e<i.length;e++){var n=i[e];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),b(b(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const t=n.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(n,t)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}class au extends us(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 n;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(n=this.__dataHost.__dataHost)&&n._addEventListenerToNode(e,t,i)}_showHideChildren(e){ou(e,this.children)}_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}}au.prototype.__dataHost,au.prototype.__templatizeOptions,au.prototype._methodHost,au.prototype.__templatizeOwner,au.prototype.__hostProps;const su=Bi(au);function lu(e){e=e.__dataHost;return e&&e._methodHost||e}function cu(e,t,i){let n=i.mutableData?su:au;var r,o=class extends(n=du.mixin?du.mixin(n):n){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(r in l.instanceProps){delete c[r];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(r,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(n){return function(e,t,i){n.call(e.__templatizeOwner,e,t,i[t])}}((r,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 uu(t,i,n,r){var o=n.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class r extends(n.mutableData?ru:nu){}e=i.templatizeTemplateClass=r}else{const n=t.constructor;class r extends n{}e=i.templatizeTemplateClass=r}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(n){return function(e,t,i){n.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(_o&&r){var l=n;const d=r.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)n=e,tu=t,Object.setPrototypeOf(t,n.prototype),new n,tu=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const n=i.hostProps;for(var u in n)if(u="_host_"+u,u in t){const n=t[u];delete t[u],t.__data[u]=n}}}}function du(e,t,i){if(vo&&!lu(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 n=((e.__templatizeOwner=t)?t.constructor:au)._parseTemplate(e),r=n.templatizeInstanceClass;r||(r=cu(e,n,i),n.templatizeInstanceClass=r);var o=lu(e),i=(uu(e,n,i,o),class extends r{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=n.hostProps,i}let pu=!1;function hu(){var e;return wo&&!ho&&(pu||(pu=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}Oi=el(Ii(us(HTMLElement))),customElements.define("dom-bind",class extends Oi{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),vo)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,i,n){this.mutableData=!0}connectedCallback(){hu()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),Ri=Ii(fs);class mu extends Ri{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:!So,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(),hu()||(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()}}__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=du(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,n){var r=this.__instances;for(let e,t=0;t<r.length&&(e=r[t]);t++)e.forwardHostProp(i,n)},notifyInstanceProp:function(e,t,i){var n,r;((n=this.as)===(r=t)||ta(n,r)||ia(n,r))&&(n=e[this.itemsIndexAs],t==this.as&&(this.items[n]=i),r=na(this.as,JSCompiler_renameProperty("items",this)+"."+n,t),this.notifyPath(r,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=gs.debounce(this.__renderDebouncer,0<t?ba.after(t):xa,e.bind(this)),vs(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),rl()}__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),So&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(n){let t=new Array(n.length);for(let e=0;e<n.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(n[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(n[e],n[t])),t}__calculateLimit(t){let i=t;var n=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-n,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-n,0),this.__chunkCount),i=Math.min(n+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 n=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){var o=this.__instances[r],a=i[r],s=e[a];n[a]=r,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,r),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,r,a)}for(let e=this.__instances.length-1;e>=r;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 n=t.children[e];i.appendChild(n)}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 n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=i,new this.__ctor(n)}__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("."),n=i<0?e:e.substring(0,i);if(n==parseInt(n,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[n],(n=this.__instances[i])&&(i=this.as+(e?"."+e:""),n._setPendingPropertyOrPath(i,t,!1,!0),n._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,n=e;n;)if(t=n.__dataHost?n:n.__templatizeInstance){if(t.__dataHost==i)return t;n=t.__dataHost}else n=b(n).parentNode;return null}}customElements.define(mu.is,mu);class fu extends fs{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=gs.debounce(this.__renderDebouncer,xa,()=>this.__render()),vs(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),hu()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var i=b(this).parentNode;if(this.__hasInstance()){var n=this.__getInstanceNodes();if(n&&n.length&&b(this).previousSibling!==n[n.length-1])for(let e,t=0;t<n.length&&(e=n[t]);t++)b(i).insertBefore(e,this)}else{if(!i)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(i)}return!0}render(){rl()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),So&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}t=Eo?class extends fu{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(vo&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var i=t._bindTemplate(this.__template,!0);i.runEffects=(e,t,i)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,i);else if(this.__instance)if(n=n||(this.__syncInfo={runEffects:e,changedProps:{}}),i)for(const e in t){const t=ea(e);n.changedProps[t]=this.__dataHost[t]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,i),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&ou(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends fu{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=du(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ea(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var i=this.__instance.children;if(i&&i.length){var n=b(i[0]).parentNode;if(n){n=b(n);for(let e,t=0;t<i.length&&(e=i[t]);t++)n.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}},customElements.define(t.is,t),Ni=Ko(e=>{return class extends ms(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var i,n,r=t.path;r==JSCompiler_renameProperty("items",this)?(n=t.base||[],i=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),i&&(i=Cc(n,i),this.__applySplices(i)),this.__lastItems=n,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(i=r.slice((JSCompiler_renameProperty("items",this)+".").length),n=parseInt(i,10),i.indexOf(".")<0&&i==n&&this.__deselectChangedIdx(n))}__applySplices(t){let n=this.__selectedMap;for(let e=0;e<t.length;e++){let i=t[e];n.forEach((e,t)=>{e<i.index||(e>=i.index+i.removed.length?n.set(t,e+i.addedCount-i.removed.length):n.set(t,-1))});for(let e=0;e<i.addedCount;e++){var r=i.index+e;n.has(this.items[r])&&n.set(this.items[r],r)}}this.__updateLinks();let i=0;n.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null,n.delete(t)):i++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let n=this.__selectedIndexForItemIndex(e);if(0<=n){let i=0;this.__selectedMap.forEach((e,t)=>{n==i++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var i=this.__selectedMap.get(t);if(0<=i){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(i)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(fs);class gu extends Ni{static get is(){return"array-selector"}static get template(){return null}}customElements.define(gu.is,gu),Yc(HTMLElement).prototype,Qc({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const yu=Element.prototype,vu=yu.matches||yu.matchesSelector||yu.mozMatchesSelector||yu.msMatchesSelector||yu.oMatchesSelector||yu.webkitMatchesSelector;class bu{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return vu.call(e,"input, select, textarea, button, object")?vu.call(e,":not([disabled])"):vu.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&vu.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var i=this._normalizedTabIndex(e);let n,r=0<i;if(0<=i&&t.push(e),n="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<n.length;e++)r=this._collectTabbableNodes(n[e],t)||r;return r}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,i=e.length;return i<2?e:(i=Math.ceil(i/2),t=this._sortByTabIndex(e.slice(0,i)),e=this._sortByTabIndex(e.slice(i)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var i=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let wu=0;const _u={};class xu extends il(dl(fs)){static get template(){return qo`
|
|
1279
1279
|
<style>
|
|
1280
1280
|
:host {
|
|
1281
1281
|
z-index: 200;
|
|
@@ -1351,7 +1351,7 @@
|
|
|
1351
1351
|
<slot></slot>
|
|
1352
1352
|
</div>
|
|
1353
1353
|
</div>
|
|
1354
|
-
`}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},instanceProps:{type:Object},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},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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 Tc(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_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)}_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;-1!==e.composedPath().indexOf(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&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==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(),gc(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),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`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[i])};this[i]=n,this.addEventListener("animationend",n)}_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","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_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 xu&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===xu.__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),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),xu.__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),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=xu.__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(t,i){this._removeOldContent(),t._Templatizer||(t._Templatizer=du(t,this,{instanceProps:i,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);i=t._templateRoot||(t._templateRoot=t.getRootNode());if(i!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(i.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(i.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=_u[e]||(e=>{const t="vaadin-overlay-content-"+ ++wu,i=document.createElement("template"),n=document.createElement("style");n.textContent=":host { display: block; }"+e,i.content.appendChild(n),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,t);var r=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(i.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(r.is,r),_u[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{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,n){e!==t?this.template=void 0:i!==n&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,i,n,r,o){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 a=this._oldOwner!==i||this._oldModel!==n,n=(this._oldModel=n,this._oldOwner=i,this._oldInstanceProps!==r||this._oldTemplate!==e),i=(this._oldInstanceProps=r,this._oldTemplate=e,this._oldRenderer!==t),s=(this._oldRenderer=t,this._oldOpened!==o);if(this._oldOpened=o,e&&n)this._stampOverlayTemplate(e,r);else if(t&&(i||s||a)){if(this.content=this,i)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);o&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){var i=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(i)),(t+=e)>=i.length?t=0:t<0&&(t=i.length-1),i[t].focus()}_getFocusableElements(){return bu.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);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=xu.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(xu.is,xu);class Cu extends Wc(xu){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(Cu.is,Cu);var Pu={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},Tu={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},Eu={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Su=/[a-z0-9*]/,Au=/U\+/,Lu=/^arrow/,ku=/^space(bar)?/,Mu=/^escape$/;function Du(e,t){var i="";return e&&(" "===(e=e.toLowerCase())||ku.test(e)?i="space":Mu.test(e)?i="esc":1==e.length?t&&!Su.test(e)||(i=e):i=Lu.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),i}function $u(e,t){return i=t,n=e.hasModifiers,(i.key?Du(i.key,n):i.detail&&i.detail.key?Du(i.detail.key,n):(n="",(n=(r=i.keyIdentifier)?r in Pu?Pu[r]:(Au.test(r)?(r=parseInt(r.replace("U+","0x"),16),String.fromCharCode(r)):r).toLowerCase():n)||(r=i.keyCode,n="",n=Number(r)?65<=r&&r<=90?String.fromCharCode(32+r):112<=r&&r<=123?"f"+(r-112+1):48<=r&&r<=57?String(r-48):96<=r&&r<=105?String(r-96):Tu[r]:n)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var i,n,r}Boolean;function Iu(e,t){for(var i=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),i=t[0],t=t[1];return i in Eu?(e[Eu[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),n=0;n<i.length;++n)if($u(i[n],e))return 1}const Bu=Qc({_template:qo`
|
|
1354
|
+
`}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},instanceProps:{type:Object},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},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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 Tc(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_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)}_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;-1!==e.composedPath().indexOf(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&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==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(),gc(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),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`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[i])};this[i]=n,this.addEventListener("animationend",n)}_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","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_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 xu&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===xu.__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),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),xu.__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),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=xu.__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(t,i){this._removeOldContent(),t._Templatizer||(t._Templatizer=du(t,this,{instanceProps:i,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);i=t._templateRoot||(t._templateRoot=t.getRootNode());if(i!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(i.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(i.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=_u[e]||(e=>{const t="vaadin-overlay-content-"+ ++wu,i=document.createElement("template"),n=document.createElement("style");n.textContent=":host { display: block; }"+e,i.content.appendChild(n),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,t);var r=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(i.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(r.is,r),_u[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{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,n){e!==t?this.template=void 0:i!==n&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,i,n,r,o){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 a=this._oldOwner!==i||this._oldModel!==n,n=(this._oldModel=n,this._oldOwner=i,this._oldInstanceProps!==r||this._oldTemplate!==e),i=(this._oldInstanceProps=r,this._oldTemplate=e,this._oldRenderer!==t),s=(this._oldRenderer=t,this._oldOpened!==o);if(this._oldOpened=o,e&&n)this._stampOverlayTemplate(e,r);else if(t&&(i||s||a)){if(this.content=this,i)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);o&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){var i=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(i)),(t+=e)>=i.length?t=0:t<0&&(t=i.length-1),i[t].focus()}_getFocusableElements(){return bu.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);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=xu.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(xu.is,xu);class Cu extends Wc(xu){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(Cu.is,Cu);var Pu={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},Tu={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},Eu={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Su=/[a-z0-9*]/,Au=/U\+/,Lu=/^arrow/,Mu=/^space(bar)?/,Du=/^escape$/;function ku(e,t){var i="";return e&&(" "===(e=e.toLowerCase())||Mu.test(e)?i="space":Du.test(e)?i="esc":1==e.length?t&&!Su.test(e)||(i=e):i=Lu.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),i}function $u(e,t){return i=t,n=e.hasModifiers,(i.key?ku(i.key,n):i.detail&&i.detail.key?ku(i.detail.key,n):(n="",(n=(r=i.keyIdentifier)?r in Pu?Pu[r]:(Au.test(r)?(r=parseInt(r.replace("U+","0x"),16),String.fromCharCode(r)):r).toLowerCase():n)||(r=i.keyCode,n="",n=Number(r)?65<=r&&r<=90?String.fromCharCode(32+r):112<=r&&r<=123?"f"+(r-112+1):48<=r&&r<=57?String(r-48):96<=r&&r<=105?String(r-96):Tu[r]:n)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var i,n,r}Boolean;function Bu(e,t){for(var i=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),i=t[0],t=t[1];return i in Eu?(e[Eu[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),n=0;n<i.length;++n)if($u(i[n],e))return 1}const Iu=Qc({_template:qo`
|
|
1355
1355
|
<style>
|
|
1356
1356
|
:host {
|
|
1357
1357
|
display: inline-block;
|
|
@@ -1360,7 +1360,7 @@
|
|
|
1360
1360
|
}
|
|
1361
1361
|
</style>
|
|
1362
1362
|
<div aria-live$="[[mode]]">[[_text]]</div>
|
|
1363
|
-
`,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){
|
|
1363
|
+
`,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){Iu.instance||(Iu.instance=this),document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async(function(){this._text=e},this.timeout)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}}),Nu=(Iu.instance=null,Iu.requestAvailability=function(){Iu.instance||(Iu.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(Iu.instance):document.addEventListener("load",function(){document.body.appendChild(Iu.instance)})},class{static _getISOWeekNumber(e){var t=e.getDay(),t=4-(t=0===t?7:t),e=new Date(e.getTime()+24*t*3600*1e3),t=new Date(0,0),e=(t.setFullYear(e.getFullYear()),e.getTime()-t.getTime()),t=Math.round(e/864e5);return Math.floor(t/7+1)}static _dateEquals(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}static _dateAllowed(e,t,i){return(!t||t<=e)&&(!i||e<=i)}static _getClosestDate(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)}static _extractDateParts(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}});class Ou extends il(el(fs)){static get template(){return qo`
|
|
1364
1364
|
<style>
|
|
1365
1365
|
:host {
|
|
1366
1366
|
display: block;
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
</div>
|
|
1653
1653
|
|
|
1654
1654
|
<iron-media-query query="(min-width: 375px)" query-matches="{{_desktopMode}}"></iron-media-query>
|
|
1655
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Ys(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Vs(this.$.scrollers,"pan-y"),Bu.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];Nu._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(Nu._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,i,n;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,i=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,n=this.$.monthScroller.position+i-1<e,t?this._scrollToPosition(e,!0):n&&this._scrollToPosition(e-i+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_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=gs.debounce(this._debouncer,ba.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,i){return e?t(Nu._extractDateParts(e)):i}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=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){var i,n,r,o;void 0===this._targetPosition?t?(this._targetPosition=e,i=t?300:0,n=0,r=this.$.monthScroller.position,o=e=>{var t,e=e-(n=n||e);e<i?(e=e,t=this._targetPosition-r,t=(e/=i/2)<1?t/2*e*e+r:-t/2*(--e*(e-2)-1)+r,this.$.monthScroller.position=t,window.requestAnimationFrame(o)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(o)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_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()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],i=0;i<t.length;i++){var n=t[i];if(Iu(e,n))return n}}_onKeydown(e){var t,i=this._currentlyFocusedDate(),n=0<=e.composedPath().indexOf(this.$.todayButton),r=0<=e.composedPath().indexOf(this.$.cancelButton),o=!n&&!r,a=this._eventKey(e);if("tab"===a){e.stopPropagation();const i=this.hasAttribute("fullscreen"),a=e.shiftKey;i?e.preventDefault():a&&o||!a&&r?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):a&&n?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(a)switch(e.preventDefault(),e.stopPropagation(),a){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":o&&this._moveFocusByDays(1);break;case"left":o&&this._moveFocusByDays(-1);break;case"enter":o||r?this._close():n&&this._onTodayTap();break;case"space":r?this._close():n?this._onTodayTap():(t=this.focusedDate,Nu._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(i,"minDate");break;case"end":this._moveFocusInsideMonth(i,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(Nu._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),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._currentlyFocusedDate(),i=new Date(0,0),n=(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()+e),i.getMonth());i.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),i.getMonth()!==n&&i.setDate(0),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusedDate=i: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,n=new Date(0,0);return n.setFullYear(i.getFullYear()),n.setMonth(i.getMonth()),n.setDate(i.getDate()),this._dateAllowed(n,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Ru.is,Ru);var zu=new Set;const Hu={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(zu.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():ho||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=Nc(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(zu.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?zu.delete(this):zu.add(this)}};class Wu extends bl(ol(il(tl((Ii=el(fs),class extends(Oi=[Hu],Ii=Ii,Kc({},Yc(Ii),Oi)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_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",clear:"Clear",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,n=t.getMonth(),r=t.getFullYear();if(3===e.length?(r=parseInt(e[2]),e[2].length<3&&0<=r&&(r+=r<50?2e3:1900),n=parseInt(e[0])-1,i=parseInt(e[1])):2===e.length?(n=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:n,year:r}},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(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Ys(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_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){return!this._inputElement||e||t||!i.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",n="0000",r=e.getFullYear();return r<0?(r=-r,i="-",n="000000"):1e4<=e.getFullYear()&&(i="+",n="000000"),[i+t(r,n),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var i;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(Nu._extractDateParts(e)),(i=this._formatISO(e))!==this.value&&(this.validate(t),this.value=i),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(Nu._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,i){t?(t=this._parseDate(t))?Nu._dateEquals(this[e],t)||(this[e]=t):this.value=i:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,i;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(i=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=i-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(i=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=i-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||Nu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Nu._getClosestDate(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.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_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}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(Nu._extractDateParts(this._selectedDate)),i=!this._selectedDate||Nu._dateAllowed(this._selectedDate,this._minDate,this._maxDate),n=!0;return this._inputElement&&(this._inputElement.checkValidity?n=this._inputElement.checkValidity(e):this._inputElement.validate&&(n=this._inputElement.validate(e))),t&&i&&n}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],i=0;i<t.length;i++){var n=t[i];if(Iu(e,n))return n}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,i){e&&(t||i)&&(this.invalid=!Nu._dateAllowed(e,t,i))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,Nu._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,i){t&&!i&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return qo`
|
|
1655
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Ys(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Vs(this.$.scrollers,"pan-y"),Iu.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];Nu._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(Nu._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,i,n;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,i=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,n=this.$.monthScroller.position+i-1<e,t?this._scrollToPosition(e,!0):n&&this._scrollToPosition(e-i+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_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=gs.debounce(this._debouncer,ba.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,i){return e?t(Nu._extractDateParts(e)):i}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=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){var i,n,r,o;void 0===this._targetPosition?t?(this._targetPosition=e,i=t?300:0,n=0,r=this.$.monthScroller.position,o=e=>{var t,e=e-(n=n||e);e<i?(e=e,t=this._targetPosition-r,t=(e/=i/2)<1?t/2*e*e+r:-t/2*(--e*(e-2)-1)+r,this.$.monthScroller.position=t,window.requestAnimationFrame(o)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(o)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_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()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],i=0;i<t.length;i++){var n=t[i];if(Bu(e,n))return n}}_onKeydown(e){var t,i=this._currentlyFocusedDate(),n=0<=e.composedPath().indexOf(this.$.todayButton),r=0<=e.composedPath().indexOf(this.$.cancelButton),o=!n&&!r,a=this._eventKey(e);if("tab"===a){e.stopPropagation();const i=this.hasAttribute("fullscreen"),a=e.shiftKey;i?e.preventDefault():a&&o||!a&&r?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):a&&n?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(a)switch(e.preventDefault(),e.stopPropagation(),a){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":o&&this._moveFocusByDays(1);break;case"left":o&&this._moveFocusByDays(-1);break;case"enter":o||r?this._close():n&&this._onTodayTap();break;case"space":r?this._close():n?this._onTodayTap():(t=this.focusedDate,Nu._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(i,"minDate");break;case"end":this._moveFocusInsideMonth(i,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(Nu._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),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._currentlyFocusedDate(),i=new Date(0,0),n=(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()+e),i.getMonth());i.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),i.getMonth()!==n&&i.setDate(0),this._dateAllowed(i,this.minDate,this.maxDate)?this.focusedDate=i: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,n=new Date(0,0);return n.setFullYear(i.getFullYear()),n.setMonth(i.getMonth()),n.setDate(i.getDate()),this._dateAllowed(n,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Ru.is,Ru);var zu=new Set;const Hu={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(zu.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():ho||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=Nc(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(zu.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?zu.delete(this):zu.add(this)}};class Wu extends bl(ol(il(tl((Bi=el(fs),class extends(Oi=[Hu],Bi=Bi,Kc({},Yc(Bi),Oi)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_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",clear:"Clear",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,n=t.getMonth(),r=t.getFullYear();if(3===e.length?(r=parseInt(e[2]),e[2].length<3&&0<=r&&(r+=r<50?2e3:1900),n=parseInt(e[0])-1,i=parseInt(e[1])):2===e.length?(n=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:n,year:r}},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(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Ys(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_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){return!this._inputElement||e||t||!i.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",n="0000",r=e.getFullYear();return r<0?(r=-r,i="-",n="000000"):1e4<=e.getFullYear()&&(i="+",n="000000"),[i+t(r,n),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var i;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(Nu._extractDateParts(e)),(i=this._formatISO(e))!==this.value&&(this.validate(t),this.value=i),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(Nu._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,i){t?(t=this._parseDate(t))?Nu._dateEquals(this[e],t)||(this[e]=t):this.value=i:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,i;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(i=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=i-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(i=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=i-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||Nu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Nu._getClosestDate(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.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_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}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(Nu._extractDateParts(this._selectedDate)),i=!this._selectedDate||Nu._dateAllowed(this._selectedDate,this._minDate,this._maxDate),n=!0;return this._inputElement&&(this._inputElement.checkValidity?n=this._inputElement.checkValidity(e):this._inputElement.validate&&(n=this._inputElement.validate(e))),t&&i&&n}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],i=0;i<t.length;i++){var n=t[i];if(Bu(e,n))return n}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,i){e&&(t||i)&&(this.invalid=!Nu._dateAllowed(e,t,i))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,Nu._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,i){t&&!i&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return qo`
|
|
1656
1656
|
<style>
|
|
1657
1657
|
:host {
|
|
1658
1658
|
display: inline-block;
|
|
@@ -1687,5 +1687,5 @@
|
|
|
1687
1687
|
|
|
1688
1688
|
<iron-media-query query="[[_fullscreenMediaQuery]]" query-matches="{{_fullscreen}}">
|
|
1689
1689
|
</iron-media-query>
|
|
1690
|
-
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),gc(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function ju(e){let i,n,r,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),n=di("strong"),r=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Uu(e){let i,n,r,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),n=di("strong"),r=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Yu(i){let n,r,F,o,a,R,s,l,c,z,u,d,H,p,h,W,j,U,m,Y,G,f,V,g,q,y,v,X,Z,b,J,w,_,K,Q,x,ee,C,te,P,ie,T,E,ne,re,oe,S=i[8]("title")+"",A=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",L=i[8]("selfExclusionText2")+"",k=i[8]("selfExclusionText3")+"",M=i[8]("selfExclusionText4")+"",D=i[8]("duration")+"",$=i[8]("forever")+"",I=i[8]("save")+"",B=i[9]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function ae(e){return e[4]?Uu:ju}let N=ae(i),O=N(i);return{c(){n=di("div"),r=di("form"),B&&B.c(),F=mi(),o=di("h2"),a=hi(S),R=mi(),s=di("div"),l=di("p"),c=hi(A),z=mi(),u=di("p"),d=hi(L),H=mi(),p=di("p"),h=hi(k),W=mi(),j=hi(i[1]),U=mi(),m=di("p"),Y=hi(M),G=mi(),f=di("a"),V=hi(i[1]),q=mi(),y=di("div"),v=di("label"),X=hi(D),Z=mi(),b=di("vaadin-date-picker"),J=mi(),w=di("div"),_=di("label"),K=hi($),Q=mi(),x=di("input"),ee=mi(),C=di("span"),te=mi(),P=di("div"),O.c(),ie=mi(),T=di("div"),E=di("button"),ne=hi(I),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(E,"class","SelfExclusionSave"),gi(T,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(r,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),B&&B.m(r,null),si(r,F),si(r,o),si(o,a),si(r,R),si(r,s),si(s,l),si(l,c),si(s,z),si(s,u),si(u,d),si(s,H),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(r,q),si(r,y),si(y,v),si(v,X),si(y,Z),si(y,b),i[18](b),si(r,J),si(r,w),si(w,_),si(_,K),si(_,Q),si(_,x),si(_,ee),si(_,C),si(r,te),si(r,P),O.m(P,null),si(r,ie),si(r,T),si(T,E),si(E,ne),i[21](n),re||(oe=[fi(x,"click",i[19]),fi(E,"click",i[20])],re=!0)},p(e,t){e[9]&&B.p(e,t),256&t[0]&&S!==(S=e[8]("title")+"")&&yi(a,S),257&t[0]&&A!==(A=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,A),256&t[0]&&L!==(L=e[8]("selfExclusionText2")+"")&&yi(d,L),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&yi(h,k),2&t[0]&&yi(j,e[1]),256&t[0]&&M!==(M=e[8]("selfExclusionText4")+"")&&yi(Y,M),2&t[0]&&yi(V,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gi(f,"href",g),256&t[0]&&D!==(D=e[8]("duration")+"")&&yi(X,D),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]&&$!==($=e[8]("forever")+"")&&yi(K,$),N===(N=ae(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(P,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&yi(ne,I)},i:se,o:se,d(e){e&&ci(n),B&&B.d(),i[18](null),O.d(),i[21](null),re=!1,ai(oe)}}}function Gu(t,e,i){let n;fe(t,ve,e=>i(8,n=e));let r,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"!==be(m),g=!1,y="",v="",b=new Date;Object.keys(Or).forEach(e=>{Nr(e,Or[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)};we(()=>()=>{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,ye.set(e)),32772&t.$$.dirty[0]&&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;16388&t.$$.dirty[0]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Nr(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,r,o,g,v,a,s,n,f,w,x,C,l,d,p,h,()=>C(),function(e){ge[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>w(),e=>x(e),function(e){ge[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Vu(e,t){a(e,t)}customElements.define(Wu.is,Wu),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-pink-500, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gu,Yu,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 qu={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 n,r,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(){n=di("div"),r=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(r,"class","ModalContent"),gi(n,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),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),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(n),f=!1,ai(g)}}}function Zu(i){let n,r,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 n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),C=i[1]&&Xu(i);return{c(){n=di("div"),r=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(r,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),x&&x.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(r,p),si(r,h),si(h,m),si(m,f),si(n,g),C&&C.m(n,null),i[15](n),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(n,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&ci(n),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Ju(t,e,i){let n;fe(t,ve,e=>i(2,n=e));let r,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==be(c),d=!1;Object.keys(qu).forEach(e=>{Vu(e,qu[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,ye.set(e)),257&t.$$.dirty&&a&&r&&((e=document.createElement("style")).innerHTML=a,r.appendChild(e)),513&t.$$.dirty&&s&&r){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vu(e,t[e])})}).catch(e=>{console.log(e)})},[r,d,n,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Ku(e,t){a(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-pink-500, #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-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))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ju,Zu,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 Qu={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 ed(e,t){a(e,t)}const td={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 id(e,t){a(e,t)}const nd={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 rd(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?ad:od}let b=v(i),w=b(i);return{c(){n=di("section"),r=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(r,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(n,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(r,p),si(r,h),w.m(h,null),i[12](n),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(r,"class",m)},d(e){e&&ci(n),w.d(),i[12](null),f=!1,g()}}}function od(e){let i,n,r=e[4]("defaultText")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ad(e){let i,n,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,n)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function sd(e){let i,n=e[3]&&rd(e);return{c(){n&&n.c(),i=B(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=rd(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:se,o:se,d(e){n&&n.d(e),e&&ci(i)}}}function ld(t,e,i){let n,{showpopup:r=""}=(fe(t,ve,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(nd).forEach(e=>{id(e,nd[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==be(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return we(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,r=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&&r&&a&&(e=a,ye.set(e),o<0&&i(0,o="0"),i(3,p=r)),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=>{id(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,n,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,c,u,function(e){ge[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function cd(e,t){a(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-orange-500, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ld,sd,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 ud={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 dd(e,{delay:t=0,duration:i=400,easing:n=w}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function pd(i){let n,r,t,o;return{c(){n=di("div"),(r=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(r,"class","ModalWindow"),gi(r,"id","Modal")},m(e,t){li(e,n,t),si(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(wi(()=>{o&&(t=t||te(r,dd,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||te(r,dd,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function hd(e){let i,n,r=e[0]&&pd(e);return{c(){r&&r.c(),i=B(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&K(r,1)):((r=pd(e)).c(),K(r,1),r.m(i.parentNode,i)):r&&(Z(),Q(r,1,1,()=>{r=null}),J())},i(e){n||(K(r),n=!0)},o(e){Q(r),n=!1},d(e){r&&r.d(e),e&&ci(i)}}}function md(t,e,i){let n,r,{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 we(()=>(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&&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;20&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e))},[o,a,n,void 0,s,l,function(e){ge[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){ge[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function fd(e,t){a(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},md,hd,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 gd={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 yd(i){let n,r,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 n,r,o;return{c(){(n=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(n,"class","ModalCloseBtn"),gi(n,"role","button")},m(e,t){li(e,n,t),r||(o=fi(n,"click",i[4]),r=!0)},p:se,d(e){e&&ci(n),r=!1,o()}}}(i);return{c(){n=di("div"),b&&b.c(),r=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(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,n,t),b&&b.m(n,null),si(n,r),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),i[12](n),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(n),b&&b.d(),i[12](null),f=!1,ai(g)}}}function vd(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(fe(t,ve,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(gd).forEach(e=>{fd(e,gd[e])}),window.navigator.userAgent),p="PC"!==be(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 we(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,r=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&&r&&o&&a&&(e=a,ye.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=>{fd(e,t[e])})}).catch(e=>{console.log(e)})},[r,u,n,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){ge[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function bd(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function wd(e,t,i){e=e.slice();return e[59]=t[i],e}function _d(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function xd(e){let i,n,r,o=e[18]("success")+"";return{c(){i=di("div"),n=di("p"),r=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Cd(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Td(_d(t,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=_d(t,o,e);a[e]?a[e].p(n,i):(a[e]=Td(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e)}}}function Pd(e){let i,n,r,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"),n=hi(a),r=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,n),si(i,r),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(n,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 Td(e){let i,n=e[56].period==e[17][e[58]].period&&Pd(e);return{c(){n&&n.c(),i=B()},m(e,t){n&&n.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=Pd(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&ci(i)}}}function Ed(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Nd(bd(t,o,e));return{c(){i=di("div"),r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=bd(t,o,e);a[e]?a[e].p(n,i):(a[e]=Nd(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function Sd(i){let n,r,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]=Ld(wd(i,m,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&kd(i),v=!0===i[56].isModified&&Bd(i);return{c(){n=di("select"),r=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=B(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,gi(n,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&wi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,n,t),si(n,r),si(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(n,null);bi(n,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(n,"change",g),fi(n,"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=wd(i,m,e);f[e]?f[e].p(o,t):(f[e]=Ld(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&bi(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=kd(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Bd(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(n),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 Ad(e){let i,n=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(n)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&n!==(n=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,n)},d(e){e&&ci(i)}}}function Ld(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Ad(e);return{c(){i=di("option"),n=hi(s),r=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,n),si(i,r),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Ad(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 kd(e){let i;function n(e){return"Time Limit"!==e[6]?Dd:Md}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Md(i){let n,r,o,a,s,l;function c(){i[31].call(n,i[58])}let u=1==i[13][i[58]]&&$d(i);return{c(){n=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(n,"type","number"),gi(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,n,t),vi(n,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(n,"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(n,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&de(n.value)!==i[17][i[58]].value&&vi(n,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=$d(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function Dd(i){let n,r,o,a,s,l;function c(){i[30].call(n,i[58])}let u=1==i[13][i[58]]&&Id(i);return{c(){n=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(n,"type","number"),gi(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,n,t),vi(n,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(n,"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(n,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&de(n.value)!==i[17][i[58]].value&&vi(n,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=Id(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function $d(e){let i,n,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Id(e){let i,n,r=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Bd(e){let i,n,r,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"),n=hi(b),r=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,n),si(i,r),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(n,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 Nd(e){let i,n,r,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&&Sd(e);return{c(){i=di("div"),n=di("p"),r=hi(s),o=mi(),l&&l.c(),a=mi(),gi(n,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=Sd(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function Od(i){let n,F,r,o,a,s,R,l,c,u,z,d,p,H,h,m,f,W,g,y,j,v,U,b,w,_,x,C,P,T,E,S,A,L,k,Y,M=i[18]("back")+"",D=(i[1]?i[9]:"")+"",$=i[18]("save")+"",I=i[19]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),B=i[2]&&xd(i),N=i[3]&&Cd(i),O=i[8]&&Ed(i);return{c(){n=di("div"),I&&I.c(),F=mi(),r=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-pink-500, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),z=mi(),d=di("h2"),p=hi(M),H=mi(),h=di("div"),m=di("h6"),f=hi(D),W=mi(),g=di("div"),(y=di("span")).textContent="i",j=mi(),v=di("player-account-gaming-limits-popup"),U=mi(),B&&B.c(),b=mi(),N&&N.c(),w=mi(),O&&O.c(),_=mi(),x=di("div"),C=di("button"),P=hi($),S=mi(),A=di("player-account-modal"),L=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(r,"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(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),le(L,"modaltext",i[12]),le(L,"modalsource","groupEdit"),le(L,"lang",i[0])},m(e,t){li(e,n,t),I&&I.m(n,null),si(n,F),si(n,r),si(r,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(r,z),si(r,d),si(d,p),si(n,H),si(n,h),si(h,m),si(m,f),si(h,W),si(h,g),si(g,y),si(g,j),si(g,v),si(n,U),B&&B.m(n,null),si(n,b),N&&N.m(n,null),si(n,w),O&&O.m(n,null),si(n,_),si(n,x),si(x,C),si(C,P),i[33](n),li(e,S,t),li(e,A,t),si(A,L),k||(Y=[fi(r,"click",i[22]),fi(y,"click",G(i[21])),fi(C,"click",i[32])],k=!0)},p(e,t){e[19]&&I.p(e,t),262144&t[0]&&M!==(M=e[18]("back")+"")&&yi(p,M),514&t[0]&&D!==(D=(e[1]?e[9]:"")+"")&&yi(f,D),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?B?B.p(e,t):((B=xd(e)).c(),B.m(n,b)):B&&(B.d(1),B=null),e[3]?N?N.p(e,t):((N=Cd(e)).c(),N.m(n,w)):N&&(N.d(1),N=null),e[8]?O?O.p(e,t):((O=Ed(e)).c(),O.m(n,_)):O&&(O.d(1),O=null),262144&t[0]&&$!==($=e[18]("save")+"")&&yi(P,$),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(L,"modaltext",e[12]),1&t[0]&&le(L,"lang",e[0])},i:se,o:se,d(e){e&&ci(n),I&&I.d(),B&&B.d(),N&&N.d(),O&&O.d(),i[33](null),e&&ci(S),e&&ci(A),k=!1,ai(Y)}}}function Fd(t,e,o){let i,{limitsdata:n=[]}=(fe(t,ve,e=>o(18,i=e)),e),{showsuccessnotification:r=!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(ud).forEach(e=>{cd(e,ud[e])}),!1),g=!1,y="",v=!1,b=0,w=0,_="",N=window.navigator.userAgent,O="PC"!==be(N),x=new Array(3).fill(0),C={},P=[],T=[],E=!1,S=[];const A={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let L=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],k=[{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"]}],M=[{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"]}],F=[{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 D=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),$=new Map([["Deposit Limit",k],["Time Limit",R],["Wagering Limit",M],["Loss Limit",F]]),z=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},I=(i,e)=>{let n=JSON.parse(JSON.stringify(e));L.forEach(t=>{n.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)})})},H=()=>{S.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(n=>{T.forEach(e=>{var t,i;n.period===e.period&&(e=e,t=n,i=L,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}}))},B=()=>{var e=l;ye.set(e),W(),o(16,S=JSON.parse(JSON.stringify(n))),o(14,C=JSON.parse(JSON.stringify(n))),T="Wagering Limit"===h?M:"Loss Limit"===h?F:"Deposit Limit"===h?k:"Time Limit"===h?R:[],H()},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,""))),B(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?L.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)})}):L.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?{[D.get(h)]:[...P]}:{[D.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:D.get(h)},window.location.href),o(15,E=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),B(),o(15,E=!1),v=!1}var t};return we(()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=e=>{"limitsdata"in e&&o(1,n=e.limitsdata),"showsuccessnotification"in e&&o(2,r=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]&&r&&a&&B(),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=>{cd(e,t[e])})}).catch(e=>{console.log(e)})},[l,n,r,a,s,m,h,f,g,y,b,w,_,x,C,E,S,L,i,O,$,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},z,(e,t,i,n)=>{var r;"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&&A.time.test(e.value)&&e.value>b&&e.value<=w?(o(13,x[t]=0,x),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,E=!1),I(e,n)):o(15,E=!0)):(o(13,x[t]=1,x),o(15,E=!1))):e.value&&A.amount.test(e.value)?(o(13,x[t]=0,x),e.period==n[t].period&&e.value==n[t].amount?(o(15,E=!!E),I(e,n)):o(15,E=!0),"true"!=c&&L.forEach(e=>{0==e.value&&o(15,E=!1)})):(o(13,x[t]=1,x),o(15,E=!1)):(e.period==n[t].period?(I(e,n),o(15,E=e.value!=n[t].amount)):o(15,E=!0),L.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!A.amount.test(e.value.toString()))&&o(15,E=!1)}))},c,u,d,p,function(e){L[e].amount=pe(this),o(17,L),o(20,$),o(6,h)},function(e){L[e].value=de(this.value),o(17,L),o(20,$),o(6,h)},function(e){L[e].value=de(this.value),o(17,L),o(20,$),o(6,h)},()=>z(),function(e){ge[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Rd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function zd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Hd(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",S=i[15]("edit")+"";function A(e){return"Time Limit"===e[1]?Ud:jd}let L=A(i),k=L(i),M=!i[9]&&!i[0].isModified&&i[14]&&op(i),D=i[11]&&ap(i);return{c(){n=di("div"),r=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"),k.c(),v=mi(),b=di("div"),w=di("button"),_=hi(S),x=mi(),M&&M.c(),C=mi(),D&&D.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(r,"class","InfoCardWrapper"),gi(n,"class","InfoCardSection")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(r,m),si(r,f),si(f,g),si(g,y),k.m(y,null),si(f,v),si(f,b),si(b,w),si(w,_),si(b,x),M&&M.m(b,null),si(n,C),D&&D.m(n,null),P||(T=[fi(u,"click",G(i[23])),fi(w,"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]),L===(L=A(e))&&k?k.p(e,t):(k.d(1),(k=L(e))&&(k.c(),k.m(y,null))),32768&t[0]&&S!==(S=e[15]("edit")+"")&&yi(_,S),e[9]||e[0].isModified||!e[14]?M&&(M.d(1),M=null):M?M.p(e,t):((M=op(e)).c(),M.m(b,null)),e[11]?D?D.p(e,t):((D=ap(e)).c(),D.m(n,null)):D&&(D.d(1),D=null)},d(e){e&&ci(n),k.d(),M&&M.d(),D&&D.d(),P=!1,ai(T)}}}function Wd(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 jd(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zd(Rd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=B()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Rd(t,o,e);a[e]?a[e].p(n,i):(a[e]=Zd(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function Ud(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=rp(zd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=B()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=zd(t,o,e);a[e]?a[e].p(n,i):(a[e]=rp(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function Yd(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Gd(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=di("div"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Vd(e){let i,n,r=(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"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(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(n,r)},d(e){e&&ci(i)}}}function qd(i){let n,r,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){n=di("div"),(r=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(r,"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(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,n,t),si(n,r),si(n,o),si(n,a),c||(u=fi(r,"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(n),c=!1,u()}}}function Xd(i){let n,r,o;return{c(){(n=di("div")).innerHTML="<span></span>",gi(n,"class","InfoCardRemoveIcon")},m(e,t){li(e,n,t),r||(o=fi(n,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&ci(n),r=!1,o()}}}function Zd(e){let i,n,r,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=_&&Yd(e);function P(e){return e[41].expiryDate?Vd:Gd}let T=P(e),E=T(e);function S(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?qd:void 0}let A=S(e,[-1,-1]),L=A&&A(e);return{c(){i=di("div"),n=di("div"),r=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(),E.c(),g=mi(),L&&L.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(r,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(n,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(l,u),C&&C.m(l,null),si(n,d),si(n,p),si(p,h),si(h,m),si(p,f),E.m(p,null),si(i,g),L&&L.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=Yd(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))),A===(A=S(e,t))&&L?L.p(e,t):(L&&L.d(1),(L=A&&A(e))&&(L.c(),L.m(i,v)))},d(e){e&&ci(i),C&&C.d(),E.d(),L&&L.d()}}}function Jd(e){let i,n,r=e[15]("noLimit")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Kd(e){let i,n,r,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&&Qd(e);return{c(){i=hi(o),n=mi(),s&&s.c(),r=B()},m(e,t){li(e,i,t),li(e,n,t),s&&s.m(e,t),li(e,r,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=Qd(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(n),s&&s.d(e),e&&ci(r)}}}function Qd(e){let i,n,r=e[15]("minutes")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ep(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=di("div"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function tp(e){let i,n,r=(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"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(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(n,r)},d(e){e&&ci(i)}}}function ip(i){let n,r,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){n=di("div"),(r=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(r,"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(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,n,t),si(n,r),si(n,o),si(n,a),u||(d=fi(r,"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(n),u=!1,d()}}}function np(i){let n,r,o;return{c(){(n=di("div")).innerHTML="<span></span>",gi(n,"class","InfoCardRemoveIcon")},m(e,t){li(e,n,t),r||(o=fi(n,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&ci(n),r=!1,o()}}}function rp(e){let i,n,r,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?Kd:Jd}let w=b(e),_=w(e);function x(e){return e[41].expiryDate?tp:ep}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)?np:"No limit"!=e[41].amount&&e[41].isModified?ip:void 0}let E=T(e,[-1,-1]),S=E&&E(e);return{c(){i=di("div"),n=di("div"),r=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(),S&&S.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(r,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(n,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(o,a),si(r,s),si(r,l),_.m(l,null),si(n,c),si(n,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),S&&S.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))),E===(E=T(e,t))&&S?S.p(e,t):(S&&S.d(1),(S=E&&E(e))&&(S.c(),S.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),S&&S.d()}}}function op(i){let n,r,o,a,s=i[15]("removeLimits")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","InfoCardRemoveButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function ap(e){let i,n,r;return{c(){i=di("player-account-modal"),le(n=di("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),le(n,"modalsource","infoCard"),le(n,"lang",e[3]),le(n,"clientstyling",e[4]),le(n,"clientstylingurl",e[5]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&le(n,"modaltext",r),8&t[0]&&le(n,"lang",e[3]),16&t[0]&&le(n,"clientstyling",e[4]),32&t[0]&&le(n,"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 sp(i){let n;function r(e){return e[7]?Wd:Hd}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[28](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[28](null)}}}function lp(n,e,r){let o,{limitsdata:a=[]}=(fe(n,ve,e=>r(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(td).forEach(e=>{ed(e,td[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"!==be(v),w="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},T=e=>{r(11,y=!0),r(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(()=>{r(8,i[e]=!0,i)},50)},S=(e,t,i,n)=>{e.splice(t,0,"time"===n?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},A=(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,L=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":r(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return we(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)})),n.$$set=e=>{"limitsdata"in e&&r(0,a=e.limitsdata),"limitname"in e&&r(1,s=e.limitname),"playercurrency"in e&&r(2,t=e.playercurrency),"lang"in e&&r(3,l=e.lang),"clientstyling"in e&&r(4,c=e.clientstyling),"clientstylingurl"in e&&r(5,u=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},n.$$.update=()=>{if(11&n.$$.dirty[0]&&a&&s&&l){var e=l;ye.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,w=o("removeLimitsText",{values:{limit:e}})),r(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(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&&r(9,f=!1)}),r(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?S(i,t.indexOf(e),e,"time"):S(i,t.indexOf(e),e,"currency")})}a.sort(A)}if(80&n.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&n.$$.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&n.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ed(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)=>{r(11,y=!0),r(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){ge[e?"unshift":"push"](()=>{p=e,r(6,p)})}]}function cp(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 up(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),n=mi(),r=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(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",hp),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",mp),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",fp),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",gp),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,n),si(i,r),si(r,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 dp(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 pp(i){let n;function r(e){return e[12]?dp:e[15]?up:cp}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[22](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),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-orange-500, #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-pink-500, #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-pink-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vd,yd,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-pink-500, #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-pink-500, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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-dunkel, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Fd,Od,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-pink-500, #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-orange-500, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},lp,sp,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 hp="Deposit Limit",mp="Wagering Limit",fp="Loss Limit",gp="Time Limit";function yp(t,e,i){let n,r=(fe(t,ve,e=>i(16,n=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(Qu).forEach(e=>{Ku(e,Qu[e])});let y,v=!0,b=window.navigator.userAgent,w="PC"!==be(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,r=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 we(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"depositlimit"in e&&i(1,r=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,ye.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=>{Ku(e,t[e])})}).catch(e=>{console.log(e)})},[u,r,o,a,s,d,l,c,p,h,m,g,v,y,_,x,n,w,C,P,f,()=>P(),function(e){ge[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function vp(e,t){a(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-pink-500, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.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))}.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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},yp,pp,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 bp={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 wp(e,t){a(e,t)}const _p={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 xp(e){let i,n,r,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Cp(e){let i,n,r,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Pp(e){let i,n,r,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Tp(i){let n,r,o,a,s=i[9]("forfeitBonus")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Ep(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,F,x,C,P,R,T,E,z,S,A,H,L=i[9]("date")+"",k=W(i[0]).format("DD/MM/YYYY h:mm A")+"",M=i[9](""+i[1])+"",D=i[9]("bonusName")+"",$=i[9]("bonusType")+"",I=i[3]&&xp(i),B=i[4]&&Cp(i),N=i[5]&&Pp(i),O="active"===i[1]&&Tp(i);return{c(){n=di("div"),r=di("div"),o=di("div"),a=di("p"),s=hi(L),l=mi(),c=di("span"),u=hi(k),d=mi(),p=di("p"),h=hi(M),f=mi(),g=di("div"),y=di("p"),v=hi(D),b=mi(),w=di("p"),_=hi(i[2]),F=mi(),x=di("div"),C=di("p"),P=hi($),R=mi(),T=di("p"),E=hi(i[8]),z=mi(),I&&I.c(),S=mi(),B&&B.c(),A=mi(),N&&N.c(),H=mi(),O&&O.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(r,"class","BonusCardInfo"),gi(n,"class","BonusCard")},m(e,t){li(e,n,t),si(n,r),si(r,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(r,f),si(r,g),si(g,y),si(y,v),si(g,b),si(g,w),si(w,_),si(r,F),si(r,x),si(x,C),si(C,P),si(x,R),si(x,T),si(T,E),si(r,z),I&&I.m(r,null),si(r,S),B&&B.m(r,null),si(r,A),N&&N.m(r,null),si(n,H),O&&O.m(n,null),i[18](n)},p(e,[t]){512&t&&L!==(L=e[9]("date")+"")&&yi(s,L),1&t&&k!==(k=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,k),514&t&&M!==(M=e[9](""+e[1])+"")&&yi(h,M),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&&D!==(D=e[9]("bonusName")+"")&&yi(v,D),4&t&&yi(_,e[2]),512&t&&$!==($=e[9]("bonusType")+"")&&yi(P,$),256&t&&yi(E,e[8]),e[3]?I?I.p(e,t):((I=xp(e)).c(),I.m(r,S)):I&&(I.d(1),I=null),e[4]?B?B.p(e,t):((B=Cp(e)).c(),B.m(r,A)):B&&(B.d(1),B=null),e[5]?N?N.p(e,t):((N=Pp(e)).c(),N.m(r,null)):N&&(N.d(1),N=null),"active"===e[1]?O?O.p(e,t):((O=Tp(e)).c(),O.m(n,null)):O&&(O.d(1),O=null)},i:se,o:se,d(e){e&&ci(n),I&&I.d(),B&&B.d(),N&&N.d(),O&&O.d(),i[18](null)}}}function Sp(t,e,i){let n;fe(t,ve,e=>i(9,n=e));let r,{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"!==be(v),w="";Object.keys(_p).forEach(e=>{wp(e,_p[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,ye.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&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&r&&((e=document.createElement("style")).innerHTML=f,r.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wp(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,r,w,n,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){ge[e?"unshift":"push"](()=>{r=e,i(7,r)})}]}function Ap(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function Lp(e,t,i){e=e.slice();return e[46]=t[i],e}function kp(e){let i,n,r=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("invalidBonusCode")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Mp(t){let r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=Bp(Lp(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=B()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var n=Lp(t,o,e);a[e]?a[e].p(n,i):(a[e]=Bp(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function Dp(e){let i,n,r=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noActiveBonuses")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function $p(e){let i,n,r,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[46].walletId),le(i,"bonusdate",r=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].grantedAmount),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]&&n!==(n=e[46].walletId)&&le(i,"bonuswalletid",n),4096&t[0]&&r!==(r=e[46].granted)&&le(i,"bonusdate",r),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].grantedAmount)&&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 Ip(e){let i,n,r,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[46].walletId),le(i,"bonusdate",r=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]&&n!==(n=e[46].walletId)&&le(i,"bonuswalletid",n),4096&t[0]&&r!==(r=e[46].granted)&&le(i,"bonusdate",r),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 Bp(e){let i;function n(e){return"freeRound"===e[46].type?Ip:$p}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Np(i){let n,r,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]=Op(Ap(i,_,e));return{c(){n=di("div"),r=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(r,"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(n,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,s),si(n,l),si(l,c),si(n,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);si(n,d),si(n,p),si(p,h),si(n,f),si(n,g),si(g,y),b||(w=[fi(r,"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(r,"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=Ap(t,_,e);x[e]?x[e].p(a,i):(x[e]=Op(a),x[e].c(),x[e].m(n,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(n),ui(x,e),b=!1,ai(w)}}}function Op(i){let n,r,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){n=di("span"),r=hi(e),gi(n,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,n,t),si(n,r),a||(s=fi(n,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(n,"class",o)},d(e){e&&ci(n),a=!1,s()}}}function Fp(i){let n,r,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(){n=di("div"),r=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(r,"class","ModalContent"),gi(n,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),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),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(n),f=!1,ai(g)}}}function Rp(i){let n,r=function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T=i[14]("title")+"",E=i[14]("bonusCode")+"",S=i[14]("getBonus")+"",A=i[15]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),L=i[5]&&kp(i);function k(e){return 0===e[12].length?Dp:Mp}let M=k(i),D=M(i),$=0!==i[12].length&&Np(i),I=i[13]&&Fp(i);return{c(){n=di("div"),A&&A.c(),r=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(S),y=mi(),L&&L.c(),v=mi(),b=di("div"),D.c(),w=mi(),$&&$.c(),_=mi(),I&&I.c(),x=B(),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(n,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(n,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,n,t),A&&A.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,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),L&&L.m(l,null),si(n,v),si(n,b),D.m(b,null),si(n,w),$&&$.m(n,null),li(e,_,t),I&&I.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]&&A.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]&&S!==(S=e[14]("getBonus")+"")&&yi(g,S),16&t[0]&&(f.disabled=e[4]),e[5]?L?L.p(e,t):((L=kp(e)).c(),L.m(l,null)):L&&(L.d(1),L=null),M===(M=k(e))&&D?D.p(e,t):(D.d(1),(D=M(e))&&(D.c(),D.m(b,null))),0!==e[12].length?$?$.p(e,t):(($=Np(e)).c(),$.m(n,null)):$&&($.d(1),$=null),e[13]?I?I.p(e,t):((I=Fp(e)).c(),I.m(x.parentNode,x)):I&&(I.d(1),I=null)},d(e){e&&ci(n),A&&A.d(),L&&L.d(),D.d(),$&&$.d(),e&&ci(_),I&&I.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[34](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[34](null)}}}function zp(t,e,n){let i;fe(t,ve,e=>n(14,i=e));let r,{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"!==be(h),f,g=!1,y="",v=0,b=0,w=0,_=0,x=0,C=[],P="",T=!1;Object.keys(bp).forEach(e=>{vp(e,bp[e])});const E=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,n(13,T=!0))},S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},A=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=>{n(10,_=Math.ceil(e.total/6)),0<=t-6&&n(7,v=t-6),t+6<e.total&&n(8,b=t+6),n(9,w=6*(_-1)),n(11,x=t/6),n(12,C=e.items)},e=>{console.error(e)})},L=()=>{window.postMessage({type:"EnableScroll"},window.location.href),n(13,T=!1)};return we(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"endpoint"in e&&n(22,o=e.endpoint),"session"in e&&n(23,a=e.session),"playerid"in e&&n(24,s=e.playerid),"lang"in e&&n(0,l=e.lang),"playercurrency"in e&&n(25,c=e.playercurrency),"clientstyling"in e&&n(1,u=e.clientstyling),"clientstylingurl"in e&&n(2,d=e.clientstylingurl),"translationurl"in e&&n(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,ye.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&A(0),12&t.$$.dirty[0]&&d&&r){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,r,!0,g,y,v,b,w,_,x,C,T,i,m,S,()=>{n(4,f=!y)},A,()=>{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?(n(5,g=!1),A(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&>ag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(n(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},L,()=>{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&&(A(0),L())})},o,a,s,c,p,()=>S(),function(){y=this.value,n(6,y)},()=>A(0),()=>A(v),e=>A(6*e),()=>A(b),()=>A(w),function(e){ge[e?"unshift":"push"](()=>{r=e,n(3,r)})}]}function Hp(e,t){a(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-dunkel, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C))}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Sp,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-dunkel, #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-pink-500, #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-pink-500, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},zp,Rp,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 Wp={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 jp(){"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,n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[n],window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],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 Up=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Yp=function(e,...t){try{return jp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Gp=function(e,t){try{return jp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Vp(e,t,i){e=e.slice();return e[108]=t[i],e}function qp(i){let r,F,R,z,H,W,j,U,Y,n,G,V,q,X,o,Z,a,J,K,Q,ee,s,te,l,e,ie,ne,re,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,Ee,h,Se,Ae,Le,ke,Me,m,De,$e,Ie,Be,Ne,f,Oe,Fe,Re,ze,He,g,We,je,Ue,Ye,Ge,y,Ve,qe,Xe,Ze,Je,v,Ke,Qe,et,tt,it,b,nt,rt,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,Et,E,St,At,Lt,kt,Mt,Dt,$t,It,Bt,Nt,Ot,Ft,Rt,zt,Ht=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")+"",Xt=i[38]("firstName")+"",Zt=i[38]("lastName")+"",Jt=i[38]("userTitle")+"",Kt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ni=i[38]("userPostalCode")+"",ri=i[38]("userProfileSaveChanges")+"",S=i[39]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),oi=i[17],A=[];for(let e=0;e<oi.length;e+=1)A[e]=Kp(Vp(i,oi,e));let L=i[26]&&Qp(i),k=i[24]&&eh(i),M=i[25]&&th(i),D=i[21]&&ih(i),$=i[23]&&nh(i),I=i[22]&&rh(i),B=(i[18]||i[19])&&oh(i),N=i[28]&&lh(i),O=i[27]&&ch(i);return{c(){r=di("form"),S&&S.c(),F=mi(),R=di("h2"),z=hi(Ht),H=mi(),W=di("div"),j=di("h3"),U=hi(Wt),Y=mi(),n=di("section"),G=di("div"),V=di("label"),q=hi(jt),X=mi(),o=di("input"),Z=mi(),a=di("div"),J=di("label"),K=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<A.length;e+=1)A[e].c();te=mi(),l=di("input"),ie=mi(),L&&L.c(),re=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),k&&k.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(),M&&M.c(),xe=mi(),Ce=di("div"),Pe=di("label"),Te=hi(Vt),Ee=mi(),h=di("input"),Se=mi(),Ae=di("div"),Le=di("label"),ke=hi(qt),Me=mi(),m=di("input"),De=mi(),$e=di("div"),Ie=di("label"),Be=hi(Xt),Ne=mi(),f=di("input"),Oe=mi(),Fe=di("div"),Re=di("label"),ze=hi(Zt),He=mi(),g=di("input"),We=mi(),je=di("div"),Ue=di("label"),Ye=hi(Jt),Ge=mi(),y=di("input"),Ve=mi(),qe=di("div"),Xe=di("label"),Ze=hi(Kt),Je=mi(),v=di("input"),Ke=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),b=di("section"),nt=di("div"),rt=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(),D&&D.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),bt=mi(),P=di("input"),_t=mi(),$&&$.c(),Ct=mi(),T=di("div"),Pt=di("label"),Tt=hi(ni),Et=mi(),E=di("input"),Lt=mi(),I&&I.c(),Mt=mi(),B&&B.c(),Dt=mi(),N&&N.c(),$t=mi(),It=di("section"),Bt=di("button"),Nt=hi(ri),Ft=mi(),O&&O.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",ne="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(Ae,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi($e,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Fe,"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(n,"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(nt,"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(E,"type","text"),gi(E,"placeholder",St=i[4]?i[43]:""),E.value=At=i[4]?"":i[29].postalCode,gi(T,"class",kt="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(b,"class","PlayerLocationContent"),gi(Bt,"class",Ot="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(It,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(r,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,r,t),S&&S.m(r,null),si(r,F),si(r,R),si(R,z),si(r,H),si(r,W),si(W,j),si(j,U),si(r,Y),si(r,n),si(n,G),si(G,V),si(V,q),si(G,X),si(G,o),si(n,Z),si(n,a),si(a,J),si(J,K),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(s,null);bi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),L&&L.m(a,null),si(n,re),si(n,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),k&&k.m(c,null),si(n,he),si(n,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),M&&M.m(d,null),si(n,xe),si(n,Ce),si(Ce,Pe),si(Pe,Te),si(Ce,Ee),si(Ce,h),si(n,Se),si(n,Ae),si(Ae,Le),si(Le,ke),si(Ae,Me),si(Ae,m),si(n,De),si(n,$e),si($e,Ie),si(Ie,Be),si($e,Ne),si($e,f),si(n,Oe),si(n,Fe),si(Fe,Re),si(Re,ze),si(Fe,He),si(Fe,g),si(n,We),si(n,je),si(je,Ue),si(Ue,Ye),si(je,Ge),si(je,y),si(n,Ve),si(n,qe),si(qe,Xe),si(Xe,Ze),si(qe,Je),si(qe,v),si(r,Ke),si(r,Qe),si(Qe,et),si(et,tt),si(r,it),si(r,b),si(b,nt),si(nt,rt),si(rt,ot),si(nt,at),si(nt,w),si(b,lt),si(b,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),D&&D.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),$&&$.m(C,null),si(b,Ct),si(b,T),si(T,Pt),si(Pt,Tt),si(T,Et),si(T,E),i[73](E),si(T,Lt),I&&I.m(T,null),si(r,Mt),B&&B.m(r,null),si(r,Dt),N&&N.m(r,null),si(r,$t),si(r,It),si(It,Bt),si(Bt,Nt),si(r,Ft),O&&O.m(r,null),Rt||(zt=[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(Bt,"click",i[78])],Rt=!0)},p(t,i){if(t[39]&&S.p(t,i),128&i[1]&&Ht!==(Ht=t[38]("title")+"")&&yi(z,Ht),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(K,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var n=Vp(t,oi,e);A[e]?A[e].p(n,i):(A[e]=Kp(n),A[e].c(),A[e].m(s,null))}for(;e<A.length;e+=1)A[e].d(1);A.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]?L?L.p(t,i):((L=Qp(t)).c(),L.m(a,null)):L&&(L.d(1),L=null),67108864&i[0]&&ne!==(ne="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",ne),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]?k?k.p(t,i):((k=eh(t)).c(),k.m(c,null)):k&&(k.d(1),k=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]?M?M.p(t,i):((M=th(t)).c(),M.m(d,null)):M&&(M.d(1),M=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(ke,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Xt!==(Xt=t[38]("firstName")+"")&&yi(Be,Xt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Zt!==(Zt=t[38]("lastName")+"")&&yi(ze,Zt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Jt!==(Jt=t[38]("userTitle")+"")&&yi(Ye,Jt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Kt!==(Kt=t[38]("currency")+"")&&yi(Ze,Kt),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]?D?D.p(t,i):((D=ih(t)).c(),D.m(_,null)):D&&(D.d(1),D=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]?$?$.p(t,i):(($=nh(t)).c(),$.m(C,null)):$&&($.d(1),$=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ni!==(ni=t[38]("userPostalCode")+"")&&yi(Tt,ni),16&i[0]&&St!==(St=t[4]?t[43]:"")&&gi(E,"placeholder",St),536870928&i[0]&&At!==(At=t[4]?"":t[29].postalCode)&&E.value!==At&&(E.value=At),t[22]?I?I.p(t,i):((I=rh(t)).c(),I.m(T,null)):I&&(I.d(1),I=null),4194304&i[0]&&kt!==(kt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(T,"class",kt),t[18]||t[19]?B?B.p(t,i):((B=oh(t)).c(),B.m(r,Dt)):B&&(B.d(1),B=null),t[28]?N?N.p(t,i):((N=lh(t)).c(),N.m(r,$t)):N&&(N.d(1),N=null),128&i[1]&&ri!==(ri=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ri),1081344&i[0]&&Ot!==(Ot="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(Bt,"class",Ot),t[27]?O?O.p(t,i):((O=ch(t)).c(),O.m(r,null)):O&&(O.d(1),O=null)},d(e){e&&ci(r),S&&S.d(),ui(A,e),L&&L.d(),k&&k.d(),M&&M.d(),i[69](null),D&&D.d(),i[71](null),$&&$.d(),i[73](null),I&&I.d(),B&&B.d(),N&&N.d(),O&&O.d(),Rt=!1,ai(zt)}}}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 Zp(e){let i,n,r,o=e[108].Prefix+"";return{c(){i=di("option"),n=hi(o),i.__value=r=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(n,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Jp(e){let i,n,r,o=e[108].Prefix+"";return{c(){i=di("option"),n=hi(o),i.selected=!0,i.__value=r=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(n,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Kp(e){let i;function n(e){return e[108].Prefix===e[29].mobiePrefix?Jp:Zp}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Qp(e){let i,n,r=e[38]("userPhoneError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userPhoneError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function eh(e){let i,n,r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(n,r)},d(e){e&&ci(i)}}}function th(e){let i,n,r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ih(e){let i,n,r=e[38]("userCityError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userCityError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function nh(e){let i,n,r=e[38]("userAddressError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userAddressError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function rh(e){let i,n,r=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userPostalCodeError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function oh(e){let i,n,r,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&ah(e),u=e[18]&&sh(e);return{c(){i=di("div"),n=di("h3"),r=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,n),si(n,r),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(r,l),e[19]?c?c.p(e,t):((c=ah(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=sh(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 ah(i){let n,r,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){n=di("div"),r=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(r,"for","SMSNotification"),gi(n,"class","PlayerNotificationBox")},m(e,t){li(e,n,t),si(n,r),si(r,o),o.checked=i[8],si(r,a),si(r,s),si(r,l),si(r,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(n),d=!1,ai(p)}}}function sh(i){let n,r,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){n=di("div"),r=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(r,"for","EmailNotification"),gi(n,"class","PlayerNotificationBox")},m(e,t){li(e,n,t),si(n,r),si(r,o),o.checked=i[9],si(r,a),si(r,s),si(r,l),si(r,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(n),d=!1,ai(p)}}}function lh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",b=i[38]("userBiometrics")+"";return{c(){n=di("div"),r=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(n,"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,n,t),si(n,r),si(r,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(n),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function ch(e){let i,n,r,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),n=di("p"),r=hi(o),gi(n,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function uh(i){let n;function r(e){return e[3]?Xp:qp}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[79](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[79](null)}}}function dh(t,e,i){let N;fe(t,ve,e=>i(38,N=e));let n,r,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,O=!0,F=window.navigator.userAgent,R="PC"!==be(F),z=!0,f=!1,g=!1,y=!1,v="",b="",w="",_="",x=!1,H={Name:"I.e Ireland"},C=[],W=[],P=[],T=!1,E=!1,S={items:[]},j=!1,U="",Y="",G="",V=!1,q=!1,X=!1,A=!1,Z={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Wp).forEach(e=>{Hp(e,Wp[e])});e=window.matchMedia("(min-width: 768px)");let J={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},L={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},k={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:K,birth:Q,city:ee,currency:te,mobile:M,email:ie,firstname:ne,userTitles:re,language:oe,lastname:ae,postalCode:se,securityAnswer:D,securityQuestion:$,username:le}=k;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,z=!1),k=e.data.profileDetails,i(37,le=k.username),i(32,M=k.mobile),i(33,ie=k.email),i(34,ne=k.firstname),i(36,ae=k.lastname),oe=k.language,i(30,Q=(null==(t=k.birth)?void 0:t.day)+"/"+(null==(t=k.birth)?void 0:t.month)+"/"+(null==(t=k.birth)?void 0:t.year)),i(31,te=k.currency),i(35,re=k.title),i(11,v=k.securityQuestion),i(12,b=k.securityAnswer),i(13,w=null==(t=k.mobile)?void 0:t.prefix),i(14,_=null==(t=k.mobile)?void 0:t.number),i(29,L.address=k.address1,L),i(29,L.city=k.city,L),i(29,L.mobilePrefix=null==M?void 0:M.prefix,L),i(29,L.mobileNumber=null==M?void 0:M.number,L),i(29,L.postalCode=k.postalCode,L),i(29,L.securityAnswer=k.securityAnswer,L),i(29,L.securityQuestion=k.securityQuestion,L);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,L.acceptNewsEmail=g,L)):"sms"==e.tagCode&&(i(19,E=!0),i(8,f="Accepted"==e.status),i(29,L.acceptSMSOffers=f,L))});break;case"ConfirmProfileInfoSave":A&&(Gp("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),Yp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,X=!0),setTimeout(()=>{i(27,X=!1)},3e3)}},I=()=>{i(20,j=!(V||q||U||G||Y||s))},ue=e=>{e.preventDefault(),1==x&&1==j&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:J},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:S},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},B=()=>{var e,t;J={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:w,postalCode:r.value,securityAnswer:b,securityQuestion:v},e=J,t=L,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),S={items:[]},E&&S.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),T&&S.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),I()};return we(()=>(window.addEventListener("message",ce,!1),i(28,A=!!Up(F)),A&&(Gp("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),Yp("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,ye.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,H=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,O=!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&&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;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,n,O,z,r,o,a,f,g,y,v,b,w,_,x,H,C,T,E,j,U,Y,G,V,q,s,X,A,L,Q,te,M,ie,ne,re,ae,le,N,R,e,K,ee,se,D,$,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),I()},()=>{i(24,V=!(()=>{if($)switch(m){case"true":if(Z.document.test($)&&$.length<=50)return!0;break;case"false":if($&&$.length<=120)return!0}return!1})()),I()},()=>{i(25,q=!(()=>{if(D)switch(m){case"true":if(Z.document.test(D)&&D.length<=50)return!0;break;case"false":if(D&&D.length<=120)return!0}return!1})()),I()},()=>{i(21,U=!(a.value&&a.value.length<=50)),I()},()=>{i(22,Y=!(r.value&&r.value.length<=20)),I()},()=>{i(23,G=!(o.value&&o.value.length<=100)),I()},ue,de,B,l,c,d,p,h,()=>de(),function(){w=pe(this),i(13,w),i(17,C)},()=>B(),function(){_=this.value,i(14,_)},()=>B(),function(){v=this.value,i(11,v)},()=>B(),function(){b=this.value,i(12,b)},()=>B(),function(e){ge[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>B(),function(e){ge[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>B(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(5,r)})},()=>B(),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){ge[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function ph(e,t){a(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-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},dh,uh,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 hh={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 mh(i){let n,r,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")+"",E=i[19]("backButtonText")+"",S=i[20]&&function(i){let n,r,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){n=di("div"),r=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(r,"version","1.1"),gi(r,"id","Capa_1"),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(r,"x","0px"),gi(r,"y","0px"),gi(r,"viewBox","0 0 240.823 240.823"),L(r,"enable-background","new 0 0 240.823 240.823"),gi(r,"xml:space","preserve"),gi(r,"width","18px"),gi(r,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(n,l),si(l,c),u||(d=fi(n,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(n),u=!1,d()}}}(i);return{c(){S&&S.c(),n=mi(),r=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(E),gi(r,"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){S&&S.m(e,t),li(e,n,t),li(e,r,t),si(r,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]&&S.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(w,E)},d(e){S&&S.d(e),e&&ci(n),e&&ci(r),e&&ci(s),e&&ci(l),_=!1,x()}}}function fh(i){let F,n,R,z,r,o,a,H,W,s,j,U,l,Y,c,u,G,V,d,q,X,p,Z,h,m,J,K,f,Q,ee,g,te,y,v,b,ie,w,_,ne,re,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",T=i[19]("confirmPassword")+"",E=i[19]("submitChangePassword")+"",S=i[20]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function oe(e){return e[10]?yh:gh}let A=oe(i),L=A(i),k=i[4]&&vh(i);function ae(e){return e[11]?xh:_h}let M=ae(i),D=M(i);function se(e){return e[13]?Ph:e[5]?Ch:void 0}let $=se(i),I=$&&$(i);function le(e){return e[12]?Ah:Sh}let ce=le(i),B=ce(i),N=i[6]&&Lh(i),O=i[18]&&kh(i);return{c(){S&&S.c(),F=mi(),n=di("h2"),R=hi(x),z=mi(),r=di("section"),o=di("div"),a=di("label"),H=hi(C),W=mi(),s=di("input"),j=mi(),L.c(),U=mi(),k&&k.c(),Y=mi(),c=di("div"),u=di("label"),G=hi(P),V=mi(),d=di("input"),q=mi(),D.c(),X=mi(),I&&I.c(),Z=mi(),h=di("div"),m=di("label"),J=hi(T),K=mi(),f=di("input"),Q=mi(),B.c(),ee=mi(),N&&N.c(),te=mi(),O&&O.c(),y=mi(),v=di("section"),b=di("button"),ie=hi(E),gi(n,"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(r,"class","PlayerChangePasswordContent"),gi(b,"class",w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),b.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){S&&S.m(e,t),li(e,F,t),li(e,n,t),si(n,R),li(e,z,t),li(e,r,t),si(r,o),si(o,a),si(a,H),si(o,W),si(o,s),vi(s,i[14]),i[33](s),si(o,j),L.m(o,null),si(o,U),k&&k.m(o,null),si(r,Y),si(r,c),si(c,u),si(u,G),si(c,V),si(c,d),vi(d,i[15]),i[37](d),si(c,q),D.m(c,null),si(c,X),I&&I.m(c,null),si(r,Z),si(r,h),si(h,m),si(m,J),si(h,K),si(h,f),vi(f,i[16]),i[41](f),si(h,Q),B.m(h,null),si(h,ee),N&&N.m(h,null),li(e,te,t),O&&O.m(e,t),li(e,y,t),li(e,v,t),si(v,b),si(b,ie),ne||(re=[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])],ne=!0)},p(e,t){(i=e)[20]&&S.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(H,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),A===(A=oe(i))&&L?L.p(i,t):(L.d(1),(L=A(i))&&(L.c(),L.m(o,U))),i[4]?k?k.p(i,t):((k=vh(i)).c(),k.m(o,null)):k&&(k.d(1),k=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]),M===(M=ae(i))&&D?D.p(i,t):(D.d(1),(D=M(i))&&(D.c(),D.m(c,X))),$===($=se(i))&&I?I.p(i,t):(I&&I.d(1),(I=$&&$(i))&&(I.c(),I.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(J,T),65536&t[0]&&f.value!==i[16]&&vi(f,i[16]),ce===(ce=le(i))&&B?B.p(i,t):(B.d(1),(B=ce(i))&&(B.c(),B.m(h,ee))),i[6]?N?N.p(i,t):((N=Lh(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]?O?O.p(i,t):((O=kh(i)).c(),O.m(y.parentNode,y)):O&&(O.d(1),O=null),524288&t[0]&&E!==(E=i[19]("submitChangePassword")+"")&&yi(ie,E),8&t[0]&&w!==(w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(b,"class",w),8&t[0]&&_!==(_=!i[3])&&(b.disabled=_)},d(e){S&&S.d(e),e&&ci(F),e&&ci(n),e&&ci(z),e&&ci(r),i[33](null),L.d(),k&&k.d(),i[37](null),D.d(),I&&I.d(),i[41](null),B.d(),N&&N.d(),e&&ci(te),O&&O.d(e),e&&ci(y),e&&ci(v),ne=!1,ai(re)}}}function gh(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function yh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function vh(e){let i;function n(e){return"true"==e[0]?wh:bh}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function bh(e){let i,n,r=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidCurrentPassword")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function wh(e){let i,n,r=e[19]("simplePasswordError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function _h(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function xh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function Ch(e){let i;function n(e){return"true"==e[0]?Eh:Th}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Ph(e){let i,n,r=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPassword")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Th(e){let i,n,r=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPasswordSecondary")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Eh(e){let i,n,r=e[19]("simplePasswordError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Sh(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function Ah(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function Lh(e){let i,n,r=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("confirmPasswordInvalid")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function kh(e){let i,n,r;return{c(){i=di("div"),n=di("p"),r=hi(e[17]),gi(n,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){131072&t[0]&&yi(r,e[17])},d(e){e&&ci(i)}}}function Mh(i){let n,r=function(e){let i;function n(e){return e[2]?mh:fh}let r=n(e),o=r(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){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[47](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[47](null)}}}function Dh(t,e,n){let i;fe(t,ve,e=>n(19,i=e));let r,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==be(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="",E="",S=!1,A="",L=!1;Object.keys(hh).forEach(e=>{ph(e,hh[e])});const k=e=>{switch(e){case"userCurrentPassword":n(10,w=!w),n(7,m.type=w?"text":"password",m);break;case"userNewPassword":n(11,_=!_),n(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":n(12,x=!x),n(9,g.type=x?"text":"password",g)}},M=e=>!!h.password.test(e),D=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:T},window.location.href)},$=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},I=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},B=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":n(2,S=!0);break;case"ShowPasswordChangedError":n(18,L=e.data.showErrorPasswordChanged),n(17,A=e.data.errorPasswordChanged)}};return we(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)})),t.$$set=e=>{"lang"in e&&n(27,o=e.lang),"simplepasswordvalidation"in e&&n(0,a=e.simplepasswordvalidation),"clientstyling"in e&&n(28,s=e.clientstyling),"clientstylingurl"in e&&n(29,l=e.clientstylingurl),"translationurl"in e&&n(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,ye.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&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;268435458&t.$$.dirty[0]&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ph(e,t[e])})}).catch(e=>{console.log(e)})},[a,r,S,p,y,v,b,m,f,g,w,_,x,C,P,T,E,A,L,i,d,N,k,(e,t,i)=>{"CurrentPassword"===i.id?n(4,y=!M(t)):"NewPassword"===i.id&&(n(5,v=!M(t)),P&&n(13,C=P===T),!E)||n(6,b=T!==E||!M(t)),n(3,p=!(y||v||b||C||!P||!T||!E))},D,$,I,o,s,l,c,()=>$(),function(){P=this.value,n(14,P)},function(e){ge[e?"unshift":"push"](()=>{m=e,n(7,m)})},()=>k("userCurrentPassword"),()=>k("userCurrentPassword"),function(){T=this.value,n(15,T)},function(e){ge[e?"unshift":"push"](()=>{f=e,n(8,f)})},()=>k("userNewPassword"),()=>k("userNewPassword"),function(){E=this.value,n(16,E)},function(e){ge[e?"unshift":"push"](()=>{g=e,n(9,g)})},()=>k("userConfirmPassword"),()=>k("userConfirmPassword"),e=>D(e),()=>$(),()=>I(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}function $h(e,t){a(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-dunkel, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Dh,Mh,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 Ih={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 Bh(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function Nh(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 Oh(e){let i,n;return{c(){i=di("div"),n=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function Fh(i){let n,r,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=zh(Bh(i,u,e));return{c(){n=di("form");for(let e=0;e<d.length;e+=1)d[e].c();r=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(n,"class","customRadio")},m(e,t){li(e,n,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(n,null);si(n,r),si(n,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=Bh(t,u,e);d[e]?d[e].p(s,i):(d[e]=zh(s),d[e].c(),d[e].m(n,r))}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(n),ui(d,e),l=!1,c()}}}function Rh(e){let i,n,r=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t[0]&&r!==(r=e[4]("realityCheckLoading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function zh(i){let n,r,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(){n=di("div"),r=di("input"),o=mi(),a=di("label"),s=hi(e),gi(r,"type","radio"),gi(r,"id",i[35]),r.__value=i[35],r.value=r.__value,gi(a,"for",i[35]),t.p(r)},m(e,t){li(e,n,t),si(n,r),r.checked=r.__value===i[1],si(n,o),si(n,a),si(a,s),l||(c=fi(r,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(r.checked=r.__value===e[1])},d(e){e&&ci(n),t.r(),l=!1,c()}}}function Hh(i){let n,r,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&Nh(i);return{c(){v&&v.c(),n=mi(),r=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-pink-500, #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(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,n,t),li(e,r,t),si(r,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(r,p),si(r,h),si(h,m),f||(g=fi(r,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=Nh(e)).c(),v.m(n.parentNode,n)):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(n),e&&ci(r),f=!1,g()}}}(i),g=i[3]&&Oh(i);function y(e){return e[2]?Rh:Fh}let v=y(i),b=v(i);return{c(){n=di("div"),f&&f.c(),r=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(n,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(n,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,n,t),f&&f.m(n,null),si(n,r),g&&g.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),b.m(c,null),i[23](n)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Oh(e)).c(),g.m(n,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(n),f&&f.d(),g&&g.d(),b.d(),i[23](null)}}}function Wh(i,e,n){let r;fe(i,ve,e=>n(4,r=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"!==be(t),f="",g=!0,y=(Object.keys(Ih).forEach(e=>{$h(e,Ih[e])}),!1),v=r("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&&(n(3,y=!0),setTimeout(()=>{n(3,y=!1)},2e3))};return we(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&n(10,a=e.realitycheck),"endpoint"in e&&n(11,s=e.endpoint),"playerid"in e&&n(12,l=e.playerid),"session"in e&&n(13,c=e.session),"lang"in e&&n(14,u=e.lang),"clientstyling"in e&&n(15,d=e.clientstyling),"clientstylingurl"in e&&n(16,p=e.clientstylingurl),"translationurl"in e&&n(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,ye.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=>{n(18,b=e.AvailableRealityCheckValues),b.forEach(e=>{0==e?w.push({value:e.toString(),text:r("never")}):e<60?w.push({value:e.toString(),text:e+" "+r("minutes")}):60==e?w.push({value:e.toString(),text:r("oneHour")}):60<e&&w.push({value:e.toString(),text:e/60+" "+r("hours")})}),n(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&b&&a&&n(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=>{$h(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,r,m,v,w,_,x,a,s,l,c,u,d,p,h,b,()=>x(),function(){f=this.__value,n(1,f)},[[]],e=>_(e),function(e){ge[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function jh(e,t){a(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-pink-500, #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-dunkel, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Wh,Hh,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 Uh={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 Yh(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function Gh(e,t,i){e=e.slice();return e[45]=t[i],e}function Vh(t){let r,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Jh(Gh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=B()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var n=Gh(t,o,e);a[e]?a[e].p(n,i):(a[e]=Jh(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function qh(e){let i,n,r=e[14]("noBonusHistory")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noBonusHistory")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Xh(e){let i,n,r,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[45].walletId),le(i,"bonusdate",r=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].grantedAmount),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]&&n!==(n=e[45].walletId)&&le(i,"bonuswalletid",n),8192&t[0]&&r!==(r=e[45].granted)&&le(i,"bonusdate",r),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].grantedAmount)&&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 Zh(e){let i,n,r,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[45].walletId),le(i,"bonusdate",r=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]&&n!==(n=e[45].walletId)&&le(i,"bonuswalletid",n),8192&t[0]&&r!==(r=e[45].granted)&&le(i,"bonusdate",r),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 Jh(e){let i;function n(e){return"freeRound"===e[45].type?Zh:Xh}let r=n(e),o=r(e);return{c(){o.c(),i=B()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Kh(i){let n,r,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]=Qh(Yh(i,_,e));return{c(){n=di("div"),r=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(r,"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(n,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,s),si(n,l),si(l,c),si(n,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);si(n,d),si(n,p),si(p,h),si(n,f),si(n,g),si(g,y),b||(w=[fi(r,"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(r,"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=Yh(t,_,e);x[e]?x[e].p(a,i):(x[e]=Qh(a),x[e].c(),x[e].m(n,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(n),ui(x,e),b=!1,ai(w)}}}function Qh(i){let n,r,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){n=di("span"),r=hi(e),gi(n,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,n,t),si(n,r),a||(s=fi(n,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(n,"class",o)},d(e){e&&ci(n),a=!1,s()}}}function em(i){let n,r=function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L=i[14]("title")+"",k=i[14]("dateFrom")+"",M=i[14]("dateTo")+"",D=i[14]("dateFilter")+"",$=i[15]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function I(e){return 0===e[13].length?qh:Vh}let B=I(i),N=B(i),O=0!==i[13].length&&Kh(i);return{c(){n=di("div"),$&&$.c(),r=mi(),o=di("h2"),a=hi(L),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi(k),h=mi(),m=di("vaadin-date-picker"),f=mi(),g=di("div"),y=di("label"),v=hi(M),b=mi(),w=di("vaadin-date-picker"),_=mi(),x=di("button"),C=hi(D),P=mi(),T=di("div"),N.c(),E=mi(),O&&O.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(n,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,n,t),$&&$.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,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(n,P),si(n,T),N.m(T,null),si(n,E),O&&O.m(n,null),S||(A=fi(x,"click",i[25]),S=!0)},p(e,t){e[15]&&$.p(e,t),16384&t[0]&&L!==(L=e[14]("title")+"")&&yi(a,L),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&yi(p,k),64&t[0]&&le(m,"max",e[6]),128&t[0]&&le(m,"value",e[7]),16384&t[0]&&M!==(M=e[14]("dateTo")+"")&&yi(v,M),64&t[0]&&le(w,"max",e[6]),64&t[0]&&le(w,"value",e[6]),16384&t[0]&&D!==(D=e[14]("dateFilter")+"")&&yi(C,D),B===(B=I(e))&&N?N.p(e,t):(N.d(1),(N=B(e))&&(N.c(),N.m(T,null))),0!==e[13].length?O?O.p(e,t):((O=Kh(e)).c(),O.m(n,null)):O&&(O.d(1),O=null)},d(e){e&&ci(n),$&&$.d(),i[23](null),i[24](null),N.d(),O&&O.d(),S=!1,A()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[31](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[31](null)}}}function tm(t,e,n){let i;fe(t,ve,e=>n(14,i=e));let r,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"!==be(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(Uh).forEach(e=>{jh(e,Uh[e])});const E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},S=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=>{n(11,C=Math.ceil(e.total/6)),0<=t-6&&n(8,w=t-6),t+6<e.total&&n(9,_=t+6),n(10,x=6*(C-1)),n(12,P=t/6),n(13,T=e.items)},e=>{console.error(e)})},A=e=>{v=e.target.value},L=e=>{b=e.target.value};we(()=>()=>{o.removeEventListener("change",A),a.removeEventListener("change",L)});return t.$$set=e=>{"endpoint"in e&&n(18,c=e.endpoint),"session"in e&&n(19,u=e.session),"playerid"in e&&n(20,d=e.playerid),"lang"in e&&n(0,p=e.lang),"clientstyling"in e&&n(1,h=e.clientstyling),"clientstylingurl"in e&&n(2,m=e.clientstylingurl),"translationurl"in e&&n(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,ye.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",A,!1),a.addEventListener("change",L,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&S(0),12&t.$$.dirty[0]&&m&&r){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&r&&((e=document.createElement("style")).innerHTML=h,r.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,r,o,a,s,l,w,_,x,C,P,T,i,y,E,S,c,u,d,f,()=>E(),function(e){ge[e?"unshift":"push"](()=>{o=e,n(4,o)})},function(e){ge[e?"unshift":"push"](()=>{a=e,n(5,a)})},()=>S(0),()=>S(0),()=>S(w),e=>S(6*e),()=>S(_),()=>S(x),function(e){ge[e?"unshift":"push"](()=>{r=e,n(3,r)})}]}function im(e,t){a(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-dunkel, #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-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))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},tm,em,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 nm={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 rm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function om(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function am(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?om:rm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","DepositTitle "+(i[4]?"DepositTitleNone":"")),gi(n,"class","DepositWrapper "+(i[4]?"DepositWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[16](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[16](null)}}}function sm(n,e,r){let t;fe(n,ve,e=>r(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"!==be(i),g=!0,y=0,v="";Object.keys(nm).forEach(e=>{im(e,nm[e])});const b=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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 we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},n.$$.update=()=>{if(1024&n.$$.dirty&&c&&(i=c,ye.set(i)),8193&n.$$.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&n.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&n.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{im(e,t[e])})}).catch(e=>{console.log(e)}),1984&n.$$.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=>{r(1,g=!1),r(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){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function lm(e,t){a(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-pink-500, #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-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))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},sm,am,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 cm={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 um(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function dm(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function pm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?dm:um}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(n,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[16](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[16](null)}}}function hm(n,e,r){let t;fe(n,ve,e=>r(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"!==be(i),g=!0,y=0,v="";Object.keys(cm).forEach(e=>{lm(e,cm[e])});const b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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 we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},n.$$.update=()=>{if(1024&n.$$.dirty&&c&&(i=c,ye.set(i)),8193&n.$$.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&n.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&n.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{lm(e,t[e])})}).catch(e=>{console.log(e)}),1984&n.$$.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=>{r(1,g=!1),r(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){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function mm(e,t){a(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-pink-500, #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-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))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},hm,pm,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 fm={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 gm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function ym(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function vm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?ym:gm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(n,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[14](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[14](null)}}}function bm(i,e,n){let t;fe(i,ve,e=>n(3,t=e));let r,{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"!==be(p),m=!0,f="";Object.keys(fm).forEach(e=>{mm(e,fm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"playerid"in e&&n(8,s=e.playerid),"lang"in e&&n(9,l=e.lang),"clientstyling"in e&&n(10,c=e.clientstyling),"clientstylingurl"in e&&n(11,u=e.clientstylingurl),"translationurl"in e&&n(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,ye.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=>{n(1,m=!1),n(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mm(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function wm(e,t){a(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-pink-500, #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-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))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bm,vm,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 _m={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 xm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function Cm(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Pm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?Cm:xm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(n,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[14](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[14](null)}}}function Tm(i,e,n){let t;fe(i,ve,e=>n(3,t=e));let r,{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"!==be(p),m=!0,f="";Object.keys(_m).forEach(e=>{wm(e,_m[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"playerid"in e&&n(8,s=e.playerid),"lang"in e&&n(9,l=e.lang),"clientstyling"in e&&n(10,c=e.clientstyling),"clientstylingurl"in e&&n(11,u=e.clientstylingurl),"translationurl"in e&&n(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,ye.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=>{n(1,m=!1),n(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wm(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function Em(e,t){a(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-pink-500, #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-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))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Tm,Pm,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 Sm={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 Am(e,t,i){e=e.slice();return e[55]=t[i],e}function Lm(e,t,i){e=e.slice();return e[58]=t[i],e}function km(i){let n,r,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=Mm(Lm(i,u,e));return{c(){n=di("div"),r=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(n,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Lm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Mm(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(n),ui(d,e),l=!1,ai(c)}}}function Mm(e){let i,n,t=e[58]+"";return{c(){i=di("option"),n=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function Dm(e){let i,n,r=e[14]("noRecord")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noRecord")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function $m(e){let i,n,r;return{c(){i=di("p"),n=hi("Invalid data: "),r=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,n),si(i,r)},p(e,t){256&t[0]&&yi(r,e[8])},d(e){e&&ci(i)}}}function Im(i){let n,r,o,a,s,l,O,c,u,F,d,p,R,z,H,W,j,U,Y,h,G,m,f,g,y,e,V,v,q,b,w,X,_,x,Z,J,C,P,T,E,S,K,Q,A=i[14]("transactionId")+"",L=i[14]("date")+"",k=i[14]("gameName")+"",M=i[14]("stake")+"",D=i[14]("return")+"",$=i[14]("previous")+"",I=i[14]("next")+"",B=i[13],N=[];for(let e=0;e<B.length;e+=1)N[e]=Nm(Am(i,B,e));return{c(){n=di("div"),r=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(A),O=mi(),c=di("th"),u=hi(L),F=mi(),d=di("th"),p=hi(k),R=mi(),z=di("th"),H=hi(M),W=mi(),j=di("th"),U=hi(D),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($),X=mi(),_=di("button"),x=di("span"),Z=hi(I),J=mi(),C=pi("svg"),P=pi("path"),gi(n,"class","PlayerGamingHistoryContainer"),gi(y,"fill",e=i[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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=S=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(s,l),si(a,O),si(a,c),si(c,u),si(a,F),si(a,d),si(d,p),si(a,R),si(a,z),si(z,H),si(a,W),si(a,j),si(j,U),si(r,Y),si(r,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,X),si(m,_),si(_,x),si(x,Z),si(_,J),si(_,C),si(C,P),K||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],K=!0)},p(t,i){if(16384&i[0]&&A!==(A=t[14]("transactionId")+"")&&yi(l,A),16384&i[0]&&L!==(L=t[14]("date")+"")&&yi(u,L),16384&i[0]&&k!==(k=t[14]("gameName")+"")&&yi(p,k),16384&i[0]&&M!==(M=t[14]("stake")+"")&&yi(H,M),16384&i[0]&&D!==(D=t[14]("return")+"")&&yi(U,D),1073152&i[0]){let e;for(B=t[13],e=0;e<B.length;e+=1){var n=Am(t,B,e);N[e]?N[e].p(n,i):(N[e]=Nm(n),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=B.length}32&i[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(y,"fill",e),16384&i[0]&&$!==($=t[14]("previous")+"")&&yi(q,$),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]&&I!==(I=t[14]("next")+"")&&yi(Z,I),16&i[0]&&T!==(T=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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]&&S!==(S=!t[4])&&(_.disabled=S)},d(e){e&&ci(n),ui(N,e),e&&ci(G),e&&ci(m),K=!1,ai(Q)}}}function Bm(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 Nm(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L=e[55].roundId+"",k=e[20](e[55])+"",M=e[55].gameModel.name+"",D=e[55].stakeAmount+"",$=e[55].returnAmount+"";return{c(){i=di("tr"),n=di("td"),r=di("span"),o=hi(L),l=mi(),c=di("td"),u=di("span"),d=hi(k),h=mi(),m=di("td"),f=di("span"),g=hi(M),v=mi(),b=di("td"),w=di("span"),_=hi(D),C=mi(),P=di("td"),T=di("span"),E=hi($),A=mi(),gi(n,"data-label",a=e[14]("transactionId")),gi(n,"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",S=e[14]("return"))},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,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,E),si(i,A)},p(e,t){8192&t[0]&&L!==(L=e[55].roundId+"")&&yi(o,L),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(n,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(n,"title",s),8192&t[0]&&k!==(k=e[20](e[55])+"")&&yi(d,k),16384&t[0]&&p!==(p=e[14]("date"))&&gi(c,"data-label",p),8192&t[0]&&M!==(M=e[55].gameModel.name+"")&&yi(g,M),16384&t[0]&&y!==(y=e[14]("gameName"))&&gi(m,"data-label",y),8192&t[0]&&D!==(D=e[55].stakeAmount+"")&&yi(_,D),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(b,"data-label",x),8192&t[0]&&$!==($=e[55].returnAmount+"")&&yi(E,$),16384&t[0]&&S!==(S=e[14]("return"))&&gi(P,"data-label",S)},d(e){e&&ci(i)}}}function Om(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L,k=i[14]("title")+"",M=i[14]("dateFrom")+"",D=i[14]("dateTo")+"",$=i[14]("dateFilter")+"",I=i[16]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),B=!i[12].matches&&km(i);function F(e){return e[9]?Bm:0<e[13].length?Im:0<e[8].length?$m:Dm}let N=F(i),O=N(i);return{c(){n=di("div"),r=di("div"),I&&I.c(),o=mi(),a=di("h2"),s=hi(k),l=mi(),c=di("div"),u=di("div"),d=di("div"),p=di("div"),h=di("span"),m=hi(M),f=mi(),g=di("vaadin-date-picker"),y=mi(),v=di("div"),b=di("span"),w=hi(D),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),T=hi($),E=mi(),B&&B.c(),S=mi(),O.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(r,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,n,t),si(n,r),I&&I.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(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,E),B&&B.m(u,null),si(r,S),O.m(r,null),i[37](r),i[38](n),A||(L=fi(P,"click",i[32]),A=!0)},p(e,t){e[16]&&I.p(e,t),16384&t[0]&&k!==(k=e[14]("title")+"")&&yi(s,k),16384&t[0]&&M!==(M=e[14]("dateFrom")+"")&&yi(m,M),1024&t[0]&&le(g,"max",e[10]),2048&t[0]&&le(g,"value",e[11]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&yi(w,D),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&$!==($=e[14]("dateFilter")+"")&&yi(T,$),e[12].matches?B&&(B.d(1),B=null):B?B.p(e,t):((B=km(e)).c(),B.m(u,null)),N===(N=F(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(r,null)))},i:se,o:se,d(e){e&&ci(n),I&&I.d(),i[30](null),i[31](null),B&&B.d(),O.d(),i[37](null),i[38](null),A=!1,L()}}}function Fm(t,e,r){let i;fe(t,ve,e=>r(14,i=e));let n,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="",E=!1,S=window.navigator.userAgent,A="PC"!==be(S),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(Sm).forEach(e=>{Em(e,Sm[e])}),window.matchMedia("(min-width: 768px)")),L=window.matchMedia("(max-width: 1280px)"),k=[];const M=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:A},window.location.href)},O=()=>{r(12,L=window.matchMedia("(max-width: 1280px)"))},F=(e,t,i)=>{var e=new URL(e),n=(r(13,k=[]),{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)),r(9,E=!0),fetch(e.href,n).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(13,k=(e=>{let n=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=n.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,n.set(e.roundId,i))}),Array.from(n.values())})(k)),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,E=!1)},e=>{r(9,E=!1),console.error(e)})},D=(e,t,i)=>{var n;"gm16"===y?F(e,t,i):(t=t,i=i,e=new URL(e),r(13,k=[]),r(8,T=""),n={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)),r(9,E=!0),fetch(e.href,n).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,E=!1)},e=>{r(9,E=!1),console.error(e)}))},$=e=>{e.data&&e.data.type},I=e=>{_=e.target.value},B=e=>{x=e.target.value};return we(()=>(window.addEventListener("message",$,!1),window.addEventListener("resize",O,!1),()=>{o.removeEventListener("change",I),a.removeEventListener("change",B),window.removeEventListener("message",$),window.removeEventListener("resize",$)})),t.$$set=e=>{"endpoint"in e&&r(21,u=e.endpoint),"playerid"in e&&r(22,d=e.playerid),"session"in e&&r(23,p=e.session),"lang"in e&&r(24,h=e.lang),"clientstyling"in e&&r(25,m=e.clientstyling),"clientstylingurl"in e&&r(26,f=e.clientstylingurl),"translationurl"in e&&r(27,g=e.translationurl),"gmversion"in e&&r(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",I,!1),a.addEventListener("change",B,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,ye.set(e),r(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),D(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=>{Em(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,b,w,void 0,P,T,E,l,c,L,k,i,C,A,N,M,D,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>M(),function(e){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})},function(e){ge[e?"unshift":"push"](()=>{a=e,r(1,a)})},()=>D(v,!1,!0),function(){P=pe(this),r(7,P),r(15,C)},()=>D(v,!1,!0),()=>D(w,!0,!1),()=>D(b,!0,!1),function(e){ge[e?"unshift":"push"](()=>{n=e,r(6,n)})},function(e){ge[e?"unshift":"push"](()=>{s=e,r(2,s)})}]}function Rm(e,t){a(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-pink-500, #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-pink-500, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.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))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Fm,Om,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 zm={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 Hm(i){let n,r,o,a,s,l,c,t,u,d,p;return{c(){n=di("div"),r=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(r,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),i[8](r),i[9](n),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(r,"class",c)},i(e){u||(wi(()=>{u&&(t=t||te(r,dd,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||te(r,dd,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(n),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function Wm(e){let i,n,r="true"==e[0]&&Hm(e);return{c(){r&&r.c(),i=B(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t),n=!0},p(e,[t]){"true"==e[0]?r?(r.p(e,t),1&t&&K(r,1)):((r=Hm(e)).c(),K(r,1),r.m(i.parentNode,i)):r&&(Z(),Q(r,1,1,()=>{r=null}),J())},i(e){n||(K(r),n=!0)},o(e){Q(r),n=!1},d(e){r&&r.d(e),e&&ci(i)}}}function jm(t,e,i){let n,r,{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 we(()=>(window.addEventListener("message",d,!1),i(4,c=lr(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&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),132&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),setTimeout(()=>{},500)})}var e},[o,a,r,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){ge[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){ge[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Um(e){let i,n;return{c(){i=di("general-player-login-register-modal"),le(n=di("om-betting-history-details"),"item-layout","V2"),le(n,"cashoutserver","V2"),le(n,"matchscorelayout","V2"),le(n,"matchscorescope","BHDetailed"),le(n,"tournament-route",":sportId/:tournamentId"),le(n,"match-route",":sportId/:tournamentId/:matchId"),le(n,"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,n)},p(e,t){2&t&&le(n,"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 Ym(i){let n,r,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 n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),T="true"===i[5]&&i[1]&&Um(i);return{c(){n=di("div"),P&&P.c(),r=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":"")),k(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),k(p,"BettingHistoryButtonSelected","settledBets"===i[0]),k(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(n,"class","BettingHistoryWrapper"),k(n,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,n,t),P&&P.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(n,m),si(n,f),si(n,g),T&&T.m(n,null),si(n,y),si(n,v),i[16](n),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&&k(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&k(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?T?T.p(e,t):((T=Um(e)).c(),T.m(n,y)):T&&(T.d(1),T=null)},i:se,o:se,d(e){e&&ci(n),P&&P.d(),T&&T.d(),i[16](null),b=!1,ai(w)}}}function Gm(t,e,i){let n;fe(t,ve,e=>i(6,n=e));let r,{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"!==be(p);Object.entries(zm).forEach(([e,t])=>{Rm(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 we(()=>(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,ye.set(e)),20&t.$$.dirty&&l&&r&&((e=document.createElement("style")).innerHTML=l,r.appendChild(e)),24&t.$$.dirty&&c&&r){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,r,d,n,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){ge[e?"unshift":"push"](()=>{r=e,i(4,r)})}]}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-orange-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},jm,Wm,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-pink-500, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:none}.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))}.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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gm,Ym,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 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 Vm(e,t){a(e,t)}const qm={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",invalidInputMessageLimit:"The value entered must be between {minValue} and {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",invalidInputMessageLimit:"Der eingegebene Wert muss zwischen {minValue} und {maxValue} {currency} liegen.",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",invalidInputMessageLimit:"Unešena vrijednost mora biti između {minValue} i {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",invalidInputMessageLimit:"Vnešena vrednost mora biti med {minValue} in {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",invalidInputMessageLimit:"Podana wartość musi znajdować się pomiędzy {minValue} a {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"},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"},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",invalidInputMessageLimit:"El valor ingresado debe ser un mínimo de {minValue} y un máximo de {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"}},Xm=x["document"];function Zm(e,t,i){e=e.slice();return e[101]=t[i],e}function Jm(e,t,i){e=e.slice();return e[104]=t[i],e[106]=i,e}function Km(e,t,i){e=e.slice();return e[104]=t[i],e}function Qm(e,t,i){e=e.slice();return e[109]=t[i],e}function ef(e){let i,n;function r(e){return e[18]?tf:nf}let o=r(e),a=o(e);return{c(){i=di("div"),n=di("div"),a.c(),gi(n,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,n),a.m(n,null)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},d(e){e&&ci(i),a.d()}}}function tf(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=i[22]("popupTitle")+"";function w(e){return e[16]?af:2==e[20]?of:rf}let _=w(i),x=_(i);function C(e){return e[16]?cf:2==e[20]?lf:sf}let P=C(i),T=P(i);function E(e){return 2==e[20]?df:uf}let S=E(i),A=S(i);return{c(){n=di("div"),r=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(),A.c(),g=B(),gi(r,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(n,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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),A.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]),S===(S=E(e))&&A?A.p(e,t):(A.d(1),(A=S(e))&&(A.c(),A.m(g.parentNode,g)))},d(e){e&&ci(n),e&&ci(l),e&&ci(c),x.d(),T.d(),e&&ci(f),A.d(e),e&&ci(g),y=!1,v()}}}function nf(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 rf(e){let i,n,r,o,a,s;return{c(){i=pi("svg"),n=pi("defs"),r=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(r,"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,n),si(n,r),si(r,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function of(e){let i,n,r;return{c(){i=pi("svg"),n=pi("g"),gi(r=pi("path"),"id","XMLID_6_"),gi(r,"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(n,"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,n),si(n,r)},d(e){e&&ci(i)}}}function af(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w;return{c(){i=pi("svg"),n=pi("g"),r=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(r,"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,n),si(n,r),si(n,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 sf(e){let i,n,r=e[22]("popupSuccess")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("popupSuccess")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function lf(e){let i,n,r=e[22]("docsRequired")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("docsRequired")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function cf(e){let i,n,r=e[22]("popupError")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("popupError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function uf(i){let n,r,o,a,s=i[22]("okButton")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","ConfirmButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function df(i){let n,r,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){n=di("button"),r=hi(u),o=mi(),a=di("button"),s=hi(d),gi(n,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,n,t),si(n,r),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(n,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(r,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function pf(i){let n,r,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]=Pf(Km(i,x,e));let P=i[12]&&Tf(i),T=i[13]&&Sf(i),E=i[21]&&Lf(i);return{c(){n=di("div"),r=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(r,"class","LimitsPageContainer"),gi(n,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,n,t),si(n,r),si(r,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(r,a),si(r,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),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 n=Km(t,x,e);C[e]?C[e].p(n,i):(C[e]=Pf(n),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=Sf(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=Lf(t)).c(),E.m(u,null)):E&&(E.d(1),E=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(n),ui(C,e),P&&P.d(),T&&T.d(),E&&E.d(),i[51](null),b=!1,ai(w)}}}function hf(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 mf(e){return{c:se,m:se,p:se,d:se}}function ff(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 gf(e){let i,n,r,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function yf(e){let i,n,r,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function vf(t){let r,o=t[104].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=Cf(Qm(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=B()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[104].currentLimits,e=0;e<o.length;e+=1){var n=Qm(t,o,e);a[e]?a[e].p(n,i):(a[e]=Cf(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function bf(e){let i,n,r,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function wf(e){let i,n,r=e[22]("removedLimitText")+" "+e[109].expiryDate;return{c(){i=di("div"),n=hi(r),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194320&t[0]&&r!==(r=e[22]("removedLimitText")+" "+e[109].expiryDate)&&yi(n,r)},d(e){e&&ci(i)}}}function _f(e){let i,n,r=""+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"),n=hi(r),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194320&t[0]&&r!==(r=""+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(n,r)},d(e){e&&ci(i)}}}function xf(i){let n,r,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[109])}return{c(){n=di("button"),r=hi(s),gi(n,"class","RemoveLimitButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Cf(e){let i,n,r,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)?_f:e[109].isModified?wf:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&xf(e);return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(r,"class","CurrentLimit"),gi(n,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,a),m&&m.m(n,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(n,null))),(d=18&t[0]?!e[109].isModified&&-1<e[1].indexOf(e[104].value):d)?f?f.p(e,t):((f=xf(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function Pf(e){let i,n,r,o,a,s=e[30](e[104])+"";function l(e){return"lugas"===e[104].value?bf:0<e[104].currentLimits.length?vf:"lugas"===e[104].value?yf:gf}let c=l(e),u=c(e);return{c(){i=di("div"),n=di("p"),r=hi(s),o=mi(),u.c(),a=mi(),gi(n,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,n),si(n,r),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[104])+"")&&yi(r,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 n,r,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=Ef(Jm(i,u,e));return{c(){n=di("label"),r=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(r,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&wi(()=>i[47].call(s)),gi(n,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Jm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Ef(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(n),ui(d,e),l=!1,ai(c)}}}function Ef(e){let i,n,r=e[30](e[104])+"";return{c(){i=di("option"),n=hi(r),i.__value=e[106],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t[0]&&r!==(r=e[30](e[104])+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Sf(i){let n,r,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]=Af(Zm(i,u,e));return{c(){n=di("label"),r=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(r,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&wi(()=>i[49].call(s)),gi(n,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Zm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Af(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(n),ui(d,e),l=!1,c()}}}function Af(e){let i,n,r,o=e[22](e[101])+"";return{c(){i=di("option"),n=hi(o),i.__value=r=e[101],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[101])+"")&&yi(n,o),40&t[0]&&r!==(r=e[101])&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Lf(e){let i,n,r=e[22]("invalidInputMessageLimit",{values:{minValue:e[10],maxValue:e[11],currency:e[0]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4197377&t[0]&&r!==(r=e[22]("invalidInputMessageLimit",{values:{minValue:e[10],maxValue:e[11],currency:e[0]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function kf(i){let n,r,o,a,s=i[17]&&ef(i);function l(e){return e[14]&&!e[17]?ff:e[14]?mf:e[15]?hf:pf}let c=l(i),u=c(i);return{c(){n=di("meta"),r=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=se,gi(n,"name","viewport"),gi(n,"content","width=device-width, initial-scale=1")},m(e,t){si(Xm.head,n),li(e,r,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=ef(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(n),e&&ci(r),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function Mf(s,e,l){let c;fe(s,ve,e=>l(22,c=e));let u,a,t,d,F,{lang:p="en"}=e,{currency:h=""}=e,{limits:n=""}=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:z=""}=e,{clientstylingurl:H=""}=e,{translationurl:W=""}=e,j=window.navigator.userAgent,U=!lr(j),w=[],_="",x="",C="",P=0,T="",E="",Y="",S={},G=!1,V=!1,A=!0,L=!1,q=!1,k=!1,M=!1,D="",$=[],i=!1,X={},I={EUR:"€",RON:" lei",USD:"$"};const Z={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},J=(Object.keys(qm).forEach(e=>{Vm(e,qm[e])}),()=>{l(5,_=w[P].value),l(6,x=ce[_].periods[0]),l(13,V=1<ce[_].periods.length)}),K=()=>{C=w[P].product},B=e=>{if(!(300<=e.status))return l(16,q=!1),e.json();{let n;throw l(15,L=!0),e.json().then(e=>{for(const t in Z)for(const i of Z[t])JSON.stringify(e).includes(i)&&(n=t);console.log("errType",n),n||r(e)}).finally(()=>{n&&r(n),l(15,L=!1),l(14,A=!1)}),new Error("An error occured during the fetch request")}},N=()=>{switch(y){case"gmcore":{l(14,A=!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=>B(e)).then(e=>{$=e,k&&r(),Q($),ee($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{l(14,A=!1)})}break;case"gm16":{l(14,A=!0),$=[];let e=new URL(`v1/player/${f}/limits/monetary`,g),t=new URL(`v1/player/${f}/limits/session`,g),i=!1,n={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then(e=>B(e)).then(e=>{$.push(e),k&&r(),"gmcore"===y&&Q($),"gm16"===y&&te($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0}),fetch(t.href,n).then(e=>B(e)).then(e=>{$.push(e),k&&r(),"gm16"===y&&ie($),"gm16"===y&&ne($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0});return}}},Q=o=>{w.forEach(r=>{r.currentLimits=[];var e=Array.isArray(o[ce[r.value].callValue])?o[ce[r.value].callValue]:[o[ce[r.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,n=o[ce[r.value].callValue][t];r.currentLimits.push({}),r.currentLimits[t].limitType=r.value,r.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),r.currentLimits[t].currency=null!=(i=I[n.currency])?i:n.currency,r.currentLimits[t].period=n.period,r.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.updateAmount),r.currentLimits[t].isModified=n.isModified,r.currentLimits[t].expiryDate=new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),r.currentLimits=O(r.currentLimits))})},ee=n=>{const r=c("minutes");w.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=n[ce[i.value].callValue])&&e.forEach((e,t)=>{t=n[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:r,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=O(i.currentLimits)})},te=n=>{var e;null!=(e=n[0])&&e.limits&&w.forEach(e=>{var t;e.currentLimits=[];for(const i of n[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const n=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),currency:null!=(t=I[n.currency])?t:n.currency,isModified:0<n.schedules.length,period:n.period,product:n.products[0],updateAmount:0<n.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.schedules[0].updateAmount):"",expiryDate:0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:n.id})}e.currentLimits=O(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=O(e.currentLimits)})},ne=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=O(e.currentLimits)})},O=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},re=()=>{l(21,i=!1),null!=S&&S[_]?(l(10,T=S[_].min),l(11,E=S[_].max)):(l(10,T=1),l(11,E=9999999))},r=e=>{var t,i;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),L)l(16,q=!0),e&&!e.thirdPartyResponse&&l(19,D=c(""+e)),e&&e.thirdPartyResponse&&l(19,D=e.thirdPartyResponse.message),e&&null!=e&&e.error.includes("Limit update is not permitted due to LimitUpdateControl")&&l(19,D=c("popupUpdateLimitException")),e&&null!=e&&e.error.includes("Limit remove is not permitted due to LimitUpdateControl")&&l(19,D=c("popupRemoveLimitException")),e&&null!=e&&e.error.includes("[NotFoundException] Limit does not exist")&&l(19,D=c("notFoundException")),l(18,M=!0);else switch(y){case"gmcore":"sessionLimit"===_||"cumulativeSession"===_?$&&(t=$[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,D=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)):$&&(t=$[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}",I[t.currency]||t.currency).replace("{selectedPeriod}",c(""+x)),l(19,D=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)),l(18,M=!0);break;case"gm16":if("lugas"===_)2==d&&l(19,D=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(F)+` ${h} `+c("popup2_b")),3==d&&l(19,D=c("popup3")),l(18,M=!0);else if("sessionLimit"===_||"cumulativeSession"===_)l(19,D=c("sessionLimitUpdated")),l(18,M=!0);else{var n,r=(null==(n=$[0])?void 0:n.limits)||$.limits;if($){const n=r.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(n.amount),a=0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";r=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",o).replace("{currency}",I[n.currency]||n.currency).replace("{selectedPeriod}",c(""+x));l(19,D=0<n.schedules.length?c("popupPendingUpdate")+" "+a:r)}l(18,M=!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,k=!0),l(14,A=!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=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!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 n;switch(e.limitType){case"sessionLimit":n=t;break;case"cumulativeSession":n=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}l(17,k=!0),l(14,A=!0);let r={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,r).then(e=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})}:e=>{const t=new URL(`/v1/player/${f}/limits/monetary/${e.id}`,g);l(17,k=!0),l(14,A=!0);let i={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then(e=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})})(e)}var t,i},ae=e=>{return c(e?e.value+e.product:_)},se=()=>{l(18,M=l(17,k=!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,n=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,z=e.clientstyling),"clientstylingurl"in e&&l(44,H=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()}),I=Object.assign(Object.assign({},I),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 n=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:n,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[n].callValue,callValue16:ce[n].callValue16,title:ce[n].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==(r=w[0])?void 0:r.value,w.forEach(e=>{S[e.value]={min:e.min,max:e.max},X[e.value]=e.product}),S&&(S[Y]?(l(10,T=S[Y].min),l(11,E=S[Y].max)):(l(10,T=1),l(11,E=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&&(r=p,ye.set(r)),488&s.$$.dirty[1]&&f&&m&&g&&y&&p&&N(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&H&&u){let e=new URL(H),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var n,r;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&z&&u&&((n=document.createElement("style")).innerHTML=z,u.appendChild(n)),16384&s.$$.dirty[1]&&W&&fetch(W).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vm(e,t[e])})}).catch(e=>{console.log(e)})},[h,o,u,ce,w,_,x,P,a,t,T,E,G,V,A,L,q,k,M,D,d,i,c,U,J,K,()=>{switch(y){case"gmcore":if(0<a){l(17,k=!0),l(14,A=!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=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})}break;case"gm16":"lugas"===_?0<a&&(l(17,k=!0),l(14,A=!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=>B(e)).then(e=>{l(20,d=e.popup),e.operatorDepositLimitAmount,F=e.regulatorDepositLimitAmount,N()}).catch(e=>{console.log(e),l(15,L=!0)})):"sessionLimit"===_?0<a&&(l(17,k=!0),l(14,A=!0),o=new URL(`v1/player/${f}/limits/session/`,g),r={sessionLimit:a,sessionLimitUnit:"minute"},r={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(o.href,r).then(e=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})):"cumulativeSession"===_?0<a&&(l(17,k=!0),l(14,A=!0),r=new URL(`v1/player/${f}/limits/session/`,g),n={cumulativeSessionLimits:[{period:x,minutes:a}]},n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(r.href,n).then(e=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})):a<=0||(l(17,k=!0),l(14,A=!0),n=w[P].currentLimits.filter(e=>e.period===x)[0],e=new URL(`v1/player/${f}/limits/monetary/`+(n?n.id:""),g),t=n?"PUT":"POST",n=n?{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(n)},fetch(e.href,t).then(e=>B(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)}));break;default:throw Error("Invalid apiversion attribute: "+y)}var e,t,n,r,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"))},re,oe,ae,se,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),se()},e=>{13===e.keyCode&&i&&e.preventDefault()},p,n,m,f,g,y,v,b,R,z,H,W,e=>oe(e),function(){P=pe(this),l(7,P)},()=>{K(),J(),re()},function(){x=pe(this),l(6,x),l(3,ce),l(5,_)},function(){a=de(this.value),l(8,a)},function(e){ge[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){ge[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function Df(e,t){a(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-dunkel, #07072A))}input:focus{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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)}@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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Mf,kf,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 $f={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 If(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function Bf(i){let n,r,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]=zf(If(i,f,e));return{c(){n=di("div"),r=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"),k(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),k(p,"hidden",i[5]),gi(r,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(n,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(r,d),si(r,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]&&k(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var n=If(t,f,e);g[e]?g[e].p(n,i):(g[e]=zf(n),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]&&k(p,"hidden",t[5])},d(e){e&&ci(n),ui(g,e),h=!1,m()}}}function Nf(e){return{c:se,m:se,p:se,d:se}}function Of(e){let i,n,r=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){513&t[0]&&r!==(r=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Ff(e){let i,n,r,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"),n=di("span"),r=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(r,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(n,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,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 Rf(e){let i,n,r,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),n=di("span"),r=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(r,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(n,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,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 zf(i){let n,r,o,a=i[38];function s(e){return e[36].removed?Rf:Ff}let l=s(i),c=l(i);const u=()=>i[20](n,a),d=()=>i[20](null,a);return{c(){n=di("div"),c.c(),r=mi(),gi(n,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,n,t),c.m(n,null),si(n,r),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(n,r))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(n,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(n),c.d(),d()}}}function Hf(i){let n;function r(e){return e[6]?Of:e[4]?Nf:Bf}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[21](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[21](null)}}}function Wf(i,e,n){let r;fe(i,ve,e=>n(9,r=e));let o,t=window.navigator.userAgent,a=!lr(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($f).forEach(e=>{Df(e,$f[e])});let E=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&n(7,x=_.slice(0,v))})});return we(()=>()=>{E.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&n(0,s=e.lang),"userid"in e&&n(12,l=e.userid),"session"in e&&n(13,c=e.session),"endpoint"in e&&n(14,u=e.endpoint),"apiversion"in e&&n(15,d=e.apiversion),"numberofentries"in e&&n(1,p=e.numberofentries),"customcurrencysymbols"in e&&n(16,h=e.customcurrencysymbols),"clientstyling"in e&&n(17,m=e.clientstyling),"clientstylingurl"in e&&n(18,f=e.clientstylingurl),"translationurl"in e&&n(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 n(4,w=!1),n(6,b=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!$f[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=r(""+e.limitPeriod.toLowerCase()),t.type=r("historyLimitType"+e.limitType.split(" ")[0])+" "+r("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),n(7,x=_.slice(0,v))),n(4,w=!1)},e=>{console.error("There was an error",e),n(6,b=!0)})),56&i.$$.dirty[0]&&y[0]&&!w&&!C&&E.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,ye.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=>{Df(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,w,C,b,x,P,r,a,()=>{n(5,C=!C),n(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){ge[e?"unshift":"push"](()=>{y[t]=e,n(3,y)})},function(e){ge[e?"unshift":"push"](()=>{o=e,n(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-dunkel, #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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Wf,Hf,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 jf=x["document"];function Uf(e,t,i){e=e.slice();return e[33]=t[i],e[35]=i,e}function Yf(e,t,i){e=e.slice();return e[36]=t[i],e[35]=i,e}function Gf(i){let n,r,o,a,s=1<i[20].length&&function(i){let r,o=i[20],a=[];for(let e=0;e<o.length;e+=1)a[e]=qf(Yf(i,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","TabsContainer")},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null);i[26](r)},p(t,i){if(3211264&i[0]){let e;for(o=t[20],e=0;e<o.length;e+=1){var n=Yf(t,o,e);a[e]?a[e].p(n,i):(a[e]=qf(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e),i[26](null)}}}(i),l=i[20],c=[];for(let e=0;e<l.length;e+=1)c[e]=Xf(Uf(i,l,e));let u="true"===i[6]&&Zf(i);return{c(){s&&s.c(),n=mi(),r=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=B(),gi(r,"class","player-account-gaming-limits-wrapper-2")},m(e,t){s&&s.m(e,t),li(e,n,t),li(e,r,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(r,null);i[27](r),li(e,o,t),u&&u.m(e,t),li(e,a,t)},p(t,i){if(1<t[20].length&&s.p(t,i),794303&i[0]){let e;for(l=t[20],e=0;e<l.length;e+=1){const a=Uf(t,l,e);c[e]?c[e].p(a,i):(c[e]=Xf(a),c[e].c(),c[e].m(r,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Zf(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(n),e&&ci(r),ui(c,e),i[27](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function Vf(e){return{c:se,m:se,p:se,d:se}}function qf(i){let n,r,o,a,s=(i[16][i[35]]??i[36])+"";function l(){return i[25](i[35])}return{c(){n=di("div"),r=hi(s),gi(n,"class","LimitsTab")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[35]]??i[36])+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Xf(e){let i,n,r;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",n=e[18][e[35]]),le(i,"periodsconfig",r=e[19][e[35]]),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]&&n!==(n=e[18][e[35]])&&le(i,"amountsconfig",n),524288&t[0]&&r!==(r=e[19][e[35]])&&le(i,"periodsconfig",r),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 Zf(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 Jf(i){let n,r,o;function a(e){return e[13]?Vf:Gf}let s=a(i),l=s(i);return{c(){n=di("meta"),r=mi(),o=di("div"),l.c(),this.c=se,gi(n,"name","viewport"),gi(n,"content","width=device-width, initial-scale=1")},m(e,t){si(jf.head,n),li(e,r,t),li(e,o,t),l.m(o,null),i[28](o)},p(e,t){s===(s=a(e))&&l?l.p(e,t):(l.d(1),(l=s(e))&&(l.c(),l.m(o,null)))},i:se,o:se,d(e){ci(n),e&&ci(r),e&&ci(o),l.d(),i[28](null)}}}function Kf(i,e,n){let r,o,a,s,l,c,{lang:u=""}=e,{userid:d=""}=e,{session:p=""}=e,{endpoint:h=""}=e,{currency:t=""}=e,{apiversion:m=""}=e,{tablabels:f=""}=e,{historyenabled:g="true"}=e,{deletelimit:y=""}=e,{limitsamount:v=""}=e,{limitsperiods:b=""}=e,{numberofentries:w=""}=e,{customcurrencysymbols:_=""}=e,{clientstyling:x=""}=e,{clientstylingurl:C=""}=e,{translationurl:P=""}=e,T=!0,E=[];const S=t=>{if(0<a.children.length)for(let e=0;e<a.children.length;e++)t===e?(a.children[e].classList.remove("hidden"),null!=s&&s.children[e].classList.add("selected")):(a.children[e].classList.add("hidden"),null!=s&&s.children[e].classList.remove("selected"))};return we(()=>()=>{n(15,a=null),n(17,s=null)}),i.$$set=e=>{"lang"in e&&n(0,u=e.lang),"userid"in e&&n(1,d=e.userid),"session"in e&&n(2,p=e.session),"endpoint"in e&&n(3,h=e.endpoint),"currency"in e&&n(4,t=e.currency),"apiversion"in e&&n(5,m=e.apiversion),"tablabels"in e&&n(22,f=e.tablabels),"historyenabled"in e&&n(6,g=e.historyenabled),"deletelimit"in e&&n(7,y=e.deletelimit),"limitsamount"in e&&n(23,v=e.limitsamount),"limitsperiods"in e&&n(24,b=e.limitsperiods),"numberofentries"in e&&n(8,w=e.numberofentries),"customcurrencysymbols"in e&&n(9,_=e.customcurrencysymbols),"clientstyling"in e&&n(10,x=e.clientstyling),"clientstylingurl"in e&&n(11,C=e.clientstylingurl),"translationurl"in e&&n(12,P=e.translationurl)},i.$$.update=()=>{if(4194351&i.$$.dirty[0]&&d&&p&&h&&f&&u&&m){var e=v,t=b;if(n(18,l=e.replace(/\s/g,"").split("|")),n(19,c=t.replace(/\s/g,"").split("|")),0===l.length)throw new Error("Please provide a full limits configuration.");if(l.length!==c.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");v.split("|").forEach(e=>{E.push(e)}),n(16,o=f.split(",").map(e=>e.trim())),n(13,T=!1)}if(40960&i.$$.dirty[0]&&a&&!T&&S(0),18432&i.$$.dirty[0]&&C&&r){let e=new URL(C),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}17408&i.$$.dirty[0]&&x&&r&&((e=document.createElement("style")).innerHTML=x,r.appendChild(e))},[u,d,p,h,t,m,g,y,w,_,x,C,P,T,r,a,o,s,l,c,E,S,f,v,b,e=>S(e),function(e){ge[e?"unshift":"push"](()=>{s=e,n(17,s)})},function(e){ge[e?"unshift":"push"](()=>{a=e,n(15,a)})},function(e){ge[e?"unshift":"push"](()=>{r=e,n(14,r)})}]}function Qf(e){let i,n,r,o,a,s,l;function c(e){return e[27]&&e[26]===e[33][0]?gg:e[27]&&e[26]===e[33][1]?fg:e[27]&&e[26]===e[33][2]?mg:e[27]&&e[26]===e[33][3]?hg:e[27]&&e[26]===e[33][4]?pg:e[27]&&e[26]==e[33][5]?dg:e[27]&&e[26]===e[33][6]?ug:e[27]&&e[26]===e[33][7]?cg:e[27]&&e[26]===e[33][8]?lg:e[27]&&e[26]===e[33][9]?sg:e[27]&&e[26]===e[33][10]?ag:e[27]&&e[26]===e[33][11]?og:e[27]&&e[26]===e[33][12]?rg:e[27]&&e[26]===e[33][13]?ng:e[27]&&e[26]===e[33][14]?ig:e[27]&&e[26]===e[33][15]?tg:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),n=di("player-account-menu"),r=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),le(n,"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"selecteditem",e[31]),le(n,"userroles",e[9]),le(n,"clientstyling",e[20]),le(n,"clientstylingurl",e[21]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[20]),le(l,"clientstylingurl",e[21])},m(e,t){li(e,i,t),si(i,n),li(e,r,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(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),1&t[1]&&le(n,"selecteditem",e[31]),512&t[0]&&le(n,"userroles",e[9]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21]),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]),1048576&t[0]&&le(l,"clientstyling",e[20]),2097152&t[0]&&le(l,"clientstylingurl",e[21])},d(e){e&&ci(i),e&&ci(r),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function eg(e){let i;function n(e){return e[27]?e[27]&&e[26]===e[33][0]?Dg:e[27]&&e[26]===e[33][1]?Mg:e[27]&&e[26]===e[33][2]?kg:e[27]&&e[26]===e[33][3]?Lg:e[27]&&e[26]===e[33][4]?Ag:e[27]&&e[26]===e[33][5]?Sg:e[27]&&e[26]===e[33][6]?Eg:e[27]&&e[26]===e[33][7]?Tg:e[27]&&e[26]===e[33][8]?Pg:e[27]&&e[26]===e[33][9]?Cg:e[27]&&e[26]===e[33][10]?xg:e[27]&&e[26]===e[33][11]?_g:e[27]&&e[26]===e[33][12]?wg:e[27]&&e[26]===e[33][13]?bg:e[27]&&e[26]===e[33][14]?vg:e[27]&&e[26]===e[33][15]?yg:void 0:$g}let r=n(e),o=r&&r(e);return{c(){o&&o.c(),i=B()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o&&o.d(1),(o=r&&r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function tg(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[19]),le(i,"translationurl",e[22]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),524288&t[0]&&le(i,"apiversion",e[19]),4194304&t[0]&&le(i,"translationurl",e[22]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function ig(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function ng(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function og(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function ag(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function sg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"gmversion",e[24])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),16777216&t[0]&&le(i,"gmversion",e[24])},d(e){e&&ci(i)}}}function lg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function cg(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[29]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),536870912&t[0]&&le(i,"playercurrency",e[29]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function ug(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function dg(i){let n,r,o;return{c(){le(n=di("player-account-gaming-limits"),"playercurrency",i[29]),le(n,"separatelimits",i[7]),le(n,"clientstyling",i[20]),le(n,"clientstylingurl",i[21])},m(e,t){li(e,n,t),r||(o=u(i[34].call(null,n)),r=!0)},p(e,t){536870912&t[0]&&le(n,"playercurrency",e[29]),128&t[0]&&le(n,"separatelimits",e[7]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21])},d(e){e&&ci(n),r=!1,o()}}}function pg(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function hg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function mg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[30]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){1073741824&t[0]&&le(i,"realitycheck",e[30]),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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function fg(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function gg(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[28]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21]),le(i,"custominputtextswitch",e[23])},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]),268435456&t[0]&&le(i,"countrycode",e[28]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),8388608&t[0]&&le(i,"custominputtextswitch",e[23])},d(e){e&&ci(i)}}}function yg(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[19]),le(i,"translationurl",e[22]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),524288&t[0]&&le(i,"apiversion",e[19]),4194304&t[0]&&le(i,"translationurl",e[22]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function vg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function bg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function wg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function _g(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function xg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},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[20]),le(i,"clientstylingurl",e[21]),le(i,"gmversion",e[24])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),16777216&t[0]&&le(i,"gmversion",e[24])},d(e){e&&ci(i)}}}function Pg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Tg(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[29]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),536870912&t[0]&&le(i,"playercurrency",e[29]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Eg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Sg(i){let n,r,o;return{c(){le(n=di("player-account-gaming-limits"),"playercurrency",i[29]),le(n,"separatelimits",i[7]),le(n,"clientstyling",i[20]),le(n,"clientstylingurl",i[21])},m(e,t){li(e,n,t),r||(o=u(i[34].call(null,n)),r=!0)},p(e,t){536870912&t[0]&&le(n,"playercurrency",e[29]),128&t[0]&&le(n,"separatelimits",e[7]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21])},d(e){e&&ci(n),r=!1,o()}}}function Ag(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Lg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function kg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[30]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){1073741824&t[0]&&le(i,"realitycheck",e[30]),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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Dg(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[28]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21]),le(i,"custominputtextswitch",e[23])},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]),268435456&t[0]&&le(i,"countrycode",e[28]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),8388608&t[0]&&le(i,"custominputtextswitch",e[23])},d(e){e&&ci(i)}}}function $g(e){let i,n,r,o;return{c(){i=di("nav"),n=di("player-account-menu"),r=mi(),o=di("player-account-notifications"),le(n,"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"userroles",e[9]),le(n,"clientstyling",e[20]),le(n,"clientstylingurl",e[21]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[20]),le(o,"clientstylingurl",e[21]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,n),si(i,r),si(i,o)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),512&t[0]&&le(n,"userroles",e[9]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21]),1&t[0]&&le(o,"customnotif",e[0]),1048576&t[0]&&le(o,"clientstyling",e[20]),2097152&t[0]&&le(o,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Ig(i){let n,r=function(e){let i,t=e[32]?eg:Qf,n=t(e);return{c(){i=di("section"),n.c(),gi(i,"class","PlayerAccountPage "+(e[32]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),n.m(i,null)},p(e,t){n.p(e,t)},d(e){e&&ci(i),n.d()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[45](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[45](null)}}}function Bg(t,e,o){let a;fe(t,ve,e=>o(57,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:n=""}=e,{limitspath:r=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:O=""}=e,{realm:F=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:z="true"}=e,{hasdefaultamount:H="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:X=""}=e,{currency:Z=""}=e,{apiversion:J=""}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{custominputtextswitch:K="false"}=e,{gmversion:Q=""}=e;var ee,te;({withLocale:ee,translations:te}={withLocale:"en",translations:{}}),ye.subscribe(e=>{null==e&&(Mn.set(te),ye.set(ee))});let v,b,w,_,ie,x,ne=window.navigator.userAgent,re="PC"!==be(ne),oe=[],ae=[],C="",P="",T="",se="",E=null,S="",A={},L=!1,k=!1,le="",M="",ce=!1,D=!1;Object.keys(ur).forEach(e=>{cr(e,ur[e])});const ue=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(27,D=!0),o(26,T=i.data.page.path),o(31,x=i.data.page.id),"/profile-info"==T&&($(),I()),"/deposit"==T&&"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==T&&"function"==typeof gtag&>ag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(27,D=!0),o(26,T=i.data.pagePath),"/profile-info"==T&&($(),I());var n=new URL(`${s}/${p}/profile-menu?env=`+l);n.searchParams.append("device",S),de(n).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(31,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(27,D=!1),me());break;case"UpdatePlayerInfo":n=i.data.provisionalArray,n={mobile:{prefix:n.mobilePrefix,number:n.mobileNumber},address1:n.address,city:n.city,postalCode:n.postalCode,securityQuestion:n.securityQuestion,securityAnswer:n.securityAnswer},n=(t=new URL(`${d}/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)});fetch(t.href,n).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`);n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,n).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`),n={currentPassword:e,newPassword:t},r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},o=await fetch(i.href,r);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();M=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),ce=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:ce,errorPasswordChanged:M},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:M}},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);n={coolOff:{period:i.data.timeoutSelected}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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);n={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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);n={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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,he();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));n=i.data.payload,n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).then(e=>{200==e.status&&(L=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsUpdateSuccess")}},window.location.href),B(new URL(`v2/player/${C}/limits`,d.slice(0,-2))))});break;case"PlayerAccountGamingLimitDelete":var n=i.data.limit||{},r=Array.isArray(n)?n.map(e=>e.period):n.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"}n={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(n)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(r)?r.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",r),fetch(t.href,n).then(e=>{200==e.status&&(k=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{B(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":B(new URL(`v2/player/${C}/limits`,d.slice(0,-2)));break;case"SubmittedRealityCheck":{r=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/player/${C}/realitycheck`),t=(r&&(le=r),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(le,10)}});fetch(e.href,t).then(e=>{200==e.status&&(pe(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 de(e){return e.searchParams.append("device",S),(await fetch(e.href)).json()}const $=()=>{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(28,se=e.country),o(29,E=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},I=()=>{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)})},pe=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(30,ie=e.UserRealityCheckValue)},e=>{console.error(e)})},B=e=>{!0===L?setTimeout(()=>{L=!1},3e3):!0===k&&setTimeout(()=>{k=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{A=e,0!==Object.keys(A).length?(o(41,v=null!=(e=A.depositLimits)?e:[]),o(42,b=null!=(e=A.wageringLimits)?e:[]),o(43,w=null!=(e=A.lossLimits)?e:[]),A.hasOwnProperty("cumulativeSessionLimits")?(o(44,_=A.timeLimit),o(44,_=A.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(44,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:E,depositlimit:v,wageringlimit:b,losslimit:w,timelimit:_,showsuccessnotification:L,showdeletenotification:k,lang:p}},window.location.href)):(o(41,v=[]),o(42,b=[]),o(43,w=[]),o(44,_=[])),_e()},e=>{console.error(e)})},he=()=>{var e;de(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{oe=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:oe},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",S),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ae=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ae},window.location.href))},e=>{console.error(e)}),$(),I(),pe(new URL(`${d}/player/${c}/realitycheck`))},me=()=>{var e;(e=be(ne))&&(S="PC"===e?"dk":"mtWeb"),C=c,P=u,re||o(27,D=!0),he()};return we(()=>(window.addEventListener("message",ue,!1),()=>{window.removeEventListener("message",ue)})),t.$$set=e=>{"cmsendpoint"in e&&o(35,s=e.cmsendpoint),"env"in e&&o(36,l=e.env),"customnotifications"in e&&o(0,n=e.customnotifications),"limitspath"in e&&o(37,r=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(38,O=e.operatorid),"realm"in e&&o(39,F=e.realm),"webapiendpoint"in e&&o(40,R=e.webapiendpoint),"separatelimits"in e&&o(7,z=e.separatelimits),"hasdefaultamount"in e&&o(8,H=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,X=e.customcurrencysymbols),"currency"in e&&o(18,Z=e.currency),"apiversion"in e&&o(19,J=e.apiversion),"clientstyling"in e&&o(20,f=e.clientstyling),"clientstylingurl"in e&&o(21,g=e.clientstylingurl),"translationurl"in e&&o(22,y=e.translationurl),"custominputtextswitch"in e&&o(23,K=e.custominputtextswitch),"gmversion"in e&&o(24,Q=e.gmversion)},t.$$.update=()=>{if(201326608&t.$$.dirty[0]&&p&&D&&T&&(e=p,ye.set(e)),543&t.$$.dirty[0]|48&t.$$.dirty[1]&&s&&d&&n&&c&&u&&p&&l&&m&&me(),t.$$.dirty[1],34603008&t.$$.dirty[0]&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),35651584&t.$$.dirty[0]&&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;4194304&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{cr(e,t[e])})}).catch(e=>{console.log(e)})},[n,c,u,d,p,h,N,z,H,m,W,j,U,Y,G,V,q,X,Z,J,f,g,y,K,Q,i,T,D,se,E,void 0,x,re,["/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"],e=>{B(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,r,O,F,R,v,b,w,_,function(e){ge[e?"unshift":"push"](()=>{i=e,o(25,i)})}]}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}.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}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));margin:0}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Kf,Jf,i,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:22,historyenabled:6,deletelimit:7,limitsamount:23,limitsperiods:24,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[22]}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[23]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[24]}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()}});class Ng 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-dunkel, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Bg,Ig,i,{cmsendpoint:35,env:36,customnotifications:0,limitspath:37,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:38,realm:39,webapiendpoint:40,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,apiversion:19,clientstyling:20,clientstylingurl:21,translationurl:22,custominputtextswitch:23,gmversion:24},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","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion"]}get cmsendpoint(){return this.$$.ctx[35]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[36]}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[37]}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[38]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[39]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[40]}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 apiversion(){return this.$$.ctx[19]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[23]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[24]}set gmversion(e){this.$$set({gmversion:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",Ng),Ng});
|
|
1690
|
+
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),gc(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function ju(e){let i,n,r,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),n=di("strong"),r=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Uu(e){let i,n,r,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),n=di("strong"),r=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Yu(i){let n,r,F,o,a,R,s,l,c,z,u,d,H,p,h,W,j,U,m,Y,G,f,V,g,q,y,v,X,Z,b,J,w,_,K,Q,x,ee,C,te,P,ie,T,E,ne,re,oe,S=i[8]("title")+"",A=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",L=i[8]("selfExclusionText2")+"",M=i[8]("selfExclusionText3")+"",D=i[8]("selfExclusionText4")+"",k=i[8]("duration")+"",$=i[8]("forever")+"",B=i[8]("save")+"",I=i[9]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function ae(e){return e[4]?Uu:ju}let N=ae(i),O=N(i);return{c(){n=di("div"),r=di("form"),I&&I.c(),F=mi(),o=di("h2"),a=hi(S),R=mi(),s=di("div"),l=di("p"),c=hi(A),z=mi(),u=di("p"),d=hi(L),H=mi(),p=di("p"),h=hi(M),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"),X=hi(k),Z=mi(),b=di("vaadin-date-picker"),J=mi(),w=di("div"),_=di("label"),K=hi($),Q=mi(),x=di("input"),ee=mi(),C=di("span"),te=mi(),P=di("div"),O.c(),ie=mi(),T=di("div"),E=di("button"),ne=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(E,"class","SelfExclusionSave"),gi(T,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(r,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),I&&I.m(r,null),si(r,F),si(r,o),si(o,a),si(r,R),si(r,s),si(s,l),si(l,c),si(s,z),si(s,u),si(u,d),si(s,H),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(r,q),si(r,y),si(y,v),si(v,X),si(y,Z),si(y,b),i[18](b),si(r,J),si(r,w),si(w,_),si(_,K),si(_,Q),si(_,x),si(_,ee),si(_,C),si(r,te),si(r,P),O.m(P,null),si(r,ie),si(r,T),si(T,E),si(E,ne),i[21](n),re||(oe=[fi(x,"click",i[19]),fi(E,"click",i[20])],re=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&S!==(S=e[8]("title")+"")&&yi(a,S),257&t[0]&&A!==(A=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,A),256&t[0]&&L!==(L=e[8]("selfExclusionText2")+"")&&yi(d,L),256&t[0]&&M!==(M=e[8]("selfExclusionText3")+"")&&yi(h,M),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]&&k!==(k=e[8]("duration")+"")&&yi(X,k),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]&&$!==($=e[8]("forever")+"")&&yi(K,$),N===(N=ae(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(P,null))),256&t[0]&&B!==(B=e[8]("save")+"")&&yi(ne,B)},i:se,o:se,d(e){e&&ci(n),I&&I.d(),i[18](null),O.d(),i[21](null),re=!1,ai(oe)}}}function Gu(t,e,i){let n;fe(t,ve,e=>i(8,n=e));let r,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"!==be(m),g=!1,y="",v="",b=new Date;Object.keys(Or).forEach(e=>{Nr(e,Or[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)};we(()=>()=>{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,ye.set(e)),32772&t.$$.dirty[0]&&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;16388&t.$$.dirty[0]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Nr(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,r,o,g,v,a,s,n,f,w,x,C,l,d,p,h,()=>C(),function(e){ge[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>w(),e=>x(e),function(e){ge[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Vu(e,t){k(e,t)}customElements.define(Wu.is,Wu),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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gu,Yu,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 qu={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 n,r,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(){n=di("div"),r=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(r,"class","ModalContent"),gi(n,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),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),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(n),f=!1,ai(g)}}}function Zu(i){let n,r,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 n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),C=i[1]&&Xu(i);return{c(){n=di("div"),r=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(r,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),x&&x.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(r,p),si(r,h),si(h,m),si(m,f),si(n,g),C&&C.m(n,null),i[15](n),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(n,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&ci(n),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Ju(t,e,i){let n;fe(t,ve,e=>i(2,n=e));let r,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==be(c),d=!1;Object.keys(qu).forEach(e=>{Vu(e,qu[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,ye.set(e)),257&t.$$.dirty&&a&&r&&((e=document.createElement("style")).innerHTML=a,r.appendChild(e)),513&t.$$.dirty&&s&&r){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vu(e,t[e])})}).catch(e=>{console.log(e)})},[r,d,n,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Ku(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ju,Zu,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 Qu={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 ed(e,t){k(e,t)}const td={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 id(e,t){k(e,t)}const nd={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 rd(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?ad:od}let b=v(i),w=b(i);return{c(){n=di("section"),r=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(r,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(n,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(r,p),si(r,h),w.m(h,null),i[12](n),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(r,"class",m)},d(e){e&&ci(n),w.d(),i[12](null),f=!1,g()}}}function od(e){let i,n,r=e[4]("defaultText")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ad(e){let i,n,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,n)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function sd(e){let i,n=e[3]&&rd(e);return{c(){n&&n.c(),i=I(),this.c=se},m(e,t){n&&n.m(e,t),li(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=rd(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:se,o:se,d(e){n&&n.d(e),e&&ci(i)}}}function ld(t,e,i){let n,{showpopup:r=""}=(fe(t,ve,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(nd).forEach(e=>{id(e,nd[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==be(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return we(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,r=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&&r&&a&&(e=a,ye.set(e),o<0&&i(0,o="0"),i(3,p=r)),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=>{id(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,n,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,c,u,function(e){ge[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function cd(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ld,sd,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 ud={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 dd(e,{delay:t=0,duration:i=400,easing:n=w}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function pd(i){let n,r,t,o;return{c(){n=di("div"),(r=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(r,"class","ModalWindow"),gi(r,"id","Modal")},m(e,t){li(e,n,t),si(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(wi(()=>{o&&(t=t||te(r,dd,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||te(r,dd,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function hd(e){let i,n,r=e[0]&&pd(e);return{c(){r&&r.c(),i=I(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&K(r,1)):((r=pd(e)).c(),K(r,1),r.m(i.parentNode,i)):r&&(Z(),Q(r,1,1,()=>{r=null}),J())},i(e){n||(K(r),n=!0)},o(e){Q(r),n=!1},d(e){r&&r.d(e),e&&ci(i)}}}function md(t,e,i){let n,r,{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 we(()=>(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&&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;20&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e))},[o,a,n,void 0,s,l,function(e){ge[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){ge[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function fd(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},md,hd,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 gd={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 yd(i){let n,r,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 n,r,o;return{c(){(n=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(n,"class","ModalCloseBtn"),gi(n,"role","button")},m(e,t){li(e,n,t),r||(o=fi(n,"click",i[4]),r=!0)},p:se,d(e){e&&ci(n),r=!1,o()}}}(i);return{c(){n=di("div"),b&&b.c(),r=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(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,n,t),b&&b.m(n,null),si(n,r),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),i[12](n),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(n),b&&b.d(),i[12](null),f=!1,ai(g)}}}function vd(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(fe(t,ve,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(gd).forEach(e=>{fd(e,gd[e])}),window.navigator.userAgent),p="PC"!==be(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 we(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,r=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&&r&&o&&a&&(e=a,ye.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=>{fd(e,t[e])})}).catch(e=>{console.log(e)})},[r,u,n,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){ge[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function bd(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function wd(e,t,i){e=e.slice();return e[59]=t[i],e}function _d(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function xd(e){let i,n,r,o=e[18]("success")+"";return{c(){i=di("div"),n=di("p"),r=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function Cd(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Td(_d(t,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=_d(t,o,e);a[e]?a[e].p(n,i):(a[e]=Td(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e)}}}function Pd(e){let i,n,r,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"),n=hi(a),r=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,n),si(i,r),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(n,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 Td(e){let i,n=e[56].period==e[17][e[58]].period&&Pd(e);return{c(){n&&n.c(),i=I()},m(e,t){n&&n.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=Pd(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&ci(i)}}}function Ed(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Nd(bd(t,o,e));return{c(){i=di("div"),r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=bd(t,o,e);a[e]?a[e].p(n,i):(a[e]=Nd(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function Sd(i){let n,r,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]=Ld(wd(i,m,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&Md(i),v=!0===i[56].isModified&&Id(i);return{c(){n=di("select"),r=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(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,gi(n,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&wi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,n,t),si(n,r),si(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(n,null);bi(n,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(n,"change",g),fi(n,"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=wd(i,m,e);f[e]?f[e].p(o,t):(f[e]=Ld(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&bi(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=Md(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Id(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(n),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 Ad(e){let i,n=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(n)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&n!==(n=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,n)},d(e){e&&ci(i)}}}function Ld(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Ad(e);return{c(){i=di("option"),n=hi(s),r=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,n),si(i,r),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Ad(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 Md(e){let i;function n(e){return"Time Limit"!==e[6]?kd:Dd}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Dd(i){let n,r,o,a,s,l;function c(){i[31].call(n,i[58])}let u=1==i[13][i[58]]&&$d(i);return{c(){n=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(n,"type","number"),gi(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,n,t),vi(n,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(n,"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(n,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&de(n.value)!==i[17][i[58]].value&&vi(n,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=$d(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function kd(i){let n,r,o,a,s,l;function c(){i[30].call(n,i[58])}let u=1==i[13][i[58]]&&Bd(i);return{c(){n=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(n,"type","number"),gi(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,n,t),vi(n,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(n,"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(n,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&de(n.value)!==i[17][i[58]].value&&vi(n,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=Bd(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function $d(e){let i,n,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Bd(e){let i,n,r=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Id(e){let i,n,r,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"),n=hi(b),r=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,n),si(i,r),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(n,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 Nd(e){let i,n,r,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&&Sd(e);return{c(){i=di("div"),n=di("p"),r=hi(s),o=mi(),l&&l.c(),a=mi(),gi(n,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=Sd(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function Od(i){let n,F,r,o,a,s,R,l,c,u,z,d,p,H,h,m,f,W,g,y,j,v,U,b,w,_,x,C,P,T,E,S,A,L,M,Y,D=i[18]("back")+"",k=(i[1]?i[9]:"")+"",$=i[18]("save")+"",B=i[19]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),I=i[2]&&xd(i),N=i[3]&&Cd(i),O=i[8]&&Ed(i);return{c(){n=di("div"),B&&B.c(),F=mi(),r=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"),z=mi(),d=di("h2"),p=hi(D),H=mi(),h=di("div"),m=di("h6"),f=hi(k),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(),O&&O.c(),_=mi(),x=di("div"),C=di("button"),P=hi($),S=mi(),A=di("player-account-modal"),L=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(r,"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(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),le(L,"modaltext",i[12]),le(L,"modalsource","groupEdit"),le(L,"lang",i[0])},m(e,t){li(e,n,t),B&&B.m(n,null),si(n,F),si(n,r),si(r,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(r,z),si(r,d),si(d,p),si(n,H),si(n,h),si(h,m),si(m,f),si(h,W),si(h,g),si(g,y),si(g,j),si(g,v),si(n,U),I&&I.m(n,null),si(n,b),N&&N.m(n,null),si(n,w),O&&O.m(n,null),si(n,_),si(n,x),si(x,C),si(C,P),i[33](n),li(e,S,t),li(e,A,t),si(A,L),M||(Y=[fi(r,"click",i[22]),fi(y,"click",G(i[21])),fi(C,"click",i[32])],M=!0)},p(e,t){e[19]&&B.p(e,t),262144&t[0]&&D!==(D=e[18]("back")+"")&&yi(p,D),514&t[0]&&k!==(k=(e[1]?e[9]:"")+"")&&yi(f,k),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=xd(e)).c(),I.m(n,b)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=Cd(e)).c(),N.m(n,w)):N&&(N.d(1),N=null),e[8]?O?O.p(e,t):((O=Ed(e)).c(),O.m(n,_)):O&&(O.d(1),O=null),262144&t[0]&&$!==($=e[18]("save")+"")&&yi(P,$),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(L,"modaltext",e[12]),1&t[0]&&le(L,"lang",e[0])},i:se,o:se,d(e){e&&ci(n),B&&B.d(),I&&I.d(),N&&N.d(),O&&O.d(),i[33](null),e&&ci(S),e&&ci(A),M=!1,ai(Y)}}}function Fd(t,e,o){let i,{limitsdata:n=[]}=(fe(t,ve,e=>o(18,i=e)),e),{showsuccessnotification:r=!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(ud).forEach(e=>{cd(e,ud[e])}),!1),g=!1,y="",v=!1,b=0,w=0,_="",N=window.navigator.userAgent,O="PC"!==be(N),x=new Array(3).fill(0),C={},P=[],T=[],E=!1,S=[];const A={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let L=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],M=[{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"]}],F=[{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 k=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),$=new Map([["Deposit Limit",M],["Time Limit",R],["Wagering Limit",D],["Loss Limit",F]]),z=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},B=(i,e)=>{let n=JSON.parse(JSON.stringify(e));L.forEach(t=>{n.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)})})},H=()=>{S.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(n=>{T.forEach(e=>{var t,i;n.period===e.period&&(e=e,t=n,i=L,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;ye.set(e),W(),o(16,S=JSON.parse(JSON.stringify(n))),o(14,C=JSON.parse(JSON.stringify(n))),T="Wagering Limit"===h?D:"Loss Limit"===h?F:"Deposit Limit"===h?M:"Time Limit"===h?R:[],H()},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?L.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)})}):L.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?{[k.get(h)]:[...P]}:{[k.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:k.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 we(()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=e=>{"limitsdata"in e&&o(1,n=e.limitsdata),"showsuccessnotification"in e&&o(2,r=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]&&r&&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=>{cd(e,t[e])})}).catch(e=>{console.log(e)})},[l,n,r,a,s,m,h,f,g,y,b,w,_,x,C,E,S,L,i,O,$,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},z,(e,t,i,n)=>{var r;"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&&A.time.test(e.value)&&e.value>b&&e.value<=w?(o(13,x[t]=0,x),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,E=!1),B(e,n)):o(15,E=!0)):(o(13,x[t]=1,x),o(15,E=!1))):e.value&&A.amount.test(e.value)?(o(13,x[t]=0,x),e.period==n[t].period&&e.value==n[t].amount?(o(15,E=!!E),B(e,n)):o(15,E=!0),"true"!=c&&L.forEach(e=>{0==e.value&&o(15,E=!1)})):(o(13,x[t]=1,x),o(15,E=!1)):(e.period==n[t].period?(B(e,n),o(15,E=e.value!=n[t].amount)):o(15,E=!0),L.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!A.amount.test(e.value.toString()))&&o(15,E=!1)}))},c,u,d,p,function(e){L[e].amount=pe(this),o(17,L),o(20,$),o(6,h)},function(e){L[e].value=de(this.value),o(17,L),o(20,$),o(6,h)},function(e){L[e].value=de(this.value),o(17,L),o(20,$),o(6,h)},()=>z(),function(e){ge[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Rd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function zd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Hd(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",S=i[15]("edit")+"";function A(e){return"Time Limit"===e[1]?Ud:jd}let L=A(i),M=L(i),D=!i[9]&&!i[0].isModified&&i[14]&&op(i),k=i[11]&&ap(i);return{c(){n=di("div"),r=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"),M.c(),v=mi(),b=di("div"),w=di("button"),_=hi(S),x=mi(),D&&D.c(),C=mi(),k&&k.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(r,"class","InfoCardWrapper"),gi(n,"class","InfoCardSection")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(r,m),si(r,f),si(f,g),si(g,y),M.m(y,null),si(f,v),si(f,b),si(b,w),si(w,_),si(b,x),D&&D.m(b,null),si(n,C),k&&k.m(n,null),P||(T=[fi(u,"click",G(i[23])),fi(w,"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]),L===(L=A(e))&&M?M.p(e,t):(M.d(1),(M=L(e))&&(M.c(),M.m(y,null))),32768&t[0]&&S!==(S=e[15]("edit")+"")&&yi(_,S),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=op(e)).c(),D.m(b,null)),e[11]?k?k.p(e,t):((k=ap(e)).c(),k.m(n,null)):k&&(k.d(1),k=null)},d(e){e&&ci(n),M.d(),D&&D.d(),k&&k.d(),P=!1,ai(T)}}}function Wd(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 jd(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zd(Rd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Rd(t,o,e);a[e]?a[e].p(n,i):(a[e]=Zd(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function Ud(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=rp(zd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=zd(t,o,e);a[e]?a[e].p(n,i):(a[e]=rp(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function Yd(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Gd(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=di("div"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Vd(e){let i,n,r=(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"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(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(n,r)},d(e){e&&ci(i)}}}function qd(i){let n,r,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){n=di("div"),(r=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(r,"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(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,n,t),si(n,r),si(n,o),si(n,a),c||(u=fi(r,"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(n),c=!1,u()}}}function Xd(i){let n,r,o;return{c(){(n=di("div")).innerHTML="<span></span>",gi(n,"class","InfoCardRemoveIcon")},m(e,t){li(e,n,t),r||(o=fi(n,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&ci(n),r=!1,o()}}}function Zd(e){let i,n,r,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=_&&Yd(e);function P(e){return e[41].expiryDate?Vd:Gd}let T=P(e),E=T(e);function S(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?qd:void 0}let A=S(e,[-1,-1]),L=A&&A(e);return{c(){i=di("div"),n=di("div"),r=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(),E.c(),g=mi(),L&&L.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(r,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(n,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(l,u),C&&C.m(l,null),si(n,d),si(n,p),si(p,h),si(h,m),si(p,f),E.m(p,null),si(i,g),L&&L.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=Yd(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))),A===(A=S(e,t))&&L?L.p(e,t):(L&&L.d(1),(L=A&&A(e))&&(L.c(),L.m(i,v)))},d(e){e&&ci(i),C&&C.d(),E.d(),L&&L.d()}}}function Jd(e){let i,n,r=e[15]("noLimit")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Kd(e){let i,n,r,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&&Qd(e);return{c(){i=hi(o),n=mi(),s&&s.c(),r=I()},m(e,t){li(e,i,t),li(e,n,t),s&&s.m(e,t),li(e,r,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=Qd(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(n),s&&s.d(e),e&&ci(r)}}}function Qd(e){let i,n,r=e[15]("minutes")+"";return{c(){i=di("span"),n=hi(r),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ep(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=di("div"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function tp(e){let i,n,r=(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"),n=hi(r),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,n)},p(e,t){1&t[0]&&r!==(r=(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(n,r)},d(e){e&&ci(i)}}}function ip(i){let n,r,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){n=di("div"),(r=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(r,"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(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,n,t),si(n,r),si(n,o),si(n,a),u||(d=fi(r,"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(n),u=!1,d()}}}function np(i){let n,r,o;return{c(){(n=di("div")).innerHTML="<span></span>",gi(n,"class","InfoCardRemoveIcon")},m(e,t){li(e,n,t),r||(o=fi(n,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&ci(n),r=!1,o()}}}function rp(e){let i,n,r,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?Kd:Jd}let w=b(e),_=w(e);function x(e){return e[41].expiryDate?tp:ep}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)?np:"No limit"!=e[41].amount&&e[41].isModified?ip:void 0}let E=T(e,[-1,-1]),S=E&&E(e);return{c(){i=di("div"),n=di("div"),r=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(),S&&S.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(r,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(n,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(o,a),si(r,s),si(r,l),_.m(l,null),si(n,c),si(n,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),S&&S.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))),E===(E=T(e,t))&&S?S.p(e,t):(S&&S.d(1),(S=E&&E(e))&&(S.c(),S.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),S&&S.d()}}}function op(i){let n,r,o,a,s=i[15]("removeLimits")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","InfoCardRemoveButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function ap(e){let i,n,r;return{c(){i=di("player-account-modal"),le(n=di("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),le(n,"modalsource","infoCard"),le(n,"lang",e[3]),le(n,"clientstyling",e[4]),le(n,"clientstylingurl",e[5]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&le(n,"modaltext",r),8&t[0]&&le(n,"lang",e[3]),16&t[0]&&le(n,"clientstyling",e[4]),32&t[0]&&le(n,"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 sp(i){let n;function r(e){return e[7]?Wd:Hd}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[28](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[28](null)}}}function lp(n,e,r){let o,{limitsdata:a=[]}=(fe(n,ve,e=>r(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(td).forEach(e=>{ed(e,td[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"!==be(v),w="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},T=e=>{r(11,y=!0),r(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(()=>{r(8,i[e]=!0,i)},50)},S=(e,t,i,n)=>{e.splice(t,0,"time"===n?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},A=(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,L=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":r(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return we(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)})),n.$$set=e=>{"limitsdata"in e&&r(0,a=e.limitsdata),"limitname"in e&&r(1,s=e.limitname),"playercurrency"in e&&r(2,t=e.playercurrency),"lang"in e&&r(3,l=e.lang),"clientstyling"in e&&r(4,c=e.clientstyling),"clientstylingurl"in e&&r(5,u=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},n.$$.update=()=>{if(11&n.$$.dirty[0]&&a&&s&&l){var e=l;ye.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,w=o("removeLimitsText",{values:{limit:e}})),r(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(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&&r(9,f=!1)}),r(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?S(i,t.indexOf(e),e,"time"):S(i,t.indexOf(e),e,"currency")})}a.sort(A)}if(80&n.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&n.$$.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&n.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ed(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)=>{r(11,y=!0),r(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){ge[e?"unshift":"push"](()=>{p=e,r(6,p)})}]}function cp(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 up(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),n=mi(),r=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(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",hp),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",mp),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",fp),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",gp),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,n),si(i,r),si(r,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 dp(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 pp(i){let n;function r(e){return e[12]?dp:e[15]?up:cp}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[22](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},vd,yd,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Fd,Od,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},lp,sp,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 hp="Deposit Limit",mp="Wagering Limit",fp="Loss Limit",gp="Time Limit";function yp(t,e,i){let n,r=(fe(t,ve,e=>i(16,n=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(Qu).forEach(e=>{Ku(e,Qu[e])});let y,v=!0,b=window.navigator.userAgent,w="PC"!==be(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,r=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 we(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"depositlimit"in e&&i(1,r=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,ye.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=>{Ku(e,t[e])})}).catch(e=>{console.log(e)})},[u,r,o,a,s,d,l,c,p,h,m,g,v,y,_,x,n,w,C,P,f,()=>P(),function(e){ge[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function vp(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},yp,pp,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 bp={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 wp(e,t){k(e,t)}const _p={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 xp(e){let i,n,r,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Cp(e){let i,n,r,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Pp(e){let i,n,r,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),n=di("p"),r=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(n,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),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(r,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function Tp(i){let n,r,o,a,s=i[9]("forfeitBonus")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Ep(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,F,x,C,P,R,T,E,z,S,A,H,L=i[9]("date")+"",M=W(i[0]).format("DD/MM/YYYY h:mm A")+"",D=i[9](""+i[1])+"",k=i[9]("bonusName")+"",$=i[9]("bonusType")+"",B=i[3]&&xp(i),I=i[4]&&Cp(i),N=i[5]&&Pp(i),O="active"===i[1]&&Tp(i);return{c(){n=di("div"),r=di("div"),o=di("div"),a=di("p"),s=hi(L),l=mi(),c=di("span"),u=hi(M),d=mi(),p=di("p"),h=hi(D),f=mi(),g=di("div"),y=di("p"),v=hi(k),b=mi(),w=di("p"),_=hi(i[2]),F=mi(),x=di("div"),C=di("p"),P=hi($),R=mi(),T=di("p"),E=hi(i[8]),z=mi(),B&&B.c(),S=mi(),I&&I.c(),A=mi(),N&&N.c(),H=mi(),O&&O.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(r,"class","BonusCardInfo"),gi(n,"class","BonusCard")},m(e,t){li(e,n,t),si(n,r),si(r,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(r,f),si(r,g),si(g,y),si(y,v),si(g,b),si(g,w),si(w,_),si(r,F),si(r,x),si(x,C),si(C,P),si(x,R),si(x,T),si(T,E),si(r,z),B&&B.m(r,null),si(r,S),I&&I.m(r,null),si(r,A),N&&N.m(r,null),si(n,H),O&&O.m(n,null),i[18](n)},p(e,[t]){512&t&&L!==(L=e[9]("date")+"")&&yi(s,L),1&t&&M!==(M=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,M),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&&k!==(k=e[9]("bonusName")+"")&&yi(v,k),4&t&&yi(_,e[2]),512&t&&$!==($=e[9]("bonusType")+"")&&yi(P,$),256&t&&yi(E,e[8]),e[3]?B?B.p(e,t):((B=xp(e)).c(),B.m(r,S)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=Cp(e)).c(),I.m(r,A)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=Pp(e)).c(),N.m(r,null)):N&&(N.d(1),N=null),"active"===e[1]?O?O.p(e,t):((O=Tp(e)).c(),O.m(n,null)):O&&(O.d(1),O=null)},i:se,o:se,d(e){e&&ci(n),B&&B.d(),I&&I.d(),N&&N.d(),O&&O.d(),i[18](null)}}}function Sp(t,e,i){let n;fe(t,ve,e=>i(9,n=e));let r,{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"!==be(v),w="";Object.keys(_p).forEach(e=>{wp(e,_p[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,ye.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&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&r&&((e=document.createElement("style")).innerHTML=f,r.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wp(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,r,w,n,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){ge[e?"unshift":"push"](()=>{r=e,i(7,r)})}]}function Ap(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function Lp(e,t,i){e=e.slice();return e[46]=t[i],e}function Mp(e){let i,n,r=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("invalidBonusCode")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Dp(t){let r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ip(Lp(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var n=Lp(t,o,e);a[e]?a[e].p(n,i):(a[e]=Ip(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function kp(e){let i,n,r=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noActiveBonuses")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function $p(e){let i,n,r,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[46].walletId),le(i,"bonusdate",r=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].grantedAmount),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]&&n!==(n=e[46].walletId)&&le(i,"bonuswalletid",n),4096&t[0]&&r!==(r=e[46].granted)&&le(i,"bonusdate",r),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].grantedAmount)&&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 Bp(e){let i,n,r,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[46].walletId),le(i,"bonusdate",r=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]&&n!==(n=e[46].walletId)&&le(i,"bonuswalletid",n),4096&t[0]&&r!==(r=e[46].granted)&&le(i,"bonusdate",r),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 Ip(e){let i;function n(e){return"freeRound"===e[46].type?Bp:$p}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Np(i){let n,r,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]=Op(Ap(i,_,e));return{c(){n=di("div"),r=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(r,"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(n,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,s),si(n,l),si(l,c),si(n,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);si(n,d),si(n,p),si(p,h),si(n,f),si(n,g),si(g,y),b||(w=[fi(r,"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(r,"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=Ap(t,_,e);x[e]?x[e].p(a,i):(x[e]=Op(a),x[e].c(),x[e].m(n,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(n),ui(x,e),b=!1,ai(w)}}}function Op(i){let n,r,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){n=di("span"),r=hi(e),gi(n,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,n,t),si(n,r),a||(s=fi(n,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(n,"class",o)},d(e){e&&ci(n),a=!1,s()}}}function Fp(i){let n,r,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(){n=di("div"),r=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(r,"class","ModalContent"),gi(n,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),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),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(n),f=!1,ai(g)}}}function Rp(i){let n,r=function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T=i[14]("title")+"",E=i[14]("bonusCode")+"",S=i[14]("getBonus")+"",A=i[15]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),L=i[5]&&Mp(i);function M(e){return 0===e[12].length?kp:Dp}let D=M(i),k=D(i),$=0!==i[12].length&&Np(i),B=i[13]&&Fp(i);return{c(){n=di("div"),A&&A.c(),r=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(S),y=mi(),L&&L.c(),v=mi(),b=di("div"),k.c(),w=mi(),$&&$.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(n,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(n,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,n,t),A&&A.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,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),L&&L.m(l,null),si(n,v),si(n,b),k.m(b,null),si(n,w),$&&$.m(n,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]&&A.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]&&S!==(S=e[14]("getBonus")+"")&&yi(g,S),16&t[0]&&(f.disabled=e[4]),e[5]?L?L.p(e,t):((L=Mp(e)).c(),L.m(l,null)):L&&(L.d(1),L=null),D===(D=M(e))&&k?k.p(e,t):(k.d(1),(k=D(e))&&(k.c(),k.m(b,null))),0!==e[12].length?$?$.p(e,t):(($=Np(e)).c(),$.m(n,null)):$&&($.d(1),$=null),e[13]?B?B.p(e,t):((B=Fp(e)).c(),B.m(x.parentNode,x)):B&&(B.d(1),B=null)},d(e){e&&ci(n),A&&A.d(),L&&L.d(),k.d(),$&&$.d(),e&&ci(_),B&&B.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[34](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[34](null)}}}function zp(t,e,n){let i;fe(t,ve,e=>n(14,i=e));let r,{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"!==be(h),f,g=!1,y="",v=0,b=0,w=0,_=0,x=0,C=[],P="",T=!1;Object.keys(bp).forEach(e=>{vp(e,bp[e])});const E=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,n(13,T=!0))},S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},A=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=>{n(10,_=Math.ceil(e.total/6)),0<=t-6&&n(7,v=t-6),t+6<e.total&&n(8,b=t+6),n(9,w=6*(_-1)),n(11,x=t/6),n(12,C=e.items)},e=>{console.error(e)})},L=()=>{window.postMessage({type:"EnableScroll"},window.location.href),n(13,T=!1)};return we(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"endpoint"in e&&n(22,o=e.endpoint),"session"in e&&n(23,a=e.session),"playerid"in e&&n(24,s=e.playerid),"lang"in e&&n(0,l=e.lang),"playercurrency"in e&&n(25,c=e.playercurrency),"clientstyling"in e&&n(1,u=e.clientstyling),"clientstylingurl"in e&&n(2,d=e.clientstylingurl),"translationurl"in e&&n(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,ye.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&A(0),12&t.$$.dirty[0]&&d&&r){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,r,!0,g,y,v,b,w,_,x,C,T,i,m,S,()=>{n(4,f=!y)},A,()=>{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?(n(5,g=!1),A(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&>ag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(n(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},L,()=>{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&&(A(0),L())})},o,a,s,c,p,()=>S(),function(){y=this.value,n(6,y)},()=>A(0),()=>A(v),e=>A(6*e),()=>A(b),()=>A(w),function(e){ge[e?"unshift":"push"](()=>{r=e,n(3,r)})}]}function Hp(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Sp,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},zp,Rp,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 Wp={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 jp(){"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,n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[n],window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],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 Up=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Yp=function(e,...t){try{return jp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Gp=function(e,t){try{return jp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Vp(e,t,i){e=e.slice();return e[108]=t[i],e}function qp(i){let r,F,R,z,H,W,j,U,Y,n,G,V,q,X,o,Z,a,J,K,Q,ee,s,te,l,e,ie,ne,re,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,Ee,h,Se,Ae,Le,Me,De,m,ke,$e,Be,Ie,Ne,f,Oe,Fe,Re,ze,He,g,We,je,Ue,Ye,Ge,y,Ve,qe,Xe,Ze,Je,v,Ke,Qe,et,tt,it,b,nt,rt,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,Et,E,St,At,Lt,Mt,Dt,kt,$t,Bt,It,Nt,Ot,Ft,Rt,zt,Ht=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")+"",Xt=i[38]("firstName")+"",Zt=i[38]("lastName")+"",Jt=i[38]("userTitle")+"",Kt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ni=i[38]("userPostalCode")+"",ri=i[38]("userProfileSaveChanges")+"",S=i[39]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),oi=i[17],A=[];for(let e=0;e<oi.length;e+=1)A[e]=Kp(Vp(i,oi,e));let L=i[26]&&Qp(i),M=i[24]&&eh(i),D=i[25]&&th(i),k=i[21]&&ih(i),$=i[23]&&nh(i),B=i[22]&&rh(i),I=(i[18]||i[19])&&oh(i),N=i[28]&&lh(i),O=i[27]&&ch(i);return{c(){r=di("form"),S&&S.c(),F=mi(),R=di("h2"),z=hi(Ht),H=mi(),W=di("div"),j=di("h3"),U=hi(Wt),Y=mi(),n=di("section"),G=di("div"),V=di("label"),q=hi(jt),X=mi(),o=di("input"),Z=mi(),a=di("div"),J=di("label"),K=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<A.length;e+=1)A[e].c();te=mi(),l=di("input"),ie=mi(),L&&L.c(),re=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),M&&M.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),Ee=mi(),h=di("input"),Se=mi(),Ae=di("div"),Le=di("label"),Me=hi(qt),De=mi(),m=di("input"),ke=mi(),$e=di("div"),Be=di("label"),Ie=hi(Xt),Ne=mi(),f=di("input"),Oe=mi(),Fe=di("div"),Re=di("label"),ze=hi(Zt),He=mi(),g=di("input"),We=mi(),je=di("div"),Ue=di("label"),Ye=hi(Jt),Ge=mi(),y=di("input"),Ve=mi(),qe=di("div"),Xe=di("label"),Ze=hi(Kt),Je=mi(),v=di("input"),Ke=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),b=di("section"),nt=di("div"),rt=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(),k&&k.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),bt=mi(),P=di("input"),_t=mi(),$&&$.c(),Ct=mi(),T=di("div"),Pt=di("label"),Tt=hi(ni),Et=mi(),E=di("input"),Lt=mi(),B&&B.c(),Dt=mi(),I&&I.c(),kt=mi(),N&&N.c(),$t=mi(),Bt=di("section"),It=di("button"),Nt=hi(ri),Ft=mi(),O&&O.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",ne="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(Ae,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi($e,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Fe,"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(n,"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(nt,"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(E,"type","text"),gi(E,"placeholder",St=i[4]?i[43]:""),E.value=At=i[4]?"":i[29].postalCode,gi(T,"class",Mt="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(b,"class","PlayerLocationContent"),gi(It,"class",Ot="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(Bt,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(r,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,r,t),S&&S.m(r,null),si(r,F),si(r,R),si(R,z),si(r,H),si(r,W),si(W,j),si(j,U),si(r,Y),si(r,n),si(n,G),si(G,V),si(V,q),si(G,X),si(G,o),si(n,Z),si(n,a),si(a,J),si(J,K),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<A.length;e+=1)A[e]&&A[e].m(s,null);bi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),L&&L.m(a,null),si(n,re),si(n,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&&M.m(c,null),si(n,he),si(n,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(n,xe),si(n,Ce),si(Ce,Pe),si(Pe,Te),si(Ce,Ee),si(Ce,h),si(n,Se),si(n,Ae),si(Ae,Le),si(Le,Me),si(Ae,De),si(Ae,m),si(n,ke),si(n,$e),si($e,Be),si(Be,Ie),si($e,Ne),si($e,f),si(n,Oe),si(n,Fe),si(Fe,Re),si(Re,ze),si(Fe,He),si(Fe,g),si(n,We),si(n,je),si(je,Ue),si(Ue,Ye),si(je,Ge),si(je,y),si(n,Ve),si(n,qe),si(qe,Xe),si(Xe,Ze),si(qe,Je),si(qe,v),si(r,Ke),si(r,Qe),si(Qe,et),si(et,tt),si(r,it),si(r,b),si(b,nt),si(nt,rt),si(rt,ot),si(nt,at),si(nt,w),si(b,lt),si(b,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),k&&k.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),$&&$.m(C,null),si(b,Ct),si(b,T),si(T,Pt),si(Pt,Tt),si(T,Et),si(T,E),i[73](E),si(T,Lt),B&&B.m(T,null),si(r,Dt),I&&I.m(r,null),si(r,kt),N&&N.m(r,null),si(r,$t),si(r,Bt),si(Bt,It),si(It,Nt),si(r,Ft),O&&O.m(r,null),Rt||(zt=[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]&&S.p(t,i),128&i[1]&&Ht!==(Ht=t[38]("title")+"")&&yi(z,Ht),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(K,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var n=Vp(t,oi,e);A[e]?A[e].p(n,i):(A[e]=Kp(n),A[e].c(),A[e].m(s,null))}for(;e<A.length;e+=1)A[e].d(1);A.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]?L?L.p(t,i):((L=Qp(t)).c(),L.m(a,null)):L&&(L.d(1),L=null),67108864&i[0]&&ne!==(ne="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",ne),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]?M?M.p(t,i):((M=eh(t)).c(),M.m(c,null)):M&&(M.d(1),M=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=th(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(Me,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Xt!==(Xt=t[38]("firstName")+"")&&yi(Ie,Xt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Zt!==(Zt=t[38]("lastName")+"")&&yi(ze,Zt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Jt!==(Jt=t[38]("userTitle")+"")&&yi(Ye,Jt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Kt!==(Kt=t[38]("currency")+"")&&yi(Ze,Kt),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]?k?k.p(t,i):((k=ih(t)).c(),k.m(_,null)):k&&(k.d(1),k=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]?$?$.p(t,i):(($=nh(t)).c(),$.m(C,null)):$&&($.d(1),$=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ni!==(ni=t[38]("userPostalCode")+"")&&yi(Tt,ni),16&i[0]&&St!==(St=t[4]?t[43]:"")&&gi(E,"placeholder",St),536870928&i[0]&&At!==(At=t[4]?"":t[29].postalCode)&&E.value!==At&&(E.value=At),t[22]?B?B.p(t,i):((B=rh(t)).c(),B.m(T,null)):B&&(B.d(1),B=null),4194304&i[0]&&Mt!==(Mt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(T,"class",Mt),t[18]||t[19]?I?I.p(t,i):((I=oh(t)).c(),I.m(r,kt)):I&&(I.d(1),I=null),t[28]?N?N.p(t,i):((N=lh(t)).c(),N.m(r,$t)):N&&(N.d(1),N=null),128&i[1]&&ri!==(ri=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ri),1081344&i[0]&&Ot!==(Ot="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(It,"class",Ot),t[27]?O?O.p(t,i):((O=ch(t)).c(),O.m(r,null)):O&&(O.d(1),O=null)},d(e){e&&ci(r),S&&S.d(),ui(A,e),L&&L.d(),M&&M.d(),D&&D.d(),i[69](null),k&&k.d(),i[71](null),$&&$.d(),i[73](null),B&&B.d(),I&&I.d(),N&&N.d(),O&&O.d(),Rt=!1,ai(zt)}}}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 Zp(e){let i,n,r,o=e[108].Prefix+"";return{c(){i=di("option"),n=hi(o),i.__value=r=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(n,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Jp(e){let i,n,r,o=e[108].Prefix+"";return{c(){i=di("option"),n=hi(o),i.selected=!0,i.__value=r=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(n,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Kp(e){let i;function n(e){return e[108].Prefix===e[29].mobiePrefix?Jp:Zp}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Qp(e){let i,n,r=e[38]("userPhoneError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userPhoneError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function eh(e){let i,n,r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(n,r)},d(e){e&&ci(i)}}}function th(e){let i,n,r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(n,r)},d(e){e&&ci(i)}}}function ih(e){let i,n,r=e[38]("userCityError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userCityError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function nh(e){let i,n,r=e[38]("userAddressError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userAddressError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function rh(e){let i,n,r=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){128&t[1]&&r!==(r=e[38]("userPostalCodeError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function oh(e){let i,n,r,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&ah(e),u=e[18]&&sh(e);return{c(){i=di("div"),n=di("h3"),r=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,n),si(n,r),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(r,l),e[19]?c?c.p(e,t):((c=ah(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=sh(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 ah(i){let n,r,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){n=di("div"),r=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(r,"for","SMSNotification"),gi(n,"class","PlayerNotificationBox")},m(e,t){li(e,n,t),si(n,r),si(r,o),o.checked=i[8],si(r,a),si(r,s),si(r,l),si(r,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(n),d=!1,ai(p)}}}function sh(i){let n,r,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){n=di("div"),r=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(r,"for","EmailNotification"),gi(n,"class","PlayerNotificationBox")},m(e,t){li(e,n,t),si(n,r),si(r,o),o.checked=i[9],si(r,a),si(r,s),si(r,l),si(r,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(n),d=!1,ai(p)}}}function lh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",b=i[38]("userBiometrics")+"";return{c(){n=di("div"),r=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(n,"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,n,t),si(n,r),si(r,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(n),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function ch(e){let i,n,r,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),n=di("p"),r=hi(o),gi(n,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(r,o)},d(e){e&&ci(i)}}}function uh(i){let n;function r(e){return e[3]?Xp:qp}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[79](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[79](null)}}}function dh(t,e,i){let N;fe(t,ve,e=>i(38,N=e));let n,r,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,O=!0,F=window.navigator.userAgent,R="PC"!==be(F),z=!0,f=!1,g=!1,y=!1,v="",b="",w="",_="",x=!1,H={Name:"I.e Ireland"},C=[],W=[],P=[],T=!1,E=!1,S={items:[]},j=!1,U="",Y="",G="",V=!1,q=!1,X=!1,A=!1,Z={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Wp).forEach(e=>{Hp(e,Wp[e])});e=window.matchMedia("(min-width: 768px)");let J={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},L={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},M={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:K,birth:Q,city:ee,currency:te,mobile:D,email:ie,firstname:ne,userTitles:re,language:oe,lastname:ae,postalCode:se,securityAnswer:k,securityQuestion:$,username:le}=M;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,z=!1),M=e.data.profileDetails,i(37,le=M.username),i(32,D=M.mobile),i(33,ie=M.email),i(34,ne=M.firstname),i(36,ae=M.lastname),oe=M.language,i(30,Q=(null==(t=M.birth)?void 0:t.day)+"/"+(null==(t=M.birth)?void 0:t.month)+"/"+(null==(t=M.birth)?void 0:t.year)),i(31,te=M.currency),i(35,re=M.title),i(11,v=M.securityQuestion),i(12,b=M.securityAnswer),i(13,w=null==(t=M.mobile)?void 0:t.prefix),i(14,_=null==(t=M.mobile)?void 0:t.number),i(29,L.address=M.address1,L),i(29,L.city=M.city,L),i(29,L.mobilePrefix=null==D?void 0:D.prefix,L),i(29,L.mobileNumber=null==D?void 0:D.number,L),i(29,L.postalCode=M.postalCode,L),i(29,L.securityAnswer=M.securityAnswer,L),i(29,L.securityQuestion=M.securityQuestion,L);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,L.acceptNewsEmail=g,L)):"sms"==e.tagCode&&(i(19,E=!0),i(8,f="Accepted"==e.status),i(29,L.acceptSMSOffers=f,L))});break;case"ConfirmProfileInfoSave":A&&(Gp("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),Yp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,X=!0),setTimeout(()=>{i(27,X=!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:J},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:S},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;J={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:w,postalCode:r.value,securityAnswer:b,securityQuestion:v},e=J,t=L,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),S={items:[]},E&&S.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),T&&S.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),B()};return we(()=>(window.addEventListener("message",ce,!1),i(28,A=!!Up(F)),A&&(Gp("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),Yp("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,ye.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,H=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,O=!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&&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;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,n,O,z,r,o,a,f,g,y,v,b,w,_,x,H,C,T,E,j,U,Y,G,V,q,s,X,A,L,Q,te,D,ie,ne,re,ae,le,N,R,e,K,ee,se,k,$,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),B()},()=>{i(24,V=!(()=>{if($)switch(m){case"true":if(Z.document.test($)&&$.length<=50)return!0;break;case"false":if($&&$.length<=120)return!0}return!1})()),B()},()=>{i(25,q=!(()=>{if(k)switch(m){case"true":if(Z.document.test(k)&&k.length<=50)return!0;break;case"false":if(k&&k.length<=120)return!0}return!1})()),B()},()=>{i(21,U=!(a.value&&a.value.length<=50)),B()},()=>{i(22,Y=!(r.value&&r.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){ge[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>I(),function(e){ge[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>I(),function(e){ge[e?"unshift":"push"](()=>{r=e,i(5,r)})},()=>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){ge[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function ph(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},dh,uh,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 hh={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 mh(i){let n,r,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")+"",E=i[19]("backButtonText")+"",S=i[20]&&function(i){let n,r,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){n=di("div"),r=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(r,"version","1.1"),gi(r,"id","Capa_1"),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(r,"x","0px"),gi(r,"y","0px"),gi(r,"viewBox","0 0 240.823 240.823"),A(r,"enable-background","new 0 0 240.823 240.823"),gi(r,"xml:space","preserve"),gi(r,"width","18px"),gi(r,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(n,l),si(l,c),u||(d=fi(n,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(n),u=!1,d()}}}(i);return{c(){S&&S.c(),n=mi(),r=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(E),gi(r,"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){S&&S.m(e,t),li(e,n,t),li(e,r,t),si(r,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]&&S.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(w,E)},d(e){S&&S.d(e),e&&ci(n),e&&ci(r),e&&ci(s),e&&ci(l),_=!1,x()}}}function fh(i){let F,n,R,z,r,o,a,H,W,s,j,U,l,Y,c,u,G,V,d,q,X,p,Z,h,m,J,K,f,Q,ee,g,te,y,v,b,ie,w,_,ne,re,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",T=i[19]("confirmPassword")+"",E=i[19]("submitChangePassword")+"",S=i[20]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function oe(e){return e[10]?yh:gh}let A=oe(i),L=A(i),M=i[4]&&vh(i);function ae(e){return e[11]?xh:_h}let D=ae(i),k=D(i);function se(e){return e[13]?Ph:e[5]?Ch:void 0}let $=se(i),B=$&&$(i);function le(e){return e[12]?Ah:Sh}let ce=le(i),I=ce(i),N=i[6]&&Lh(i),O=i[18]&&Mh(i);return{c(){S&&S.c(),F=mi(),n=di("h2"),R=hi(x),z=mi(),r=di("section"),o=di("div"),a=di("label"),H=hi(C),W=mi(),s=di("input"),j=mi(),L.c(),U=mi(),M&&M.c(),Y=mi(),c=di("div"),u=di("label"),G=hi(P),V=mi(),d=di("input"),q=mi(),k.c(),X=mi(),B&&B.c(),Z=mi(),h=di("div"),m=di("label"),J=hi(T),K=mi(),f=di("input"),Q=mi(),I.c(),ee=mi(),N&&N.c(),te=mi(),O&&O.c(),y=mi(),v=di("section"),b=di("button"),ie=hi(E),gi(n,"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(r,"class","PlayerChangePasswordContent"),gi(b,"class",w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),b.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){S&&S.m(e,t),li(e,F,t),li(e,n,t),si(n,R),li(e,z,t),li(e,r,t),si(r,o),si(o,a),si(a,H),si(o,W),si(o,s),vi(s,i[14]),i[33](s),si(o,j),L.m(o,null),si(o,U),M&&M.m(o,null),si(r,Y),si(r,c),si(c,u),si(u,G),si(c,V),si(c,d),vi(d,i[15]),i[37](d),si(c,q),k.m(c,null),si(c,X),B&&B.m(c,null),si(r,Z),si(r,h),si(h,m),si(m,J),si(h,K),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),O&&O.m(e,t),li(e,y,t),li(e,v,t),si(v,b),si(b,ie),ne||(re=[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])],ne=!0)},p(e,t){(i=e)[20]&&S.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(H,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),A===(A=oe(i))&&L?L.p(i,t):(L.d(1),(L=A(i))&&(L.c(),L.m(o,U))),i[4]?M?M.p(i,t):((M=vh(i)).c(),M.m(o,null)):M&&(M.d(1),M=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))&&k?k.p(i,t):(k.d(1),(k=D(i))&&(k.c(),k.m(c,X))),$===($=se(i))&&B?B.p(i,t):(B&&B.d(1),(B=$&&$(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(J,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=Lh(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]?O?O.p(i,t):((O=Mh(i)).c(),O.m(y.parentNode,y)):O&&(O.d(1),O=null),524288&t[0]&&E!==(E=i[19]("submitChangePassword")+"")&&yi(ie,E),8&t[0]&&w!==(w="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(b,"class",w),8&t[0]&&_!==(_=!i[3])&&(b.disabled=_)},d(e){S&&S.d(e),e&&ci(F),e&&ci(n),e&&ci(z),e&&ci(r),i[33](null),L.d(),M&&M.d(),i[37](null),k.d(),B&&B.d(),i[41](null),I.d(),N&&N.d(),e&&ci(te),O&&O.d(e),e&&ci(y),e&&ci(v),ne=!1,ai(re)}}}function gh(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function yh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function vh(e){let i;function n(e){return"true"==e[0]?wh:bh}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function bh(e){let i,n,r=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidCurrentPassword")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function wh(e){let i,n,r=e[19]("simplePasswordError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function _h(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function xh(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function Ch(e){let i;function n(e){return"true"==e[0]?Eh:Th}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Ph(e){let i,n,r=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPassword")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Th(e){let i,n,r=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPasswordSecondary")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Eh(e){let i,n,r=e[19]("simplePasswordError")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Sh(i){let n,r,o,a,s,l,c,u,d,p;return{c(){n=pi("svg"),r=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(n,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.843"),gi(n,"height","10.5"),gi(n,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,s),si(s,l),si(s,c),d||(p=fi(n,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",u)},d(e){e&&ci(n),d=!1,p()}}}function Ah(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){n=pi("svg"),r=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(n,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","18.844"),gi(n,"height","12.887"),gi(n,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(n,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(n,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(n,"class",g)},d(e){e&&ci(n),y=!1,v()}}}function Lh(e){let i,n,r=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){524288&t[0]&&r!==(r=e[19]("confirmPasswordInvalid")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Mh(e){let i,n,r;return{c(){i=di("div"),n=di("p"),r=hi(e[17]),gi(n,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,n),si(n,r)},p(e,t){131072&t[0]&&yi(r,e[17])},d(e){e&&ci(i)}}}function Dh(i){let n,r=function(e){let i;function n(e){return e[2]?mh:fh}let r=n(e),o=r(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){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[47](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[47](null)}}}function kh(t,e,n){let i;fe(t,ve,e=>n(19,i=e));let r,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==be(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="",E="",S=!1,A="",L=!1;Object.keys(hh).forEach(e=>{ph(e,hh[e])});const M=e=>{switch(e){case"userCurrentPassword":n(10,w=!w),n(7,m.type=w?"text":"password",m);break;case"userNewPassword":n(11,_=!_),n(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":n(12,x=!x),n(9,g.type=x?"text":"password",g)}},D=e=>!!h.password.test(e),k=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:T},window.location.href)},$=()=>{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":n(2,S=!0);break;case"ShowPasswordChangedError":n(18,L=e.data.showErrorPasswordChanged),n(17,A=e.data.errorPasswordChanged)}};return we(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&n(27,o=e.lang),"simplepasswordvalidation"in e&&n(0,a=e.simplepasswordvalidation),"clientstyling"in e&&n(28,s=e.clientstyling),"clientstylingurl"in e&&n(29,l=e.clientstylingurl),"translationurl"in e&&n(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,ye.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&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;268435458&t.$$.dirty[0]&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ph(e,t[e])})}).catch(e=>{console.log(e)})},[a,r,S,p,y,v,b,m,f,g,w,_,x,C,P,T,E,A,L,i,d,N,M,(e,t,i)=>{"CurrentPassword"===i.id?n(4,y=!D(t)):"NewPassword"===i.id&&(n(5,v=!D(t)),P&&n(13,C=P===T),!E)||n(6,b=T!==E||!D(t)),n(3,p=!(y||v||b||C||!P||!T||!E))},k,$,B,o,s,l,c,()=>$(),function(){P=this.value,n(14,P)},function(e){ge[e?"unshift":"push"](()=>{m=e,n(7,m)})},()=>M("userCurrentPassword"),()=>M("userCurrentPassword"),function(){T=this.value,n(15,T)},function(e){ge[e?"unshift":"push"](()=>{f=e,n(8,f)})},()=>M("userNewPassword"),()=>M("userNewPassword"),function(){E=this.value,n(16,E)},function(e){ge[e?"unshift":"push"](()=>{g=e,n(9,g)})},()=>M("userConfirmPassword"),()=>M("userConfirmPassword"),e=>k(e),()=>$(),()=>B(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}function $h(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},kh,Dh,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 Bh={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 Ih(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function Nh(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 Oh(e){let i,n;return{c(){i=di("div"),n=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function Fh(i){let n,r,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=zh(Ih(i,u,e));return{c(){n=di("form");for(let e=0;e<d.length;e+=1)d[e].c();r=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(n,"class","customRadio")},m(e,t){li(e,n,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(n,null);si(n,r),si(n,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=Ih(t,u,e);d[e]?d[e].p(s,i):(d[e]=zh(s),d[e].c(),d[e].m(n,r))}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(n),ui(d,e),l=!1,c()}}}function Rh(e){let i,n,r=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t[0]&&r!==(r=e[4]("realityCheckLoading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function zh(i){let n,r,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(){n=di("div"),r=di("input"),o=mi(),a=di("label"),s=hi(e),gi(r,"type","radio"),gi(r,"id",i[35]),r.__value=i[35],r.value=r.__value,gi(a,"for",i[35]),t.p(r)},m(e,t){li(e,n,t),si(n,r),r.checked=r.__value===i[1],si(n,o),si(n,a),si(a,s),l||(c=fi(r,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(r.checked=r.__value===e[1])},d(e){e&&ci(n),t.r(),l=!1,c()}}}function Hh(i){let n,r,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&Nh(i);return{c(){v&&v.c(),n=mi(),r=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(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,n,t),li(e,r,t),si(r,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(r,p),si(r,h),si(h,m),f||(g=fi(r,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=Nh(e)).c(),v.m(n.parentNode,n)):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(n),e&&ci(r),f=!1,g()}}}(i),g=i[3]&&Oh(i);function y(e){return e[2]?Rh:Fh}let v=y(i),b=v(i);return{c(){n=di("div"),f&&f.c(),r=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(n,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(n,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,n,t),f&&f.m(n,null),si(n,r),g&&g.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),b.m(c,null),i[23](n)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Oh(e)).c(),g.m(n,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(n),f&&f.d(),g&&g.d(),b.d(),i[23](null)}}}function Wh(i,e,n){let r;fe(i,ve,e=>n(4,r=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"!==be(t),f="",g=!0,y=(Object.keys(Bh).forEach(e=>{$h(e,Bh[e])}),!1),v=r("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&&(n(3,y=!0),setTimeout(()=>{n(3,y=!1)},2e3))};return we(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&n(10,a=e.realitycheck),"endpoint"in e&&n(11,s=e.endpoint),"playerid"in e&&n(12,l=e.playerid),"session"in e&&n(13,c=e.session),"lang"in e&&n(14,u=e.lang),"clientstyling"in e&&n(15,d=e.clientstyling),"clientstylingurl"in e&&n(16,p=e.clientstylingurl),"translationurl"in e&&n(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,ye.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=>{n(18,b=e.AvailableRealityCheckValues),b.forEach(e=>{0==e?w.push({value:e.toString(),text:r("never")}):e<60?w.push({value:e.toString(),text:e+" "+r("minutes")}):60==e?w.push({value:e.toString(),text:r("oneHour")}):60<e&&w.push({value:e.toString(),text:e/60+" "+r("hours")})}),n(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&b&&a&&n(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=>{$h(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,r,m,v,w,_,x,a,s,l,c,u,d,p,h,b,()=>x(),function(){f=this.__value,n(1,f)},[[]],e=>_(e),function(e){ge[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function jh(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Wh,Hh,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 Uh={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 Yh(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function Gh(e,t,i){e=e.slice();return e[45]=t[i],e}function Vh(t){let r,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Jh(Gh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var n=Gh(t,o,e);a[e]?a[e].p(n,i):(a[e]=Jh(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function qh(e){let i,n,r=e[14]("noBonusHistory")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noBonusHistory")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Xh(e){let i,n,r,o,a,s,l,c,u,d;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[45].walletId),le(i,"bonusdate",r=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].grantedAmount),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]&&n!==(n=e[45].walletId)&&le(i,"bonuswalletid",n),8192&t[0]&&r!==(r=e[45].granted)&&le(i,"bonusdate",r),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].grantedAmount)&&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 Zh(e){let i,n,r,o,a,s,l;return{c(){le(i=di("player-bonus-card"),"bonuswalletid",n=e[45].walletId),le(i,"bonusdate",r=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]&&n!==(n=e[45].walletId)&&le(i,"bonuswalletid",n),8192&t[0]&&r!==(r=e[45].granted)&&le(i,"bonusdate",r),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 Jh(e){let i;function n(e){return"freeRound"===e[45].type?Zh:Xh}let r=n(e),o=r(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Kh(i){let n,r,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]=Qh(Yh(i,_,e));return{c(){n=di("div"),r=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(r,"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(n,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,s),si(n,l),si(l,c),si(n,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(n,null);si(n,d),si(n,p),si(p,h),si(n,f),si(n,g),si(g,y),b||(w=[fi(r,"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(r,"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=Yh(t,_,e);x[e]?x[e].p(a,i):(x[e]=Qh(a),x[e].c(),x[e].m(n,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(n),ui(x,e),b=!1,ai(w)}}}function Qh(i){let n,r,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){n=di("span"),r=hi(e),gi(n,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,n,t),si(n,r),a||(s=fi(n,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(n,"class",o)},d(e){e&&ci(n),a=!1,s()}}}function em(i){let n,r=function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L=i[14]("title")+"",M=i[14]("dateFrom")+"",D=i[14]("dateTo")+"",k=i[14]("dateFilter")+"",$=i[15]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function B(e){return 0===e[13].length?qh:Vh}let I=B(i),N=I(i),O=0!==i[13].length&&Kh(i);return{c(){n=di("div"),$&&$.c(),r=mi(),o=di("h2"),a=hi(L),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi(M),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(k),P=mi(),T=di("div"),N.c(),E=mi(),O&&O.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(n,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,n,t),$&&$.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,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(n,P),si(n,T),N.m(T,null),si(n,E),O&&O.m(n,null),S||(A=fi(x,"click",i[25]),S=!0)},p(e,t){e[15]&&$.p(e,t),16384&t[0]&&L!==(L=e[14]("title")+"")&&yi(a,L),16384&t[0]&&M!==(M=e[14]("dateFrom")+"")&&yi(p,M),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]&&k!==(k=e[14]("dateFilter")+"")&&yi(C,k),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?O?O.p(e,t):((O=Kh(e)).c(),O.m(n,null)):O&&(O.d(1),O=null)},d(e){e&&ci(n),$&&$.d(),i[23](null),i[24](null),N.d(),O&&O.d(),S=!1,A()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[31](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[31](null)}}}function tm(t,e,n){let i;fe(t,ve,e=>n(14,i=e));let r,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"!==be(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(Uh).forEach(e=>{jh(e,Uh[e])});const E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},S=t=>{var e=new URL(`${c}/v1/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=>{n(11,C=Math.ceil(e.total/6)),0<=t-6&&n(8,w=t-6),t+6<e.total&&n(9,_=t+6),n(10,x=6*(C-1)),n(12,P=t/6),n(13,T=e.items)},e=>{console.error(e)})},A=e=>{v=e.target.value},L=e=>{b=e.target.value};we(()=>()=>{o.removeEventListener("change",A),a.removeEventListener("change",L)});return t.$$set=e=>{"endpoint"in e&&n(18,c=e.endpoint),"session"in e&&n(19,u=e.session),"playerid"in e&&n(20,d=e.playerid),"lang"in e&&n(0,p=e.lang),"clientstyling"in e&&n(1,h=e.clientstyling),"clientstylingurl"in e&&n(2,m=e.clientstylingurl),"translationurl"in e&&n(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,ye.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",A,!1),a.addEventListener("change",L,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&S(0),12&t.$$.dirty[0]&&m&&r){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&r&&((e=document.createElement("style")).innerHTML=h,r.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,r,o,a,s,l,w,_,x,C,P,T,i,y,E,S,c,u,d,f,()=>E(),function(e){ge[e?"unshift":"push"](()=>{o=e,n(4,o)})},function(e){ge[e?"unshift":"push"](()=>{a=e,n(5,a)})},()=>S(0),()=>S(0),()=>S(w),e=>S(6*e),()=>S(_),()=>S(x),function(e){ge[e?"unshift":"push"](()=>{r=e,n(3,r)})}]}function im(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},tm,em,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 nm={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 rm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function om(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function am(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?om:rm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","DepositTitle "+(i[4]?"DepositTitleNone":"")),gi(n,"class","DepositWrapper "+(i[4]?"DepositWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[16](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[16](null)}}}function sm(n,e,r){let t;fe(n,ve,e=>r(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"!==be(i),g=!0,y=0,v="";Object.keys(nm).forEach(e=>{im(e,nm[e])});const b=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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 we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},n.$$.update=()=>{if(1024&n.$$.dirty&&c&&(i=c,ye.set(i)),8193&n.$$.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&n.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&n.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{im(e,t[e])})}).catch(e=>{console.log(e)}),1984&n.$$.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=>{r(1,g=!1),r(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){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function lm(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},sm,am,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 cm={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 um(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function dm(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function pm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?dm:um}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(n,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[16](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[16](null)}}}function hm(n,e,r){let t;fe(n,ve,e=>r(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"!==be(i),g=!0,y=0,v="";Object.keys(cm).forEach(e=>{lm(e,cm[e])});const b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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 we(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},n.$$.update=()=>{if(1024&n.$$.dirty&&c&&(i=c,ye.set(i)),8193&n.$$.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&n.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&n.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{lm(e,t[e])})}).catch(e=>{console.log(e)}),1984&n.$$.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=>{r(1,g=!1),r(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){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function mm(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},hm,pm,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 fm={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 gm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function ym(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function vm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?ym:gm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(n,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[14](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[14](null)}}}function bm(i,e,n){let t;fe(i,ve,e=>n(3,t=e));let r,{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"!==be(p),m=!0,f="";Object.keys(fm).forEach(e=>{mm(e,fm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"playerid"in e&&n(8,s=e.playerid),"lang"in e&&n(9,l=e.lang),"clientstyling"in e&&n(10,c=e.clientstyling),"clientstylingurl"in e&&n(11,u=e.clientstylingurl),"translationurl"in e&&n(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,ye.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=>{n(1,m=!1),n(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mm(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function wm(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},bm,vm,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 _m={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 xm(e){let i,n,r;return{c(){i=di("div"),_((n=di("iframe")).src,r=e[2])||gi(n,"src",r),gi(n,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4&t&&!_(n.src,r=e[2])&&gi(n,"src",r)},d(e){e&&ci(i)}}}function Cm(e){let i,n,r=e[3]("loading")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Pm(i){let n,r,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function u(e){return e[1]?Cm:xm}let d=u(i),p=d(i);return{c(){n=di("div"),c&&c.c(),r=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=se,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(n,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,n,t),c&&c.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),p.m(n,null),i[14](n)},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(n,null)))},i:se,o:se,d(e){e&&ci(n),c&&c.d(),p.d(),i[14](null)}}}function Tm(i,e,n){let t;fe(i,ve,e=>n(3,t=e));let r,{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"!==be(p),m=!0,f="";Object.keys(_m).forEach(e=>{wm(e,_m[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"playerid"in e&&n(8,s=e.playerid),"lang"in e&&n(9,l=e.lang),"clientstyling"in e&&n(10,c=e.clientstyling),"clientstylingurl"in e&&n(11,u=e.clientstylingurl),"translationurl"in e&&n(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,ye.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=>{n(1,m=!1),n(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{wm(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){ge[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function Em(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Tm,Pm,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 Sm={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 Am(e,t,i){e=e.slice();return e[55]=t[i],e}function Lm(e,t,i){e=e.slice();return e[58]=t[i],e}function Mm(i){let n,r,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=Dm(Lm(i,u,e));return{c(){n=di("div"),r=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(n,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Lm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Dm(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(n),ui(d,e),l=!1,ai(c)}}}function Dm(e){let i,n,t=e[58]+"";return{c(){i=di("option"),n=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p:se,d(e){e&&ci(i)}}}function km(e){let i,n,r=e[14]("noRecord")+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,n)},p(e,t){16384&t[0]&&r!==(r=e[14]("noRecord")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function $m(e){let i,n,r;return{c(){i=di("p"),n=hi("Invalid data: "),r=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,n),si(i,r)},p(e,t){256&t[0]&&yi(r,e[8])},d(e){e&&ci(i)}}}function Bm(i){let n,r,o,a,s,l,O,c,u,F,d,p,R,z,H,W,j,U,Y,h,G,m,f,g,y,e,V,v,q,b,w,X,_,x,Z,J,C,P,T,E,S,K,Q,A=i[14]("transactionId")+"",L=i[14]("date")+"",M=i[14]("gameName")+"",D=i[14]("stake")+"",k=i[14]("return")+"",$=i[14]("previous")+"",B=i[14]("next")+"",I=i[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=Nm(Am(i,I,e));return{c(){n=di("div"),r=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(A),O=mi(),c=di("th"),u=hi(L),F=mi(),d=di("th"),p=hi(M),R=mi(),z=di("th"),H=hi(D),W=mi(),j=di("th"),U=hi(k),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($),X=mi(),_=di("button"),x=di("span"),Z=hi(B),J=mi(),C=pi("svg"),P=pi("path"),gi(n,"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",E="PlayerPaginationControls "+(i[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=S=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(s,l),si(a,O),si(a,c),si(c,u),si(a,F),si(a,d),si(d,p),si(a,R),si(a,z),si(z,H),si(a,W),si(a,j),si(j,U),si(r,Y),si(r,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,X),si(m,_),si(_,x),si(x,Z),si(_,J),si(_,C),si(C,P),K||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],K=!0)},p(t,i){if(16384&i[0]&&A!==(A=t[14]("transactionId")+"")&&yi(l,A),16384&i[0]&&L!==(L=t[14]("date")+"")&&yi(u,L),16384&i[0]&&M!==(M=t[14]("gameName")+"")&&yi(p,M),16384&i[0]&&D!==(D=t[14]("stake")+"")&&yi(H,D),16384&i[0]&&k!==(k=t[14]("return")+"")&&yi(U,k),1073152&i[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var n=Am(t,I,e);N[e]?N[e].p(n,i):(N[e]=Nm(n),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]&&$!==($=t[14]("previous")+"")&&yi(q,$),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(Z,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]&&S!==(S=!t[4])&&(_.disabled=S)},d(e){e&&ci(n),ui(N,e),e&&ci(G),e&&ci(m),K=!1,ai(Q)}}}function Im(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 Nm(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L=e[55].roundId+"",M=e[20](e[55])+"",D=e[55].gameModel.name+"",k=e[55].stakeAmount+"",$=e[55].returnAmount+"";return{c(){i=di("tr"),n=di("td"),r=di("span"),o=hi(L),l=mi(),c=di("td"),u=di("span"),d=hi(M),h=mi(),m=di("td"),f=di("span"),g=hi(D),v=mi(),b=di("td"),w=di("span"),_=hi(k),C=mi(),P=di("td"),T=di("span"),E=hi($),A=mi(),gi(n,"data-label",a=e[14]("transactionId")),gi(n,"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",S=e[14]("return"))},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,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,E),si(i,A)},p(e,t){8192&t[0]&&L!==(L=e[55].roundId+"")&&yi(o,L),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(n,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(n,"title",s),8192&t[0]&&M!==(M=e[20](e[55])+"")&&yi(d,M),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]&&k!==(k=e[55].stakeAmount+"")&&yi(_,k),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(b,"data-label",x),8192&t[0]&&$!==($=e[55].returnAmount+"")&&yi(E,$),16384&t[0]&&S!==(S=e[14]("return"))&&gi(P,"data-label",S)},d(e){e&&ci(i)}}}function Om(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,T,E,S,A,L,M=i[14]("title")+"",D=i[14]("dateFrom")+"",k=i[14]("dateTo")+"",$=i[14]("dateFilter")+"",B=i[16]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),I=!i[12].matches&&Mm(i);function F(e){return e[9]?Im:0<e[13].length?Bm:0<e[8].length?$m:km}let N=F(i),O=N(i);return{c(){n=di("div"),r=di("div"),B&&B.c(),o=mi(),a=di("h2"),s=hi(M),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(k),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),T=hi($),E=mi(),I&&I.c(),S=mi(),O.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(r,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,n,t),si(n,r),B&&B.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(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,E),I&&I.m(u,null),si(r,S),O.m(r,null),i[37](r),i[38](n),A||(L=fi(P,"click",i[32]),A=!0)},p(e,t){e[16]&&B.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yi(s,M),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]&&k!==(k=e[14]("dateTo")+"")&&yi(w,k),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&$!==($=e[14]("dateFilter")+"")&&yi(T,$),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=Mm(e)).c(),I.m(u,null)),N===(N=F(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(r,null)))},i:se,o:se,d(e){e&&ci(n),B&&B.d(),i[30](null),i[31](null),I&&I.d(),O.d(),i[37](null),i[38](null),A=!1,L()}}}function Fm(t,e,r){let i;fe(t,ve,e=>r(14,i=e));let n,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="",E=!1,S=window.navigator.userAgent,A="PC"!==be(S),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(Sm).forEach(e=>{Em(e,Sm[e])}),window.matchMedia("(min-width: 768px)")),L=window.matchMedia("(max-width: 1280px)"),M=[];const D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:A},window.location.href)},O=()=>{r(12,L=window.matchMedia("(max-width: 1280px)"))},F=(e,t,i)=>{var e=new URL(e),n=(r(13,M=[]),{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)),r(9,E=!0),fetch(e.href,n).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,M=e.transactions),r(13,M=(e=>{let n=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=n.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,n.set(e.roundId,i))}),Array.from(n.values())})(M)),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,E=!1)},e=>{r(9,E=!1),console.error(e)})},k=(e,t,i)=>{var n;"gm16"===y?F(e,t,i):(t=t,i=i,e=new URL(e),r(13,M=[]),r(8,T=""),n={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)),r(9,E=!0),fetch(e.href,n).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,T=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,M=e.transactions),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,E=!1)},e=>{r(9,E=!1),console.error(e)}))},$=e=>{e.data&&e.data.type},B=e=>{_=e.target.value},I=e=>{x=e.target.value};return we(()=>(window.addEventListener("message",$,!1),window.addEventListener("resize",O,!1),()=>{o.removeEventListener("change",B),a.removeEventListener("change",I),window.removeEventListener("message",$),window.removeEventListener("resize",$)})),t.$$set=e=>{"endpoint"in e&&r(21,u=e.endpoint),"playerid"in e&&r(22,d=e.playerid),"session"in e&&r(23,p=e.session),"lang"in e&&r(24,h=e.lang),"clientstyling"in e&&r(25,m=e.clientstyling),"clientstylingurl"in e&&r(26,f=e.clientstylingurl),"translationurl"in e&&r(27,g=e.translationurl),"gmversion"in e&&r(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,ye.set(e),r(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),k(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=>{Em(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,b,w,void 0,P,T,E,l,c,L,M,i,C,A,N,D,k,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){ge[e?"unshift":"push"](()=>{o=e,r(0,o)})},function(e){ge[e?"unshift":"push"](()=>{a=e,r(1,a)})},()=>k(v,!1,!0),function(){P=pe(this),r(7,P),r(15,C)},()=>k(v,!1,!0),()=>k(w,!0,!1),()=>k(b,!0,!1),function(e){ge[e?"unshift":"push"](()=>{n=e,r(6,n)})},function(e){ge[e?"unshift":"push"](()=>{s=e,r(2,s)})}]}function Rm(e,t){k(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Fm,Om,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 zm={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 Hm(i){let n,r,o,a,s,l,c,t,u,d,p;return{c(){n=di("div"),r=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(r,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),i[8](r),i[9](n),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(r,"class",c)},i(e){u||(wi(()=>{u&&(t=t||te(r,dd,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||te(r,dd,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(n),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function Wm(e){let i,n,r="true"==e[0]&&Hm(e);return{c(){r&&r.c(),i=I(),this.c=se},m(e,t){r&&r.m(e,t),li(e,i,t),n=!0},p(e,[t]){"true"==e[0]?r?(r.p(e,t),1&t&&K(r,1)):((r=Hm(e)).c(),K(r,1),r.m(i.parentNode,i)):r&&(Z(),Q(r,1,1,()=>{r=null}),J())},i(e){n||(K(r),n=!0)},o(e){Q(r),n=!1},d(e){r&&r.d(e),e&&ci(i)}}}function jm(t,e,i){let n,r,{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 we(()=>(window.addEventListener("message",d,!1),i(4,c=lr(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&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),132&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),setTimeout(()=>{},500)})}var e},[o,a,r,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){ge[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){ge[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function Um(e){let i,n;return{c(){i=di("general-player-login-register-modal"),le(n=di("om-betting-history-details"),"item-layout","V2"),le(n,"cashoutserver","V2"),le(n,"matchscorelayout","V2"),le(n,"matchscorescope","BHDetailed"),le(n,"tournament-route",":sportId/:tournamentId"),le(n,"match-route",":sportId/:tournamentId/:matchId"),le(n,"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,n)},p(e,t){2&t&&le(n,"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 Ym(i){let n,r,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 n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(n,"class","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i),T="true"===i[5]&&i[1]&&Um(i);return{c(){n=di("div"),P&&P.c(),r=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":"")),L(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),L(p,"BettingHistoryButtonSelected","settledBets"===i[0]),L(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(n,"class","BettingHistoryWrapper"),L(n,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,n,t),P&&P.m(n,null),si(n,r),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(n,m),si(n,f),si(n,g),T&&T.m(n,null),si(n,y),si(n,v),i[16](n),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&&L(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&L(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?T?T.p(e,t):((T=Um(e)).c(),T.m(n,y)):T&&(T.d(1),T=null)},i:se,o:se,d(e){e&&ci(n),P&&P.d(),T&&T.d(),i[16](null),b=!1,ai(w)}}}function Gm(t,e,i){let n;fe(t,ve,e=>i(6,n=e));let r,{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"!==be(p);Object.entries(zm).forEach(([e,t])=>{Rm(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 we(()=>(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,ye.set(e)),20&t.$$.dirty&&l&&r&&((e=document.createElement("style")).innerHTML=l,r.appendChild(e)),24&t.$$.dirty&&c&&r){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Rm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,r,d,n,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){ge[e?"unshift":"push"](()=>{r=e,i(4,r)})}]}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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},jm,Wm,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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gm,Ym,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 Vm={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 qm(e,t){k(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",invalidInputMessageLimit:"The value entered must be between {minValue} and {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",invalidInputMessageLimit:"Der eingegebene Wert muss zwischen {minValue} und {maxValue} {currency} liegen.",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",invalidInputMessageLimit:"Unešena vrijednost mora biti između {minValue} i {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",invalidInputMessageLimit:"Vnešena vrednost mora biti med {minValue} in {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",invalidInputMessageLimit:"Podana wartość musi znajdować się pomiędzy {minValue} a {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"},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"},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",invalidInputMessageLimit:"El valor ingresado debe ser un mínimo de {minValue} y un máximo de {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"}},Zm=u["document"];function Jm(e,t,i){e=e.slice();return e[101]=t[i],e}function Km(e,t,i){e=e.slice();return e[104]=t[i],e[106]=i,e}function Qm(e,t,i){e=e.slice();return e[104]=t[i],e}function ef(e,t,i){e=e.slice();return e[109]=t[i],e}function tf(e){let i,n;function r(e){return e[18]?nf:rf}let o=r(e),a=o(e);return{c(){i=di("div"),n=di("div"),a.c(),gi(n,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,n),a.m(n,null)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},d(e){e&&ci(i),a.d()}}}function nf(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=i[22]("popupTitle")+"";function w(e){return e[16]?sf:2==e[20]?af:of}let _=w(i),x=_(i);function C(e){return e[16]?uf:2==e[20]?cf:lf}let P=C(i),T=P(i);function E(e){return 2==e[20]?pf:df}let S=E(i),A=S(i);return{c(){n=di("div"),r=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(),A.c(),g=I(),gi(r,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(n,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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),A.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]),S===(S=E(e))&&A?A.p(e,t):(A.d(1),(A=S(e))&&(A.c(),A.m(g.parentNode,g)))},d(e){e&&ci(n),e&&ci(l),e&&ci(c),x.d(),T.d(),e&&ci(f),A.d(e),e&&ci(g),y=!1,v()}}}function rf(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 of(e){let i,n,r,o,a,s;return{c(){i=pi("svg"),n=pi("defs"),r=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(r,"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"),A(i,"shape-rendering","geometricPrecision"),A(i,"text-rendering","geometricPrecision"),A(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,n),si(n,r),si(r,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function af(e){let i,n,r;return{c(){i=pi("svg"),n=pi("g"),gi(r=pi("path"),"id","XMLID_6_"),gi(r,"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(n,"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"),A(i,"enable-background","new 0 0 512 512"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,n),si(n,r)},d(e){e&&ci(i)}}}function sf(e){let i,n,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w;return{c(){i=pi("svg"),n=pi("g"),r=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(r,"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"),A(i,"enable-background","new 0 0 52 52"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(n,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 lf(e){let i,n,r=e[22]("popupSuccess")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("popupSuccess")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function cf(e){let i,n,r=e[22]("docsRequired")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("docsRequired")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function uf(e){let i,n,r=e[22]("popupError")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194304&t[0]&&r!==(r=e[22]("popupError")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function df(i){let n,r,o,a,s=i[22]("okButton")+"";return{c(){n=di("button"),r=hi(s),gi(n,"class","ConfirmButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function pf(i){let n,r,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){n=di("button"),r=hi(u),o=mi(),a=di("button"),s=hi(d),gi(n,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,n,t),si(n,r),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(n,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(r,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(n),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function hf(i){let n,r,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]=Tf(Qm(i,x,e));let P=i[12]&&Ef(i),T=i[13]&&Af(i),E=i[21]&&Mf(i);return{c(){n=di("div"),r=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(r,"class","LimitsPageContainer"),gi(n,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,n,t),si(n,r),si(r,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(r,a),si(r,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),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 n=Qm(t,x,e);C[e]?C[e].p(n,i):(C[e]=Tf(n),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=Ef(t)).c(),P.m(s,l)):P&&(P.d(1),P=null),t[13]?T?T.p(t,i):((T=Af(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=Mf(t)).c(),E.m(u,null)):E&&(E.d(1),E=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(n),ui(C,e),P&&P.d(),T&&T.d(),E&&E.d(),i[51](null),b=!1,ai(w)}}}function mf(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 ff(e){return{c:se,m:se,p:se,d:se}}function gf(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 yf(e){let i,n,r,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function vf(e){let i,n,r,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function bf(t){let r,o=t[104].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=Pf(ef(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,r,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[104].currentLimits,e=0;e<o.length;e+=1){var n=ef(t,o,e);a[e]?a[e].p(n,i):(a[e]=Pf(n),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(r)}}}function wf(e){let i,n,r,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(a),gi(r,"class","LimitDetailsTextWrapper"),gi(n,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function _f(e){let i,n,r=e[22]("removedLimitText")+" "+e[109].expiryDate;return{c(){i=di("div"),n=hi(r),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194320&t[0]&&r!==(r=e[22]("removedLimitText")+" "+e[109].expiryDate)&&yi(n,r)},d(e){e&&ci(i)}}}function xf(e){let i,n,r=""+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"),n=hi(r),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194320&t[0]&&r!==(r=""+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(n,r)},d(e){e&&ci(i)}}}function Cf(i){let n,r,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[109])}return{c(){n=di("button"),r=hi(s),gi(n,"class","RemoveLimitButton")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Pf(e){let i,n,r,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)?xf:e[109].isModified?_f:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&Cf(e);return{c(){i=di("div"),n=di("div"),r=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(r,"class","CurrentLimit"),gi(n,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,a),m&&m.m(n,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(n,null))),(d=18&t[0]?!e[109].isModified&&-1<e[1].indexOf(e[104].value):d)?f?f.p(e,t):((f=Cf(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function Tf(e){let i,n,r,o,a,s=e[30](e[104])+"";function l(e){return"lugas"===e[104].value?wf:0<e[104].currentLimits.length?bf:"lugas"===e[104].value?vf:yf}let c=l(e),u=c(e);return{c(){i=di("div"),n=di("p"),r=hi(s),o=mi(),u.c(),a=mi(),gi(n,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,n),si(n,r),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[104])+"")&&yi(r,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 Ef(i){let n,r,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=Sf(Km(i,u,e));return{c(){n=di("label"),r=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(r,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&wi(()=>i[47].call(s)),gi(n,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Km(t,u,e);d[e]?d[e].p(o,i):(d[e]=Sf(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(n),ui(d,e),l=!1,ai(c)}}}function Sf(e){let i,n,r=e[30](e[104])+"";return{c(){i=di("option"),n=hi(r),i.__value=e[106],i.value=i.__value},m(e,t){li(e,i,t),si(i,n)},p(e,t){16&t[0]&&r!==(r=e[30](e[104])+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Af(i){let n,r,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]=Lf(Jm(i,u,e));return{c(){n=di("label"),r=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(r,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&wi(()=>i[49].call(s)),gi(n,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(n,a),si(n,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=Jm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Lf(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(n),ui(d,e),l=!1,c()}}}function Lf(e){let i,n,r,o=e[22](e[101])+"";return{c(){i=di("option"),n=hi(o),i.__value=r=e[101],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,n)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[101])+"")&&yi(n,o),40&t[0]&&r!==(r=e[101])&&(i.__value=r,i.value=i.__value)},d(e){e&&ci(i)}}}function Mf(e){let i,n,r=e[22]("invalidInputMessageLimit",{values:{minValue:e[10],maxValue:e[11],currency:e[0]}})+"";return{c(){i=di("p"),n=hi(r),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,n)},p(e,t){4197377&t[0]&&r!==(r=e[22]("invalidInputMessageLimit",{values:{minValue:e[10],maxValue:e[11],currency:e[0]}})+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Df(i){let n,r,o,a,s=i[17]&&tf(i);function l(e){return e[14]&&!e[17]?gf:e[14]?ff:e[15]?mf:hf}let c=l(i),u=c(i);return{c(){n=di("meta"),r=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=se,gi(n,"name","viewport"),gi(n,"content","width=device-width, initial-scale=1")},m(e,t){si(Zm.head,n),li(e,r,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=tf(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(n),e&&ci(r),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function kf(s,e,l){let c;fe(s,ve,e=>l(22,c=e));let u,a,t,d,F,{lang:p="en"}=e,{currency:h=""}=e,{limits:n=""}=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:z=""}=e,{clientstylingurl:H=""}=e,{translationurl:W=""}=e,j=window.navigator.userAgent,U=!lr(j),w=[],_="",x="",C="",P=0,T="",E="",Y="",S={},G=!1,V=!1,A=!0,L=!1,q=!1,M=!1,D=!1,k="",$=[],i=!1,X={},B={EUR:"€",RON:" lei",USD:"$"};const Z={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},J=(Object.keys(Xm).forEach(e=>{qm(e,Xm[e])}),()=>{l(5,_=w[P].value),l(6,x=ce[_].periods[0]),l(13,V=1<ce[_].periods.length)}),K=()=>{C=w[P].product},I=e=>{if(!(300<=e.status))return l(16,q=!1),e.json();{let n;throw l(15,L=!0),e.json().then(e=>{for(const t in Z)for(const i of Z[t])JSON.stringify(e).includes(i)&&(n=t);console.log("errType",n),n||r(e)}).finally(()=>{n&&r(n),l(15,L=!1),l(14,A=!1)}),new Error("An error occured during the fetch request")}},N=()=>{switch(y){case"gmcore":{l(14,A=!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=>{$=e,M&&r(),Q($),ee($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{l(14,A=!1)})}break;case"gm16":{l(14,A=!0),$=[];let e=new URL(`v1/player/${f}/limits/monetary`,g),t=new URL(`v1/player/${f}/limits/session`,g),i=!1,n={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then(e=>I(e)).then(e=>{$.push(e),M&&r(),"gmcore"===y&&Q($),"gm16"===y&&te($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0}),fetch(t.href,n).then(e=>I(e)).then(e=>{$.push(e),M&&r(),"gm16"===y&&ie($),"gm16"===y&&ne($),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0});return}}},Q=o=>{w.forEach(r=>{r.currentLimits=[];var e=Array.isArray(o[ce[r.value].callValue])?o[ce[r.value].callValue]:[o[ce[r.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,n=o[ce[r.value].callValue][t];r.currentLimits.push({}),r.currentLimits[t].limitType=r.value,r.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),r.currentLimits[t].currency=null!=(i=B[n.currency])?i:n.currency,r.currentLimits[t].period=n.period,r.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.updateAmount),r.currentLimits[t].isModified=n.isModified,r.currentLimits[t].expiryDate=new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),r.currentLimits=O(r.currentLimits))})},ee=n=>{const r=c("minutes");w.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=n[ce[i.value].callValue])&&e.forEach((e,t)=>{t=n[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:r,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=O(i.currentLimits)})},te=n=>{var e;null!=(e=n[0])&&e.limits&&w.forEach(e=>{var t;e.currentLimits=[];for(const i of n[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const n=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),currency:null!=(t=B[n.currency])?t:n.currency,isModified:0<n.schedules.length,period:n.period,product:n.products[0],updateAmount:0<n.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.schedules[0].updateAmount):"",expiryDate:0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:n.id})}e.currentLimits=O(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=O(e.currentLimits)})},ne=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=O(e.currentLimits)})},O=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},re=()=>{l(21,i=!1),null!=S&&S[_]?(l(10,T=S[_].min),l(11,E=S[_].max)):(l(10,T=1),l(11,E=9999999))},r=e=>{var t,i;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),L)l(16,q=!0),e&&!e.thirdPartyResponse&&l(19,k=c(""+e)),e&&e.thirdPartyResponse&&l(19,k=e.thirdPartyResponse.message),e&&null!=e&&e.error.includes("Limit update is not permitted due to LimitUpdateControl")&&l(19,k=c("popupUpdateLimitException")),e&&null!=e&&e.error.includes("Limit remove is not permitted due to LimitUpdateControl")&&l(19,k=c("popupRemoveLimitException")),e&&null!=e&&e.error.includes("[NotFoundException] Limit does not exist")&&l(19,k=c("notFoundException")),l(18,D=!0);else switch(y){case"gmcore":"sessionLimit"===_||"cumulativeSession"===_?$&&(t=$[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,k=t.isModified?`${c("popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)):$&&(t=$[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,k=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,k=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(F)+` ${h} `+c("popup2_b")),3==d&&l(19,k=c("popup3")),l(18,D=!0);else if("sessionLimit"===_||"cumulativeSession"===_)l(19,k=c("sessionLimitUpdated")),l(18,D=!0);else{var n,r=(null==(n=$[0])?void 0:n.limits)||$.limits;if($){const n=r.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(n.amount),a=0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";r=c("popupImmediateUpdate").replace("{selectedLimit}",ae()).replace("{updatedAmount}",o).replace("{currency}",B[n.currency]||n.currency).replace("{selectedPeriod}",c(""+x));l(19,k=0<n.schedules.length?c("popupPendingUpdate")+" "+a:r)}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,M=!0),l(14,A=!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,L=!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 n;switch(e.limitType){case"sessionLimit":n=t;break;case"cumulativeSession":n=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}l(17,M=!0),l(14,A=!0);let r={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,r).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})}:e=>{const t=new URL(`/v1/player/${f}/limits/monetary/${e.id}`,g);l(17,M=!0),l(14,A=!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,L=!0)})})(e)}var t,i},ae=e=>{return c(e?e.value+e.product:_)},se=()=>{l(18,D=l(17,M=!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,n=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,z=e.clientstyling),"clientstylingurl"in e&&l(44,H=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 n=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:n,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[n].callValue,callValue16:ce[n].callValue16,title:ce[n].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==(r=w[0])?void 0:r.value,w.forEach(e=>{S[e.value]={min:e.min,max:e.max},X[e.value]=e.product}),S&&(S[Y]?(l(10,T=S[Y].min),l(11,E=S[Y].max)):(l(10,T=1),l(11,E=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&&(r=p,ye.set(r)),488&s.$$.dirty[1]&&f&&m&&g&&y&&p&&N(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&H&&u){let e=new URL(H),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var n,r;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&z&&u&&((n=document.createElement("style")).innerHTML=z,u.appendChild(n)),16384&s.$$.dirty[1]&&W&&fetch(W).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qm(e,t[e])})}).catch(e=>{console.log(e)})},[h,o,u,ce,w,_,x,P,a,t,T,E,G,V,A,L,q,M,D,k,d,i,c,U,J,K,()=>{switch(y){case"gmcore":if(0<a){l(17,M=!0),l(14,A=!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,L=!0)})}break;case"gm16":"lugas"===_?0<a&&(l(17,M=!0),l(14,A=!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,F=e.regulatorDepositLimitAmount,N()}).catch(e=>{console.log(e),l(15,L=!0)})):"sessionLimit"===_?0<a&&(l(17,M=!0),l(14,A=!0),o=new URL(`v1/player/${f}/limits/session/`,g),r={sessionLimit:a,sessionLimitUnit:"minute"},r={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(o.href,r).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})):"cumulativeSession"===_?0<a&&(l(17,M=!0),l(14,A=!0),r=new URL(`v1/player/${f}/limits/session/`,g),n={cumulativeSessionLimits:[{period:x,minutes:a}]},n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(r.href,n).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)})):a<=0||(l(17,M=!0),l(14,A=!0),n=w[P].currentLimits.filter(e=>e.period===x)[0],e=new URL(`v1/player/${f}/limits/monetary/`+(n?n.id:""),g),t=n?"PUT":"POST",n=n?{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(n)},fetch(e.href,t).then(e=>I(e)).then(e=>{N()}).catch(e=>{console.log(e),l(15,L=!0)}));break;default:throw Error("Invalid apiversion attribute: "+y)}var e,t,n,r,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"))},re,oe,ae,se,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),se()},e=>{13===e.keyCode&&i&&e.preventDefault()},p,n,m,f,g,y,v,b,R,z,H,W,e=>oe(e),function(){P=pe(this),l(7,P)},()=>{K(),J(),re()},function(){x=pe(this),l(6,x),l(3,ce),l(5,_)},function(){a=de(this.value),l(8,a)},function(e){ge[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){ge[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function $f(e,t){k(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)}@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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},kf,Df,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 Bf={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 If(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function Nf(i){let n,r,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]=Hf(If(i,f,e));return{c(){n=di("div"),r=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"),L(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),L(p,"hidden",i[5]),gi(r,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(n,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(r,d),si(r,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]&&L(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var n=If(t,f,e);g[e]?g[e].p(n,i):(g[e]=Hf(n),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]&&L(p,"hidden",t[5])},d(e){e&&ci(n),ui(g,e),h=!1,m()}}}function Of(e){return{c:se,m:se,p:se,d:se}}function Ff(e){let i,n,r=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),n=hi(r)},m(e,t){li(e,i,t),si(i,n)},p(e,t){513&t[0]&&r!==(r=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(n,r)},d(e){e&&ci(i)}}}function Rf(e){let i,n,r,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"),n=di("span"),r=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(r,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(n,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,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 zf(e){let i,n,r,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),n=di("span"),r=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(r,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(n,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,n),si(n,r),si(r,o),si(n,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 Hf(i){let n,r,o,a=i[38];function s(e){return e[36].removed?zf:Rf}let l=s(i),c=l(i);const u=()=>i[20](n,a),d=()=>i[20](null,a);return{c(){n=di("div"),c.c(),r=mi(),gi(n,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,n,t),c.m(n,null),si(n,r),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(n,r))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(n,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(n),c.d(),d()}}}function Wf(i){let n;function r(e){return e[6]?Ff:e[4]?Of:Nf}let o=r(i),a=o(i);return{c(){n=di("div"),a.c(),this.c=se},m(e,t){li(e,n,t),a.m(n,null),i[21](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:se,o:se,d(e){e&&ci(n),a.d(),i[21](null)}}}function jf(i,e,n){let r;fe(i,ve,e=>n(9,r=e));let o,t=window.navigator.userAgent,a=!lr(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(Bf).forEach(e=>{$f(e,Bf[e])});let E=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&n(7,x=_.slice(0,v))})});return we(()=>()=>{E.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&n(0,s=e.lang),"userid"in e&&n(12,l=e.userid),"session"in e&&n(13,c=e.session),"endpoint"in e&&n(14,u=e.endpoint),"apiversion"in e&&n(15,d=e.apiversion),"numberofentries"in e&&n(1,p=e.numberofentries),"customcurrencysymbols"in e&&n(16,h=e.customcurrencysymbols),"clientstyling"in e&&n(17,m=e.clientstyling),"clientstylingurl"in e&&n(18,f=e.clientstylingurl),"translationurl"in e&&n(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 n(4,w=!1),n(6,b=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!Bf[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=r(""+e.limitPeriod.toLowerCase()),t.type=r("historyLimitType"+e.limitType.split(" ")[0])+" "+r("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),n(7,x=_.slice(0,v))),n(4,w=!1)},e=>{console.error("There was an error",e),n(6,b=!0)})),56&i.$$.dirty[0]&&y[0]&&!w&&!C&&E.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,ye.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=>{$f(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,w,C,b,x,P,r,a,()=>{n(5,C=!C),n(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){ge[e?"unshift":"push"](()=>{y[t]=e,n(3,y)})},function(e){ge[e?"unshift":"push"](()=>{o=e,n(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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},jf,Wf,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 Uf=u["document"];function Yf(e,t,i){e=e.slice();return e[39]=t[i],e[41]=i,e}function Gf(e,t,i){e=e.slice();return e[42]=t[i],e[41]=i,e}function Vf(i){let n,r,o,a,s=1<i[21].length&&function(i){let r,o=i[21],a=[];for(let e=0;e<o.length;e+=1)a[e]=Xf(Gf(i,o,e));return{c(){r=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(r,"class","TabsContainer")},m(e,t){li(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null);i[30](r)},p(t,i){if(10551296&i[0]){let e;for(o=t[21],e=0;e<o.length;e+=1){var n=Gf(t,o,e);a[e]?a[e].p(n,i):(a[e]=Xf(n),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(r),ui(a,e),i[30](null)}}}(i),l=i[21],c=[];for(let e=0;e<l.length;e+=1)c[e]=Zf(Yf(i,l,e));let u="true"===i[6]&&Jf(i);return{c(){s&&s.c(),n=mi(),r=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=I(),gi(r,"class","PlayerAccountGamingLmitsWrapper2")},m(e,t){s&&s.m(e,t),li(e,n,t),li(e,r,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(r,null);i[31](r),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=Yf(t,l,e);c[e]?c[e].p(a,i):(c[e]=Zf(a),c[e].c(),c[e].m(r,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Jf(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(n),e&&ci(r),ui(c,e),i[31](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function qf(e){return{c:se,m:se,p:se,d:se}}function Xf(i){let n,r,o,a,s=(i[16][i[41]]??i[42])+"";function l(){return i[29](i[41])}return{c(){n=di("div"),r=hi(s),gi(n,"class","LimitsTab")},m(e,t){li(e,n,t),si(n,r),o||(a=fi(n,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[41]]??i[42])+"")&&yi(r,s)},d(e){e&&ci(n),o=!1,a()}}}function Zf(e){let i,n,r;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",n=e[18][e[41]]),le(i,"periodsconfig",r=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]&&n!==(n=e[18][e[41]])&&le(i,"amountsconfig",n),524288&t[0]&&r!==(r=e[19][e[41]])&&le(i,"periodsconfig",r),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 Jf(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 Kf(i){let n,r,o,a,s,l,c,u,d,p=i[20]("title")+"",h=i[22]&&function(i){let n,r,o,a,s,l,c,u,d,p,h,m,f,g=i[20]("title")+"";return{c(){n=di("div"),r=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(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","15"),gi(r,"height","15"),gi(r,"viewBox","0 0 15 15"),gi(p,"class","GamingLimitsTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){li(e,n,t),si(n,r),si(r,o),si(o,a),si(a,s),si(r,l),si(l,c),si(c,u),si(n,d),si(n,p),si(p,h),m||(f=fi(n,"click",i[28]),m=!0)},p(e,t){1048576&t[0]&&g!==(g=e[20]("title")+"")&&yi(h,g)},d(e){e&&ci(n),m=!1,f()}}}(i);function m(e){return e[13]?qf:Vf}let f=m(i),g=f(i);return{c(){n=di("meta"),r=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(n,"name","viewport"),gi(n,"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(Uf.head,n),li(e,r,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(n),e&&ci(r),e&&ci(o),h&&h.d(),g.d(),i[32](null)}}}function Qf(i,e,n){let t;fe(i,ve,e=>n(20,t=e));let r,o,a,s,l,c,{lang:u=""}=e,{userid:d=""}=e,{session:p=""}=e,{endpoint:h=""}=e,{currency:m=""}=e,{apiversion:f=""}=e,{tablabels:g=""}=e,{historyenabled:y="true"}=e,{deletelimit:v=""}=e,{limitsamount:b=""}=e,{limitsperiods:w=""}=e,{numberofentries:_=""}=e,{customcurrencysymbols:x=""}=e,{clientstyling:C=""}=e,{clientstylingurl:P=""}=e,{translationurl:T=""}=e,E=!0,S=[],A=window.navigator.userAgent,L="PC"!==be(A);Object.keys(Vm).forEach(e=>{k(e,Vm[e])});const M=t=>{if(0<a.children.length)for(let e=0;e<a.children.length;e++)t===e?(a.children[e].classList.remove("hidden"),null!=s&&s.children[e].classList.add("selected")):(a.children[e].classList.add("hidden"),null!=s&&s.children[e].classList.remove("selected"))},D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:L},window.location.href)};return we(()=>()=>{n(15,a=null),n(17,s=null)}),i.$$set=e=>{"lang"in e&&n(0,u=e.lang),"userid"in e&&n(1,d=e.userid),"session"in e&&n(2,p=e.session),"endpoint"in e&&n(3,h=e.endpoint),"currency"in e&&n(4,m=e.currency),"apiversion"in e&&n(5,f=e.apiversion),"tablabels"in e&&n(25,g=e.tablabels),"historyenabled"in e&&n(6,y=e.historyenabled),"deletelimit"in e&&n(7,v=e.deletelimit),"limitsamount"in e&&n(26,b=e.limitsamount),"limitsperiods"in e&&n(27,w=e.limitsperiods),"numberofentries"in e&&n(8,_=e.numberofentries),"customcurrencysymbols"in e&&n(9,x=e.customcurrencysymbols),"clientstyling"in e&&n(10,C=e.clientstyling),"clientstylingurl"in e&&n(11,P=e.clientstylingurl),"translationurl"in e&&n(12,T=e.translationurl)},i.$$.update=()=>{if(33554479&i.$$.dirty[0]&&d&&p&&h&&g&&u&&f){var e=b,t=w;if(n(18,l=e.replace(/\s/g,"").split("|")),n(19,c=t.replace(/\s/g,"").split("|")),0===l.length)throw new Error("Please provide a full limits configuration.");if(l.length!==c.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");b.split("|").forEach(e=>{S.push(e)}),n(16,o=g.split(",").map(e=>e.trim())),n(13,E=!1)}if(40960&i.$$.dirty[0]&&a&&!E&&M(0),18432&i.$$.dirty[0]&&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)})}17408&i.$$.dirty[0]&&C&&r&&((e=document.createElement("style")).innerHTML=C,r.appendChild(e))},[u,d,p,h,m,f,y,v,_,x,C,P,T,E,r,a,o,s,l,c,t,S,L,M,D,g,b,w,()=>D(),e=>M(e),function(e){ge[e?"unshift":"push"](()=>{s=e,n(17,s)})},function(e){ge[e?"unshift":"push"](()=>{a=e,n(15,a)})},function(e){ge[e?"unshift":"push"](()=>{r=e,n(14,r)})}]}function eg(e){let i,n,r,o,a,s,l;function c(e){return e[27]&&e[26]===e[33][0]?yg:e[27]&&e[26]===e[33][1]?gg:e[27]&&e[26]===e[33][2]?fg:e[27]&&e[26]===e[33][3]?mg:e[27]&&e[26]===e[33][4]?hg:e[27]&&e[26]==e[33][5]?pg:e[27]&&e[26]===e[33][6]?dg:e[27]&&e[26]===e[33][7]?ug:e[27]&&e[26]===e[33][8]?cg:e[27]&&e[26]===e[33][9]?lg:e[27]&&e[26]===e[33][10]?sg:e[27]&&e[26]===e[33][11]?ag:e[27]&&e[26]===e[33][12]?og:e[27]&&e[26]===e[33][13]?rg:e[27]&&e[26]===e[33][14]?ng:e[27]&&e[26]===e[33][15]?ig:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),n=di("player-account-menu"),r=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),le(n,"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"selecteditem",e[31]),le(n,"userroles",e[9]),le(n,"clientstyling",e[20]),le(n,"clientstylingurl",e[21]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[20]),le(l,"clientstylingurl",e[21])},m(e,t){li(e,i,t),si(i,n),li(e,r,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(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),1&t[1]&&le(n,"selecteditem",e[31]),512&t[0]&&le(n,"userroles",e[9]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21]),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]),1048576&t[0]&&le(l,"clientstyling",e[20]),2097152&t[0]&&le(l,"clientstylingurl",e[21])},d(e){e&&ci(i),e&&ci(r),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function tg(e){let i;function n(e){return e[27]?e[27]&&e[26]===e[33][0]?$g:e[27]&&e[26]===e[33][1]?kg:e[27]&&e[26]===e[33][2]?Dg:e[27]&&e[26]===e[33][3]?Mg:e[27]&&e[26]===e[33][4]?Lg:e[27]&&e[26]===e[33][5]?Ag:e[27]&&e[26]===e[33][6]?Sg:e[27]&&e[26]===e[33][7]?Eg:e[27]&&e[26]===e[33][8]?Tg:e[27]&&e[26]===e[33][9]?Pg:e[27]&&e[26]===e[33][10]?Cg:e[27]&&e[26]===e[33][11]?xg:e[27]&&e[26]===e[33][12]?_g:e[27]&&e[26]===e[33][13]?wg:e[27]&&e[26]===e[33][14]?bg:e[27]&&e[26]===e[33][15]?vg:void 0:Bg}let r=n(e),o=r&&r(e);return{c(){o&&o.c(),i=I()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o&&o.d(1),(o=r&&r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function ig(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[19]),le(i,"translationurl",e[22]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),524288&t[0]&&le(i,"apiversion",e[19]),4194304&t[0]&&le(i,"translationurl",e[22]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function rg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function og(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function ag(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function sg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function lg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"gmversion",e[24])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),16777216&t[0]&&le(i,"gmversion",e[24])},d(e){e&&ci(i)}}}function cg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function ug(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[29]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),536870912&t[0]&&le(i,"playercurrency",e[29]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function dg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function pg(i){let n,r,o;return{c(){le(n=di("player-account-gaming-limits"),"playercurrency",i[29]),le(n,"separatelimits",i[7]),le(n,"clientstyling",i[20]),le(n,"clientstylingurl",i[21])},m(e,t){li(e,n,t),r||(o=c(i[34].call(null,n)),r=!0)},p(e,t){536870912&t[0]&&le(n,"playercurrency",e[29]),128&t[0]&&le(n,"separatelimits",e[7]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21])},d(e){e&&ci(n),r=!1,o()}}}function hg(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function mg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function fg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[30]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){1073741824&t[0]&&le(i,"realitycheck",e[30]),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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function gg(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function yg(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[28]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21]),le(i,"custominputtextswitch",e[23])},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]),268435456&t[0]&&le(i,"countrycode",e[28]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),8388608&t[0]&&le(i,"custominputtextswitch",e[23])},d(e){e&&ci(i)}}}function vg(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[19]),le(i,"translationurl",e[22]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),524288&t[0]&&le(i,"apiversion",e[19]),4194304&t[0]&&le(i,"translationurl",e[22]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function bg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function wg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function _g(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function xg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function Cg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"playercurrency",e[29])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),536870912&t[0]&&le(i,"playercurrency",e[29])},d(e){e&&ci(i)}}}function Pg(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[20]),le(i,"clientstylingurl",e[21]),le(i,"gmversion",e[24])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),16777216&t[0]&&le(i,"gmversion",e[24])},d(e){e&&ci(i)}}}function Tg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Eg(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[29]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),536870912&t[0]&&le(i,"playercurrency",e[29]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Sg(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[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Ag(i){let n,r,o;return{c(){le(n=di("player-account-gaming-limits"),"playercurrency",i[29]),le(n,"separatelimits",i[7]),le(n,"clientstyling",i[20]),le(n,"clientstylingurl",i[21])},m(e,t){li(e,n,t),r||(o=c(i[34].call(null,n)),r=!0)},p(e,t){536870912&t[0]&&le(n,"playercurrency",e[29]),128&t[0]&&le(n,"separatelimits",e[7]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21])},d(e){e&&ci(n),r=!1,o()}}}function Lg(e){let i;return{c(){le(i=di("player-account-closure"),"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&le(i,"lang",e[4]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Mg(e){let i;return{c(){le(i=di("player-account-timeout"),"lang",e[4]),le(i,"operator",e[5]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Dg(e){let i;return{c(){le(i=di("player-reality-check"),"realitycheck",e[30]),le(i,"endpoint",e[3]),le(i,"playerid",e[1]),le(i,"session",e[2]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},m(e,t){li(e,i,t)},p(e,t){1073741824&t[0]&&le(i,"realitycheck",e[30]),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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function kg(e){let i;return{c(){le(i=di("player-change-password"),"simplepasswordvalidation",e[10]),le(i,"lang",e[4]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21])},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]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function $g(e){let i;return{c(){le(i=di("player-profile-info"),"endpoint",e[3]),le(i,"lang",e[4]),le(i,"countrycode",e[28]),le(i,"clientstyling",e[20]),le(i,"clientstylingurl",e[21]),le(i,"custominputtextswitch",e[23])},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]),268435456&t[0]&&le(i,"countrycode",e[28]),1048576&t[0]&&le(i,"clientstyling",e[20]),2097152&t[0]&&le(i,"clientstylingurl",e[21]),8388608&t[0]&&le(i,"custominputtextswitch",e[23])},d(e){e&&ci(i)}}}function Bg(e){let i,n,r,o;return{c(){i=di("nav"),n=di("player-account-menu"),r=mi(),o=di("player-account-notifications"),le(n,"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"userroles",e[9]),le(n,"clientstyling",e[20]),le(n,"clientstylingurl",e[21]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[20]),le(o,"clientstylingurl",e[21]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,n),si(i,r),si(i,o)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),512&t[0]&&le(n,"userroles",e[9]),1048576&t[0]&&le(n,"clientstyling",e[20]),2097152&t[0]&&le(n,"clientstylingurl",e[21]),1&t[0]&&le(o,"customnotif",e[0]),1048576&t[0]&&le(o,"clientstyling",e[20]),2097152&t[0]&&le(o,"clientstylingurl",e[21])},d(e){e&&ci(i)}}}function Ig(i){let n,r=function(e){let i,t=e[32]?tg:eg,n=t(e);return{c(){i=di("section"),n.c(),gi(i,"class","PlayerAccountPage "+(e[32]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),n.m(i,null)},p(e,t){n.p(e,t)},d(e){e&&ci(i),n.d()}}}(i);return{c(){n=di("div"),r.c(),this.c=se},m(e,t){li(e,n,t),r.m(n,null),i[45](n)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&ci(n),r.d(),i[45](null)}}}function Ng(t,e,o){let a;fe(t,ve,e=>o(57,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:n=""}=e,{limitspath:r=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:O=""}=e,{realm:F=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:z="true"}=e,{hasdefaultamount:H="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:X=""}=e,{currency:Z=""}=e,{apiversion:J=""}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{custominputtextswitch:K="false"}=e,{gmversion:Q=""}=e;var ee,te;({withLocale:ee,translations:te}={withLocale:"en",translations:{}}),ye.subscribe(e=>{null==e&&(Dn.set(te),ye.set(ee))});let v,b,w,_,ie,x,ne=window.navigator.userAgent,re="PC"!==be(ne),oe=[],ae=[],C="",P="",T="",se="",E=null,S="",A={},L=!1,M=!1,le="",D="",ce=!1,k=!1;Object.keys(ur).forEach(e=>{cr(e,ur[e])});const ue=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(27,k=!0),o(26,T=i.data.page.path),o(31,x=i.data.page.id),"/profile-info"==T&&($(),B()),"/deposit"==T&&"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==T&&"function"==typeof gtag&>ag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(27,k=!0),o(26,T=i.data.pagePath),"/profile-info"==T&&($(),B());var n=new URL(`${s}/${p}/profile-menu?env=`+l);n.searchParams.append("device",S),de(n).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(31,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(27,k=!1),me());break;case"UpdatePlayerInfo":n=i.data.provisionalArray,n={mobile:{prefix:n.mobilePrefix,number:n.mobileNumber},address1:n.address,city:n.city,postalCode:n.postalCode,securityQuestion:n.securityQuestion,securityAnswer:n.securityAnswer},n=(t=new URL(`${d}/v1/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)});fetch(t.href,n).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`);n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,n).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`),n={currentPassword:e,newPassword:t},r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},o=await fetch(i.href,r);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),ce=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:ce,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);n={coolOff:{period:i.data.timeoutSelected}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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);n={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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);n={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).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,he();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));n=i.data.payload,n={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};fetch(t.href,n).then(e=>{200==e.status&&(L=!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 n=i.data.limit||{},r=Array.isArray(n)?n.map(e=>e.period):n.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"}n={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(n)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(r)?r.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",r),fetch(t.href,n).then(e=>{200==e.status&&(M=!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":{r=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/v1/player/${C}/realitycheck`),t=(r&&(le=r),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(le,10)}});fetch(e.href,t).then(e=>{200==e.status&&(pe(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 de(e){return e.searchParams.append("device",S),(await fetch(e.href)).json()}const $=()=>{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(28,se=e.country),o(29,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)})},pe=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(30,ie=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===L?setTimeout(()=>{L=!1},3e3):!0===M&&setTimeout(()=>{M=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{A=e,0!==Object.keys(A).length?(o(41,v=null!=(e=A.depositLimits)?e:[]),o(42,b=null!=(e=A.wageringLimits)?e:[]),o(43,w=null!=(e=A.lossLimits)?e:[]),A.hasOwnProperty("cumulativeSessionLimits")?(o(44,_=A.timeLimit),o(44,_=A.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(44,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:E,depositlimit:v,wageringlimit:b,losslimit:w,timelimit:_,showsuccessnotification:L,showdeletenotification:M,lang:p}},window.location.href)):(o(41,v=[]),o(42,b=[]),o(43,w=[]),o(44,_=[])),_e()},e=>{console.error(e)})},he=()=>{var e;de(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{oe=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:oe},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",S),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ae=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ae},window.location.href))},e=>{console.error(e)}),$(),B(),pe(new URL(`${d}/v1/player/${c}/realitycheck`))},me=()=>{var e;(e=be(ne))&&(S="PC"===e?"dk":"mtWeb"),C=c,P=u,re||o(27,k=!0),he()};return we(()=>(window.addEventListener("message",ue,!1),()=>{window.removeEventListener("message",ue)})),t.$$set=e=>{"cmsendpoint"in e&&o(35,s=e.cmsendpoint),"env"in e&&o(36,l=e.env),"customnotifications"in e&&o(0,n=e.customnotifications),"limitspath"in e&&o(37,r=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(38,O=e.operatorid),"realm"in e&&o(39,F=e.realm),"webapiendpoint"in e&&o(40,R=e.webapiendpoint),"separatelimits"in e&&o(7,z=e.separatelimits),"hasdefaultamount"in e&&o(8,H=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,X=e.customcurrencysymbols),"currency"in e&&o(18,Z=e.currency),"apiversion"in e&&o(19,J=e.apiversion),"clientstyling"in e&&o(20,f=e.clientstyling),"clientstylingurl"in e&&o(21,g=e.clientstylingurl),"translationurl"in e&&o(22,y=e.translationurl),"custominputtextswitch"in e&&o(23,K=e.custominputtextswitch),"gmversion"in e&&o(24,Q=e.gmversion)},t.$$.update=()=>{if(201326608&t.$$.dirty[0]&&p&&k&&T&&(e=p,ye.set(e)),543&t.$$.dirty[0]|48&t.$$.dirty[1]&&s&&d&&n&&c&&u&&p&&l&&m&&me(),t.$$.dirty[1],34603008&t.$$.dirty[0]&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),35651584&t.$$.dirty[0]&&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;4194304&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{cr(e,t[e])})}).catch(e=>{console.log(e)})},[n,c,u,d,p,h,N,z,H,m,W,j,U,Y,G,V,q,X,Z,J,f,g,y,K,Q,i,T,k,se,E,void 0,x,re,["/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"],e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,r,O,F,R,v,b,w,_,function(e){ge[e?"unshift":"push"](()=>{i=e,o(25,i)})}]}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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Qf,Kf,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()}});class Og 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),r(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ng,Ig,i,{cmsendpoint:35,env:36,customnotifications:0,limitspath:37,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:38,realm:39,webapiendpoint:40,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,apiversion:19,clientstyling:20,clientstylingurl:21,translationurl:22,custominputtextswitch:23,gmversion:24},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","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion"]}get cmsendpoint(){return this.$$.ctx[35]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[36]}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[37]}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[38]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[39]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[40]}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 apiversion(){return this.$$.ctx[19]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[23]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[24]}set gmversion(e){this.$$set({gmversion:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",Og),Og});
|
|
1691
1691
|
//# sourceMappingURL=player-account-controller.js.map
|