@everymatrix/player-account-gaming-limits 1.34.0 → 1.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function V(){}const x=e=>e;function h(e){return e()}function p(){return Object.create(null)}function z(e){e.forEach(h)}function w(e){return"function"==typeof e}function E(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function T(e,...t){if(null==e)return V;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function re(e,t,i){e.$$.on_destroy.push(T(t,i))}var e="undefined"!=typeof window;let C=e?()=>window.performance.now():()=>Date.now(),M=e?e=>requestAnimationFrame(e):V;const S=new Set;function D(t){S.forEach(e=>{e.c(t)||(S.delete(e),e.f())}),0!==S.size&&M(D)}function q(e,t){e.appendChild(t)}function k(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function Z(e,t,i){e.insertBefore(t,i||null)}function X(e){e.parentNode&&e.parentNode.removeChild(e)}function I(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function K(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function J(e){return document.createTextNode(e)}function Q(){return J(" ")}function b(){return J("")}function ee(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function oe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function te(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ie(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:te(e,t,i)}function ae(e){return""===e?null:+e}function ne(e,t){e.data!==(t=""+t)&&(e.data=t)}function P(e,t){e.value=null==t?"":t}function O(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 N(e){var t={};for(const i of e)t[i.name]=i.value;return t}const H=new Map;let B,R=0;function $(e,t,i,n,r,o,a,s=0){var l=16.666/n;let u="{\n";for(let e=0;e<=1;e+=l){const n=t+(i-t)*o(e);u+=100*e+`%{${a(n,1-n)}}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function V(){}const L=e=>e;function p(e){return e()}function x(){return Object.create(null)}function z(e){e.forEach(p)}function w(e){return"function"==typeof e}function E(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function T(e,...t){if(null==e)return V;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function re(e,t,i){e.$$.on_destroy.push(T(t,i))}var e="undefined"!=typeof window;let C=e?()=>window.performance.now():()=>Date.now(),M=e?e=>requestAnimationFrame(e):V;const S=new Set;function D(t){S.forEach(e=>{e.c(t)||(S.delete(e),e.f())}),0!==S.size&&M(D)}function q(e,t){e.appendChild(t)}function k(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function Z(e,t,i){e.insertBefore(t,i||null)}function X(e){e.parentNode&&e.parentNode.removeChild(e)}function I(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function K(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function J(e){return document.createTextNode(e)}function Q(){return J(" ")}function b(){return J("")}function ee(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function oe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function te(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ie(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:te(e,t,i)}function ae(e){return""===e?null:+e}function ne(e,t){e.data!==(t=""+t)&&(e.data=t)}function P(e,t){e.value=null==t?"":t}function O(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 N(e){var t={};for(const i of e)t[i.name]=i.value;return t}const H=new Map;let B,R=0;function $(e,t,i,n,r,o,a,s=0){var l=16.666/n;let u="{\n";for(let e=0;e<=1;e+=l){const n=t+(i-t)*o(e);u+=100*e+`%{${a(n,1-n)}}
2
2
  `}var c,d=u+`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,m=k(e),{stylesheet:h,rules:p}=H.get(m)||(m=m,c={stylesheet:(c=e,p=K("style"),c=k(c),h=p,q(c.head||c,h),h.sheet,p.sheet),rules:{}},H.set(m,c),c),m=(p[s]||(p[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(m?m+", ":"")+s+` ${n}ms linear ${r}ms 1 both`,R+=1,s}function Y(e){B=e}function se(e){!function(){if(B)return B;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],G=[];let j=[];const U=[],le=Promise.resolve();let ue=!1;function ce(e){j.push(e)}const de=new Set;let me,he=0;function m(){if(0===he){const n=B;do{try{for(;he<F.length;){const n=F[he];he++,Y(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),z(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ce))}}catch(n){throw F.length=0,he=0,n}for(Y(null),F.length=0,he=0;G.length;)G.pop()();for(let e=0;e<j.length;e+=1){var i=j[e];de.has(i)||(de.add(i),i())}}while(j.length=0,F.length);for(;U.length;)U.pop()();ue=!1,de.clear(),Y(n)}}function pe(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 fe=new Set;let g;function ge(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ye(e,t,i,n){e&&e.o?fe.has(e)||(fe.add(e),g.c.push(()=>{fe.delete(e),n&&(i&&e.d(1),n())}),e.o(t)):n&&n()}const ve={duration:0};function we(l,e,t,i){const n={direction:"both"};let u=e(l,t,n),c=i?0:1,d=null,m=null,h=null;function p(){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(", "),R-=i)||M(()=>{R||(H.forEach(e=>{e=e.stylesheet.ownerNode;e&&X(e)}),H.clear())}))}function f(e,t){var i=e.b-c;return t*=Math.abs(i),{a:c,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=x,tick:r=V,css:o}=u||ve,a={start:C()+t,b:e};if(e||((a.group=g).r+=1),d||m)m=a;else{o&&(p(),h=$(l,c,e,i,t,n,o)),e&&r(0,1),d=f(a,i),ce(()=>pe(l,e,"start"));{var s=e=>{return m&&e>m.start&&(d=f(m,i),m=null,pe(l,d.b,"start"),o)&&(p(),h=$(l,c,d.b,d.duration,0,n,u.css)),d&&(e>=d.end?(r(c=d.b,1-c),pe(l,d.b,"end"),m||(d.b?p():--d.group.r||z(d.group.c)),d=null):e>=d.start&&(e=e-d.start,c=d.a+d.d*n(e/d.duration),r(c,1-c))),!(!d&&!m)};let t;0===S.size&&M(D),new Promise(e=>{S.add(t={c:s,f:e})})}}}return{run(e){w(u)?(me||(me=Promise.resolve()).then(()=>{me=null}),me.then(()=>{u=u(n),r(e)})):r(e)},end(){p(),d=m=null}}}function be(n,e,t,i,r,o,a,s=[-1]){var l=B;Y(n);const u=n.$$={fragment:null,ctx:[],props:o,update:V,not_equal:r,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:p(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),c)&&(i=e,-1===(e=n).$$.dirty[0]&&(F.push(e),ue||(ue=!0,le.then(m)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],u.update(),c=!0,z(u.before_update),u.fragment=!!i&&i(u.ctx),e.target){if(e.hydrate){o=e.target;const V=Array.from(o.childNodes);u.fragment&&u.fragment.l(V),V.forEach(X)}else u.fragment&&u.fragment.c();e.intro&&ge(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||ce(()=>{var e=d.$$.on_mount.map(h).filter(w);d.$$.on_destroy?d.$$.on_destroy.push(...e):z(e),d.$$.on_mount=[]}),o.forEach(ce),m()}Y(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(w);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){z(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const n=[],r=[];j.forEach(e=>(-1===i.indexOf(e)?n:r).push(e)),r.forEach(e=>e()),j=n}z(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=V}$on(e,t){if(!w(t))return V;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 Le,xe,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Ee="URLSearchParams"in l,Te="Symbol"in l&&"iterator"in Symbol,Ce="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),Me="FormData"in l,Se="ArrayBuffer"in l;function Ae(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 De(e){return e="string"!=typeof e?String(e):e}function ke(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Te&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?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 Ie(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Pe(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Oe(e){var t=new FileReader,i=Pe(t);return t.readAsArrayBuffer(e),i}function Ne(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function He(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ee&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se&&Ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ne(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Se&&(ArrayBuffer.prototype.isPrototypeOf(e)||xe(e))?this._bodyArrayBuffer=Ne(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):Ee&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ce&&(this.blob=function(){var e=Ie(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 Ie(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(Ce)return this.blob().then(Oe);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,n=Ie(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Pe(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($e)}),this.json=function(){return this.text().then(JSON.parse)},this}Se&&(Le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xe=ArrayBuffer.isView||function(e){return e&&-1<Le.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=Ae(e),t=De(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},u.prototype.delete=function(e){delete this.map[Ae(e)]},u.prototype.get=function(e){return e=Ae(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(Ae(e))},u.prototype.set=function(e,t){this.map[Ae(e)]=De(t)},u.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},u.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),ke(i)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ke(t)},u.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),ke(i)},Te&&(u.prototype[Symbol.iterator]=u.prototype.entries);var Be=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Re(e,t){if(!(this instanceof Re))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 Re){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(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 u(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Be.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)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 $e(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 c(e,t){if(!(this instanceof c))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 u(t.headers),this.url=t.url||"",this._initBody(e)}Re.prototype.clone=function(){return new Re(this,{body:this._bodyInit})},He.call(Re.prototype),He.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ye=[301,302,303,307,308],Fe=(c.redirect=function(e,t){if(-1===Ye.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Fe}catch(V){(Fe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe}function je(n,s){return new Promise(function(r,e){var o=new Re(n,s);if(o.signal&&o.signal.aborted)return e(new Fe("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,n,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new u,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 c(i,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){e(new Fe("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&l.location.href?l.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&&(Ce?a.responseType="blob":Se&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof u||l.Headers&&s.headers instanceof l.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(Ae(e)),a.setRequestHeader(e,De(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 Di(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}je.polyfill=!0,l.fetch||(l.fetch=je,l.Headers=u,l.Request=Re,l.Response=c),self.fetch.bind(self);var Ue=function(e,t){return(Ue=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 Ge(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}Ue(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function We(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 Ve(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 ze(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 d(e){return"function"==typeof e}function qe(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 Ze=qe(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 Xe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.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=We(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(d(o))try{o()}catch(e){r=e instanceof Ze?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=We(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{et(c)}catch(e){r=null!=r?r:[],e instanceof Ze?r=ze(ze([],Ve(r)),Ve(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ze(r)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)et(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Xe(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Xe(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((e=new i).closed=!0,e);var Ke=i,Je=Ke.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Qe(e){return e instanceof Ke||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function et(e){d(e)?e():e.unsubscribe()}var tt=void 0,it=!1,nt=!1,rt={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=rt.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],Ve(i))):setTimeout.apply(void 0,ze([e,t],Ve(i)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ot(){}var at=null;function st(e){if(it){var t=!at;if(t&&(at={errorThrown:!1,error:null}),e(),t){var t=at,i=t.errorThrown,t=t.error;if(at=null,i)throw t}}else e()}Ge(n,lt=Ke),n.create=function(e,t,i){return new pt(e,t,i)},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,lt.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var lt,ut=n,ct=Function.prototype.bind;function n(e){var t=lt.call(this)||this;return t.isStopped=!1,e?Qe(t.destination=e)&&e.add(t):t.destination=vt,t}function dt(e,t){return ct.call(e,t)}gt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yt(e)}},gt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yt(e)}else yt(e)},gt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yt(e)}};var mt,ht=gt,pt=(Ge(ft,mt=ut),ft);function ft(e,t,i){var n=mt.call(this)||this,i=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:n&&nt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&dt(e.next,t),error:e.error&&dt(e.error,t),complete:e.complete&&dt(e.complete,t)}):e;return n.destination=new ht(i),n}function gt(e){this.partialObserver=e}function yt(e){var t=e;rt.setTimeout(function(){throw t})}var vt={closed:!0,next:ot,error:function(e){throw e},complete:ot},e="function"==typeof Symbol&&Symbol.observable||"@@observable";r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof ut||n&&d(n.next)&&d(n.error)&&d(n.complete)&&Qe(n)?e:new pt(e,t,i);return st(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(n,e){var r=this;return new(e=bt(e))(function(e,t){var i=new pt({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.subscribe(i)})},r.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},r.prototype[e]=function(){return this},r.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)},r.prototype.toPromise=function(e){var n=this;return new(e=bt(e))(function(e,t){var i;n.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},r.create=function(e){return new r(e)};var wt=r;function r(e){e&&(this._subscribe=e)}function bt(e){return null!=(e=null!=e?e:tt)?e:Promise}var _t,Lt,xt,Et=qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Ge(o,xt=wt),o.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new Et},o.prototype.next=function(r){var o=this;st(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=We(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}}}})},o.prototype.error=function(t){var i=this;st(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)}})},o.prototype.complete=function(){var t=this;st(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Je:(this.currentObservers=null,r.push(e),new Ke(function(){t.currentObservers=null,Xe(r,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},o.prototype.asObservable=function(){var e=new wt;return e.source=this,e},o.create=function(e,t){return new Tt(e,t)},o),Tt=(Ge(At,Lt=e),At.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},At.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},At.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},At.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Je},At),Ct={now:function(){return(Ct.delegate||Date).now()},delegate:void 0},Mt=(Ge(St,_t=e),St.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)},St.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},St.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)}},St);function St(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Ct);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 At(e,t){var i=Lt.call(this)||this;return i.destination=e,i.source=t,i}function o(){var e=xt.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 It=[];function Pt(n,r=V){let o;const a=new Set;function s(e){if(E(n,e)&&(n=e,o)){const e=!It.length;for(const e of a)e[1](),It.push(e,n);if(e){for(let e=0;e<It.length;e+=2)It[e][0](It[e+1]);It.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=V){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||V),e(n),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Pt(t,t=>{let i=!1;const n=[];let r=0,o=V;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),c?t(e):o=w(e)?e:V)},e=u.map((e,t)=>T(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=1<<t}));return i=!0,a(),function(){z(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===Ht);var t}var Ht="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(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 Bt(e,i)})}function $t(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 Yt(e,t){try{return t in e}catch(e){return!1}}function Ft(n,r,o){var a={};return o.isMergeableObject(n)&&$t(n).forEach(function(e){a[e]=Bt(n[e],o)}),$t(r).forEach(function(e){var t,i;(!Yt(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Yt(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]=Bt(r[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Ft(e,t,i):Bt(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,Gt=function(e,t){return(Gt=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 Wt(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}Gt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,v=function(){return(v=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 zt(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 qt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Xt(e){return e.type===y.date}function Kt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Qt(e){return e.type===y.plural}function ei(e){return e.type===y.tag}function ti(e){return e&&"object"==typeof e&&e.type===Vt.number}function ii(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Vt=Vt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ni=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var ri=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,oi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ai=/^(@+)?(\+|#+)?[rs]?$/g,si=/(\*)(0+)|(#+)(0+)|(0+)/g,li=/^(0+)$/;function ui(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ai,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 ci(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 di(e){return ci(e)||{}}function mi(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=v(v(v({},a),{notation:"scientific"}),r.options.reduce(function(e,t){return v(v({},e),di(t))},{}));continue;case"engineering":a=v(v(v({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return v(v({},e),di(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(si,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(li.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(oi.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(oi,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=v(v({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=v(v({},a),ui(o)))}else ai.test(r.stem)?a=v(v({},a),ui(r.stem)):((o=ci(r.stem))&&(a=v(v({},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)),!li.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=v(v({},a),n)))}return a}var hi={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 pi=new RegExp("^".concat(e.source,"*")),fi=new RegExp("".concat(e.source,"*$"));function _(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,gi=!!String.fromCodePoint,yi=!!Object.fromEntries,vi=!!String.prototype.codePointAt,wi=!!String.prototype.trimStart,bi=!!String.prototype.trimEnd,_i=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Li=!0;try{Li="a"===(null==(Gi=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Gi[0])}catch(V){Li=!1}var xi,Ei,Ti=e?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Ci=gi?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},Mi=yi?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},Si=vi?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},Ai=wi?function(e){return e.trimStart()}:function(e){return e.replace(pi,"")},ki=bi?function(e){return e.trimEnd()}:function(e){return e.replace(fi,"")};function Ii(e,t){return new RegExp(e,t)}Ei=Li?(xi=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return xi.lastIndex=t,null!=(t=xi.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Si(e,t);if(void 0===r||Ni(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 Ci.apply(void 0,n)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.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,_(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Oi(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:_(o,this.clonePosition())})}}}return{val:n,err:null}},a.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:_(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()||!Oi(this.char())?this.error(f.INVALID_TAG,_(e,this.clonePosition())):(i=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,_(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:_(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,_(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,_(n,this.clonePosition()))):this.error(f.INVALID_TAG,_(n,this.clonePosition()))},a.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())},a.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=_(i,this.clonePosition());return{val:{type:y.literal,value:n,location:i},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Oi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.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 Ci.apply(void 0,t)},a.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(),Ci(i))},a.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,_(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,_(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:_(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(f.MALFORMED_ARGUMENT,_(i,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ei(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:_(e,this.clonePosition())}},a.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,_(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(m=ki(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:_(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(h=_(n,this.clonePosition()),l&&Ti(null==l?void 0:l.style,"::",0)?(p=Ai(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===p.length?this.error(f.EXPECT_DATE_TIME_SKELETON,h):(c=p,this.locale&&(c=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),(hi[t||""]||hi[i||""]||hi["".concat(i,"-001")]||hi["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}(p,this.locale)),m={type:Vt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},c.replace(ni,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:m},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(p=null==l?void 0:l.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,_(c,v({},c)));this.bumpSpace();var d,m=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(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(),m=this.parseIdentifierIfPossible(),h=d.val}var p,l=this.tryParsePluralOrSelectOptions(e,a,t,m);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(p=_(n,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Mi(l.val),location:p},err:null}:{val:{type:y.plural,value:i,options:Mi(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,_(o,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.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,_(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}},a.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(ri).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?mi(i):{}},err:null}},a.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=_(u,this.clonePosition()),s=this.message.slice(u.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();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,i);if(u.err)return u;var d=this.tryParseArgumentClose(c);if(d.err)return d;o.push([s,{value:u.val,location:_(c,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,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(f.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:o,err:null}},a.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=_(n,this.clonePosition());return r?_i(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Si(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(Ti(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.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)},a.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}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ni(this.char());)this.bump()},a.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 Pi=a;function a(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 Oi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ni(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Hi(e,t){t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Pi(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,Jt(e)||Qt(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Zt(e)&&ti(e.style)||(Xt(e)||Kt(e))&&ii(e.style)?delete e.style.location:ei(e)&&i(e.children)})}(e.val),e.val}function Bi(e,t){var i=t&&t.cache?t.cache:Wi,n=t&&t.serializer?t.serializer:Fi;return(t&&t.strategy?t.strategy:function(e,t){return Yi(e,this,1===e.length?Ri:$i,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function Ri(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 $i(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 Yi(e,t,i,n,r){return i.bind(t,e,n,r)}var Fi=function(){return JSON.stringify(arguments)};function ji(){this.cache=Object.create(null)}ji.prototype.get=function(e){return this.cache[e]},ji.prototype.set=function(e,t){this.cache[e]=t};var Ui,Gi,Wi={create:function(){return new ji}},Vi={variadic:function(e,t){return Yi(e,this,$i,t.cache.create(),t.serializer)},monadic:function(e,t){return Yi(e,this,Ri,t.cache.create(),t.serializer)}};(Gi=Ui=Ui||{}).MISSING_VALUE="MISSING_VALUE",Gi.INVALID_VALUE="INVALID_VALUE",Gi.MISSING_INTL_API="MISSING_INTL_API";Wt(on,Xi=Error),on.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var L,zi,qi,Zi,Xi,Ki=on,Ji=(Wt(rn,Zi=Ki),rn),Qi=(Wt(nn,qi=Ki),nn),en=(Wt(tn,zi=Ki),tn);function tn(e,t){return zi.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Ui.MISSING_VALUE,t)||this}function nn(e,t,i){return qi.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Ui.INVALID_VALUE,i)||this}function rn(e,t,i,n){return Zi.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ui.INVALID_VALUE,n)||this}function on(e,t,i){e=Xi.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function an(e,t,i,n,r,o,a){if(1===e.length&&qt(e[0]))return[{type:L.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(qt(c))s.push({type:L.literal,value:c.value});else if(c.type===y.pound)"number"==typeof o&&s.push({type:L.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!(r&&d in r))throw new en(d,a);d=r[d];if(c.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?L.literal:L.object,value:d});else if(Xt(c)){var m="string"==typeof c.style?n.date[c.style]:ii(c.style)?c.style.parsedOptions:void 0;s.push({type:L.literal,value:i.getDateTimeFormat(t,m).format(d)})}else if(Kt(c))m="string"==typeof c.style?n.time[c.style]:ii(c.style)?c.style.parsedOptions:n.time.medium,s.push({type:L.literal,value:i.getDateTimeFormat(t,m).format(d)});else if(Zt(c))(m="string"==typeof c.style?n.number[c.style]:ti(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),s.push({type:L.literal,value:i.getNumberFormat(t,m).format(d)});else{if(ei(c)){var h=c.children,p=c.value,f=r[p];if("function"!=typeof f)throw new Qi(p,"function",a);p=f(an(h,t,i,n,r,o).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),s.push.apply(s,p.map(function(e){return{type:"string"==typeof e?L.literal:L.object,value:e}}))}if(Jt(c)){if(!(g=c.options[d]||c.options.other))throw new Ji(c.value,d,Object.keys(c.options),a);s.push.apply(s,an(g.value,t,i,n,r))}else if(Qt(c)){if(!(g=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Ki('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ui.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Ji(c.value,d,Object.keys(c.options),a);s.push.apply(s,an(g.value,t,i,n,r,d-(c.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===L.literal&&t.type===L.literal?i.value+=t.value:e.push(t),e},[])}function sn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(e=L=L||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(s,"defaultLocale",{get:function(){return s.memoizedDefaultLocale||(s.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),s.memoizedDefaultLocale},enumerable:!1,configurable:!0}),s.memoizedDefaultLocale=null,s.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])},s.__parse=Hi,s.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 ln=s;function s(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=s.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===L.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 an(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=s.resolveLocale(t),"string"==typeof e){if(this.message=e,!s.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=s.__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=s.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?v(v(v({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=v(v({},i[t]),n[t]||{}),e},{})):i),e},v({},r)):r),this.formatters=n&&n.formatters||{getNumberFormat:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,zt([void 0],t,!1)))},{cache:sn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Vi.variadic}),getDateTimeFormat:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,zt([void 0],t,!1)))},{cache:sn(t.dateTime),strategy:Vi.variadic}),getPluralRules:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,zt([void 0],t,!1)))},{cache:sn(t.pluralRules),strategy:Vi.variadic})}}const un={},cn=(e,t,i)=>i&&(t in un||(un[t]={}),e in un[t]||(un[t][e]=i),i),dn=(t,i)=>{if(null!=i){if(i in un&&t in un[i])return un[i][t];var n=kn(i);for(let e=0;e<n.length;e++){var r=function(e,t){if(!pn(e))return null;e=function(e){return mn[e]||null}(e);{var i=t;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}}}(n[e],t);if(r)return cn(t,i,r)}}};let mn;const hn=Pt({});function pn(e){return e in mn}function fn(t,...i){delete un[t],hn.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}Ot([hn],([e])=>Object.keys(e)),hn.subscribe(e=>mn=e);const gn={};function yn(e){return gn[e]}function vn(e){return null!=e&&kn(e).some(e=>{return null==(e=yn(e))?void 0:e.size})}function wn(n,e){return Promise.all(e.map(e=>{return t=n,i=e,gn[t].delete(i),0===gn[t].size&&delete gn[t],e().then(e=>e.default||e);var t,i})).then(e=>fn(n,...e))}const bn={};const _n={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 Ln=Pt(!1);var xn=Object.defineProperty,gi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,En=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Mn=(e,t,i)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Sn;const An=Pt(null);function Dn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function kn(e,t=_n.fallbackLocale){e=Dn(e);return t?[...new Set([...e,...Dn(t)])]:e}function In(){return null!=Sn?Sn:void 0}An.subscribe(e=>{Sn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W=gi(((e,t)=>{for(var i in t=t||{})Tn.call(t,i)&&Mn(e,i,t[i]);if(En)for(var i of En(t))Cn.call(t,i)&&Mn(e,i,t[i]);return e})({},An),yi({set:t=>{if(t&&function(e){if(null!=e){var t=kn(e);for(let e=0;e<t.length;e++){var i=t[e];if(pn(i))return i}}}(t)&&vn(t)){var i=_n["loadingDelay"];let e;return"undefined"!=typeof window&&null!=In()&&i?e=window.setTimeout(()=>Ln.set(!0),i):Ln.set(!0),function e(t){var i;return vn(t)?(i=kn(t).map(e=>{var t=yn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),bn[t]=Promise.all(i.map(([e,t])=>wn(e,t))).then(()=>{if(vn(t))return e(t);delete bn[t]}),bn[t]):t in bn?bn[t]:Promise.resolve()}(t).then(()=>{An.set(t)}).finally(()=>{clearTimeout(e),Ln.set(!1)})}return An.set(t)}}));var vi=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Pn=Object.defineProperty,On=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,Bn=(e,t,i)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Rn=(e,t)=>{for(var i in t=t||{})Nn.call(t,i)&&Bn(e,i,t[i]);if(On)for(var i of On(t))Hn.call(t,i)&&Bn(e,i,t[i]);return e},$n=(e,t)=>{var i={};for(n in e)Nn.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&On)for(var n of On(e))t.indexOf(n)<0&&Hn.call(e,n)&&(i[n]=e[n]);return i};const Yn=(e,t)=>{var i=_n["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Fn=vi(e=>{var{locale:t,format:i}=e,e=$n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=Yn("number",i)),new Intl.NumberFormat(t,e)}),jn=vi(e=>{var{locale:t,format:i}=e,e=$n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=Yn("date",i):0===Object.keys(e).length&&(e=Yn("date","short")),new Intl.DateTimeFormat(t,e)}),Un=vi(e=>{var{locale:t,format:i}=e,e=$n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=Yn("time",i):0===Object.keys(e).length&&(e=Yn("time","short")),new Intl.DateTimeFormat(t,e)}),Gn=vi((e,t=In())=>new ln(e,t,_n.formats,{ignoreTag:_n.ignoreTag})),Wn=Ot([W,hn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=In(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=dn(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=_n).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let u=l;try{u=Gn(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),Vn=(Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=$n(e,["locale"]);return Un(Rn({locale:t},e))})(t).format(e)),Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=$n(e,["locale"]);return jn(Rn({locale:t},e))})(t).format(e)),Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=$n(e,["locale"]);return Fn(Rn({locale:t},e))})(t).format(e)),Ot([W,hn],()=>(e,t=In())=>dn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new Mt(t),kt[e]=t,Dt.push(e)),kt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function zn(e,t){fn(e,t)}const qn={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"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{returnToMenu:"Voltar ao cardápio",gamingLimitsText:"Limites do jogo",depositLimit:"Limites de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{returnToMenu:"Regresar al menú",gamingLimitsText:"Límites de juego",depositLimit:"Límites de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdidas"}};function Zn(e,t){fn(e,t)}const Xn={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"},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {iznos} {valuta}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",removeLimitText:"Jeste li sigurni da želite ukloniti {limit}?",removeLimitsText:"Jeste li sigurni da želite ukloniti sve {limit}e?",minutes:"minute",noLimit:"Nema ograničenja",expirationDate:"Datum isteka",notAvailable:"N/A",edit:"Uredi",removeLimits:"Ukloni ograničenja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka",timeLimitLower:"vremensko ograničenje",depositLimitLower:"ograničenje uplate",wageringLimitLower:"ograničenje igranja",lossLimitLower:"ograničenje gubitka",time:"vrijeme",currency:"valuta"},"pt-br":{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:"Diário",weekly:"Semanalmente",monthly:"Por mês",removeLimitText:"Tem certeza de que deseja remover o limite {limit}?",removeLimitsText:"Tem certeza de que deseja remover todos os limites {limit}s?",minutes:"minutos",noLimit:"Sem limite",expirationDate:"Data de expiração",notAvailable:"Não disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de Quantidade de Apostas",lossLimit:"Limite de perda",timeLimitLower:"Limite de tempo",depositLimitLower:"Limite de depósito",wageringLimitLower:"Limite de Quantidade de Apostas",lossLimitLower:"Limite de perda",time:"tempo",currency:"moeda"},"es-mx":{name:"Información",amountChanged:"Su límite ha sido cambiado o aumentado:{amount} {currency}. Tendrá que esperar para su fecha de expiración para que su nuevo límite entre en efecto:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"¿Está seguro que quiere remover el límite {limit}?",removeLimitsText:"¿Está seguro que quiere remover todos los límites {limit}s?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No disponible",edit:"Editar",removeLimits:"Remover Límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de monto de apuestas",lossLimit:"Límite de pérdidas",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de monto de apuestas",lossLimitLower:"Límite de pérdidas",time:"tiempo",currency:"moneda"}};function Kn(e,t){fn(e,t)}const Jn={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."},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {amount} {currency}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",defaultText:"Kada postavite ograničenje igre"},"pt-br":{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que ultrapassar a data de expiração para que o novo limite entre em vigor:",defaultText:'Quando um limite é definido,Entra em vigor a partir do momento em que é ativado e dura até o final do período selecionado. Portanto,Se você definir o limite diário às 14h00.,"O período de 24 horas é desde o momento da ativação até. O limite será então válido por 24 dias, você pode reduzir o limite a qualquer momento com efeito imediato, no entanto",aumentar ou remover um limite não será aplicado até que o limite atual expire'},"es-mx":{name:"Información",amountChanged:"Su límite ha sido cambiado o aumentado: {amount} {currency}. Tendrá que espirar a la fecha de expiración para que el nuevo límite entre en efecto:",defaultText:'Cuando se fija un límite,entra en efecto desde el momento que se activa y dura hasta el final del periodo seleccionado. Por lo tanto,Si fija el límite diario a las 14.00,"el periodo de 24-horas es desde el momento de la activación hasta. El límite entonces sera válido por 24 días, ustede puede reducir el límite en cualquier momento con efecto inmediato, sin embargo", aumentar o remover un límite no aplicará hasta el límite actual expire'}};function Qn(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=i[4]("name")+"";function v(e){return e[0]?tr:er}let w=v(i),b=w(i);return{c(){n=K("section"),r=K("div"),o=K("div"),(a=K("div")).textContent="i",s=Q(),l=K("div"),u=J(y),c=Q(),(d=K("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>',m=Q(),h=K("div"),b.c(),te(a,"class","InfoCardPopupIcon"),te(l,"class","InfoCardPopupTitle"),te(d,"class","InfoCardPopupCloseButton"),te(o,"class","InfoCardPopupHeader"),te(h,"class","InfoCardPopupContentArea"),te(r,"class",p="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),te(n,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(o,s),q(o,l),q(l,u),q(o,c),q(o,d),q(r,m),q(r,h),b.m(h,null),i[12](n),f||(g=ee(d,"click",oe(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&ne(u,y),w===(w=v(e))&&b?b.p(e,t):(b.d(1),(b=w(e))&&(b.c(),b.m(h,null))),1&t&&p!==(p="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&te(r,"class",p)},d(e){e&&X(n),b.d(),i[12](null),f=!1,g()}}}function er(e){let i,n,r=e[4]("defaultText")+"";return{c(){i=K("p"),n=J(r),te(i,"class","InfoCardPopupContent")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&ne(n,r)},d(e){e&&X(i)}}}function tr(e){let i,n,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=K("p"),n=J(r),te(i,"class","InfoCardPopupContent")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&ne(n,r)},d(e){e&&X(i)}}}function ir(e){let i,n=e[3]&&Qn(e);return{c(){n&&n.c(),i=b(),this.c=V},m(e,t){n&&n.m(e,t),Z(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=Qn(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:V,o:V,d(e){n&&n.d(e),e&&X(i)}}}function nr(t,e,i){let n,{showpopup:r=""}=(re(t,Wn,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(Jn).forEach(e=>{Kn(e,Jn[e])});let d,m=!1,h=window.navigator.userAgent,p="PC"!==Vn(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,m=!1)};return se(()=>(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,u=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,W.set(e),o<0&&i(0,o="0"),i(3,m=r)),1028&t.$$.dirty&&u&&d){let e=new URL(u),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&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kn(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,m,n,p,()=>{i(3,m=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,u,c,function(e){G[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function rr(e,t){fn(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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},nr,ir,E,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),m()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),m()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),m()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),m()}});const or={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"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"}};sr=ar={path:void 0,exports:{},require:function(e,t){return Di(null==t&&ar.path)}},ar.exports,sr.exports=function(){var H;function p(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function B(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(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 $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));return i}function j(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 u(e,t,i,n){return kt(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 U(e){if(null==e._isValid){var t=g(e),i=W.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 G(e){var t=u(NaN);return null!=e?j(g(t),e):g(t).userInvalidated=!0,t}var W=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},V=p.momentProperties=[],z=!1;function q(e,t){var i,n,r,o=V.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=V[i]])||(e[n]=r);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return j(function(){if(null!=p.deprecationHandler&&p.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)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,n=j({},e);for(i in t)f(t,i)&&(B(e[i])&&B(t[i])?(n[i]={},j(n[i],e[i]),j(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&B(e[i])&&(n[i]=j({},n[i]));return n}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.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+=c(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 ue(e){var t,i,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}var ce={};function i(e,t){ce[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function m(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)?m(e):t}function me(t,i){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(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(),Oe(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?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,Le=/[+-]?\d{1,6}/,xe=/\d+/,Ee=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,n){Se[e]=c(i)?i:function(e,t){return e&&n?n:i}}function Me(e,t){return f(Se,e)?Se[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 Se={},Ae={};function L(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),$(i)&&(r=function(e,t){t[i]=h(e)}),n=e.length,t=0;t<n;t++)Ae[e[t]]=r}function De(e,r){L(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var x,E=0,T=1,C=2,M=3,S=4,A=5,ke=6,Ie=7,Pe=8;function Oe(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)}x=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),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[T]=h(e)-1}),L(["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 Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=w,$e=w;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!$(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Fe(e){return null!=e?(Ye(this,e),p.updateOffset(this,!0),this):he(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],r=[],o=0;o<12;o++)t=u([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 Ue(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),b("Y",Ee),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",Le,ye),b("YYYYYY",Le,ye),L(["YYYYY","YYYYYY"],E),L("YYYY",function(e,t){t[E]=2===e.length?p.parseTwoDigitYear(e):h(e)}),L("YY",function(e,t){t[E]=p.parseTwoDigitYear(e)}),L("Y",function(e,t){t[E]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ge=me("FullYear",!0);function We(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 Ve(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 ze(e,t,i){i=7+t-i;return-(7+Ve(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+ze(e,n,r),i=t<=0?Ue(o=e-1)+t:t>Ue(e)?(o=e+1,t-Ue(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var n,r,o=ze(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+D(r=e.year()-1,t,i):o>D(e.year(),t,i)?(n=o-D(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function D(e,t,i){var n=ze(e,t,i),t=ze(e+1,t,i);return(Ue(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),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),De(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)});function Xe(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),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["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}),De(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function 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=u([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),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),L(["H","HH"],M),L(["k","kk"],function(e,t,i){e=h(e);t[M]=24===e?0:e}),L(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),L(["h","hh"],function(e,t,i){t[M]=h(e),g(i).bigHour=!0}),L("hmm",function(e,t,i){var n=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n)),g(i).bigHour=!0}),L("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[A]=h(e.substr(r)),g(i).bigHour=!0}),L("Hmm",function(e,t,i){var n=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n))}),L("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[A]=h(e.substr(r))});w=me("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:Ne,monthsShort:He,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},k={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ct(e[o]).split("-")).length,i=(i=ct(e[o+1]))?i.split("-"):null;0<t;){if(n=mt(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 mt(t){var e;if(void 0===k[t]&&sr&&sr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Di(),ht(e)}catch(e){k[t]=null}return k[t]}function ht(e,t){return e&&((t=s(t)?I(e):pt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function pt(e,t){if(null===t)return delete k[e],null;var i,n=lt;if(t.abbr=e,null!=k[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=k[e]._config;else if(null!=t.parentLocale)if(null!=k[t.parentLocale])n=k[t.parentLocale]._config;else{if(null==(i=mt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=i._config}return k[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){pt(e.name,e.config)}),ht(e),k[e]}function I(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=mt(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[C]<1||t[C]>Oe(t[E],t[T])?C:t[M]<0||24<t[M]||24===t[M]&&(0!==t[S]||0!==t[A]||0!==t[ke])?M:t[S]<0||59<t[S]?S:t[A]<0||59<t[A]?A:t[ke]<0||999<t[ke]?ke:-1,g(e)._overflowDayOfYear&&(t<E||C<t)&&(t=C),g(e)._overflowWeeks&&-1===t&&(t=Ie),g(e)._overflowWeekday&&-1===t&&(t=Pe),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Lt=/^(?:(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}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,i,n,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,u=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],n=!1!==wt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,i=u;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!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||""),At(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),He.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Ct(e){var t,i,n,r,o=Lt.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&&Je.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?xt[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,i){return null!=e?e:null!=t?t:i}function St(e){var t,i,n,r,o,a,s,l,u,c,d,m=[];if(!e._d){for(c=e,d=new Date(p.now()),i=c._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[C]&&null==e._a[T]&&(null!=(d=(c=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,n=Mt(d.GG,c._a[E],Ze(P(),1,4).year),r=Mt(d.W,1),((o=Mt(d.E,1))<1||7<o)&&(l=!0)):(a=c._locale._week.dow,s=c._locale._week.doy,u=Ze(P(),a,s),n=Mt(d.gg,c._a[E],u.year),r=Mt(d.w,u.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>D(n,a,s)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=qe(n,r,o,a,s),c._a[E]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(d=Mt(e._a[E],i[E]),(e._dayOfYear>Ue(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[T]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=i[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[S]&&0===e._a[A]&&0===e._a[ke]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?Ve:We).apply(null,m),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function At(e){if(e._f!==p.ISO_8601)if(e._f!==p.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(Me(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!=(m=t)&&f(Ae,d)&&Ae[d](m,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[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(o=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),St(e),ft(e)}else Ct(e);else Et(e);var u,c,d,m,h}function Dt(e){var t,i=e._i,n=e._f;{var r,o;return(e._locale=e._locale||I(e._l),null===i||void 0===n&&""===i)?G({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(Y(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],At(t),U(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);j(e,i||t)}(e):n?At(e):s(n=(i=e)._i)?i._d=new Date(p.now()):Y(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Et(r),!1===r._isValid&&(delete r._isValid,Ct(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:p.createFromInputFallback(r))):r._d=new Date(+o[1])):a(n)?(i._a=F(n.slice(0),function(e){return parseInt(e,10)}),St(i)):B(n)?(r=i)._d||(t=void 0===(o=ue(r._i)).day?o.date:o.day,r._a=F([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),St(r)):$(n)?i._d=new Date(n):p.createFromInputFallback(i),U(e)||(e._d=null),e))}}function kt(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),(B(e)&&R(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 Z(ft(Dt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function P(e,t,i,n){return kt(e,t,i,n,!1)}p.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":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:G()});function It(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return P();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var e=ue(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,u=e.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=Pt.length;for(t in e)if(f(e,t)&&(-1===x.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[Pt[i]]){if(n)return!1;parseFloat(e[Pt[i]])!==h(e[Pt[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=I(),this._bubble()}function Nt(e){return e instanceof Ot}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(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)})}Bt("Z",":"),Bt("ZZ",""),b("Z",Ce),b("ZZ",Ce),L(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=$t(Ce,e)});var Rt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||Y(e)?e:P(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),p.updateOffset(t,!1),t):P(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function O(e,t){var i,n,r=e;return Nt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,r={y:0,d:h(t[C])*i,h:h(t[M])*i,m:h(t[S])*i,s:h(t[A])*i,ms:h(Ht(1e3*t[ke]))*i}):(t=Gt.exec(e))?(i="-"===t[1]?-1:1,r={y:Wt(t[2],i),M:Wt(t[3],i),w:Wt(t[4],i),d:Wt(t[5],i),h:Wt(t[6],i),m:Wt(t[7],i),s:Wt(t[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=P(r.from),i=P(r.to),t=t.isValid()&&i.isValid()?(i=Yt(i,t),t.isBefore(i)?n=Vt(t,i):((n=Vt(i,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),n=new Ot(r),Nt(e)&&f(e,"_locale")&&(n._locale=e._locale),Nt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function Wt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(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 zt(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(J(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,O(e,t),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Ht(t._days),t=Ht(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,he(e,"Month")+t*i),o&&pe(e,"Date",he(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n)&&p.updateOffset(e,o||t)}O.fn=Ot.prototype,O.invalid=function(){return O(NaN)};Ne=zt(1,"add"),Ke=zt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Zt(e)||$(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),i&&n)||function(e){var t,i,n=B(e)&&!R(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 Kt(e,t){var i,n;return e.date()<t.date()?-Kt(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 Jt(e){return void 0===e?this._locale._abbr:(null!=(e=I(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.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?Ze(this,n,r).year:(t>(o=D(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),t=Ve(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"),b("N",ri),b("NN",ri),b("NNN",ri),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),L(["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}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),L(["y","yy","yyy","yyyy"],E),L(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[E]=i._locale.eraYearOrdinalParse(e,r):t[E]=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),b("G",Ee),b("g",Ee),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",Le,ye),b("ggggg",Le,ye),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=h(e)}),De(["gg","GG"],function(e,t,i,n){t[n]=p.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",r),L("Q",function(e,t){t[T]=3*(h(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],C),L("Do",function(e,t){t[C]=h(e.match(v)[0])});_e=me("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),L(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),L(["m","mm"],S);ge=me("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),L(["s","ss"],A);var li,Le=me("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),b("S",be,r),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,xe);function ui(e,t){t[ke]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")L(li,ui);ye=me("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=Z.prototype;function ci(e){return e}r.add=Ne,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=B(e)&&!R(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||P(),i=Yt(e,this).startOf("day"),i=p.calendarFormat(this,i)||"sameElse",t=t&&(c(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,P(e)))},r.clone=function(){return new Z(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,n)/12;break;case"month":o=Kt(this,n);break;case"quarter":o=Kt(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:m(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),p.updateOffset(this,!0)}return this},r.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(P(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(P(),e)},r.get=function(e){return c(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:P(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:P(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:P(e),t=l(t)?t:P(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:P(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 U(this)},r.lang=Qe,r.locale=Jt,r.localeData=Qt,r.max=we,r.min=ve,r.parsingFlags=function(){return j({},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:ce[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ue(e)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(c(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),p.updateOffset(this,!0)}return this},r.subtract=Ke,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.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"):c(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()-p(i[n].since).year())*e+i[n].offset;return this.year()},r.year=Ge,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=Fe,r.daysInMonth=function(){return Oe(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=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return D(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return D(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=w,r.minute=r.minutes=ge,r.second=r.seconds=Le,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:Ft(this);if("string"==typeof e){if(null===(e=$t(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,O(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.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(Ft(this),"m"),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(Te,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?P(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=jt,r.isUTC=jt,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",Fe),r.years=e("years accessor is deprecated. Use year instead",Ge),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=Dt(t))._a?(e=(t._isUTC?u:P)(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=I(),n=u().set(n,t);return r[i](n,e)}function mi(e,t,i){if($(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),$(t)&&(i=t,t=void 0),t||"");var r,o=I(),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 c(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=ci,y.postformat=ci,y.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return c(r)?r(e,t,i,n):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(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)&&(c(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||I("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=p(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=p(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?p(e.since).year():p(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||Be).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[Be.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=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))||-1!==(r=x.call(this._longMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))||-1!==(r=x.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=u([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")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var 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=u([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=x.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.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=u([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")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",I);var pi=Math.abs;function fi(e,t,i,n){t=O(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 wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ne=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),Le=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),Ge=bi("minutes"),y=bi("hours"),_i=bi("days"),Li=bi("months"),xi=bi("years");var Ei=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ci(e,t,i,n){var r=O(e).abs(),o=Ei(r.as("s")),a=Ei(r.as("m")),s=Ei(r.as("h")),l=Ei(r.as("d")),u=Ei(r.as("M")),c=Ei(r.as("w")),r=Ei(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||(c<=1?["w"]:c<i.w&&["ww",c]):o)||(u<=1?["M"]:u<i.M&&["MM",u])||(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 Mi=Math.abs;function Si(e){return(0<e)-(e<0)||+e}function Ai(){var e,t,i,n,r,o,a,s,l,u,c;return this.isValid()?(s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),(c=this.asSeconds())?(e=m(s/60),t=m(e/60),s%=60,e%=60,i=m(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Si(this._months)!==Si(c)?"-":"",o=Si(this._days)!==Si(c)?"-":"",a=Si(this._milliseconds)!==Si(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"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 N=Ot.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this},N.add=function(e,t){return fi(this,e,t,1)},N.subtract=function(e,t){return fi(this,e,t,-1)},N.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)}},N.asMilliseconds=be,N.asSeconds=fe,N.asMinutes=Ne,N.asHours=we,N.asDays=ve,N.asWeeks=Ke,N.asMonths=w,N.asQuarters=ge,N.asYears=Le,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},N._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=m(e/1e3),n.seconds=e%60,e=m(e/60),n.minutes=e%60,e=m(e/60),n.hours=e%24,t+=m(e/24),i+=e=m(yi(t)),t-=gi(vi(e)),e=m(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},N.clone=function(){return O(this)},N.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ye,N.seconds=_e,N.minutes=Ge,N.hours=y,N.days=_i,N.weeks=function(){return m(this.days()/7)},N.months=Li,N.years=xi,N.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=Ci(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=Ai,N.toString=Ai,N.toJSON=Ai,N.locale=Jt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ai),N.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Ee),b("X",/[+-]?\d+(\.\d{1,3})?/),L("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),L("x",function(e,t,i){i._d=new Date(h(e))}),p.version="2.29.4",H=P,p.fn=r,p.min=function(){return It("isBefore",[].slice.call(arguments,0))},p.max=function(){return It("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=u,p.unix=function(e){return P(1e3*e)},p.months=function(e,t){return mi(e,t,"months")},p.isDate=Y,p.locale=ht,p.invalid=G,p.duration=O,p.isMoment=l,p.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},p.parseZone=function(){return P.apply(null,arguments).parseZone()},p.localeData=I,p.isDuration=Nt,p.monthsShort=function(e,t){return mi(e,t,"monthsShort")},p.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var i,n;return null!=t?(n=lt,null!=k[e]&&null!=k[e].parentLocale?k[e].set(Q(k[e]._config,t)):(t=Q(n=null!=(i=mt(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=k[e],k[e]=n),ht(e)):null!=k[e]&&(null!=k[e].parentLocale?(k[e]=k[e].parentLocale,e===ht()&&ht(e)):null!=k[e]&&delete k[e]),k[e]},p.locales=function(){return te(k)},p.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},p.normalizeUnits=d,p.relativeTimeRounding=function(e){return void 0===e?Ei:"function"==typeof e&&(Ei=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))},p.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"},p.prototype=r,p.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"},p}();var ar,sr,A=ar.exports;function lr(e,{delay:t=0,duration:i=400,easing:n=x}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function ur(i){let n,r,t,o;return{c(){n=K("div"),(r=K("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',te(r,"class","ModalWindow"),te(r,"id","Modal")},m(e,t){Z(e,n,t),q(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(ce(()=>{o&&(t=t||we(r,lr,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||we(r,lr,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&X(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function cr(e){let i,n,r=e[0]&&ur(e);return{c(){r&&r.c(),i=b(),this.c=V},m(e,t){r&&r.m(e,t),Z(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&ge(r,1)):((r=ur(e)).c(),ge(r,1),r.m(i.parentNode,i)):r&&(g={r:0,c:[],p:g},ye(r,1,1,()=>{r=null}),g.r||z(g.c),g=g.p)},i(e){n||(ge(r),n=!0)},o(e){ye(r),n=!1},d(e){r&&r.d(e),e&&X(i)}}}function dr(t,e,i){let n,r,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const u=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 se(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),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){G[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){G[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function mr(e,t){fn(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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},dr,cr,E,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),m()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),m()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}});const hr={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:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"}};function pr(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",w=!i[3]&&function(i){let n,r,o;return{c(){(n=K("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>',te(n,"class","ModalCloseBtn"),te(n,"role","button")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",i[4]),r=!0)},p:V,d(e){e&&X(n),r=!1,o()}}}(i);return{c(){n=K("div"),w&&w.c(),r=Q(),o=K("div"),a=K("div"),s=J(i[0]),l=Q(),u=K("div"),c=K("button"),d=J(y),m=Q(),h=K("button"),p=J(v),this.c=V,te(a,"class","GamingLimitsConfirmationContent"),te(c,"class","GamingLimitsCancelButton"),te(h,"class","GamingLimitsConfirmButton"),te(u,"class","GamingLimitsConfirmationControlArea"),te(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),te(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){Z(e,n,t),w&&w.m(n,null),q(n,r),q(n,o),q(o,a),q(a,s),q(o,l),q(o,u),q(u,c),q(c,d),q(u,m),q(u,h),q(h,p),i[12](n),f||(g=[ee(c,"click",i[6]),ee(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&ne(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&ne(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&ne(p,v)},i:V,o:V,d(e){e&&X(n),w&&w.d(),i[12](null),f=!1,z(g)}}}function fr(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(re(t,Wn,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c,d=(Object.keys(hr).forEach(e=>{mr(e,hr[e])}),window.navigator.userAgent),m="PC"!==Vn(d),h={},p="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,p="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return se(()=>(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,u=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,W.set(e)),514&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=s,c.appendChild(e)),1026&t.$$.dirty&&l&&c){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{c.appendChild(t)},1)})}var e;2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mr(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,n,m,()=>{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:p},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,u,function(e){G[e?"unshift":"push"](()=>{c=e,i(1,c)})}]}function gr(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function yr(e,t,i){e=e.slice();return e[59]=t[i],e}function vr(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function wr(e){let i,n,r,o=e[18]("success")+"";return{c(){i=K("div"),n=K("p"),r=J(o),te(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){Z(e,i,t),q(i,n),q(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&ne(r,o)},d(e){e&&X(i)}}}function br(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Lr(vr(t,o,e));return{c(){r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();te(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){Z(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=vr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Lr(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&&X(r),I(a,e)}}}function _r(e){let i,n,r,o,a=e[18]("remove")+"",s=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("p"),n=J(a),r=Q(),o=J(s)},m(e,t){Z(e,i,t),q(i,n),q(i,r),q(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&ne(n,a),16384&t[0]&&s!==(s=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(o,s)},d(e){e&&X(i)}}}function Lr(e){let i,n=e[56].period==e[17][e[58]].period&&_r(e);return{c(){n&&n.c(),i=b()},m(e,t){n&&n.m(e,t),Z(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=_r(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&X(i)}}}function xr(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Pr(gr(t,o,e));return{c(){i=K("div"),r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();te(r,"class","AccountEditLimitsContainer"),te(i,"class","AccountEditContent")},m(e,t){Z(e,i,t),q(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=gr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Pr(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&&X(i),I(a,e)}}}function Er(i){let n,r,o,a,s,l,u,c,d,m,h=i[18]("noLimit")+"",p=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<p.length;e+=1)f[e]=Cr(yr(i,p,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&Mr(i),v=!0===i[56].isModified&&Ir(i);return{c(){n=K("select"),r=K("option"),o=J(h);for(let e=0;e<f.length;e+=1)f[e].c();s=Q(),l=K("div"),y&&y.c(),u=Q(),v&&v.c(),c=b(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,te(n,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&ce(g),te(l,"class","AccountEditLimitsInputContainer")},m(e,t){Z(e,n,t),q(n,r),q(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(n,null);O(n,i[17][i[58]].amount,!0),Z(e,s,t),Z(e,l,t),y&&y.m(l,null),Z(e,u,t),v&&v.m(e,t),Z(e,c,t),d||(m=[ee(n,"change",g),ee(n,"change",function(){w(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")+"")&&ne(o,h),1048656&t[0]){let e;for(p=i[20].get(i[6])[i[58]].values,e=0;e<p.length;e+=1){const o=yr(i,p,e);f[e]?f[e].p(o,t):(f[e]=Cr(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&O(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=Mr(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Ir(i)).c(),v.m(c.parentNode,c)):v&&(v.d(1),v=null)},d(e){e&&X(n),I(f,e),e&&X(s),e&&X(l),y&&y.d(),e&&X(u),v&&v.d(e),e&&X(c),d=!1,z(m)}}}function Tr(e){let i,n=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=J(n)},m(e,t){Z(e,i,t)},p(e,t){80&t[0]&&n!==(n=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&ne(i,n)},d(e){e&&X(i)}}}function Cr(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Tr(e);return{c(){i=K("option"),n=J(s),r=Q(),l&&l.c(),o=Q(),i.__value=a=e[59],i.value=i.__value},m(e,t){Z(e,i,t),q(i,n),q(i,r),l&&l.m(i,null),q(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&ne(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Tr(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&&X(i),l&&l.d()}}}function Mr(e){let i;function n(e){return"Time Limit"!==e[6]?Ar:Sr}let r=n(e),o=r(e);return{c(){o.c(),i=b()},m(e,t){o.m(e,t),Z(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&&X(i)}}}function Sr(i){let n,r,o,a,s,l;function u(){i[31].call(n,i[58])}let c=1==i[13][i[58]]&&Dr(i);return{c(){n=K("input"),o=Q(),a=K("p"),c&&c.c(),te(n,"type","number"),te(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,te(a,"class","AccountEditWarningText")},m(e,t){Z(e,n,t),P(n,i[17][i[58]].value),Z(e,o,t),Z(e,a,t),c&&c.m(a,null),s||(l=[ee(n,"keyup",function(){w(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)}),ee(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&ae(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=Dr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&X(n),e&&X(o),e&&X(a),c&&c.d(),s=!1,z(l)}}}function Ar(i){let n,r,o,a,s,l;function u(){i[30].call(n,i[58])}let c=1==i[13][i[58]]&&kr(i);return{c(){n=K("input"),o=Q(),a=K("p"),c&&c.c(),te(n,"type","number"),te(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,te(a,"class","AccountEditWarningText")},m(e,t){Z(e,n,t),P(n,i[17][i[58]].value),Z(e,o,t),Z(e,a,t),c&&c.m(a,null),s||(l=[ee(n,"keyup",function(){w(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)}),ee(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&ae(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=kr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&X(n),e&&X(o),e&&X(a),c&&c.d(),s=!1,z(l)}}}function Dr(e){let i,n,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=K("p"),n=J(r),te(i,"class","InvalidInput")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&ne(n,r)},d(e){e&&X(i)}}}function kr(e){let i,n,r=e[18]("invalidInputMessageLimit")+"";return{c(){i=K("p"),n=J(r),te(i,"class","InvalidInput")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Ir(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w=e[18]("expirationDate")+"",b=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",L=(0<e[56].updateAmount?e[56].updateAmount:0)+"",x=(void 0!==e[56].minutes?" minutes":e[4])+"",E=e[18]("changedLimitTextAfter")+"";return{c(){i=K("p"),n=J(w),r=Q(),o=K("span"),a=J(b),s=Q(),l=K("div"),u=K("p"),(c=K("span")).textContent="i",d=K("span"),m=J(_),h=Q(),p=J(L),f=Q(),g=J(x),y=J(". "),v=J(E),te(i,"class","AccountEditLimitsExpiryDate"),te(c,"class","AccountEditLimitChangePeriodIcon"),te(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){Z(e,i,t),q(i,n),q(i,r),q(i,o),q(o,a),Z(e,s,t),Z(e,l,t),q(l,u),q(u,c),q(u,d),q(d,m),q(d,h),q(d,p),q(d,f),q(d,g),q(d,y),q(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("expirationDate")+"")&&ne(n,w),16384&t[0]&&b!==(b=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(a,b),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&ne(m,_),16384&t[0]&&L!==(L=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&ne(p,L),16400&t[0]&&x!==(x=(void 0!==e[56].minutes?" minutes":e[4])+"")&&ne(g,x),262144&t[0]&&E!==(E=e[18]("changedLimitTextAfter")+"")&&ne(v,E)},d(e){e&&X(i),e&&X(s),e&&X(l)}}}function Pr(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&&Er(e);return{c(){i=K("div"),n=K("p"),r=J(s),o=Q(),l&&l.c(),a=Q(),te(n,"class","AccountEditLimitsTitle"),te(i,"class","AccountEditLimitsBox")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(i,o),l&&l.m(i,null),q(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&ne(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=Er(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&X(i),l&&l.d()}}}function Or(i){let n,R,r,o,a,s,$,l,u,c,Y,d,m,F,h,p,f,j,g,y,U,v,G,w,b,_,L,x,E,T,C,M,S,A,D,W,k=i[18]("back")+"",I=(i[1]?i[9]:"")+"",P=i[18]("save")+"",O=i[19]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g=i[18]("back")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),d=Q(),m=K("h2"),h=J(g),te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(r,"xmlns","http://www.w3.org/2000/svg"),te(r,"width","15"),te(r,"height","15"),te(r,"viewBox","0 0 15 15"),te(m,"class","MyAccountCategoryTitleMobile"),te(n,"class","MenuReturnButton")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(r,l),q(l,u),q(u,c),q(n,d),q(n,m),q(m,h),p||(f=ee(n,"click",i[22]),p=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&ne(h,g)},d(e){e&&X(n),p=!1,f()}}}(i),N=i[2]&&wr(i),H=i[3]&&br(i),B=i[8]&&xr(i);return{c(){n=K("div"),O&&O.c(),R=Q(),r=K("div"),o=t("svg"),a=t("defs"),s=t("style"),$=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),Y=Q(),d=K("h2"),m=J(k),F=Q(),h=K("div"),p=K("h6"),f=J(I),j=Q(),g=K("div"),(y=K("span")).textContent="i",U=Q(),v=K("player-account-gaming-limits-popup"),G=Q(),N&&N.c(),w=Q(),H&&H.c(),b=Q(),B&&B.c(),_=Q(),L=K("div"),x=K("button"),E=J(P),M=Q(),S=K("player-account-modal"),A=K("player-account-gaming-limits-confirmation-modal"),this.c=V,te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(o,"xmlns","http://www.w3.org/2000/svg"),te(o,"width","20"),te(o,"height","20"),te(o,"viewBox","0 0 15 15"),te(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),te(r,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),te(y,"class","AccountEditLimitsIcon"),ie(v,"showpopup",i[7]),ie(v,"lang",i[0]),te(g,"class","AccountEditLimitsIconWrapper"),te(h,"class","AccountEditLimitsHeader"),te(x,"class",T="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),x.disabled=C=!i[15],te(L,"class","AccountEditLimitsControlArea"),te(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ie(A,"modaltext",i[12]),ie(A,"modalsource","groupEdit"),ie(A,"lang",i[0])},m(e,t){Z(e,n,t),O&&O.m(n,null),q(n,R),q(n,r),q(r,o),q(o,a),q(a,s),q(s,$),q(o,l),q(l,u),q(u,c),q(r,Y),q(r,d),q(d,m),q(n,F),q(n,h),q(h,p),q(p,f),q(h,j),q(h,g),q(g,y),q(g,U),q(g,v),q(n,G),N&&N.m(n,null),q(n,w),H&&H.m(n,null),q(n,b),B&&B.m(n,null),q(n,_),q(n,L),q(L,x),q(x,E),i[33](n),Z(e,M,t),Z(e,S,t),q(S,A),D||(W=[ee(r,"click",i[22]),ee(y,"click",oe(i[21])),ee(x,"click",i[32])],D=!0)},p(e,t){e[19]&&O.p(e,t),262144&t[0]&&k!==(k=e[18]("back")+"")&&ne(m,k),514&t[0]&&I!==(I=(e[1]?e[9]:"")+"")&&ne(f,I),128&t[0]&&ie(v,"showpopup",e[7]),1&t[0]&&ie(v,"lang",e[0]),e[2]?N?N.p(e,t):((N=wr(e)).c(),N.m(n,w)):N&&(N.d(1),N=null),e[3]?H?H.p(e,t):((H=br(e)).c(),H.m(n,b)):H&&(H.d(1),H=null),e[8]?B?B.p(e,t):((B=xr(e)).c(),B.m(n,_)):B&&(B.d(1),B=null),262144&t[0]&&P!==(P=e[18]("save")+"")&&ne(E,P),32768&t[0]&&T!==(T="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&te(x,"class",T),32768&t[0]&&C!==(C=!e[15])&&(x.disabled=C),4096&t[0]&&ie(A,"modaltext",e[12]),1&t[0]&&ie(A,"lang",e[0])},i:V,o:V,d(e){e&&X(n),O&&O.d(),N&&N.d(),H&&H.d(),B&&B.d(),i[33](null),e&&X(M),e&&X(S),D=!1,z(W)}}}function Nr(t,e,o){let i,{limitsdata:n=[]}=(re(t,Wn,e=>o(18,i=e)),e),{showsuccessnotification:r=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:u="true"}=e,{clientstyling:c=""}=e,{clientstylingurl:d=""}=e,{translationurl:m=""}=e,h,p,f=(Object.keys(or).forEach(e=>{rr(e,or[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",H=window.navigator.userAgent,B="PC"!==Vn(H),L=new Array(3).fill(0),x={},E=[],T=[],C=!1,M=[];const S={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let A=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],D=[{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"]}],k=[{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:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],$=[{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 I=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),P=new Map([["Deposit Limit",D],["Time Limit",$],["Wagering Limit",k],["Loss Limit",R]]),Y=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},O=(i,e)=>{let n=JSON.parse(JSON.stringify(e));A.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)})})},F=()=>{M.forEach(e=>{var t=e;T.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),x.forEach(n=>{T.forEach(e=>{var t,i;n.period===e.period&&(e=e,t=n,i=A,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)}))})})},j=()=>{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}}))},N=()=>{var e=l;W.set(e),j(),o(16,M=JSON.parse(JSON.stringify(n))),o(14,x=JSON.parse(JSON.stringify(n))),T="Wagering Limit"===h?k:"Loss Limit"===h?R:"Deposit Limit"===h?D:"Time Limit"===h?$:[],F()},U=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),j();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),N(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?A.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,minutes:t.value},E.push(e)):x.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):A.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},E.push(e)):x.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==u?{[I.get(h)]:[...E]}:{[I.get(h)]:[...x]},E.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:I.get(h)},window.location.href),o(15,C=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),N(),o(15,C=!1),v=!1}var t};return se(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)})),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,u=e.separatelimits),"clientstyling"in e&&o(26,c=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,m=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&r&&a&&N(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),134217760&t.$$.dirty[0]&&d&&p){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{rr(e,t[e])})}).catch(e=>{console.log(e)})},[l,n,r,a,s,p,h,f,g,y,w,b,_,L,x,C,M,A,i,B,P,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},Y,(e,t,i,n)=>{var r;"Custom"===e.amount?"Time Limit"==h?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&S.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,L[t]=0,L),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,C=!1),O(e,n)):o(15,C=!0)):(o(13,L[t]=1,L),o(15,C=!1))):e.value&&S.amount.test(e.value)?(o(13,L[t]=0,L),e.period==n[t].period&&e.value==n[t].amount?(o(15,C=!!C),O(e,n)):o(15,C=!0),"true"!=u&&A.forEach(e=>{0==e.value&&o(15,C=!1)})):(o(13,L[t]=1,L),o(15,C=!1)):(e.period==n[t].period?(O(e,n),o(15,C=e.value!=n[t].amount)):o(15,C=!0),A.forEach(e=>{(0==e.value&&"true"!=u||"Custom"==e.amount&&!S.amount.test(e.value.toString()))&&o(15,C=!1)}))},u,c,d,m,function(e){A[e].amount=function(e){e=e.querySelector(":checked");return e&&e.__value}(this),o(17,A),o(20,P),o(6,h)},function(e){A[e].value=ae(this.value),o(17,A),o(20,P),o(6,h)},function(e){A[e].value=ae(this.value),o(17,A),o(20,P),o(6,h)},()=>Y(),function(e){G[e?"unshift":"push"](()=>{p=e,o(5,p)})}]}function Hr(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Br(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Rr(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w,b,_,L,x,E,T,C=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",M=i[15]("edit")+"";function S(e){return"Time Limit"===e[1]?Fr:Yr}let A=S(i),D=A(i),k=!i[9]&&!i[0].isModified&&i[14]&&io(i),I=i[11]&&no(i);return{c(){n=K("div"),r=K("div"),o=K("div"),a=K("h5"),s=J(C),l=Q(),u=K("div"),(c=K("span")).textContent="i",d=Q(),m=K("player-account-gaming-limits-popup"),p=Q(),f=K("div"),g=K("div"),y=K("div"),D.c(),v=Q(),w=K("div"),b=K("button"),_=J(M),L=Q(),k&&k.c(),x=Q(),I&&I.c(),te(c,"class","InfoCardIcon"),ie(m,"showpopup",h=i[8][0]),ie(m,"lang",i[3]),ie(m,"clientstyling",i[4]),ie(m,"clientstylingurl",i[5]),te(u,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),te(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),te(y,"class","InfoCardTableRow"),te(g,"class","InfoCardTableWrapper"),te(b,"class","InfoCardEditButton"),te(w,"class","InfoCardControlArea"),te(f,"class","InfoCard"),te(r,"class","InfoCardWrapper"),te(n,"class","InfoCardSection")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(o,l),q(o,u),q(u,c),q(u,d),q(u,m),q(r,p),q(r,f),q(f,g),q(g,y),D.m(y,null),q(f,v),q(f,w),q(w,b),q(b,_),q(w,L),k&&k.m(w,null),q(n,x),I&&I.m(n,null),E||(T=[ee(c,"click",oe(i[23])),ee(b,"click",i[26])],E=!0)},p(e,t){32771&t[0]&&C!==(C=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&ne(s,C),256&t[0]&&h!==(h=e[8][0])&&ie(m,"showpopup",h),8&t[0]&&ie(m,"lang",e[3]),16&t[0]&&ie(m,"clientstyling",e[4]),32&t[0]&&ie(m,"clientstylingurl",e[5]),A===(A=S(e))&&D?D.p(e,t):(D.d(1),(D=A(e))&&(D.c(),D.m(y,null))),32768&t[0]&&M!==(M=e[15]("edit")+"")&&ne(_,M),e[9]||e[0].isModified||!e[14]?k&&(k.d(1),k=null):k?k.p(e,t):((k=io(e)).c(),k.m(w,null)),e[11]?I?I.p(e,t):((I=no(e)).c(),I.m(n,null)):I&&(I.d(1),I=null)},d(e){e&&X(n),D.d(),k&&k.d(),I&&I.d(),E=!1,z(T)}}}function $r(e){let i;return{c(){te(i=K("div"),"class","ModalLoader")},m(e,t){Z(e,i,t)},p:V,d(e){e&&X(i)}}}function Yr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=zr(Hr(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);Z(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=Hr(t,o,e);a[e]?a[e].p(n,i):(a[e]=zr(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){I(a,e),e&&X(r)}}}function Fr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=to(Br(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);Z(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=Br(t,o,e);a[e]?a[e].p(n,i):(a[e]=to(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){I(a,e),e&&X(r)}}}function jr(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Ur(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Gr(e){let i,n,r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Wr(i){let n,r,o,a,s,l,u,c;function d(){return i[25](i[43])}return{c(){n=K("div"),(r=K("span")).textContent="i",o=Q(),a=K("player-account-gaming-limits-popup"),te(r,"class","InfoCardIcon"),ie(a,"showpopup",s=i[8][i[43]+1]),ie(a,"iteminfoamount",l=i[41].updateAmount),ie(a,"playercurrency",i[2]),ie(a,"lang",i[3]),ie(a,"clientstyling",i[4]),ie(a,"clientstylingurl",i[5]),te(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){Z(e,n,t),q(n,r),q(n,o),q(n,a),u||(c=ee(r,"click",oe(d)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ie(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ie(a,"iteminfoamount",l),4&t[0]&&ie(a,"playercurrency",i[2]),8&t[0]&&ie(a,"lang",i[3]),16&t[0]&&ie(a,"clientstyling",i[4]),32&t[0]&&ie(a,"clientstylingurl",i[5])},d(e){e&&X(n),u=!1,c()}}}function Vr(i){let n,r,o;return{c(){(n=K("div")).innerHTML="<span></span>",te(n,"class","InfoCardRemoveIcon")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",function(){w(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&&X(n),r=!1,o()}}}function zr(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),L=e[15]("expirationDate")+"",x=_&&jr(e);function E(e){return e[41].expiryDate?Gr:Ur}let T=E(e),C=T(e);function M(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)?Vr:"No limit"!=e[41].amount&&e[41].isModified?Wr:void 0}let S=M(e,[-1,-1]),A=S&&S(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=J(w),s=Q(),l=K("div"),u=J(b),c=Q(),x&&x.c(),d=Q(),m=K("div"),h=K("div"),p=J(L),f=Q(),C.c(),g=Q(),A&&A.c(),v=Q(),te(o,"class","InfoCardRowTitle"),te(l,"class","InfoCardRowValue"),te(r,"class","InfoCardRow InfoMainRow"),te(h,"class","InfoCardRowTitle"),te(m,"class","InfoCardRow"),te(n,"class","InfoCardRowContainer"),te(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(r,o),q(o,a),q(r,s),q(r,l),q(l,u),q(l,c),x&&x.m(l,null),q(n,d),q(n,m),q(m,h),q(h,p),q(m,f),C.m(m,null),q(i,g),A&&A.m(i,null),q(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&ne(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&ne(u,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?x?x.p(e,t):((x=jr(e)).c(),x.m(l,null)):x&&(x.d(1),x=null),32768&t[0]&&L!==(L=e[15]("expirationDate")+"")&&ne(p,L),T===(T=E(e))&&C?C.p(e,t):(C.d(1),(C=T(e))&&(C.c(),C.m(m,null))),S===(S=M(e,t))&&A?A.p(e,t):(A&&A.d(1),(A=S&&S(e))&&(A.c(),A.m(i,v)))},d(e){e&&X(i),x&&x.d(),C.d(),A&&A.d()}}}function qr(e){let i,n,r=e[15]("noLimit")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Zr(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&&Xr(e);return{c(){i=J(o),n=Q(),s&&s.c(),r=b()},m(e,t){Z(e,i,t),Z(e,n,t),s&&s.m(e,t),Z(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)+"")&&ne(i,o),(a=32769&t[0]?"No limit"!==e[41].amount&&e[41].amount!==e[15]("noLimit"):a)?s?s.p(e,t):((s=Xr(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&X(i),e&&X(n),s&&s.d(e),e&&X(r)}}}function Xr(e){let i,n,r=e[15]("minutes")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Kr(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Jr(e){let i,n,r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Qr(i){let n,r,o,a,s,l,u,c,d;function m(){return i[24](i[43])}return{c(){n=K("div"),(r=K("span")).textContent="i",o=Q(),a=K("player-account-gaming-limits-popup"),te(r,"class","InfoCardIcon"),ie(a,"showpopup",s=i[8][i[43]+1]),ie(a,"iteminfoamount",l=i[41].updateMinutes),ie(a,"playercurrency",u=i[15]("minutes")),ie(a,"lang",i[3]),ie(a,"clientstyling",i[4]),ie(a,"clientstylingurl",i[5]),te(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){Z(e,n,t),q(n,r),q(n,o),q(n,a),c||(d=ee(r,"click",oe(m)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ie(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ie(a,"iteminfoamount",l),32768&t[0]&&u!==(u=i[15]("minutes"))&&ie(a,"playercurrency",u),8&t[0]&&ie(a,"lang",i[3]),16&t[0]&&ie(a,"clientstyling",i[4]),32&t[0]&&ie(a,"clientstylingurl",i[5])},d(e){e&&X(n),c=!1,d()}}}function eo(i){let n,r,o;return{c(){(n=K("div")).innerHTML="<span></span>",te(n,"class","InfoCardRemoveIcon")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",function(){w(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&&X(n),r=!1,o()}}}function to(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function w(e){return 0!==e[41].amount?Zr:qr}let b=w(e),_=b(e);function L(e){return e[41].expiryDate?Jr:Kr}let x=L(e),E=x(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)?eo:"No limit"!=e[41].amount&&e[41].isModified?Qr:void 0}let C=T(e,[-1,-1]),M=C&&C(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=J(y),s=Q(),l=K("div"),_.c(),u=Q(),c=K("div"),d=K("div"),m=J(v),h=Q(),E.c(),p=Q(),M&&M.c(),g=Q(),te(o,"class","InfoCardRowTitle"),te(l,"class","InfoCardRowValue"),te(r,"class","InfoCardRow InfoMainRow"),te(d,"class","InfoCardRowTitle"),te(c,"class","InfoCardRow"),te(n,"class","InfoCardRowContainer"),te(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(r,o),q(o,a),q(r,s),q(r,l),_.m(l,null),q(n,u),q(n,c),q(c,d),q(d,m),q(c,h),E.m(c,null),q(i,p),M&&M.m(i,null),q(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)):"")+"")&&ne(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&ne(m,v),x===(x=L(e))&&E?E.p(e,t):(E.d(1),(E=x(e))&&(E.c(),E.m(c,null))),C===(C=T(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=C&&C(e))&&(M.c(),M.m(i,g)))},d(e){e&&X(i),_.d(),E.d(),M&&M.d()}}}function io(i){let n,r,o,a,s=i[15]("removeLimits")+"";return{c(){n=K("button"),r=J(s),te(n,"class","InfoCardRemoveButton")},m(e,t){Z(e,n,t),q(n,r),o||(a=ee(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&ne(r,s)},d(e){e&&X(n),o=!1,a()}}}function no(e){let i,n,r;return{c(){i=K("player-account-modal"),ie(n=K("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),ie(n,"modalsource","infoCard"),ie(n,"lang",e[3]),ie(n,"clientstyling",e[4]),ie(n,"clientstylingurl",e[5]),ie(i,"clientstyling",e[4]),ie(i,"clientstylingurl",e[5])},m(e,t){Z(e,i,t),q(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&ie(n,"modaltext",r),8&t[0]&&ie(n,"lang",e[3]),16&t[0]&&ie(n,"clientstyling",e[4]),32&t[0]&&ie(n,"clientstylingurl",e[5]),16&t[0]&&ie(i,"clientstyling",e[4]),32&t[0]&&ie(i,"clientstylingurl",e[5])},d(e){e&&X(i)}}}function ro(i){let n;function r(e){return e[7]?$r:Rr}let o=r(i),a=o(i);return{c(){n=K("div"),a.c(),this.c=V},m(e,t){Z(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:V,o:V,d(e){e&&X(n),a.d(),i[28](null)}}}function oo(t,e,n){let i,{limitsdata:r=[]}=(re(t,Wn,e=>n(15,i=e)),e),{limitname:o=""}=e,{playercurrency:a=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(Xn).forEach(e=>{Zn(e,Xn[e])});let d,m=!0,h=new Array(5).fill(0),p=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==Vn(v),b="",_="",L=!0,x=A();const E=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:o},window.location.href)},T=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:o},window.location.href)},C=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,h[e]=!0,h)},50)},M=(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,S=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,h=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return se(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})),t.$$set=e=>{"limitsdata"in e&&n(0,r=e.limitsdata),"limitname"in e&&n(1,o=e.limitname),"playercurrency"in e&&n(2,a=e.playercurrency),"lang"in e&&n(3,s=e.lang),"clientstyling"in e&&n(4,l=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,c=e.translationurl)},t.$$.update=()=>{if(11&t.$$.dirty[0]&&r&&o&&s){var e=s;W.set(e),e="Time Limit"===o?"time limit":"Deposit Limit"===o?"deposit limit":"Wagering Limit"===o?"wagering limit":"loss limit",n(12,b=i("removeLimitsText",{values:{limit:e}})),n(13,_=i("removeLimitText",{values:{limit:e}})),r.forEach(e=>{e.isModified&&n(14,L=!1)});{let i=[...e=r];p.forEach((t,e)=>{e=(i=i.find(e=>e.period===t)?i:((e,t,i)=>{i={period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""},e=[...e];return e.splice(t,0,i),e})(i,e,t)).find(e=>e.period===t);e&&"No limit"!==e.amount&&n(9,f=!1)}),e.splice(0,e.length,...i),n(7,m=!1)}r.sort(M)}if(80&t.$$.dirty[0]&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),96&t.$$.dirty[0]&&u&&d){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}4194304&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Zn(e,t[e])})}).catch(e=>{console.log(e)})},[r,o,a,s,l,u,d,m,h,f,g,y,b,_,L,i,w,x,E,T,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},C,c,()=>C(0),e=>C(e+1),e=>C(e+1),()=>E(r),()=>T(r),function(e){G[e?"unshift":"push"](()=>{d=e,n(6,d)})}]}function ao(e){let i;return{c(){ie(i=K("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ie(i,"limitname",e[14]),ie(i,"showsuccessnotification",e[7]),ie(i,"showdeletenotification",e[6]),ie(i,"playercurrency",e[5]),ie(i,"lang",e[0]),ie(i,"separatelimits",e[8]),ie(i,"clientstyling",e[9]),ie(i,"clientstylingurl",e[10])},m(e,t){Z(e,i,t)},p(e,t){8192&t&&ie(i,"limitsdata",e[13]),16384&t&&ie(i,"limitname",e[14]),128&t&&ie(i,"showsuccessnotification",e[7]),64&t&&ie(i,"showdeletenotification",e[6]),32&t&&ie(i,"playercurrency",e[5]),1&t&&ie(i,"lang",e[0]),256&t&&ie(i,"separatelimits",e[8]),512&t&&ie(i,"clientstyling",e[9]),1024&t&&ie(i,"clientstylingurl",e[10])},d(e){e&&X(i)}}}function so(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g=i[16]("gamingLimitsText")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),d=Q(),m=K("h2"),h=J(g),te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(r,"xmlns","http://www.w3.org/2000/svg"),te(r,"width","15"),te(r,"height","15"),te(r,"viewBox","0 0 15 15"),te(m,"class","PlayerGamingLimitsTitleMobile"),te(n,"class","MenuReturnButton")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(r,l),q(l,u),q(u,c),q(n,d),q(n,m),q(m,h),p||(f=ee(n,"click",i[21]),p=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&ne(h,g)},d(e){e&&X(n),p=!1,f()}}}(e);return{c(){i=K("div"),g&&g.c(),n=Q(),r=K("h2"),o=J(f),a=Q(),s=K("div"),l=K("player-account-gaming-limits-info-card"),u=Q(),c=K("player-account-gaming-limits-info-card"),d=Q(),m=K("player-account-gaming-limits-info-card"),h=Q(),p=K("player-account-gaming-limits-info-card"),te(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ie(l,"limitsdata",e[1]),ie(l,"limitname",co),ie(l,"playercurrency",e[5]),ie(l,"lang",e[0]),ie(l,"clientstyling",e[9]),ie(l,"clientstylingurl",e[10]),ie(c,"limitsdata",e[2]),ie(c,"limitname",mo),ie(c,"playercurrency",e[5]),ie(c,"lang",e[0]),ie(c,"clientstyling",e[9]),ie(c,"clientstylingurl",e[10]),ie(m,"limitsdata",e[3]),ie(m,"limitname",ho),ie(m,"playercurrency",e[5]),ie(m,"lang",e[0]),ie(m,"clientstyling",e[9]),ie(m,"clientstylingurl",e[10]),ie(p,"limitsdata",e[4]),ie(p,"limitname",po),ie(p,"playercurrency",e[5]),ie(p,"lang",e[0]),ie(p,"clientstyling",e[9]),ie(p,"clientstylingurl",e[10]),te(s,"class","PlayerAccountGamingLimitsContainer"),te(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){Z(e,i,t),g&&g.m(i,null),q(i,n),q(i,r),q(r,o),q(i,a),q(i,s),q(s,l),q(s,u),q(s,c),q(s,d),q(s,m),q(s,h),q(s,p)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&ne(o,f),2&t&&ie(l,"limitsdata",e[1]),32&t&&ie(l,"playercurrency",e[5]),1&t&&ie(l,"lang",e[0]),512&t&&ie(l,"clientstyling",e[9]),1024&t&&ie(l,"clientstylingurl",e[10]),4&t&&ie(c,"limitsdata",e[2]),32&t&&ie(c,"playercurrency",e[5]),1&t&&ie(c,"lang",e[0]),512&t&&ie(c,"clientstyling",e[9]),1024&t&&ie(c,"clientstylingurl",e[10]),8&t&&ie(m,"limitsdata",e[3]),32&t&&ie(m,"playercurrency",e[5]),1&t&&ie(m,"lang",e[0]),512&t&&ie(m,"clientstyling",e[9]),1024&t&&ie(m,"clientstylingurl",e[10]),16&t&&ie(p,"limitsdata",e[4]),32&t&&ie(p,"playercurrency",e[5]),1&t&&ie(p,"lang",e[0]),512&t&&ie(p,"clientstyling",e[9]),1024&t&&ie(p,"clientstylingurl",e[10])},d(e){e&&X(i),g&&g.d()}}}function lo(e){let i;return{c(){te(i=K("div"),"class","ModalLoader")},m(e,t){Z(e,i,t)},p:V,d(e){e&&X(i)}}}function uo(i){let n;function r(e){return e[12]?lo:e[15]?so:ao}let o=r(i),a=o(i);return{c(){n=K("div"),a.c(),this.c=V},m(e,t){Z(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:V,o:V,d(e){e&&X(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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},fr,pr,E,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),m()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),m()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),m()}}),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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Nr,Or,E,{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&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}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}),m()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),m()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),m()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),m()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),m()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),m()}}),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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},oo,ro,E,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),m()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),m()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),m()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),m()}});let co="Deposit Limit",mo="Wagering Limit",ho="Loss Limit",po="Time Limit";function fo(t,e,i){let n,r=(re(t,Wn,e=>i(16,n=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:u=!1}=e,{lang:c="en"}=e,{playercurrency:d=""}=e,{separatelimits:m="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,g;Object.keys(qn).forEach(e=>{zn(e,qn[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==Vn(w),_="",L=!0;const x=window.matchMedia("(min-width: 768px)"),E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},T=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,c=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,L=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,L=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return se(()=>(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,u=e.showsuccessnotification),"lang"in e&&i(0,c=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,m=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,p=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&c&&(e=c,W.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&p&&g){let e=new URL(p),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=>{zn(e,t[e])})}).catch(e=>{console.log(e)})},[c,r,o,a,s,d,l,u,m,h,p,g,v,y,_,L,n,b,x,E,f,()=>E(),function(e){G[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}class go 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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},fo,uo,E,{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&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}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}),m()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),m()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),m()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),m()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),m()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),m()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),m()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),m()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",go),go});
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,m=k(e),{stylesheet:h,rules:p}=H.get(m)||(m=m,c={stylesheet:(c=e,p=K("style"),c=k(c),h=p,q(c.head||c,h),h.sheet,p.sheet),rules:{}},H.set(m,c),c),m=(p[s]||(p[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(m?m+", ":"")+s+` ${n}ms linear ${r}ms 1 both`,R+=1,s}function Y(e){B=e}function se(e){!function(){if(B)return B;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],G=[];let j=[];const U=[],le=Promise.resolve();let ue=!1;function ce(e){j.push(e)}const de=new Set;let me,he=0;function m(){if(0===he){const n=B;do{try{for(;he<F.length;){const n=F[he];he++,Y(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),z(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ce))}}catch(n){throw F.length=0,he=0,n}for(Y(null),F.length=0,he=0;G.length;)G.pop()();for(let e=0;e<j.length;e+=1){var i=j[e];de.has(i)||(de.add(i),i())}}while(j.length=0,F.length);for(;U.length;)U.pop()();ue=!1,de.clear(),Y(n)}}function pe(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 fe=new Set;let ge;function ye(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ve(e,t,i,n){e&&e.o?fe.has(e)||(fe.add(e),ge.c.push(()=>{fe.delete(e),n&&(i&&e.d(1),n())}),e.o(t)):n&&n()}const we={duration:0};function be(l,e,t,i){const n={direction:"both"};let u=e(l,t,n),c=i?0:1,d=null,m=null,h=null;function p(){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(", "),R-=i)||M(()=>{R||(H.forEach(e=>{e=e.stylesheet.ownerNode;e&&X(e)}),H.clear())}))}function f(e,t){var i=e.b-c;return t*=Math.abs(i),{a:c,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=L,tick:r=V,css:o}=u||we,a={start:C()+t,b:e};if(e||((a.group=ge).r+=1),d||m)m=a;else{o&&(p(),h=$(l,c,e,i,t,n,o)),e&&r(0,1),d=f(a,i),ce(()=>pe(l,e,"start"));{var s=e=>{return m&&e>m.start&&(d=f(m,i),m=null,pe(l,d.b,"start"),o)&&(p(),h=$(l,c,d.b,d.duration,0,n,u.css)),d&&(e>=d.end?(r(c=d.b,1-c),pe(l,d.b,"end"),m||(d.b?p():--d.group.r||z(d.group.c)),d=null):e>=d.start&&(e=e-d.start,c=d.a+d.d*n(e/d.duration),r(c,1-c))),!(!d&&!m)};let t;0===S.size&&M(D),new Promise(e=>{S.add(t={c:s,f:e})})}}}return{run(e){w(u)?(me||(me=Promise.resolve()).then(()=>{me=null}),me.then(()=>{u=u(n),r(e)})):r(e)},end(){p(),d=m=null}}}function _e(n,e,t,i,r,o,a,s=[-1]){var l=B;Y(n);const u=n.$$={fragment:null,ctx:[],props:o,update:V,not_equal:r,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:x(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),c)&&(i=e,-1===(e=n).$$.dirty[0]&&(F.push(e),ue||(ue=!0,le.then(m)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],u.update(),c=!0,z(u.before_update),u.fragment=!!i&&i(u.ctx),e.target){if(e.hydrate){o=e.target;const V=Array.from(o.childNodes);u.fragment&&u.fragment.l(V),V.forEach(X)}else u.fragment&&u.fragment.c();e.intro&&ye(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||ce(()=>{var e=d.$$.on_mount.map(p).filter(w);d.$$.on_destroy?d.$$.on_destroy.push(...e):z(e),d.$$.on_mount=[]}),o.forEach(ce),m()}Y(l)}let Le;"function"==typeof HTMLElement&&(Le=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(w);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){z(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const n=[],r=[];j.forEach(e=>(-1===i.indexOf(e)?n:r).push(e)),r.forEach(e=>e()),j=n}z(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=V}$on(e,t){if(!w(t))return V;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 xe,Ee,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Te="URLSearchParams"in l,Ce="Symbol"in l&&"iterator"in Symbol,Me="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),Se="FormData"in l,Ae="ArrayBuffer"in l;function De(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 ke(e){return e="string"!=typeof e?String(e):e}function Ie(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Ce&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?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 Pe(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Oe(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Ne(e){var t=new FileReader,i=Oe(t);return t.readAsArrayBuffer(e),i}function He(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Be(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Me&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Se&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ae&&Me&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=He(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ae&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ee(e))?this._bodyArrayBuffer=He(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):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Me&&(this.blob=function(){var e=Pe(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 Pe(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(Me)return this.blob().then(Ne);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,n=Pe(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Oe(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)},Se&&(this.formData=function(){return this.text().then(Ye)}),this.json=function(){return this.text().then(JSON.parse)},this}Ae&&(xe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ee=ArrayBuffer.isView||function(e){return e&&-1<xe.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=De(e),t=ke(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},u.prototype.delete=function(e){delete this.map[De(e)]},u.prototype.get=function(e){return e=De(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(De(e))},u.prototype.set=function(e,t){this.map[De(e)]=ke(t)},u.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},u.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),Ie(i)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Ie(t)},u.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),Ie(i)},Ce&&(u.prototype[Symbol.iterator]=u.prototype.entries);var Re=["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 u(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 u(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Re.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)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 Ye(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 c(e,t){if(!(this instanceof c))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 u(t.headers),this.url=t.url||"",this._initBody(e)}$e.prototype.clone=function(){return new $e(this,{body:this._bodyInit})},Be.call($e.prototype),Be.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Fe=[301,302,303,307,308],je=(c.redirect=function(e,t){if(-1===Fe.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new je}catch(V){(je=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),je.prototype.constructor=je}function Ue(n,s){return new Promise(function(r,e){var o=new $e(n,s);if(o.signal&&o.signal.aborted)return e(new je("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 u,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 c(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 je("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&l.location.href?l.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&&(Me?a.responseType="blob":Ae&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof u||l.Headers&&s.headers instanceof l.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(De(e)),a.setRequestHeader(e,ke(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 Di(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ue.polyfill=!0,l.fetch||(l.fetch=Ue,l.Headers=u,l.Request=$e,l.Response=c),self.fetch.bind(self);var Ge=function(e,t){return(Ge=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 i(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}Ge(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f=function(){return(f=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 We(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 Ve(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 ze(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 d(e){return"function"==typeof e}function qe(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 Ze=qe(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 Xe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.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=We(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(d(o))try{o()}catch(e){r=e instanceof Ze?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=We(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{et(c)}catch(e){r=null!=r?r:[],e instanceof Ze?r=ze(ze([],Ve(r)),Ve(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ze(r)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)et(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Xe(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Xe(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((e=new n).closed=!0,e);var Ke=n,Je=Ke.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Qe(e){return e instanceof Ke||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function et(e){d(e)?e():e.unsubscribe()}var tt=void 0,it=!1,nt=!1,rt={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=rt.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],Ve(i))):setTimeout.apply(void 0,ze([e,t],Ve(i)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ot(){}var at=null;function st(e){if(it){var t=!at;if(t&&(at={errorThrown:!1,error:null}),e(),t){var t=at,i=t.errorThrown,t=t.error;if(at=null,i)throw t}}else e()}i(r,lt=Ke),r.create=function(e,t,i){return new pt(e,t,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,lt.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var lt,ut=r,ct=Function.prototype.bind;function r(e){var t=lt.call(this)||this;return t.isStopped=!1,e?Qe(t.destination=e)&&e.add(t):t.destination=vt,t}function dt(e,t){return ct.call(e,t)}gt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yt(e)}},gt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yt(e)}else yt(e)},gt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yt(e)}};var mt,ht=gt,pt=(i(ft,mt=ut),ft);function ft(e,t,i){var n=mt.call(this)||this,i=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:n&&nt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&dt(e.next,t),error:e.error&&dt(e.error,t),complete:e.complete&&dt(e.complete,t)}):e;return n.destination=new ht(i),n}function gt(e){this.partialObserver=e}function yt(e){var t=e;rt.setTimeout(function(){throw t})}var vt={closed:!0,next:ot,error:function(e){throw e},complete:ot},e="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof ut||n&&d(n.next)&&d(n.error)&&d(n.complete)&&Qe(n)?e:new pt(e,t,i);return st(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(n,e){var r=this;return new(e=bt(e))(function(e,t){var i=new pt({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.subscribe(i)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[e]=function(){return this},o.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)},o.prototype.toPromise=function(e){var n=this;return new(e=bt(e))(function(e,t){var i;n.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},o.create=function(e){return new o(e)};var wt=o;function o(e){e&&(this._subscribe=e)}function bt(e){return null!=(e=null!=e?e:tt)?e:Promise}var _t,Lt,xt,Et=qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(i(a,xt=wt),a.prototype.lift=function(e){var t=new Tt(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new Et},a.prototype.next=function(r){var o=this;st(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=We(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}}}})},a.prototype.error=function(t){var i=this;st(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)}})},a.prototype.complete=function(){var t=this;st(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Je:(this.currentObservers=null,r.push(e),new Ke(function(){t.currentObservers=null,Xe(r,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},a.prototype.asObservable=function(){var e=new wt;return e.source=this,e},a.create=function(e,t){return new Tt(e,t)},a),Tt=(i(At,Lt=e),At.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},At.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},At.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},At.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Je},At),Ct={now:function(){return(Ct.delegate||Date).now()},delegate:void 0},Mt=(i(St,_t=e),St.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)},St.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},St.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)}},St);function St(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Ct);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 At(e,t){var i=Lt.call(this)||this;return i.destination=e,i.source=t,i}function a(){var e=xt.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 It=[];function Pt(n,r=V){let o;const a=new Set;function s(e){if(E(n,e)&&(n=e,o)){const e=!It.length;for(const e of a)e[1](),It.push(e,n);if(e){for(let e=0;e<It.length;e+=2)It[e][0](It[e+1]);It.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=V){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||V),e(n),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Pt(t,t=>{let i=!1;const n=[];let r=0,o=V;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),c?t(e):o=w(e)?e:V)},e=u.map((e,t)=>T(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=1<<t}));return i=!0,a(),function(){z(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===Ht);var t}var Ht="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(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 Bt(e,i)})}function $t(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 Yt(e,t){try{return t in e}catch(e){return!1}}function Ft(n,r,o){var a={};return o.isMergeableObject(n)&&$t(n).forEach(function(e){a[e]=Bt(n[e],o)}),$t(r).forEach(function(e){var t,i;(!Yt(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Yt(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]=Bt(r[e],o))}),a}function jt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Rt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Ft(e,t,i):Bt(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 g,y,Ut,Gt=jt;function Wt(e){return e.type===y.literal}function Vt(e){return e.type===y.number}function zt(e){return e.type===y.date}function qt(e){return e.type===y.time}function Zt(e){return e.type===y.select}function Xt(e){return e.type===y.plural}function Kt(e){return e.type===y.tag}function Jt(e){return e&&"object"==typeof e&&e.type===Ut.number}function Qt(e){return e&&"object"==typeof e&&e.type===Ut.dateTime}(e=g=g||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Ut=Ut||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ei=/(?:[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 ti=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ii=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ni=/^(@+)?(\+|#+)?[rs]?$/g,ri=/(\*)(0+)|(#+)(0+)|(0+)/g,oi=/^(0+)$/;function ai(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ni,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 si(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 li(e){return si(e)||{}}function ui(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=f(f(f({},a),{notation:"scientific"}),r.options.reduce(function(e,t){return f(f({},e),li(t))},{}));continue;case"engineering":a=f(f(f({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return f(f({},e),li(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(ri,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(oi.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(ii.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(ii,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=f(f({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=f(f({},a),ai(o)))}else ni.test(r.stem)?a=f(f({},a),ai(r.stem)):((o=si(r.stem))&&(a=f(f({},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)),!oi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=f(f({},a),n)))}return a}var ci={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(e.source,"*")),mi=new RegExp("".concat(e.source,"*$"));function v(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,hi=!!String.fromCodePoint,pi=!!Object.fromEntries,fi=!!String.prototype.codePointAt,gi=!!String.prototype.trimStart,yi=!!String.prototype.trimEnd,vi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wi=!0;try{wi="a"===(null==(Fi=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Fi[0])}catch(V){wi=!1}var bi,_i,Li=e?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},xi=hi?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},Ei=pi?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},Ti=fi?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},Ci=gi?function(e){return e.trimStart()}:function(e){return e.replace(di,"")},Mi=yi?function(e){return e.trimEnd()}:function(e){return e.replace(mi,"")};function Si(e,t){return new RegExp(e,t)}_i=wi?(bi=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return bi.lastIndex=t,null!=(t=bi.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Ti(e,t);if(void 0===r||Ii(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 xi.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.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(g.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ki(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}},s.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()||!ki(this.char())?this.error(g.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),r!==this.parseTagName()?this.error(g.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(g.INVALID_TAG,v(e,this.clonePosition())))):this.error(g.UNCLOSED_TAG,v(n,this.clonePosition()))):this.error(g.INVALID_TAG,v(n,this.clonePosition()))},s.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())},s.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}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ki(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.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 xi.apply(void 0,t)},s.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(),xi(i))},s.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(g.EMPTY_ARGUMENT,v(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(g.MALFORMED_ARGUMENT,v(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.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(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(g.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=_i(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:v(e,this.clonePosition())}},s.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(g.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(m=Mi(d.val)).length)return this.error(g.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:v(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(h=v(n,this.clonePosition()),l&&Li(null==l?void 0:l.style,"::",0)?(p=Ci(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===p.length?this.error(g.EXPECT_DATE_TIME_SKELETON,h):(c=p,this.locale&&(c=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),(ci[t||""]||ci[i||""]||ci["".concat(i,"-001")]||ci["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}(p,this.locale)),m={type:Ut.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},c.replace(ei,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:m},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(p=null==l?void 0:l.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,v(c,f({},c)));this.bumpSpace();var d,m=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),m=this.parseIdentifierIfPossible(),h=d.val}var p,l=this.tryParsePluralOrSelectOptions(e,a,t,m);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(p=v(n,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Ei(l.val),location:p},err:null}:{val:{type:y.plural,value:i,options:Ei(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null});default:return this.error(g.INVALID_ARGUMENT_TYPE,v(o,s))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.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(g.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}},s.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(ti).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(g.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ut.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?ui(i):{}},err:null}},s.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 u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=v(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(r=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,i);if(u.err)return u;var d=this.tryParseArgumentClose(c);if(d.err)return d;o.push([s,{value:u.val,location:v(c,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(g.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},s.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?vi(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ti(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(Li(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.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)},s.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}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ii(this.char());)this.bump()},s.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 Ai=s;function s(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 ki(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ii(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Pi(e,t){t=f({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Ai(e,t).parse();if(e.err)throw(i=SyntaxError(g[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,Zt(e)||Xt(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Vt(e)&&Jt(e.style)||(zt(e)||qt(e))&&Qt(e.style)?delete e.style.location:Kt(e)&&i(e.children)})}(e.val),e.val}function Oi(e,t){var i=t&&t.cache?t.cache:ji,n=t&&t.serializer?t.serializer:Ri;return(t&&t.strategy?t.strategy:function(e,t){return Bi(e,this,1===e.length?Ni:Hi,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function Ni(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 Hi(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 Bi(e,t,i,n,r){return i.bind(t,e,n,r)}var Ri=function(){return JSON.stringify(arguments)};function $i(){this.cache=Object.create(null)}$i.prototype.get=function(e){return this.cache[e]},$i.prototype.set=function(e,t){this.cache[e]=t};var Yi,Fi,ji={create:function(){return new $i}},Ui={variadic:function(e,t){return Bi(e,this,Hi,t.cache.create(),t.serializer)},monadic:function(e,t){return Bi(e,this,Ni,t.cache.create(),t.serializer)}};(Fi=Yi=Yi||{}).MISSING_VALUE="MISSING_VALUE",Fi.INVALID_VALUE="INVALID_VALUE",Fi.MISSING_INTL_API="MISSING_INTL_API";i(tn,zi=Error),tn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,Gi,Wi,Vi,zi,qi=tn,Zi=(i(en,Vi=qi),en),Xi=(i(Qi,Wi=qi),Qi),Ki=(i(Ji,Gi=qi),Ji);function Ji(e,t){return Gi.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Yi.MISSING_VALUE,t)||this}function Qi(e,t,i){return Wi.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Yi.INVALID_VALUE,i)||this}function en(e,t,i,n){return Vi.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Yi.INVALID_VALUE,n)||this}function tn(e,t,i){e=zi.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function nn(e,t,i,n,r,o,a){if(1===e.length&&Wt(e[0]))return[{type:_.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Wt(c))s.push({type:_.literal,value:c.value});else if(c.type===y.pound)"number"==typeof o&&s.push({type:_.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!(r&&d in r))throw new Ki(d,a);d=r[d];if(c.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?_.literal:_.object,value:d});else if(zt(c)){var m="string"==typeof c.style?n.date[c.style]:Qt(c.style)?c.style.parsedOptions:void 0;s.push({type:_.literal,value:i.getDateTimeFormat(t,m).format(d)})}else if(qt(c))m="string"==typeof c.style?n.time[c.style]:Qt(c.style)?c.style.parsedOptions:n.time.medium,s.push({type:_.literal,value:i.getDateTimeFormat(t,m).format(d)});else if(Vt(c))(m="string"==typeof c.style?n.number[c.style]:Jt(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),s.push({type:_.literal,value:i.getNumberFormat(t,m).format(d)});else{if(Kt(c)){var h=c.children,p=c.value,f=r[p];if("function"!=typeof f)throw new Xi(p,"function",a);p=f(nn(h,t,i,n,r,o).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),s.push.apply(s,p.map(function(e){return{type:"string"==typeof e?_.literal:_.object,value:e}}))}if(Zt(c)){if(!(g=c.options[d]||c.options.other))throw new Zi(c.value,d,Object.keys(c.options),a);s.push.apply(s,nn(g.value,t,i,n,r))}else if(Xt(c)){if(!(g=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new qi('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Yi.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Zi(c.value,d,Object.keys(c.options),a);s.push.apply(s,nn(g.value,t,i,n,r,d-(c.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===_.literal&&t.type===_.literal?i.value+=t.value:e.push(t),e},[])}function rn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(e=_=_||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.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])},h.__parse=Pi,h.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 on=h;function h(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=h.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===_.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 nn(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=h.resolveLocale(t),"string"==typeof e){if(this.message=e,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__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=h.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?f(f(f({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=f(f({},i[t]),n[t]||{}),e},{})):i),e},f({},r)):r),this.formatters=n&&n.formatters||{getNumberFormat:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,ze([void 0],t,!1)))},{cache:rn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Ui.variadic}),getDateTimeFormat:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,ze([void 0],t,!1)))},{cache:rn(t.dateTime),strategy:Ui.variadic}),getPluralRules:Oi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,ze([void 0],t,!1)))},{cache:rn(t.pluralRules),strategy:Ui.variadic})}}const an={},sn=(e,t,i)=>i&&(t in an||(an[t]={}),e in an[t]||(an[t][e]=i),i),ln=(t,i)=>{if(null!=i){if(i in an&&t in an[i])return an[i][t];var n=Sn(i);for(let e=0;e<n.length;e++){var r=function(e,t){if(!dn(e))return null;e=function(e){return un[e]||null}(e);{var i=t;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}}}(n[e],t);if(r)return sn(t,i,r)}}};let un;const cn=Pt({});function dn(e){return e in un}function mn(t,...i){delete an[t],cn.update(e=>(e[t]=Gt.all([e[t]||{},...i]),e))}Ot([cn],([e])=>Object.keys(e)),cn.subscribe(e=>un=e);const hn={};function pn(e){return hn[e]}function fn(e){return null!=e&&Sn(e).some(e=>{return null==(e=pn(e))?void 0:e.size})}function gn(n,e){return Promise.all(e.map(e=>{return t=n,i=e,hn[t].delete(i),0===hn[t].size&&delete hn[t],e().then(e=>e.default||e);var t,i})).then(e=>mn(n,...e))}const yn={};const vn={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 wn=Pt(!1);var bn=Object.defineProperty,hi=Object.defineProperties,pi=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,En=(e,t,i)=>t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Tn;const Cn=Pt(null);function Mn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Sn(e,t=vn.fallbackLocale){e=Mn(e);return t?[...new Set([...e,...Mn(t)])]:e}function An(){return null!=Tn?Tn:void 0}Cn.subscribe(e=>{Tn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W=hi(((e,t)=>{for(var i in t=t||{})Ln.call(t,i)&&En(e,i,t[i]);if(_n)for(var i of _n(t))xn.call(t,i)&&En(e,i,t[i]);return e})({},Cn),pi({set:t=>{if(t&&function(e){if(null!=e){var t=Sn(e);for(let e=0;e<t.length;e++){var i=t[e];if(dn(i))return i}}}(t)&&fn(t)){var i=vn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=An()&&i?e=window.setTimeout(()=>wn.set(!0),i):wn.set(!0),function e(t){var i;return fn(t)?(i=Sn(t).map(e=>{var t=pn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),yn[t]=Promise.all(i.map(([e,t])=>gn(e,t))).then(()=>{if(fn(t))return e(t);delete yn[t]}),yn[t]):t in yn?yn[t]:Promise.resolve()}(t).then(()=>{Cn.set(t)}).finally(()=>{clearTimeout(e),wn.set(!1)})}return Cn.set(t)}}));var fi=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Dn=Object.defineProperty,kn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,On=(e,t,i)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Nn=(e,t)=>{for(var i in t=t||{})In.call(t,i)&&On(e,i,t[i]);if(kn)for(var i of kn(t))Pn.call(t,i)&&On(e,i,t[i]);return e},Hn=(e,t)=>{var i={};for(n in e)In.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&kn)for(var n of kn(e))t.indexOf(n)<0&&Pn.call(e,n)&&(i[n]=e[n]);return i};const Bn=(e,t)=>{var i=vn["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Rn=fi(e=>{var{locale:t,format:i}=e,e=Hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=Bn("number",i)),new Intl.NumberFormat(t,e)}),$n=fi(e=>{var{locale:t,format:i}=e,e=Hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=Bn("date",i):0===Object.keys(e).length&&(e=Bn("date","short")),new Intl.DateTimeFormat(t,e)}),Yn=fi(e=>{var{locale:t,format:i}=e,e=Hn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=Bn("time",i):0===Object.keys(e).length&&(e=Bn("time","short")),new Intl.DateTimeFormat(t,e)}),Fn=fi((e,t=An())=>new on(e,t,vn.formats,{ignoreTag:vn.ignoreTag})),jn=Ot([W,cn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=An(),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=vn).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let u=l;try{u=Fn(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),Un=(Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=An()}=e,e=Hn(e,["locale"]);return Yn(Nn({locale:t},e))})(t).format(e)),Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=An()}=e,e=Hn(e,["locale"]);return $n(Nn({locale:t},e))})(t).format(e)),Ot([W],()=>(e,t)=>((e={})=>{var{locale:t=An()}=e,e=Hn(e,["locale"]);return Rn(Nn({locale:t},e))})(t).format(e)),Ot([W,cn],()=>(e,t=An())=>ln(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new Mt(t),kt[e]=t,Dt.push(e)),kt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Gn(e,t){mn(e,t)}const Wn={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"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{returnToMenu:"Voltar ao cardápio",gamingLimitsText:"Limites do jogo",depositLimit:"Limites de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{returnToMenu:"Regresar al menú",gamingLimitsText:"Límites de juego",depositLimit:"Límites de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdidas"}};function Vn(e,t){mn(e,t)}const zn={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"},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {iznos} {valuta}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",removeLimitText:"Jeste li sigurni da želite ukloniti {limit}?",removeLimitsText:"Jeste li sigurni da želite ukloniti sve {limit}e?",minutes:"minute",noLimit:"Nema ograničenja",expirationDate:"Datum isteka",notAvailable:"N/A",edit:"Uredi",removeLimits:"Ukloni ograničenja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka",timeLimitLower:"vremensko ograničenje",depositLimitLower:"ograničenje uplate",wageringLimitLower:"ograničenje igranja",lossLimitLower:"ograničenje gubitka",time:"vrijeme",currency:"valuta"},"pt-br":{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:"Diário",weekly:"Semanalmente",monthly:"Por mês",removeLimitText:"Tem certeza de que deseja remover o limite {limit}?",removeLimitsText:"Tem certeza de que deseja remover todos os limites {limit}s?",minutes:"minutos",noLimit:"Sem limite",expirationDate:"Data de expiração",notAvailable:"Não disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de Quantidade de Apostas",lossLimit:"Limite de perda",timeLimitLower:"Limite de tempo",depositLimitLower:"Limite de depósito",wageringLimitLower:"Limite de Quantidade de Apostas",lossLimitLower:"Limite de perda",time:"tempo",currency:"moeda"},"es-mx":{name:"Información",amountChanged:"Su límite ha sido cambiado o aumentado:{amount} {currency}. Tendrá que esperar para su fecha de expiración para que su nuevo límite entre en efecto:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"¿Está seguro que quiere remover el límite {limit}?",removeLimitsText:"¿Está seguro que quiere remover todos los límites {limit}s?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No disponible",edit:"Editar",removeLimits:"Remover Límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de monto de apuestas",lossLimit:"Límite de pérdidas",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de monto de apuestas",lossLimitLower:"Límite de pérdidas",time:"tiempo",currency:"moneda"}};function qn(e,t){mn(e,t)}const Zn={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."},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {amount} {currency}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",defaultText:"Kada postavite ograničenje igre"},"pt-br":{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que ultrapassar a data de expiração para que o novo limite entre em vigor:",defaultText:'Quando um limite é definido,Entra em vigor a partir do momento em que é ativado e dura até o final do período selecionado. Portanto,Se você definir o limite diário às 14h00.,"O período de 24 horas é desde o momento da ativação até. O limite será então válido por 24 dias, você pode reduzir o limite a qualquer momento com efeito imediato, no entanto",aumentar ou remover um limite não será aplicado até que o limite atual expire'},"es-mx":{name:"Información",amountChanged:"Su límite ha sido cambiado o aumentado: {amount} {currency}. Tendrá que espirar a la fecha de expiración para que el nuevo límite entre en efecto:",defaultText:'Cuando se fija un límite,entra en efecto desde el momento que se activa y dura hasta el final del periodo seleccionado. Por lo tanto,Si fija el límite diario a las 14.00,"el periodo de 24-horas es desde el momento de la activación hasta. El límite entonces sera válido por 24 días, ustede puede reducir el límite en cualquier momento con efecto inmediato, sin embargo", aumentar o remover un límite no aplicará hasta el límite actual expire'}};function Xn(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=i[4]("name")+"";function v(e){return e[0]?Jn:Kn}let w=v(i),b=w(i);return{c(){n=K("section"),r=K("div"),o=K("div"),(a=K("div")).textContent="i",s=Q(),l=K("div"),u=J(y),c=Q(),(d=K("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>',m=Q(),h=K("div"),b.c(),te(a,"class","InfoCardPopupIcon"),te(l,"class","InfoCardPopupTitle"),te(d,"class","InfoCardPopupCloseButton"),te(o,"class","InfoCardPopupHeader"),te(h,"class","InfoCardPopupContentArea"),te(r,"class",p="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),te(n,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(o,s),q(o,l),q(l,u),q(o,c),q(o,d),q(r,m),q(r,h),b.m(h,null),i[12](n),f||(g=ee(d,"click",oe(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&ne(u,y),w===(w=v(e))&&b?b.p(e,t):(b.d(1),(b=w(e))&&(b.c(),b.m(h,null))),1&t&&p!==(p="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&te(r,"class",p)},d(e){e&&X(n),b.d(),i[12](null),f=!1,g()}}}function Kn(e){let i,n,r=e[4]("defaultText")+"";return{c(){i=K("p"),n=J(r),te(i,"class","InfoCardPopupContent")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Jn(e){let i,n,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=K("p"),n=J(r),te(i,"class","InfoCardPopupContent")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&ne(n,r)},d(e){e&&X(i)}}}function Qn(e){let i,n=e[3]&&Xn(e);return{c(){n&&n.c(),i=b(),this.c=V},m(e,t){n&&n.m(e,t),Z(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=Xn(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:V,o:V,d(e){n&&n.d(e),e&&X(i)}}}function er(t,e,i){let n,{showpopup:r=""}=(re(t,jn,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(Zn).forEach(e=>{qn(e,Zn[e])});let d,m=!1,h=window.navigator.userAgent,p="PC"!==Un(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,m=!1)};return se(()=>(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,u=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,W.set(e),o<0&&i(0,o="0"),i(3,m=r)),1028&t.$$.dirty&&u&&d){let e=new URL(u),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&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qn(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,m,n,p,()=>{i(3,m=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,u,c,function(e){G[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function tr(e,t){mn(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},er,Qn,E,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),m()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),m()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),m()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),m()}});const ir={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"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"}};rr=nr={path:void 0,exports:{},require:function(e,t){return Di(null==t&&nr.path)}},nr.exports,rr.exports=function(){var H;function p(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function B(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(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 $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));return i}function j(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 u(e,t,i,n){return kt(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 U(e){if(null==e._isValid){var t=g(e),i=W.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 G(e){var t=u(NaN);return null!=e?j(g(t),e):g(t).userInvalidated=!0,t}var W=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},V=p.momentProperties=[],z=!1;function q(e,t){var i,n,r,o=V.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=V[i]])||(e[n]=r);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return j(function(){if(null!=p.deprecationHandler&&p.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)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,n=j({},e);for(i in t)f(t,i)&&(B(e[i])&&B(t[i])?(n[i]={},j(n[i],e[i]),j(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&B(e[i])&&(n[i]=j({},n[i]));return n}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.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+=c(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 ue(e){var t,i,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}var ce={};function i(e,t){ce[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function m(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)?m(e):t}function me(t,i){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(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(),Oe(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?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,Le=/[+-]?\d{1,6}/,xe=/\d+/,Ee=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,n){Se[e]=c(i)?i:function(e,t){return e&&n?n:i}}function Me(e,t){return f(Se,e)?Se[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 Se={},Ae={};function L(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),$(i)&&(r=function(e,t){t[i]=h(e)}),n=e.length,t=0;t<n;t++)Ae[e[t]]=r}function De(e,r){L(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var x,E=0,T=1,C=2,M=3,S=4,A=5,ke=6,Ie=7,Pe=8;function Oe(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)}x=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),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[T]=h(e)-1}),L(["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 Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=w,$e=w;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!$(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Fe(e){return null!=e?(Ye(this,e),p.updateOffset(this,!0),this):he(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],r=[],o=0;o<12;o++)t=u([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 Ue(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),b("Y",Ee),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",Le,ye),b("YYYYYY",Le,ye),L(["YYYYY","YYYYYY"],E),L("YYYY",function(e,t){t[E]=2===e.length?p.parseTwoDigitYear(e):h(e)}),L("YY",function(e,t){t[E]=p.parseTwoDigitYear(e)}),L("Y",function(e,t){t[E]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ge=me("FullYear",!0);function We(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 Ve(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 ze(e,t,i){i=7+t-i;return-(7+Ve(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+ze(e,n,r),i=t<=0?Ue(o=e-1)+t:t>Ue(e)?(o=e+1,t-Ue(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var n,r,o=ze(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+D(r=e.year()-1,t,i):o>D(e.year(),t,i)?(n=o-D(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function D(e,t,i){var n=ze(e,t,i),t=ze(e+1,t,i);return(Ue(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),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),De(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=h(e)});function Xe(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),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["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}),De(["d","e","E"],function(e,t,i,n){t[n]=h(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function 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=u([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),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),L(["H","HH"],M),L(["k","kk"],function(e,t,i){e=h(e);t[M]=24===e?0:e}),L(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),L(["h","hh"],function(e,t,i){t[M]=h(e),g(i).bigHour=!0}),L("hmm",function(e,t,i){var n=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n)),g(i).bigHour=!0}),L("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[A]=h(e.substr(r)),g(i).bigHour=!0}),L("Hmm",function(e,t,i){var n=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n))}),L("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=h(e.substr(0,n)),t[S]=h(e.substr(n,2)),t[A]=h(e.substr(r))});w=me("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:Ne,monthsShort:He,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},k={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ct(e[o]).split("-")).length,i=(i=ct(e[o+1]))?i.split("-"):null;0<t;){if(n=mt(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 mt(t){var e;if(void 0===k[t]&&rr&&rr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Di(),ht(e)}catch(e){k[t]=null}return k[t]}function ht(e,t){return e&&((t=s(t)?I(e):pt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function pt(e,t){if(null===t)return delete k[e],null;var i,n=lt;if(t.abbr=e,null!=k[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=k[e]._config;else if(null!=t.parentLocale)if(null!=k[t.parentLocale])n=k[t.parentLocale]._config;else{if(null==(i=mt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=i._config}return k[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){pt(e.name,e.config)}),ht(e),k[e]}function I(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=mt(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[C]<1||t[C]>Oe(t[E],t[T])?C:t[M]<0||24<t[M]||24===t[M]&&(0!==t[S]||0!==t[A]||0!==t[ke])?M:t[S]<0||59<t[S]?S:t[A]<0||59<t[A]?A:t[ke]<0||999<t[ke]?ke:-1,g(e)._overflowDayOfYear&&(t<E||C<t)&&(t=C),g(e)._overflowWeeks&&-1===t&&(t=Ie),g(e)._overflowWeekday&&-1===t&&(t=Pe),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Lt=/^(?:(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}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,i,n,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,u=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],n=!1!==wt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,i=u;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!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||""),At(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),He.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Ct(e){var t,i,n,r,o=Lt.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&&Je.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?xt[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,i){return null!=e?e:null!=t?t:i}function St(e){var t,i,n,r,o,a,s,l,u,c,d,m=[];if(!e._d){for(c=e,d=new Date(p.now()),i=c._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[C]&&null==e._a[T]&&(null!=(d=(c=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,n=Mt(d.GG,c._a[E],Ze(P(),1,4).year),r=Mt(d.W,1),((o=Mt(d.E,1))<1||7<o)&&(l=!0)):(a=c._locale._week.dow,s=c._locale._week.doy,u=Ze(P(),a,s),n=Mt(d.gg,c._a[E],u.year),r=Mt(d.w,u.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>D(n,a,s)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=qe(n,r,o,a,s),c._a[E]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(d=Mt(e._a[E],i[E]),(e._dayOfYear>Ue(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[T]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=i[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[S]&&0===e._a[A]&&0===e._a[ke]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?Ve:We).apply(null,m),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function At(e){if(e._f!==p.ISO_8601)if(e._f!==p.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(Me(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!=(m=t)&&f(Ae,d)&&Ae[d](m,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[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(o=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),St(e),ft(e)}else Ct(e);else Et(e);var u,c,d,m,h}function Dt(e){var t,i=e._i,n=e._f;{var r,o;return(e._locale=e._locale||I(e._l),null===i||void 0===n&&""===i)?G({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(Y(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],At(t),U(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);j(e,i||t)}(e):n?At(e):s(n=(i=e)._i)?i._d=new Date(p.now()):Y(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Et(r),!1===r._isValid&&(delete r._isValid,Ct(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:p.createFromInputFallback(r))):r._d=new Date(+o[1])):a(n)?(i._a=F(n.slice(0),function(e){return parseInt(e,10)}),St(i)):B(n)?(r=i)._d||(t=void 0===(o=ue(r._i)).day?o.date:o.day,r._a=F([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),St(r)):$(n)?i._d=new Date(n):p.createFromInputFallback(i),U(e)||(e._d=null),e))}}function kt(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),(B(e)&&R(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 Z(ft(Dt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function P(e,t,i,n){return kt(e,t,i,n,!1)}p.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":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:G()});function It(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return P();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var e=ue(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,u=e.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=Pt.length;for(t in e)if(f(e,t)&&(-1===x.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[Pt[i]]){if(n)return!1;parseFloat(e[Pt[i]])!==h(e[Pt[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=I(),this._bubble()}function Nt(e){return e instanceof Ot}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(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)})}Bt("Z",":"),Bt("ZZ",""),b("Z",Ce),b("ZZ",Ce),L(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=$t(Ce,e)});var Rt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||Y(e)?e:P(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),p.updateOffset(t,!1),t):P(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function O(e,t){var i,n,r=e;return Nt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,r={y:0,d:h(t[C])*i,h:h(t[M])*i,m:h(t[S])*i,s:h(t[A])*i,ms:h(Ht(1e3*t[ke]))*i}):(t=Gt.exec(e))?(i="-"===t[1]?-1:1,r={y:Wt(t[2],i),M:Wt(t[3],i),w:Wt(t[4],i),d:Wt(t[5],i),h:Wt(t[6],i),m:Wt(t[7],i),s:Wt(t[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=P(r.from),i=P(r.to),t=t.isValid()&&i.isValid()?(i=Yt(i,t),t.isBefore(i)?n=Vt(t,i):((n=Vt(i,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),n=new Ot(r),Nt(e)&&f(e,"_locale")&&(n._locale=e._locale),Nt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function Wt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(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 zt(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(J(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,O(e,t),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Ht(t._days),t=Ht(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,he(e,"Month")+t*i),o&&pe(e,"Date",he(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n)&&p.updateOffset(e,o||t)}O.fn=Ot.prototype,O.invalid=function(){return O(NaN)};Ne=zt(1,"add"),Ke=zt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Zt(e)||$(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),i&&n)||function(e){var t,i,n=B(e)&&!R(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 Kt(e,t){var i,n;return e.date()<t.date()?-Kt(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 Jt(e){return void 0===e?this._locale._abbr:(null!=(e=I(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.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?Ze(this,n,r).year:(t>(o=D(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),t=Ve(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"),b("N",ri),b("NN",ri),b("NNN",ri),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),L(["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}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),L(["y","yy","yyy","yyyy"],E),L(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[E]=i._locale.eraYearOrdinalParse(e,r):t[E]=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),b("G",Ee),b("g",Ee),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",Le,ye),b("ggggg",Le,ye),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=h(e)}),De(["gg","GG"],function(e,t,i,n){t[n]=p.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",r),L("Q",function(e,t){t[T]=3*(h(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],C),L("Do",function(e,t){t[C]=h(e.match(v)[0])});_e=me("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),L(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),L(["m","mm"],S);ge=me("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),L(["s","ss"],A);var li,Le=me("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),b("S",be,r),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,xe);function ui(e,t){t[ke]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")L(li,ui);ye=me("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=Z.prototype;function ci(e){return e}r.add=Ne,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=B(e)&&!R(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||P(),i=Yt(e,this).startOf("day"),i=p.calendarFormat(this,i)||"sameElse",t=t&&(c(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,P(e)))},r.clone=function(){return new Z(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,n)/12;break;case"month":o=Kt(this,n);break;case"quarter":o=Kt(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:m(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),p.updateOffset(this,!0)}return this},r.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(P(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(P(),e)},r.get=function(e){return c(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:P(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:P(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:P(e),t=l(t)?t:P(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:P(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 U(this)},r.lang=Qe,r.locale=Jt,r.localeData=Qt,r.max=we,r.min=ve,r.parsingFlags=function(){return j({},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:ce[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ue(e)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(c(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),p.updateOffset(this,!0)}return this},r.subtract=Ke,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.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"):c(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()-p(i[n].since).year())*e+i[n].offset;return this.year()},r.year=Ge,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=Fe,r.daysInMonth=function(){return Oe(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=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return D(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return D(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=w,r.minute=r.minutes=ge,r.second=r.seconds=Le,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:Ft(this);if("string"==typeof e){if(null===(e=$t(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,O(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.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(Ft(this),"m"),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(Te,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?P(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=jt,r.isUTC=jt,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",Fe),r.years=e("years accessor is deprecated. Use year instead",Ge),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=Dt(t))._a?(e=(t._isUTC?u:P)(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=I(),n=u().set(n,t);return r[i](n,e)}function mi(e,t,i){if($(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),$(t)&&(i=t,t=void 0),t||"");var r,o=I(),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 c(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=ci,y.postformat=ci,y.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return c(r)?r(e,t,i,n):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(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)&&(c(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||I("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=p(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=p(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?p(e.since).year():p(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||Be).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[Be.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=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))||-1!==(r=x.call(this._longMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))||-1!==(r=x.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=u([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")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var 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=u([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=x.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.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=u([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")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",I);var pi=Math.abs;function fi(e,t,i,n){t=O(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 wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ne=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),Le=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),Ge=bi("minutes"),y=bi("hours"),_i=bi("days"),Li=bi("months"),xi=bi("years");var Ei=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ci(e,t,i,n){var r=O(e).abs(),o=Ei(r.as("s")),a=Ei(r.as("m")),s=Ei(r.as("h")),l=Ei(r.as("d")),u=Ei(r.as("M")),c=Ei(r.as("w")),r=Ei(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||(c<=1?["w"]:c<i.w&&["ww",c]):o)||(u<=1?["M"]:u<i.M&&["MM",u])||(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 Mi=Math.abs;function Si(e){return(0<e)-(e<0)||+e}function Ai(){var e,t,i,n,r,o,a,s,l,u,c;return this.isValid()?(s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),(c=this.asSeconds())?(e=m(s/60),t=m(e/60),s%=60,e%=60,i=m(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Si(this._months)!==Si(c)?"-":"",o=Si(this._days)!==Si(c)?"-":"",a=Si(this._milliseconds)!==Si(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"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 N=Ot.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this},N.add=function(e,t){return fi(this,e,t,1)},N.subtract=function(e,t){return fi(this,e,t,-1)},N.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)}},N.asMilliseconds=be,N.asSeconds=fe,N.asMinutes=Ne,N.asHours=we,N.asDays=ve,N.asWeeks=Ke,N.asMonths=w,N.asQuarters=ge,N.asYears=Le,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},N._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=m(e/1e3),n.seconds=e%60,e=m(e/60),n.minutes=e%60,e=m(e/60),n.hours=e%24,t+=m(e/24),i+=e=m(yi(t)),t-=gi(vi(e)),e=m(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},N.clone=function(){return O(this)},N.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ye,N.seconds=_e,N.minutes=Ge,N.hours=y,N.days=_i,N.weeks=function(){return m(this.days()/7)},N.months=Li,N.years=xi,N.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=Ci(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=Ai,N.toString=Ai,N.toJSON=Ai,N.locale=Jt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ai),N.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Ee),b("X",/[+-]?\d+(\.\d{1,3})?/),L("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),L("x",function(e,t,i){i._d=new Date(h(e))}),p.version="2.29.4",H=P,p.fn=r,p.min=function(){return It("isBefore",[].slice.call(arguments,0))},p.max=function(){return It("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=u,p.unix=function(e){return P(1e3*e)},p.months=function(e,t){return mi(e,t,"months")},p.isDate=Y,p.locale=ht,p.invalid=G,p.duration=O,p.isMoment=l,p.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},p.parseZone=function(){return P.apply(null,arguments).parseZone()},p.localeData=I,p.isDuration=Nt,p.monthsShort=function(e,t){return mi(e,t,"monthsShort")},p.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var i,n;return null!=t?(n=lt,null!=k[e]&&null!=k[e].parentLocale?k[e].set(Q(k[e]._config,t)):(t=Q(n=null!=(i=mt(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=k[e],k[e]=n),ht(e)):null!=k[e]&&(null!=k[e].parentLocale?(k[e]=k[e].parentLocale,e===ht()&&ht(e)):null!=k[e]&&delete k[e]),k[e]},p.locales=function(){return te(k)},p.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},p.normalizeUnits=d,p.relativeTimeRounding=function(e){return void 0===e?Ei:"function"==typeof e&&(Ei=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))},p.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"},p.prototype=r,p.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"},p}();var nr,rr,A=nr.exports;function or(e,{delay:t=0,duration:i=400,easing:n=L}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function ar(i){let n,r,t,o;return{c(){n=K("div"),(r=K("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',te(r,"class","ModalWindow"),te(r,"id","Modal")},m(e,t){Z(e,n,t),q(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(ce(()=>{o&&(t=t||be(r,or,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||be(r,or,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&X(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function sr(e){let i,n,r=e[0]&&ar(e);return{c(){r&&r.c(),i=b(),this.c=V},m(e,t){r&&r.m(e,t),Z(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&ye(r,1)):((r=ar(e)).c(),ye(r,1),r.m(i.parentNode,i)):r&&(ge={r:0,c:[],p:ge},ve(r,1,1,()=>{r=null}),ge.r||z(ge.c),ge=ge.p)},i(e){n||(ye(r),n=!0)},o(e){ve(r),n=!1},d(e){r&&r.d(e),e&&X(i)}}}function lr(t,e,i){let n,r,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const u=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 se(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),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){G[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){G[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function ur(e,t){mn(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},lr,sr,E,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),m()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),m()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}});const cr={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:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"}};function dr(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",w=!i[3]&&function(i){let n,r,o;return{c(){(n=K("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>',te(n,"class","ModalCloseBtn"),te(n,"role","button")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",i[4]),r=!0)},p:V,d(e){e&&X(n),r=!1,o()}}}(i);return{c(){n=K("div"),w&&w.c(),r=Q(),o=K("div"),a=K("div"),s=J(i[0]),l=Q(),u=K("div"),c=K("button"),d=J(y),m=Q(),h=K("button"),p=J(v),this.c=V,te(a,"class","GamingLimitsConfirmationContent"),te(c,"class","GamingLimitsCancelButton"),te(h,"class","GamingLimitsConfirmButton"),te(u,"class","GamingLimitsConfirmationControlArea"),te(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),te(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){Z(e,n,t),w&&w.m(n,null),q(n,r),q(n,o),q(o,a),q(a,s),q(o,l),q(o,u),q(u,c),q(c,d),q(u,m),q(u,h),q(h,p),i[12](n),f||(g=[ee(c,"click",i[6]),ee(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&ne(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&ne(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&ne(p,v)},i:V,o:V,d(e){e&&X(n),w&&w.d(),i[12](null),f=!1,z(g)}}}function mr(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(re(t,jn,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c,d=(Object.keys(cr).forEach(e=>{ur(e,cr[e])}),window.navigator.userAgent),m="PC"!==Un(d),h={},p="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,p="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return se(()=>(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,u=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,W.set(e)),514&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=s,c.appendChild(e)),1026&t.$$.dirty&&l&&c){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{c.appendChild(t)},1)})}var e;2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ur(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,n,m,()=>{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:p},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,u,function(e){G[e?"unshift":"push"](()=>{c=e,i(1,c)})}]}function hr(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function pr(e,t,i){e=e.slice();return e[59]=t[i],e}function fr(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function gr(e){let i,n,r,o=e[18]("success")+"";return{c(){i=K("div"),n=K("p"),r=J(o),te(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){Z(e,i,t),q(i,n),q(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&ne(r,o)},d(e){e&&X(i)}}}function yr(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=wr(fr(t,o,e));return{c(){r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();te(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){Z(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=fr(t,o,e);a[e]?a[e].p(n,i):(a[e]=wr(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&&X(r),I(a,e)}}}function vr(e){let i,n,r,o,a=e[18]("remove")+"",s=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("p"),n=J(a),r=Q(),o=J(s)},m(e,t){Z(e,i,t),q(i,n),q(i,r),q(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&ne(n,a),16384&t[0]&&s!==(s=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(o,s)},d(e){e&&X(i)}}}function wr(e){let i,n=e[56].period==e[17][e[58]].period&&vr(e);return{c(){n&&n.c(),i=b()},m(e,t){n&&n.m(e,t),Z(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=vr(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&X(i)}}}function br(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Dr(hr(t,o,e));return{c(){i=K("div"),r=K("div");for(let e=0;e<a.length;e+=1)a[e].c();te(r,"class","AccountEditLimitsContainer"),te(i,"class","AccountEditContent")},m(e,t){Z(e,i,t),q(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=hr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Dr(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&&X(i),I(a,e)}}}function _r(i){let n,r,o,a,s,l,u,c,d,m,h=i[18]("noLimit")+"",p=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<p.length;e+=1)f[e]=xr(pr(i,p,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&Er(i),v=!0===i[56].isModified&&Ar(i);return{c(){n=K("select"),r=K("option"),o=J(h);for(let e=0;e<f.length;e+=1)f[e].c();s=Q(),l=K("div"),y&&y.c(),u=Q(),v&&v.c(),c=b(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,te(n,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&ce(g),te(l,"class","AccountEditLimitsInputContainer")},m(e,t){Z(e,n,t),q(n,r),q(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(n,null);O(n,i[17][i[58]].amount,!0),Z(e,s,t),Z(e,l,t),y&&y.m(l,null),Z(e,u,t),v&&v.m(e,t),Z(e,c,t),d||(m=[ee(n,"change",g),ee(n,"change",function(){w(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")+"")&&ne(o,h),1048656&t[0]){let e;for(p=i[20].get(i[6])[i[58]].values,e=0;e<p.length;e+=1){const o=pr(i,p,e);f[e]?f[e].p(o,t):(f[e]=xr(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&O(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=Er(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Ar(i)).c(),v.m(c.parentNode,c)):v&&(v.d(1),v=null)},d(e){e&&X(n),I(f,e),e&&X(s),e&&X(l),y&&y.d(),e&&X(u),v&&v.d(e),e&&X(c),d=!1,z(m)}}}function Lr(e){let i,n=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=J(n)},m(e,t){Z(e,i,t)},p(e,t){80&t[0]&&n!==(n=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&ne(i,n)},d(e){e&&X(i)}}}function xr(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Lr(e);return{c(){i=K("option"),n=J(s),r=Q(),l&&l.c(),o=Q(),i.__value=a=e[59],i.value=i.__value},m(e,t){Z(e,i,t),q(i,n),q(i,r),l&&l.m(i,null),q(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&ne(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Lr(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&&X(i),l&&l.d()}}}function Er(e){let i;function n(e){return"Time Limit"!==e[6]?Cr:Tr}let r=n(e),o=r(e);return{c(){o.c(),i=b()},m(e,t){o.m(e,t),Z(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&&X(i)}}}function Tr(i){let n,r,o,a,s,l;function u(){i[31].call(n,i[58])}let c=1==i[13][i[58]]&&Mr(i);return{c(){n=K("input"),o=Q(),a=K("p"),c&&c.c(),te(n,"type","number"),te(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,te(a,"class","AccountEditWarningText")},m(e,t){Z(e,n,t),P(n,i[17][i[58]].value),Z(e,o,t),Z(e,a,t),c&&c.m(a,null),s||(l=[ee(n,"keyup",function(){w(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)}),ee(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&ae(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=Mr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&X(n),e&&X(o),e&&X(a),c&&c.d(),s=!1,z(l)}}}function Cr(i){let n,r,o,a,s,l;function u(){i[30].call(n,i[58])}let c=1==i[13][i[58]]&&Sr(i);return{c(){n=K("input"),o=Q(),a=K("p"),c&&c.c(),te(n,"type","number"),te(n,"class","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,te(a,"class","AccountEditWarningText")},m(e,t){Z(e,n,t),P(n,i[17][i[58]].value),Z(e,o,t),Z(e,a,t),c&&c.m(a,null),s||(l=[ee(n,"keyup",function(){w(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)}),ee(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&ae(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=Sr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&X(n),e&&X(o),e&&X(a),c&&c.d(),s=!1,z(l)}}}function Mr(e){let i,n,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=K("p"),n=J(r),te(i,"class","InvalidInput")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&ne(n,r)},d(e){e&&X(i)}}}function Sr(e){let i,n,r=e[18]("invalidInputMessageLimit")+"";return{c(){i=K("p"),n=J(r),te(i,"class","InvalidInput")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Ar(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w=e[18]("expirationDate")+"",b=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",L=(0<e[56].updateAmount?e[56].updateAmount:0)+"",x=(void 0!==e[56].minutes?" minutes":e[4])+"",E=e[18]("changedLimitTextAfter")+"";return{c(){i=K("p"),n=J(w),r=Q(),o=K("span"),a=J(b),s=Q(),l=K("div"),u=K("p"),(c=K("span")).textContent="i",d=K("span"),m=J(_),h=Q(),p=J(L),f=Q(),g=J(x),y=J(". "),v=J(E),te(i,"class","AccountEditLimitsExpiryDate"),te(c,"class","AccountEditLimitChangePeriodIcon"),te(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){Z(e,i,t),q(i,n),q(i,r),q(i,o),q(o,a),Z(e,s,t),Z(e,l,t),q(l,u),q(u,c),q(u,d),q(d,m),q(d,h),q(d,p),q(d,f),q(d,g),q(d,y),q(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("expirationDate")+"")&&ne(n,w),16384&t[0]&&b!==(b=(e[56].expiryDate?A(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(a,b),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&ne(m,_),16384&t[0]&&L!==(L=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&ne(p,L),16400&t[0]&&x!==(x=(void 0!==e[56].minutes?" minutes":e[4])+"")&&ne(g,x),262144&t[0]&&E!==(E=e[18]("changedLimitTextAfter")+"")&&ne(v,E)},d(e){e&&X(i),e&&X(s),e&&X(l)}}}function Dr(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&&_r(e);return{c(){i=K("div"),n=K("p"),r=J(s),o=Q(),l&&l.c(),a=Q(),te(n,"class","AccountEditLimitsTitle"),te(i,"class","AccountEditLimitsBox")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(i,o),l&&l.m(i,null),q(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&ne(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=_r(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&X(i),l&&l.d()}}}function kr(i){let n,R,r,o,a,s,$,l,u,c,Y,d,m,F,h,p,f,j,g,y,U,v,G,w,b,_,L,x,E,T,C,M,S,A,D,W,k=i[18]("back")+"",I=(i[1]?i[9]:"")+"",P=i[18]("save")+"",O=i[19]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g=i[18]("back")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),d=Q(),m=K("h2"),h=J(g),te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(r,"xmlns","http://www.w3.org/2000/svg"),te(r,"width","15"),te(r,"height","15"),te(r,"viewBox","0 0 15 15"),te(m,"class","MyAccountCategoryTitleMobile"),te(n,"class","MenuReturnButton")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(r,l),q(l,u),q(u,c),q(n,d),q(n,m),q(m,h),p||(f=ee(n,"click",i[22]),p=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&ne(h,g)},d(e){e&&X(n),p=!1,f()}}}(i),N=i[2]&&gr(i),H=i[3]&&yr(i),B=i[8]&&br(i);return{c(){n=K("div"),O&&O.c(),R=Q(),r=K("div"),o=t("svg"),a=t("defs"),s=t("style"),$=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),Y=Q(),d=K("h2"),m=J(k),F=Q(),h=K("div"),p=K("h6"),f=J(I),j=Q(),g=K("div"),(y=K("span")).textContent="i",U=Q(),v=K("player-account-gaming-limits-popup"),G=Q(),N&&N.c(),w=Q(),H&&H.c(),b=Q(),B&&B.c(),_=Q(),L=K("div"),x=K("button"),E=J(P),M=Q(),S=K("player-account-modal"),A=K("player-account-gaming-limits-confirmation-modal"),this.c=V,te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(o,"xmlns","http://www.w3.org/2000/svg"),te(o,"width","20"),te(o,"height","20"),te(o,"viewBox","0 0 15 15"),te(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),te(r,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),te(y,"class","AccountEditLimitsIcon"),ie(v,"showpopup",i[7]),ie(v,"lang",i[0]),te(g,"class","AccountEditLimitsIconWrapper"),te(h,"class","AccountEditLimitsHeader"),te(x,"class",T="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),x.disabled=C=!i[15],te(L,"class","AccountEditLimitsControlArea"),te(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ie(A,"modaltext",i[12]),ie(A,"modalsource","groupEdit"),ie(A,"lang",i[0])},m(e,t){Z(e,n,t),O&&O.m(n,null),q(n,R),q(n,r),q(r,o),q(o,a),q(a,s),q(s,$),q(o,l),q(l,u),q(u,c),q(r,Y),q(r,d),q(d,m),q(n,F),q(n,h),q(h,p),q(p,f),q(h,j),q(h,g),q(g,y),q(g,U),q(g,v),q(n,G),N&&N.m(n,null),q(n,w),H&&H.m(n,null),q(n,b),B&&B.m(n,null),q(n,_),q(n,L),q(L,x),q(x,E),i[33](n),Z(e,M,t),Z(e,S,t),q(S,A),D||(W=[ee(r,"click",i[22]),ee(y,"click",oe(i[21])),ee(x,"click",i[32])],D=!0)},p(e,t){e[19]&&O.p(e,t),262144&t[0]&&k!==(k=e[18]("back")+"")&&ne(m,k),514&t[0]&&I!==(I=(e[1]?e[9]:"")+"")&&ne(f,I),128&t[0]&&ie(v,"showpopup",e[7]),1&t[0]&&ie(v,"lang",e[0]),e[2]?N?N.p(e,t):((N=gr(e)).c(),N.m(n,w)):N&&(N.d(1),N=null),e[3]?H?H.p(e,t):((H=yr(e)).c(),H.m(n,b)):H&&(H.d(1),H=null),e[8]?B?B.p(e,t):((B=br(e)).c(),B.m(n,_)):B&&(B.d(1),B=null),262144&t[0]&&P!==(P=e[18]("save")+"")&&ne(E,P),32768&t[0]&&T!==(T="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&te(x,"class",T),32768&t[0]&&C!==(C=!e[15])&&(x.disabled=C),4096&t[0]&&ie(A,"modaltext",e[12]),1&t[0]&&ie(A,"lang",e[0])},i:V,o:V,d(e){e&&X(n),O&&O.d(),N&&N.d(),H&&H.d(),B&&B.d(),i[33](null),e&&X(M),e&&X(S),D=!1,z(W)}}}function Ir(t,e,o){let i,{limitsdata:n=[]}=(re(t,jn,e=>o(18,i=e)),e),{showsuccessnotification:r=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:u="true"}=e,{clientstyling:c=""}=e,{clientstylingurl:d=""}=e,{translationurl:m=""}=e,h,p,f=(Object.keys(ir).forEach(e=>{tr(e,ir[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",H=window.navigator.userAgent,B="PC"!==Un(H),L=new Array(3).fill(0),x={},E=[],T=[],C=!1,M=[];const S={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let A=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],D=[{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"]}],k=[{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:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],$=[{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 I=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),P=new Map([["Deposit Limit",D],["Time Limit",$],["Wagering Limit",k],["Loss Limit",R]]),Y=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},O=(i,e)=>{let n=JSON.parse(JSON.stringify(e));A.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)})})},F=()=>{M.forEach(e=>{var t=e;T.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),x.forEach(n=>{T.forEach(e=>{var t,i;n.period===e.period&&(e=e,t=n,i=A,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)}))})})},j=()=>{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}}))},N=()=>{var e=l;W.set(e),j(),o(16,M=JSON.parse(JSON.stringify(n))),o(14,x=JSON.parse(JSON.stringify(n))),T="Wagering Limit"===h?k:"Loss Limit"===h?R:"Deposit Limit"===h?D:"Time Limit"===h?$:[],F()},U=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),j();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),N(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?A.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,minutes:t.value},E.push(e)):x.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):A.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},E.push(e)):x.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==u?{[I.get(h)]:[...E]}:{[I.get(h)]:[...x]},E.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:I.get(h)},window.location.href),o(15,C=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),N(),o(15,C=!1),v=!1}var t};return se(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)})),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,u=e.separatelimits),"clientstyling"in e&&o(26,c=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,m=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&r&&a&&N(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),134217760&t.$$.dirty[0]&&d&&p){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{tr(e,t[e])})}).catch(e=>{console.log(e)})},[l,n,r,a,s,p,h,f,g,y,w,b,_,L,x,C,M,A,i,B,P,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},Y,(e,t,i,n)=>{var r;"Custom"===e.amount?"Time Limit"==h?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&S.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,L[t]=0,L),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,C=!1),O(e,n)):o(15,C=!0)):(o(13,L[t]=1,L),o(15,C=!1))):e.value&&S.amount.test(e.value)?(o(13,L[t]=0,L),e.period==n[t].period&&e.value==n[t].amount?(o(15,C=!!C),O(e,n)):o(15,C=!0),"true"!=u&&A.forEach(e=>{0==e.value&&o(15,C=!1)})):(o(13,L[t]=1,L),o(15,C=!1)):(e.period==n[t].period?(O(e,n),o(15,C=e.value!=n[t].amount)):o(15,C=!0),A.forEach(e=>{(0==e.value&&"true"!=u||"Custom"==e.amount&&!S.amount.test(e.value.toString()))&&o(15,C=!1)}))},u,c,d,m,function(e){A[e].amount=function(e){e=e.querySelector(":checked");return e&&e.__value}(this),o(17,A),o(20,P),o(6,h)},function(e){A[e].value=ae(this.value),o(17,A),o(20,P),o(6,h)},function(e){A[e].value=ae(this.value),o(17,A),o(20,P),o(6,h)},()=>Y(),function(e){G[e?"unshift":"push"](()=>{p=e,o(5,p)})}]}function Pr(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Or(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Nr(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w,b,_,L,x,E,T,C=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",M=i[15]("edit")+"";function S(e){return"Time Limit"===e[1]?Rr:Br}let A=S(i),D=A(i),k=!i[9]&&!i[0].isModified&&i[14]&&Qr(i),I=i[11]&&eo(i);return{c(){n=K("div"),r=K("div"),o=K("div"),a=K("h5"),s=J(C),l=Q(),u=K("div"),(c=K("span")).textContent="i",d=Q(),m=K("player-account-gaming-limits-popup"),p=Q(),f=K("div"),g=K("div"),y=K("div"),D.c(),v=Q(),w=K("div"),b=K("button"),_=J(M),L=Q(),k&&k.c(),x=Q(),I&&I.c(),te(c,"class","InfoCardIcon"),ie(m,"showpopup",h=i[8][0]),ie(m,"lang",i[3]),ie(m,"clientstyling",i[4]),ie(m,"clientstylingurl",i[5]),te(u,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),te(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),te(y,"class","InfoCardTableRow"),te(g,"class","InfoCardTableWrapper"),te(b,"class","InfoCardEditButton"),te(w,"class","InfoCardControlArea"),te(f,"class","InfoCard"),te(r,"class","InfoCardWrapper"),te(n,"class","InfoCardSection")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(o,l),q(o,u),q(u,c),q(u,d),q(u,m),q(r,p),q(r,f),q(f,g),q(g,y),D.m(y,null),q(f,v),q(f,w),q(w,b),q(b,_),q(w,L),k&&k.m(w,null),q(n,x),I&&I.m(n,null),E||(T=[ee(c,"click",oe(i[23])),ee(b,"click",i[26])],E=!0)},p(e,t){32771&t[0]&&C!==(C=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&ne(s,C),256&t[0]&&h!==(h=e[8][0])&&ie(m,"showpopup",h),8&t[0]&&ie(m,"lang",e[3]),16&t[0]&&ie(m,"clientstyling",e[4]),32&t[0]&&ie(m,"clientstylingurl",e[5]),A===(A=S(e))&&D?D.p(e,t):(D.d(1),(D=A(e))&&(D.c(),D.m(y,null))),32768&t[0]&&M!==(M=e[15]("edit")+"")&&ne(_,M),e[9]||e[0].isModified||!e[14]?k&&(k.d(1),k=null):k?k.p(e,t):((k=Qr(e)).c(),k.m(w,null)),e[11]?I?I.p(e,t):((I=eo(e)).c(),I.m(n,null)):I&&(I.d(1),I=null)},d(e){e&&X(n),D.d(),k&&k.d(),I&&I.d(),E=!1,z(T)}}}function Hr(e){let i;return{c(){te(i=K("div"),"class","ModalLoader")},m(e,t){Z(e,i,t)},p:V,d(e){e&&X(i)}}}function Br(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Gr(Pr(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);Z(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=Pr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Gr(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){I(a,e),e&&X(r)}}}function Rr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Jr(Or(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);Z(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=Or(t,o,e);a[e]?a[e].p(n,i):(a[e]=Jr(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){I(a,e),e&&X(r)}}}function $r(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Yr(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Fr(e){let i,n,r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(n,r)},d(e){e&&X(i)}}}function jr(i){let n,r,o,a,s,l,u,c;function d(){return i[25](i[43])}return{c(){n=K("div"),(r=K("span")).textContent="i",o=Q(),a=K("player-account-gaming-limits-popup"),te(r,"class","InfoCardIcon"),ie(a,"showpopup",s=i[8][i[43]+1]),ie(a,"iteminfoamount",l=i[41].updateAmount),ie(a,"playercurrency",i[2]),ie(a,"lang",i[3]),ie(a,"clientstyling",i[4]),ie(a,"clientstylingurl",i[5]),te(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){Z(e,n,t),q(n,r),q(n,o),q(n,a),u||(c=ee(r,"click",oe(d)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ie(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ie(a,"iteminfoamount",l),4&t[0]&&ie(a,"playercurrency",i[2]),8&t[0]&&ie(a,"lang",i[3]),16&t[0]&&ie(a,"clientstyling",i[4]),32&t[0]&&ie(a,"clientstylingurl",i[5])},d(e){e&&X(n),u=!1,c()}}}function Ur(i){let n,r,o;return{c(){(n=K("div")).innerHTML="<span></span>",te(n,"class","InfoCardRemoveIcon")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",function(){w(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&&X(n),r=!1,o()}}}function Gr(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y,v,w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),L=e[15]("expirationDate")+"",x=_&&$r(e);function E(e){return e[41].expiryDate?Fr:Yr}let T=E(e),C=T(e);function M(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)?Ur:"No limit"!=e[41].amount&&e[41].isModified?jr:void 0}let S=M(e,[-1,-1]),A=S&&S(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=J(w),s=Q(),l=K("div"),u=J(b),c=Q(),x&&x.c(),d=Q(),m=K("div"),h=K("div"),p=J(L),f=Q(),C.c(),g=Q(),A&&A.c(),v=Q(),te(o,"class","InfoCardRowTitle"),te(l,"class","InfoCardRowValue"),te(r,"class","InfoCardRow InfoMainRow"),te(h,"class","InfoCardRowTitle"),te(m,"class","InfoCardRow"),te(n,"class","InfoCardRowContainer"),te(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(r,o),q(o,a),q(r,s),q(r,l),q(l,u),q(l,c),x&&x.m(l,null),q(n,d),q(n,m),q(m,h),q(h,p),q(m,f),C.m(m,null),q(i,g),A&&A.m(i,null),q(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&ne(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&ne(u,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?x?x.p(e,t):((x=$r(e)).c(),x.m(l,null)):x&&(x.d(1),x=null),32768&t[0]&&L!==(L=e[15]("expirationDate")+"")&&ne(p,L),T===(T=E(e))&&C?C.p(e,t):(C.d(1),(C=T(e))&&(C.c(),C.m(m,null))),S===(S=M(e,t))&&A?A.p(e,t):(A&&A.d(1),(A=S&&S(e))&&(A.c(),A.m(i,v)))},d(e){e&&X(i),x&&x.d(),C.d(),A&&A.d()}}}function Wr(e){let i,n,r=e[15]("noLimit")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Vr(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&&zr(e);return{c(){i=J(o),n=Q(),s&&s.c(),r=b()},m(e,t){Z(e,i,t),Z(e,n,t),s&&s.m(e,t),Z(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)+"")&&ne(i,o),(a=32769&t[0]?"No limit"!==e[41].amount&&e[41].amount!==e[15]("noLimit"):a)?s?s.p(e,t):((s=zr(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&X(i),e&&X(n),s&&s.d(e),e&&X(r)}}}function zr(e){let i,n,r=e[15]("minutes")+"";return{c(){i=K("span"),n=J(r),te(i,"class","InfoCardCurrency")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&ne(n,r)},d(e){e&&X(i)}}}function qr(e){let i,n,r=e[15]("notAvailable")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Zr(e){let i,n,r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=K("div"),n=J(r),te(i,"class","InfoCardRowValue")},m(e,t){Z(e,i,t),q(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(A(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):A(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&ne(n,r)},d(e){e&&X(i)}}}function Xr(i){let n,r,o,a,s,l,u,c,d;function m(){return i[24](i[43])}return{c(){n=K("div"),(r=K("span")).textContent="i",o=Q(),a=K("player-account-gaming-limits-popup"),te(r,"class","InfoCardIcon"),ie(a,"showpopup",s=i[8][i[43]+1]),ie(a,"iteminfoamount",l=i[41].updateMinutes),ie(a,"playercurrency",u=i[15]("minutes")),ie(a,"lang",i[3]),ie(a,"clientstyling",i[4]),ie(a,"clientstylingurl",i[5]),te(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){Z(e,n,t),q(n,r),q(n,o),q(n,a),c||(d=ee(r,"click",oe(m)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ie(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ie(a,"iteminfoamount",l),32768&t[0]&&u!==(u=i[15]("minutes"))&&ie(a,"playercurrency",u),8&t[0]&&ie(a,"lang",i[3]),16&t[0]&&ie(a,"clientstyling",i[4]),32&t[0]&&ie(a,"clientstylingurl",i[5])},d(e){e&&X(n),c=!1,d()}}}function Kr(i){let n,r,o;return{c(){(n=K("div")).innerHTML="<span></span>",te(n,"class","InfoCardRemoveIcon")},m(e,t){Z(e,n,t),r||(o=ee(n,"click",function(){w(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&&X(n),r=!1,o()}}}function Jr(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function w(e){return 0!==e[41].amount?Vr:Wr}let b=w(e),_=b(e);function L(e){return e[41].expiryDate?Zr:qr}let x=L(e),E=x(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)?Kr:"No limit"!=e[41].amount&&e[41].isModified?Xr:void 0}let C=T(e,[-1,-1]),M=C&&C(e);return{c(){i=K("div"),n=K("div"),r=K("div"),o=K("div"),a=J(y),s=Q(),l=K("div"),_.c(),u=Q(),c=K("div"),d=K("div"),m=J(v),h=Q(),E.c(),p=Q(),M&&M.c(),g=Q(),te(o,"class","InfoCardRowTitle"),te(l,"class","InfoCardRowValue"),te(r,"class","InfoCardRow InfoMainRow"),te(d,"class","InfoCardRowTitle"),te(c,"class","InfoCardRow"),te(n,"class","InfoCardRowContainer"),te(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){Z(e,i,t),q(i,n),q(n,r),q(r,o),q(o,a),q(r,s),q(r,l),_.m(l,null),q(n,u),q(n,c),q(c,d),q(d,m),q(c,h),E.m(c,null),q(i,p),M&&M.m(i,null),q(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)):"")+"")&&ne(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&ne(m,v),x===(x=L(e))&&E?E.p(e,t):(E.d(1),(E=x(e))&&(E.c(),E.m(c,null))),C===(C=T(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=C&&C(e))&&(M.c(),M.m(i,g)))},d(e){e&&X(i),_.d(),E.d(),M&&M.d()}}}function Qr(i){let n,r,o,a,s=i[15]("removeLimits")+"";return{c(){n=K("button"),r=J(s),te(n,"class","InfoCardRemoveButton")},m(e,t){Z(e,n,t),q(n,r),o||(a=ee(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&ne(r,s)},d(e){e&&X(n),o=!1,a()}}}function eo(e){let i,n,r;return{c(){i=K("player-account-modal"),ie(n=K("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),ie(n,"modalsource","infoCard"),ie(n,"lang",e[3]),ie(n,"clientstyling",e[4]),ie(n,"clientstylingurl",e[5]),ie(i,"clientstyling",e[4]),ie(i,"clientstylingurl",e[5])},m(e,t){Z(e,i,t),q(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&ie(n,"modaltext",r),8&t[0]&&ie(n,"lang",e[3]),16&t[0]&&ie(n,"clientstyling",e[4]),32&t[0]&&ie(n,"clientstylingurl",e[5]),16&t[0]&&ie(i,"clientstyling",e[4]),32&t[0]&&ie(i,"clientstylingurl",e[5])},d(e){e&&X(i)}}}function to(i){let n;function r(e){return e[7]?Hr:Nr}let o=r(i),a=o(i);return{c(){n=K("div"),a.c(),this.c=V},m(e,t){Z(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:V,o:V,d(e){e&&X(n),a.d(),i[28](null)}}}function io(t,e,n){let i,{limitsdata:r=[]}=(re(t,jn,e=>n(15,i=e)),e),{limitname:o=""}=e,{playercurrency:a=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(zn).forEach(e=>{Vn(e,zn[e])});let d,m=!0,h=new Array(5).fill(0),p=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==Un(v),b="",_="",L=!0,x=A();const E=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:o},window.location.href)},T=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:o},window.location.href)},C=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,h[e]=!0,h)},50)},M=(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,S=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,h=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return se(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})),t.$$set=e=>{"limitsdata"in e&&n(0,r=e.limitsdata),"limitname"in e&&n(1,o=e.limitname),"playercurrency"in e&&n(2,a=e.playercurrency),"lang"in e&&n(3,s=e.lang),"clientstyling"in e&&n(4,l=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,c=e.translationurl)},t.$$.update=()=>{if(11&t.$$.dirty[0]&&r&&o&&s){var e=s;W.set(e),e="Time Limit"===o?"time limit":"Deposit Limit"===o?"deposit limit":"Wagering Limit"===o?"wagering limit":"loss limit",n(12,b=i("removeLimitsText",{values:{limit:e}})),n(13,_=i("removeLimitText",{values:{limit:e}})),r.forEach(e=>{e.isModified&&n(14,L=!1)});{let i=[...e=r];p.forEach((t,e)=>{e=(i=i.find(e=>e.period===t)?i:((e,t,i)=>{i={period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""},e=[...e];return e.splice(t,0,i),e})(i,e,t)).find(e=>e.period===t);e&&"No limit"!==e.amount&&n(9,f=!1)}),e.splice(0,e.length,...i),n(7,m=!1)}r.sort(M)}if(80&t.$$.dirty[0]&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),96&t.$$.dirty[0]&&u&&d){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}4194304&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vn(e,t[e])})}).catch(e=>{console.log(e)})},[r,o,a,s,l,u,d,m,h,f,g,y,b,_,L,i,w,x,E,T,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},C,c,()=>C(0),e=>C(e+1),e=>C(e+1),()=>E(r),()=>T(r),function(e){G[e?"unshift":"push"](()=>{d=e,n(6,d)})}]}function no(e){let i;return{c(){ie(i=K("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ie(i,"limitname",e[14]),ie(i,"showsuccessnotification",e[7]),ie(i,"showdeletenotification",e[6]),ie(i,"playercurrency",e[5]),ie(i,"lang",e[0]),ie(i,"separatelimits",e[8]),ie(i,"clientstyling",e[9]),ie(i,"clientstylingurl",e[10])},m(e,t){Z(e,i,t)},p(e,t){8192&t&&ie(i,"limitsdata",e[13]),16384&t&&ie(i,"limitname",e[14]),128&t&&ie(i,"showsuccessnotification",e[7]),64&t&&ie(i,"showdeletenotification",e[6]),32&t&&ie(i,"playercurrency",e[5]),1&t&&ie(i,"lang",e[0]),256&t&&ie(i,"separatelimits",e[8]),512&t&&ie(i,"clientstyling",e[9]),1024&t&&ie(i,"clientstylingurl",e[10])},d(e){e&&X(i)}}}function ro(e){let i,n,r,o,a,s,l,u,c,d,m,h,p,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,u,c,d,m,h,p,f,g=i[16]("gamingLimitsText")+"";return{c(){n=K("div"),r=t("svg"),o=t("defs"),a=t("style"),s=J(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=t("g"),u=t("g"),c=t("path"),d=Q(),m=K("h2"),h=J(g),te(c,"class","aaa"),te(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),te(c,"transform","translate(15 15) rotate(180)"),te(u,"transform","translate(20 158)"),te(l,"transform","translate(-20 -158)"),te(r,"xmlns","http://www.w3.org/2000/svg"),te(r,"width","15"),te(r,"height","15"),te(r,"viewBox","0 0 15 15"),te(m,"class","PlayerGamingLimitsTitleMobile"),te(n,"class","MenuReturnButton")},m(e,t){Z(e,n,t),q(n,r),q(r,o),q(o,a),q(a,s),q(r,l),q(l,u),q(u,c),q(n,d),q(n,m),q(m,h),p||(f=ee(n,"click",i[21]),p=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&ne(h,g)},d(e){e&&X(n),p=!1,f()}}}(e);return{c(){i=K("div"),g&&g.c(),n=Q(),r=K("h2"),o=J(f),a=Q(),s=K("div"),l=K("player-account-gaming-limits-info-card"),u=Q(),c=K("player-account-gaming-limits-info-card"),d=Q(),m=K("player-account-gaming-limits-info-card"),h=Q(),p=K("player-account-gaming-limits-info-card"),te(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ie(l,"limitsdata",e[1]),ie(l,"limitname",so),ie(l,"playercurrency",e[5]),ie(l,"lang",e[0]),ie(l,"clientstyling",e[9]),ie(l,"clientstylingurl",e[10]),ie(c,"limitsdata",e[2]),ie(c,"limitname",lo),ie(c,"playercurrency",e[5]),ie(c,"lang",e[0]),ie(c,"clientstyling",e[9]),ie(c,"clientstylingurl",e[10]),ie(m,"limitsdata",e[3]),ie(m,"limitname",uo),ie(m,"playercurrency",e[5]),ie(m,"lang",e[0]),ie(m,"clientstyling",e[9]),ie(m,"clientstylingurl",e[10]),ie(p,"limitsdata",e[4]),ie(p,"limitname",co),ie(p,"playercurrency",e[5]),ie(p,"lang",e[0]),ie(p,"clientstyling",e[9]),ie(p,"clientstylingurl",e[10]),te(s,"class","PlayerAccountGamingLimitsContainer"),te(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){Z(e,i,t),g&&g.m(i,null),q(i,n),q(i,r),q(r,o),q(i,a),q(i,s),q(s,l),q(s,u),q(s,c),q(s,d),q(s,m),q(s,h),q(s,p)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&ne(o,f),2&t&&ie(l,"limitsdata",e[1]),32&t&&ie(l,"playercurrency",e[5]),1&t&&ie(l,"lang",e[0]),512&t&&ie(l,"clientstyling",e[9]),1024&t&&ie(l,"clientstylingurl",e[10]),4&t&&ie(c,"limitsdata",e[2]),32&t&&ie(c,"playercurrency",e[5]),1&t&&ie(c,"lang",e[0]),512&t&&ie(c,"clientstyling",e[9]),1024&t&&ie(c,"clientstylingurl",e[10]),8&t&&ie(m,"limitsdata",e[3]),32&t&&ie(m,"playercurrency",e[5]),1&t&&ie(m,"lang",e[0]),512&t&&ie(m,"clientstyling",e[9]),1024&t&&ie(m,"clientstylingurl",e[10]),16&t&&ie(p,"limitsdata",e[4]),32&t&&ie(p,"playercurrency",e[5]),1&t&&ie(p,"lang",e[0]),512&t&&ie(p,"clientstyling",e[9]),1024&t&&ie(p,"clientstylingurl",e[10])},d(e){e&&X(i),g&&g.d()}}}function oo(e){let i;return{c(){te(i=K("div"),"class","ModalLoader")},m(e,t){Z(e,i,t)},p:V,d(e){e&&X(i)}}}function ao(i){let n;function r(e){return e[12]?oo:e[15]?ro:no}let o=r(i),a=o(i);return{c(){n=K("div"),a.c(),this.c=V},m(e,t){Z(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:V,o:V,d(e){e&&X(n),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},mr,dr,E,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),m()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),m()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),m()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Ir,kr,E,{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&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}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}),m()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),m()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),m()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),m()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),m()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),m()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},io,to,E,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),m()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),m()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),m()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),m()}});let so="Deposit Limit",lo="Wagering Limit",uo="Loss Limit",co="Time Limit";function mo(t,e,i){let n,r=(re(t,jn,e=>i(16,n=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:u=!1}=e,{lang:c="en"}=e,{playercurrency:d=""}=e,{separatelimits:m="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,g;Object.keys(Wn).forEach(e=>{Gn(e,Wn[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==Un(w),_="",L=!0;const x=window.matchMedia("(min-width: 768px)"),E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},T=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,c=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,L=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,L=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return se(()=>(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,u=e.showsuccessnotification),"lang"in e&&i(0,c=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,m=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,p=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&c&&(e=c,W.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&p&&g){let e=new URL(p),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=>{Gn(e,t[e])})}).catch(e=>{console.log(e)})},[c,r,o,a,s,d,l,u,m,h,p,g,v,y,_,L,n,b,x,E,f,()=>E(),function(e){G[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}class ho extends Le{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),_e(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},mo,ao,E,{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&&Z(e.target,this,e.anchor),e.props)&&(this.$set(e.props),m())}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}),m()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),m()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),m()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),m()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),m()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),m()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),m()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),m()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),m()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),m()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),m()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),m()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",ho),ho});
4
4
  //# sourceMappingURL=player-account-gaming-limits.js.map