@everymatrix/player-active-bonuses 1.43.4 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerActiveBonuses-B8ktjzFu.cjs +5 -0
- package/components/PlayerActiveBonuses-b2tDwEed.js +5226 -0
- package/components/PlayerBonusCard-BRaa1TtT.cjs +10 -0
- package/components/PlayerBonusCard-PNdnBxxB.js +3142 -0
- package/es2015/player-active-bonuses.cjs +1 -0
- package/es2015/player-active-bonuses.js +16 -0
- package/package.json +17 -32
- package/CHANGELOG.md +0 -8
- package/README.md +0 -30
- package/dist/player-active-bonuses.js +0 -2
- package/dist/player-active-bonuses.js.map +0 -1
- package/index.html +0 -21
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerActiveBonuses.svelte +0 -609
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -122
- package/stories/PlayerActiveBonuses.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerActiveBonuses-B8ktjzFu.cjs")).then(e=>e.PlayerActiveBonuses_ce).then(({default:e})=>{!customElements.get("player-active-bonuses")&&customElements.define("player-active-bonuses",e.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(e) {
|
|
3
|
+
return function(...s) {
|
|
4
|
+
try {
|
|
5
|
+
return e.apply(this, s);
|
|
6
|
+
} catch (t) {
|
|
7
|
+
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw t;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerActiveBonuses-b2tDwEed.js").then((e) => e.P).then(({ default: e }) => {
|
|
14
|
+
!customElements.get("player-active-bonuses") && customElements.define("player-active-bonuses", e.element);
|
|
15
|
+
});
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-active-bonuses",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
15
|
-
"@rollup/plugin-commonjs": "^16.0.0",
|
|
16
|
-
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
17
|
-
"@rollup/plugin-typescript": "^6.0.0",
|
|
18
|
-
"@tsconfig/svelte": "^1.0.0",
|
|
19
|
-
"rollup": "^2.3.4",
|
|
20
|
-
"rollup-plugin-dev-server": "^0.4.3",
|
|
21
|
-
"rollup-plugin-livereload": "^2.0.0",
|
|
22
|
-
"rollup-plugin-svelte": "^7.0.0",
|
|
23
|
-
"rollup-plugin-terser": "^7.0.0",
|
|
24
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
25
|
-
"svelte-check": "^1.0.0",
|
|
26
|
-
"svelte-preprocess": "^5.0.0",
|
|
27
|
-
"tslib": "^2.0.0",
|
|
28
|
-
"typescript": "^3.9.3"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"cross-env": "^7.0.3",
|
|
32
|
-
"sirv-cli": "^1.0.0",
|
|
33
|
-
"svelte": "^3.0.0"
|
|
3
|
+
"version": "1.45.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "es2015/player-active-bonuses.cjs",
|
|
6
|
+
"module": "es2015/player-active-bonuses.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./es2015/player-active-bonuses.js",
|
|
10
|
+
"require": "./es2015/player-active-bonuses.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./es2015/player-active-bonuses.cjs": "./es2015/player-active-bonuses.cjs"
|
|
34
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"es2015/",
|
|
16
|
+
"components"
|
|
17
|
+
],
|
|
35
18
|
"publishConfig": {
|
|
36
19
|
"access": "public"
|
|
37
20
|
},
|
|
38
|
-
"
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@everymatrix/player-bonus-card": "1.0.72"
|
|
23
|
+
}
|
|
39
24
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## player-active-bonuses widget changelogs
|
|
3
|
-
|
|
4
|
-
| Version | Release date | Impacted areas | Changes |
|
|
5
|
-
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
-
| 1.37.2 | Mon Aug 12 2024 | player-active-bonuses | fix(EMFE-31156)(player-active-bonuses): create debounce for not multiple bonus... <br /> fix(EMFE-29169)(player-active-bonuses): scroll to top on page change <br /> feat(EMFE-27872)(player-active-bonuses, player-bonus-history): change grantedAmount to grantedPlayerCurrencyAmount |
|
|
7
|
-
| 1.31.0 | Wed May 22 2024 | player-active-bonuses | fix(EMFE-31156)(player-active-bonuses): create debounce for not multiple bonus... |
|
|
8
|
-
| 1.29.5 | Tue Apr 23 2024 | player-active-bonuses | fix(EMFE-29169)(player-active-bonuses): scroll to top on page change |
|
package/README.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# @everymatrix/player-active-bonuses
|
|
2
|
-
---------
|
|
3
|
-
|
|
4
|
-
## First step
|
|
5
|
-
---------
|
|
6
|
-
```
|
|
7
|
-
lerna bootstrap
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Run Widget
|
|
11
|
-
---------
|
|
12
|
-
- starts server at port 5050
|
|
13
|
-
- has livereload
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
yarn run dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Build Widget
|
|
20
|
-
---------
|
|
21
|
-
```
|
|
22
|
-
yarn run build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Publishing widget
|
|
26
|
-
---------
|
|
27
|
-
- Note add your user to the npm
|
|
28
|
-
```
|
|
29
|
-
lerna publish
|
|
30
|
-
```
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
((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(){function G(){}function M(e){return e()}function S(){return Object.create(null)}function N(e){e.forEach(M)}function C(e){return"function"==typeof e}function A(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function x(e,...t){if(null==e)return G;let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function O(e,t,n){e.$$.on_destroy.push(x(t,n))}function $(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function k(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function t(e){return document.createElement(e)}function e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function V(e){return document.createTextNode(e)}function z(){return V(" ")}function L(){return V("")}function R(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function d(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:Z(e,t,n)}function X(e,t){e.data!==(t=""+t)&&(e.data=t)}function Y(e,t){e.value=null==t?"":t}function P(e){var t,n={};for(t of e)n[t.name]=t.value;return n}let H;function I(e){H=e}let f=[],U=[],o=[],F=[],q=Promise.resolve(),K=!1;function J(e){o.push(e)}let Q=new Set,ee=0;function p(){if(0===ee){let e=H;do{try{for(;ee<f.length;){let e=f[ee];ee++,I(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),N(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(J))}}catch(e){throw f.length=0,ee=0,e}for(I(null),f.length=0,ee=0;U.length;)U.pop()();for(let e=0;e<o.length;e+=1){var r=o[e];Q.has(r)||(Q.add(r),r())}}while(o.length=0,f.length);for(;F.length;)F.pop()();K=!1,Q.clear(),I(e)}}let te=new Set;function ne(r,t,e,n,o,i,s,a=[-1]){var u=H;I(r);let l=r.$$={fragment:null,ctx:[],props:i,update:G,not_equal:o,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:S(),dirty:a,skip_bound:!1,root:t.target||u.$$.root},c=(s&&s(l.root),!1);if(l.ctx=e?e(r,t.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return l.ctx&&o(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c)&&(n=e,-1===(e=r).$$.dirty[0]&&(f.push(e),K||(K=!0,q.then(p)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],l.update(),c=!0,N(l.before_update),l.fragment=!!n&&n(l.ctx),t.target){if(t.hydrate){i=t.target;let e=Array.from(i.childNodes);l.fragment&&l.fragment.l(e),e.forEach(j)}else l.fragment&&l.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));var h=r,s=t.customElement,{fragment:e,after_update:n}=h.$$;e&&e.m(t.target,t.anchor),s||J(()=>{var e=h.$$.on_mount.map(M).filter(C);h.$$.on_destroy?h.$$.on_destroy.push(...e):N(e),h.$$.on_mount=[]}),n.forEach(J),p()}I(u)}let re;"function"==typeof HTMLElement&&(re=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let e=this.$$.on_mount;this.$$.on_disconnect=e.map(M).filter(C);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){N(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;let t=[],n=[];o.forEach(e=>(-1===r.indexOf(e)?t:n).push(e)),n.forEach(e=>e()),o=t}N(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=G}$on(e,t){if(!C(t))return G;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var oe,ie,u="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},se="URLSearchParams"in u,ae="Symbol"in u&&"iterator"in Symbol,ue="FileReader"in u&&"Blob"in u&&(()=>{try{return new Blob,!0}catch(e){return!1}})(),le="FormData"in u,ce="ArrayBuffer"in u;function he(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 fe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ae&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 me(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function ye(e){var t=new FileReader,n=me(t);return t.readAsArrayBuffer(e),n}function ge(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:ue&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:le&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:se&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ce&&ue&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ge(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ce&&(ArrayBuffer.prototype.isPrototypeOf(e)||ie(e))?this._bodyArrayBuffer=ge(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):se&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ue&&(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(ue)return this.blob().then(ye);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=pe(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=me(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve((e=>{for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")})(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},le&&(this.formData=function(){return this.text().then(_e)}),this.json=function(){return this.text().then(JSON.parse)},this}ce&&(oe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ie=ArrayBuffer.isView||function(e){return e&&-1<oe.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=he(e),t=de(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[he(e)]},l.prototype.get=function(e){return e=he(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(he(e))},l.prototype.set=function(e,t){this.map[he(e)]=de(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),fe(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),fe(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),fe(n)},ae&&(l.prototype[Symbol.iterator]=l.prototype.entries);var ve=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];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.');var n,r=(t=t||{}).body;if(e instanceof c){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<ve.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||(()=>{if("AbortController"in u)return(new AbortController).signal})(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function _e(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function h(e,t){if(!(this instanceof h))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 l(t.headers),this.url=t.url||"",this._initBody(e)}c.prototype.clone=function(){return new c(this,{body:this._bodyInit})},be.call(c.prototype),be.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var we=[301,302,303,307,308],Be=(h.redirect=function(e,t){if(-1===we.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},u.DOMException);try{new Be}catch(G){(Be=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Be.prototype.constructor=Be}function Ee(r,a){return new Promise(function(o,e){var i=new c(r,a);if(i.signal&&i.signal.aborted)return e(new Be("Aborted","AbortError"));var n,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,r,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new l,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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(0===i.url.indexOf("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){o(new h(n,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Be("Aborted","AbortError"))},0)},s.open(i.method,(t=>{try{return""===t&&u.location.href?u.location.href:t}catch(e){return t}})(i.url),!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&(ue?s.responseType="blob":ce&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof l||u.Headers&&a.headers instanceof u.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(he(e)),s.setRequestHeader(e,de(a.headers[e]))}),i.headers.forEach(function(e,t){-1===n.indexOf(t)&&s.setRequestHeader(t,e)})):i.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),i.signal&&(i.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",t)}),s.send(void 0===i._bodyInit?null:i._bodyInit)})}function kn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ee.polyfill=!0,u.fetch||(u.fetch=Ee,u.Headers=l,u.Request=c,u.Response=h),self.fetch.bind(self);var Te=function(e,t){return(Te=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Se(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ce(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Ae(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function m(e){return"function"==typeof e}function xe(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 ke=xe(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 De(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Se(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(m(i))try{i()}catch(e){o=e instanceof ke?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var u=Se(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Ne(c)}catch(e){o=null!=o?o:[],e instanceof ke?o=Ae(Ae([],Ce(o)),Ce(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(o)throw new ke(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(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)&&De(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&De(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((i=new n).closed=!0,i);var Oe=n,Pe=Oe.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function He(e){return e instanceof Oe||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function Ne(e){m(e)?e():e.unsubscribe()}var Re=void 0,Le=!1,Ye=!1,Ie={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Ie.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Ae([e,t],Ce(n))):setTimeout.apply(void 0,Ae([e,t],Ce(n)))},clearTimeout:function(e){var t=Ie.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ue(){}var Fe=null;function Ge(e){if(Le){var t=!Fe;if(t&&(Fe={errorThrown:!1,error:null}),e(),t){var t=Fe,n=t.errorThrown;if(Fe=null,n)throw t.error}}else e()}Me(r,$e=Oe),r.create=function(e,t,n){return new Xe(e,t,n)},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,$e.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 $e,We=r,je=Function.prototype.bind;function r(e){var t=$e.call(this)||this;return t.isStopped=!1,e?He(t.destination=e)&&e.add(t):t.destination=Qe,t}function Ve(e,t){return je.call(e,t)}Ke.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Je(e)}},Ke.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Je(e)}else Je(e)},Ke.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Je(e)}};var ze,Ze=Ke,Xe=(Me(qe,ze=We),qe);function qe(e,t,n){var r=ze.call(this)||this,n=m(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ye?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&Ve(e.next,t),error:e.error&&Ve(e.error,t),complete:e.complete&&Ve(e.complete,t)}):e;return r.destination=new Ze(n),r}function Ke(e){this.partialObserver=e}function Je(e){var t=e;Ie.setTimeout(function(){throw t})}var Qe={closed:!0,next:Ue,error:function(e){throw e},complete:Ue},i="function"==typeof Symbol&&Symbol.observable||"@@observable";s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof We||r&&m(r.next)&&m(r.error)&&m(r.complete)&&He(r)?e:new Xe(e,t,n);return Ge(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(r,e){var o=this;return new(e=tt(e))(function(e,t){var n=new Xe({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[i]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];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)},s.prototype.toPromise=function(e){var r=this;return new(e=tt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},s.create=function(e){return new s(e)};var et=s;function s(e){e&&(this._subscribe=e)}function tt(e){return null!=(e=null!=e?e:Re)?e:Promise}var nt,rt,ot,it=xe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(Me(a,ot=et),a.prototype.lift=function(e){var t=new st(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new it},a.prototype.next=function(o){var i=this;Ge(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Se(i.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;Ge(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;Ge(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(),ot.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,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?Pe:(this.currentObservers=null,o.push(e),new Oe(function(){t.currentObservers=null,De(o,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new et;return e.source=this,e},a.create=function(e,t){return new st(e,t)},a),st=(Me(ct,rt=i),ct.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},ct.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},ct.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},ct.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Pe},ct),at={now:function(){return(at.delegate||Date).now()},delegate:void 0},ut=(Me(lt,nt=i),lt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(r.push(e),o)||r.push(i.now()+t),this._trimBuffer(),nt.prototype.next.call(this,e)},lt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},lt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=t.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},lt);function lt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=at);var r=nt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function ct(e,t){var n=rt.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=ot.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let ht=[],dt={},ft=[];function pt(r,o=G){let i,s=new Set;function a(e){if(A(r,e)&&(r=e,i)){let e=!ft.length;for(let e of s)e[1](),ft.push(e,r);if(e){for(let e=0;e<ft.length;e+=2)ft[e][0](ft[e+1]);ft.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=G){let n=[e,t];return s.add(n),1===s.size&&(i=o(a)||G),e(r),()=>{s.delete(n),0===s.size&&i&&(i(),i=null)}}}}function mt(e,a,t){let u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:pt(t,t=>{let n=!1,r=[],o=0,i=G,s=()=>{var e;o||(i(),e=a(u?r[0]:r,t),c?t(e):i=C(e)?e:G)},e=l.map((e,t)=>x(e,e=>{r[t]=e,o&=~(1<<t),n&&s()},()=>{o|=1<<t}));return n=!0,s(),function(){N(e),i(),n=!1}}).subscribe}}function yt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===gt);var t}var gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Et(Array.isArray(e)?[]:{},e,t):e}function vt(e,t,n){return e.concat(t).map(function(e){return bt(e,n)})}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 wt(e,t){try{return t in e}catch(e){return!1}}function Bt(r,o,i){var s={};return i.isMergeableObject(r)&&_t(r).forEach(function(e){s[e]=bt(r[e],i)}),_t(o).forEach(function(e){var t,n;(!wt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(wt(r,e)&&i.isMergeableObject(o[e])?s[e]=((t=i).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Et)(r[e],o[e],i):s[e]=bt(o[e],i))}),s}function Et(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||vt,n.isMergeableObject=n.isMergeableObject||yt,n.cloneUnlessOtherwiseSpecified=bt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Bt(e,t,n):bt(t,n)}Et.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Et(e,t,n)},{});throw new Error("first argument should be an array")};var Tt=Et,Mt=function(e,t){return(Mt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Mt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var y,g,Ct,b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function At(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function xt(e){return e.type===g.literal}function kt(e){return e.type===g.number}function Dt(e){return e.type===g.date}function Ot(e){return e.type===g.time}function Pt(e){return e.type===g.select}function Ht(e){return e.type===g.plural}function Nt(e){return e.type===g.tag}function Rt(e){return e&&"object"==typeof e&&e.type===Ct.number}function Lt(e){return e&&"object"==typeof e&&e.type===Ct.dateTime}(i=y=y||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=g=g||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=Ct=Ct||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 It=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ut=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ft=/^(@+)?(\+|#+)?[rs]?$/g,Gt=/(\*)(0+)|(#+)(0+)|(0+)/g,$t=/^(0+)$/;function Wt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Ft,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function jt(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 Vt(e){return jt(e)||{}}function zt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return b(b({},e),Vt(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return b(b({},e),Vt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Gt,function(e,t,n,r,o,i){if(t)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if($t.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ut.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ut,function(e,t,n,r,o,i){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=b(b({},s),Wt(i)))}else Ft.test(o.stem)?s=b(b({},s),Wt(o.stem)):((i=jt(o.stem))&&(s=b(b({},s),i)),(r=(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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!$t.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t})(o.stem))&&(s=b(b({},s),r)))}return s}var Zt={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 Xt=new RegExp("^".concat(i.source,"*")),qt=new RegExp("".concat(i.source,"*$"));function v(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,Kt=!!String.fromCodePoint,Jt=!!Object.fromEntries,Qt=!!String.prototype.codePointAt,en=!!String.prototype.trimStart,tn=!!String.prototype.trimEnd,nn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rn=!0;try{rn="a"===(null==(Mn=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Mn[0])}catch(G){rn=!1}var on,sn,an=i?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},un=Kt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;i<o;){if(1114111<(n=e[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},ln=Jt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o[0]]=o[1]}return t},cn=Qt?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},hn=en?function(e){return e.trimStart()}:function(e){return e.replace(Xt,"")},dn=tn?function(e){return e.trimEnd()}:function(e){return e.replace(qt,"")};function fn(e,t){return new RegExp(e,t)}sn=rn?(on=fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return on.lastIndex=t,null!=(t=on.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=cn(e,t);if(void 0===o||yn(o)||33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(o),t+=65536<=o?2:1}return un.apply(void 0,r)};_.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},_.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&mn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{i=this.clonePosition();this.bump(),r.push({type:g.pound,location:v(i,this.clonePosition())})}}}return{val:r,err:null}},_.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:g.literal,value:"<".concat(o,"/>"),location:v(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!mn(this.char())?this.error(y.INVALID_TAG,v(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(y.UNMATCHED_CLOSING_TAG,v(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:g.tag,value:o,children:t,location:v(r,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,v(e,this.clonePosition())))):this.error(y.UNCLOSED_TAG,v(r,this.clonePosition()))):this.error(y.INVALID_TAG,v(r,this.clonePosition()))},_.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())},_.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=v(n,this.clonePosition());return{val:{type:g.literal,value:r,location:n},err:null}},_.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(mn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},_.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return un.apply(void 0,t)},_.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),un(n))},_.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(y.EMPTY_ARGUMENT,v(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(y.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:g.argument,value:r,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(y.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},_.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=sn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:v(e,this.clonePosition())}},_.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,v(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=dn(h.val)).length)return this.error(y.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:v(l,this.clonePosition())}}return(l=this.tryParseArgumentClose(r)).err?l:(f=v(r,this.clonePosition()),u&&an(null==u?void 0:u.style,"::",0)?(p=hn(u.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(p,u.styleLocation)).err?h:{val:{type:g.number,value:n,location:f,style:h.val},err:null}:0===p.length?this.error(y.EXPECT_DATE_TIME_SKELETON,f):(c=p,this.locale&&(c=((e,t)=>{for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=(e=>{var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Zt[t||""]||Zt[n||""]||Zt["".concat(n,"-001")]||Zt["001"])[0]})(t);for("H"!=u&&"k"!=u||(a=0);0<a--;)n+="a";for(;0<s--;)n=u+n}else n+="J"===o?"H":o}return n})(p,this.locale)),d={type:Ct.dateTime,pattern:c,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(Yt,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}},{val:{type:"date"===s?g.date:g.time,value:n,location:f,style:d},err:null})):{val:{type:"number"===s?g.number:"date"===s?g.date:g.time,value:n,location:f,style:null!=(p=null==u?void 0:u.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,v(c,b({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),f=h.val}var p,u=this.tryParsePluralOrSelectOptions(e,s,t,d);return u.err?u:(l=this.tryParseArgumentClose(r)).err?l:(p=v(r,this.clonePosition()),"select"===s?{val:{type:g.select,value:n,options:ln(u.val),location:p},err:null}:{val:{type:g.plural,value:n,options:ln(u.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null});default:return this.error(y.INVALID_ARGUMENT_TYPE,v(i,a))}},_.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},_.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(n,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}},_.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=(e=>{if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(It).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t})(e)}catch(e){return this.error(y.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ct.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?zt(n):{}},err:null}},_.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,i=[],s=new Set,a=r.value,u=r.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=v(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));l=this.parseMessage(e+1,t,n);if(l.err)return l;var h=this.tryParseArgumentClose(c);if(h.err)return h;i.push([a,{value:l.val,location:v(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(y.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:i,err:null}},_.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=v(r,this.clonePosition());return o?nn(i*=n)?{val:i,err:null}:this.error(t,r):this.error(e,r)},_.prototype.offset=function(){return this.position.offset},_.prototype.isEOF=function(){return this.offset()===this.message.length},_.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},_.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=cn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},_.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},_.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))},_.prototype.bumpIf=function(e){if(an(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},_.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)},_.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}},_.prototype.bumpSpace=function(){for(;!this.isEOF()&&yn(this.char());)this.bump()},_.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 pn=_;function _(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 mn(e){return 97<=e&&e<=122||65<=e&&e<=90}function yn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function gn(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new pn(e,t).parse();if(e.err)throw(n=SyntaxError(y[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Pt(e)||Ht(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else kt(e)&&Rt(e.style)||(Dt(e)||Ot(e))&&Lt(e.style)?delete e.style.location:Nt(e)&&n(e.children)})}(e.val),e.val}function bn(e,t){var n=t&&t.cache?t.cache:Sn,r=t&&t.serializer?t.serializer:Bn;return(t&&t.strategy?t.strategy:function(e,t){return wn(e,this,1===e.length?vn:_n,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function vn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function _n(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function wn(e,t,n,r,o){return n.bind(t,e,r,o)}var Bn=function(){return JSON.stringify(arguments)};function En(){this.cache=Object.create(null)}En.prototype.get=function(e){return this.cache[e]},En.prototype.set=function(e,t){this.cache[e]=t};var Tn,Mn,Sn={create:function(){return new En}},Cn={variadic:function(e,t){return wn(e,this,_n,t.cache.create(),t.serializer)},monadic:function(e,t){return wn(e,this,vn,t.cache.create(),t.serializer)}};(Mn=Tn=Tn||{}).MISSING_VALUE="MISSING_VALUE",Mn.INVALID_VALUE="INVALID_VALUE",Mn.MISSING_INTL_API="MISSING_INTL_API";St(Un,On=Error),Un.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,An,xn,Dn,On,Pn=Un,Hn=(St(In,Dn=Pn),In),Nn=(St(Yn,xn=Pn),Yn),Rn=(St(Ln,An=Pn),Ln);function Ln(e,t){return An.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Tn.MISSING_VALUE,t)||this}function Yn(e,t,n){return xn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Tn.INVALID_VALUE,n)||this}function In(e,t,n,r){return Dn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Tn.INVALID_VALUE,r)||this}function Un(e,t,n){e=On.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Fn(e,t,n,r,o,i,s){if(1===e.length&&xt(e[0]))return[{type:w.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(xt(c))a.push({type:w.literal,value:c.value});else if(c.type===g.pound)"number"==typeof i&&a.push({type:w.literal,value:n.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Rn(h,s);h=o[h];if(c.type===g.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?w.literal:w.object,value:h});else if(Dt(c)){var d="string"==typeof c.style?r.date[c.style]:Lt(c.style)?c.style.parsedOptions:void 0;a.push({type:w.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(Ot(c))d="string"==typeof c.style?r.time[c.style]:Lt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:w.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(kt(c))(d="string"==typeof c.style?r.number[c.style]:Rt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:w.literal,value:n.getNumberFormat(t,d).format(h)});else{if(Nt(c)){var f=c.children,p=c.value,m=o[p];if("function"!=typeof m)throw new Nn(p,"function",s);p=m(Fn(f,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(Pt(c)){if(!(y=c.options[h]||c.options.other))throw new Hn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Fn(y.value,t,n,r,o))}else if(Ht(c)){if(!(y=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tn.MISSING_INTL_API,s);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),y=c.options[m]||c.options.other}if(!y)throw new Hn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Fn(y.value,t,n,r,o,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===w.literal&&t.type===w.literal?n.value+=t.value:e.push(t),e},[])}function Gn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(i=w=w||{})[i.literal=0]="literal",i[i.object=1]="object";Object.defineProperty(B,"defaultLocale",{get:function(){return B.memoizedDefaultLocale||(B.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),B.memoizedDefaultLocale},enumerable:!1,configurable:!0}),B.memoizedDefaultLocale=null,B.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])},B.__parse=gn,B.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 $n=B;function B(e,t,n,r){var o,i,s=this;if(void 0===t&&(t=B.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===w.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 Fn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=B.resolveLocale(t),"string"==typeof e){if(this.message=e,!B.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=B.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=B.formats,(i=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=i[t])?b(b(b({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=b(b({},n[t]),r[t]||{}),e},{})):n),e},b({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:bn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,At([void 0],t,!1)))},{cache:Gn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Cn.variadic}),getDateTimeFormat:bn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,At([void 0],t,!1)))},{cache:Gn(t.dateTime),strategy:Cn.variadic}),getPluralRules:bn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,At([void 0],t,!1)))},{cache:Gn(t.pluralRules),strategy:Cn.variadic})}}let E={},Wn=(e,t,n)=>n&&(t in E||(E[t]={}),e in E[t]||(E[t][e]=n),n),jn=(t,n)=>{if(null!=n){if(n in E&&t in E[n])return E[n][t];var r=hr(n);for(let e=0;e<r.length;e++){var o=((e,t)=>{if(!Zn(e))return null;e=(e=>Vn[e]||null)(e);var r=t;if(null!=r){if(r in e)return e[r];var o=r.split(".");let n=e;for(let t=0;t<o.length;t++)if("object"==typeof n){if(0<t){let e=o.slice(t,o.length).join(".");if(e in n){n=n[e];break}}n=n[o[t]]}else n=void 0;return n}})(r[e],t);if(o)return Wn(t,n,o)}}},Vn,zn=pt({});function Zn(e){return e in Vn}function Xn(t,...n){delete E[t],zn.update(e=>(e[t]=Tt.all([e[t]||{},...n]),e))}mt([zn],([e])=>Object.keys(e)),zn.subscribe(e=>Vn=e);let qn={};function Kn(e){return qn[e]}function Jn(e){return null!=e&&hr(e).some(e=>null==(e=Kn(e))?void 0:e.size)}function Qn(r,e){return Promise.all(e.map(e=>{return t=r,n=e,qn[t].delete(n),0===qn[t].size&&delete qn[t],e().then(e=>e.default||e);var t,n})).then(e=>Xn(r,...e))}let er={};let tr={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};let nr=pt(!1);var rr=Object.defineProperty,Kt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,ar=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ur,lr=pt(null);function cr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function hr(e,t=tr.fallbackLocale){e=cr(e);return t?[...new Set([...e,...cr(t)])]:e}function T(){return null!=ur?ur:void 0}lr.subscribe(e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});let D=Kt(((e,t)=>{for(var n in t=t||{})ir.call(t,n)&&ar(e,n,t[n]);if(or)for(var n of or(t))sr.call(t,n)&&ar(e,n,t[n]);return e})({},lr),Jt({set:t=>{if(t&&(e=>{if(null!=e){var t=hr(e);for(let e=0;e<t.length;e++){var n=t[e];if(Zn(n))return n}}})(t)&&Jn(t)){var n=tr.loadingDelay;let e;return"undefined"!=typeof window&&null!=T()&&n?e=window.setTimeout(()=>nr.set(!0),n):nr.set(!0),function e(t){var n;return Jn(t)?(n=hr(t).map(e=>{var t=Kn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),er[t]=Promise.all(n.map(([e,t])=>Qn(e,t))).then(()=>{if(Jn(t))return e(t);delete er[t]}),er[t]):t in er?er[t]:Promise.resolve()}(t).then(()=>{lr.set(t)}).finally(()=>{clearTimeout(e),nr.set(!1)})}return lr.set(t)}}));var Qt=n=>{let r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},dr=Object.defineProperty,fr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,yr=(e,t,n)=>t in e?dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gr=(e,t)=>{for(var n in t=t||{})pr.call(t,n)&&yr(e,n,t[n]);if(fr)for(var n of fr(t))mr.call(t,n)&&yr(e,n,t[n]);return e},br=(e,t)=>{var n={};for(r in e)pr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&fr)for(var r of fr(e))t.indexOf(r)<0&&mr.call(e,r)&&(n[r]=e[r]);return n};let vr=(e,t)=>{var n=tr.formats;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},_r=Qt(e=>{var{locale:t,format:n}=e,e=br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=vr("number",n)),new Intl.NumberFormat(t,e)}),wr=Qt(e=>{var{locale:t,format:n}=e,e=br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=vr("date",n):0===Object.keys(e).length&&(e=vr("date","short")),new Intl.DateTimeFormat(t,e)}),Br=Qt(e=>{var{locale:t,format:n}=e,e=br(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=vr("time",n):0===Object.keys(e).length&&(e=vr("time","short")),new Intl.DateTimeFormat(t,e)}),Er=Qt((e,t=T())=>new $n(e,t,tr.formats,{ignoreTag:tr.ignoreTag})),Tr=mt([D,zn],()=>(e,t={})=>{let n,r,o,i,s=t;"object"==typeof e&&(e=(s=e).id);var{values:a,locale:u=T(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=jn(e,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(r=(n=tr).handleMissingMessage)?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))?o:l)?i:e;if(!a)return c;let h=c;try{h=Er(c,u).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),Mr=(mt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=br(e,["locale"]);return Br(gr({locale:t},e))})(t).format(e)),mt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=br(e,["locale"]);return wr(gr({locale:t},e))})(t).format(e)),mt([D],()=>(e,t)=>((e={})=>{var{locale:t=T()}=e,e=br(e,["locale"]);return _r(gr({locale:t},e))})(t).format(e)),mt([D,zn],()=>(e,t=T())=>jn(e,t)),window.emWidgets={topic:(e,t=0)=>(-1==ht.indexOf(e)&&(t=new ut(t),dt[e]=t,ht.push(e)),dt[e])},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Sr(e,t){Xn(e,t)}let Cr={en:{titleBonuses:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"},"zh-hk":{titleBonuses:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"},fr:{titleBonuses:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"},ro:{titleBonuses:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"},es:{titleBonuses:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"},pt:{titleBonuses:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"},hr:{titleBonuses:"Aktivni bonusi",bonusCode:"Imate li bonus kod?",getBonus:"Preuzmi bonus",invalidBonusCode:"Navedeni bonus kod je nevažeći.",noActiveBonuses:"Trenutno nemate aktivnih bonusa.",forfeitBonus:"Jeste li sigurni da želite otkazati bonus?",forfeitBonusConfirm:"Potvrdi",forfeitBonusCancel:"Otkaži",successMessage:"Preuzet bonus!",errorMessage:"Nevažeći bonus"},"pt-br":{titleBonuses:"Títulos ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Reivindicar bônus",invalidBonusCode:"O código de bônus emitido é inválido",noActiveBonuses:"Não possui títulos ativos no momento",forfeitBonus:"Tem certeza de que deseja recusar o bônus?",forfeitBonusConfirm:"confirme",forfeitBonusCancel:"Cancelar",successMessage:"Bônus ativado",errorMessage:"Voucher inválido"},"es-mx":{titleBonuses:"Bonos activos",bonusCode:"¿Tiene código de bonos?",getBonus:"Reclamar bono",invalidBonusCode:"El código de bono emitido es inválido",noActiveBonuses:"No tiene bonos activos al momento",forfeitBonus:"¿ Está seguro que quiere declinar el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono activado",errorMessage:"Bono inválido"},tr:{titleBonuses:"Aktif Bonuslar",bonusCode:"Bonus kodunuz var mı?",getBonus:"Bonusu Al",invalidBonusCode:"Sağlanan bonus kodu geçersiz.",noActiveBonuses:"Şu anda aktif bonusunuz yok.",forfeitBonus:"Bonusu kaybetmek istediğinizden emin misiniz?",forfeitBonusConfirm:"Onaylamak",forfeitBonusCancel:"İptal etmek",successMessage:"Bonus talep edildi!",errorMessage:"Geçersiz bonus"}};function Ar(e,t){Xn(e,t)}let xr={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited",closed:"closed"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited",closed:"closed"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited",closed:"fermé"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited",closed:"închis"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited",closed:"cerrado"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited",closed:"fechado"},hr:{date:"Datum:",bonusName:"Ime bonusa",bonusType:"Vrsta bonusa",bonusAmount:"Iznos bonusa",wageringAmount:"Odigravanje",remainingBonus:"Trenutno stanje bonusa",forfeitBonus:"Otkaži bonus",active:"aktivan",released:"razriješen",expired:"Istekao",forfeited:"otkazan",closed:"Zatvoren"},"pt-br":{date:"Data concedida:",bonusName:"Nome do bônus:",bonusType:"Tipo de bônus:",bonusAmount:"Valor do bônus:",wageringAmount:"Progresso da Quantidade de Apostas (Rollover)",remainingBonus:"Saldo atual de bônus:",forfeitBonus:"Recusar bônus",active:"Ativo",released:"Lançado",expired:"Expirado",forfeited:"Perdido",closed:"fechado"},"es-mx":{date:"Fecha concedida:",bonusName:"Nombre de bono:",bonusType:"Tipo de Bono:",bonusAmount:"valor de Bono:",wageringAmount:"Progreso de monto de apuestas (Rollover)",remainingBonus:"Saldo de bono actual:",forfeitBonus:"Declinar bono",active:"Activo",released:"Liberado",expired:"Expirado",forfeited:"Perdido",closed:"cerrado"},tr:{date:"Verilen tarih:",bonusName:"Bonus Adı",bonusType:"Bonus Türü",bonusAmount:"Bonus Tutarı",wageringAmount:"Bahis İlerlemesi (Rollover)",remainingBonus:"Mevcut Bonus Bakiyesi",forfeitBonus:"Fesih Bonusu",active:"aktif",released:"piyasaya sürülmüş",expired:"günü geçmiş",forfeited:"kaybedilen",closed:"kapalı"}};Dr=kr={path:void 0,exports:{},require:function(e,t){return kn(null==t&&kr.path)}},kr.exports,Dr.exports=(()=>{var R;function p(){return R.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function L(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Y(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(m(e,t))return;return 1}function a(e){return void 0===e}function I(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function U(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var n=[],r=e.length,o=0;o<r;++o)n.push(t(e[o],o));return n}function G(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function y(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 $(e){var t,n,r=e._d&&!isNaN(e._d.getTime());return r&&(t=y(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||(t.meridiem,n)),e._strict)&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function W(e){var t=l(NaN);return null!=e?G(y(t),e):y(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=p.momentProperties=[],z=!1;function Z(e,t){var n,r,o,i=V.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=y(t)),a(t._locale)||(e._locale=t._locale),0<i)for(n=0;n<i;n++)a(o=t[r=V[n]])||(e[r]=o);return e}function X(e){Z(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 u(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function q(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(i,s){var a=!0;return G(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,i),a){for(var e,t,n=[],r=arguments.length,o=0;o<r;o++){if(e="","object"==typeof arguments[o]){for(t in e+="\n["+o+"] ",arguments[0])m(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[o];n.push(e)}q(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var K={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(q(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 n,r=G({},e);for(n in t)m(t,n)&&(L(e[n])&&L(t[n])?(r[n]={},G(r[n],e[n]),G(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)m(e,n)&&!m(t,n)&&L(e[n])&&(r[n]=G({},r[n]));return r}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function i(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},ie={};function r(e,t,n,r){var o="string"==typeof r?function(){return this[r]()}:r;e&&(ie[e]=o),t&&(ie[t[0]]=function(){return i(o.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),oe[t]=oe[t]||(r=>{for(var e,o=r.match(ne),t=0,i=o.length;t<i;t++)ie[o[t]]?o[t]=ie[o[t]]:o[t]=(e=o[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<i;n++)t+=c(o[n])?o[n].call(e,r):o[n];return t}})(t),oe[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var ue={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function h(e){return"string"==typeof e?ue[e]||ue[e.toLowerCase()]:void 0}function le(e){var t,n,r={};for(n in e)m(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},he=/\d/,t=/\d\d/,de=/\d{3}/,fe=/\d{4}/,pe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,ye=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,be=/\d{1,4}/,ve=/[+-]?\d{1,6}/,_e=/\d+/,we=/[+-]?\d+/,Be=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,o=/[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,d=/^[1-9]\d?/,f=/^([1-9]\d|\d)/;function g(e,n,r){Me[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Te(e,t){return m(Me,e)?Me[e](t._strict,t._locale):new RegExp(b(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function b(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?v(e):t}var Me={},Se={};function w(e,n){var t,r,o=n;for("string"==typeof e&&(e=[e]),I(n)&&(o=function(e,t){t[n]=_(e)}),r=e.length,t=0;t<r;t++)Se[e[t]]=o}function Ce(e,o){w(e,function(e,t,n,r){n._w=n._w||{},o(e,n._w,n,r)})}function Ae(e){return e%4==0&&e%100!=0||e%400==0}var B=0,E=1,T=2,M=3,S=4,C=5,xe=6,ke=7,De=8;function Oe(e){return Ae(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),g("Y",we),g("YY",n,t),g("YYYY",be,fe),g("YYYYY",ve,pe),g("YYYYYY",ve,pe),w(["YYYYY","YYYYYY"],B),w("YYYY",function(e,t){t[B]=2===e.length?p.parseTwoDigitYear(e):_(e)}),w("YY",function(e,t){t[B]=p.parseTwoDigitYear(e)}),w("Y",function(e,t){t[B]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return _(e)+(68<_(e)?1900:2e3)};var A,Pe=He("FullYear",!0);function He(t,n){return function(e){return null!=e?(Re(this,t,e),p.updateOffset(this,n),this):Ne(this,t)}}function Ne(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Re(e,t,n){var r,o,i;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return o?r.setUTCMilliseconds(n):r.setMilliseconds(n);case"Seconds":return o?r.setUTCSeconds(n):r.setSeconds(n);case"Minutes":return o?r.setUTCMinutes(n):r.setMinutes(n);case"Hours":return o?r.setUTCHours(n):r.setHours(n);case"Date":return o?r.setUTCDate(n):r.setDate(n);case"FullYear":break;default:return}t=n,i=e.month(),e=29!==(e=e.date())||1!==i||Ae(t)?e:28,o?r.setUTCFullYear(t,i,e):r.setFullYear(t,i,e)}}function Le(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?Ae(e)?29:28:31-n%7%2)}A=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),g("M",n,d),g("MM",n,t),g("MMM",function(e,t){return t.monthsShortRegex(e)}),g("MMMM",function(e,t){return t.monthsRegex(e)}),w(["M","MM"],function(e,t){t[E]=_(e)-1}),w(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:y(n).invalidMonth=e});var Ye="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ue=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=o,Ge=o;function $e(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(!I(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,Le(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function We(e){return null!=e?($e(this,e),p.updateOffset(this,!0),this):Ne(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n,r=[],o=[],i=[],s=0;s<12;s++)n=l([2e3,s]),t=b(this.monthsShort(n,"")),n=b(this.months(n,"")),r.push(t),o.push(n),i.push(n),i.push(t);r.sort(e),o.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ve(e,t,n,r,o,i,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function ze(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,n){n=7+t-n;return-(7+ze(e,0,n).getUTCDay()-t)%7+n-1}function Xe(e,t,n,r,o){var i,t=1+7*(t-1)+(7+n-r)%7+Ze(e,r,o),n=t<=0?Oe(i=e-1)+t:t>Oe(e)?(i=e+1,t-Oe(e)):(i=e,t);return{year:i,dayOfYear:n}}function qe(e,t,n){var r,o,i=Ze(e.year(),t,n),i=Math.floor((e.dayOfYear()-i-1)/7)+1;return i<1?r=i+x(o=e.year()-1,t,n):i>x(e.year(),t,n)?(r=i-x(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function x(e,t,n){var r=Ze(e,t,n),t=Ze(e+1,t,n);return(Oe(e)-r+t)/7}function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),g("w",n,d),g("ww",n,t),g("W",n,d),g("WW",n,t),Ce(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=_(e)}),r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),g("d",n),g("e",n),g("E",n),g("dd",function(e,t){return t.weekdaysMinRegex(e)}),g("ddd",function(e,t){return t.weekdaysShortRegex(e)}),g("dddd",function(e,t){return t.weekdaysRegex(e)}),Ce(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:y(n).invalidWeekday=e}),Ce(["d","e","E"],function(e,t,n,r){t[r]=_(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),et="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tt=o,nt=o,rt=o;function ot(){function e(e,t){return t.length-e.length}for(var t,n,r,o=[],i=[],s=[],a=[],u=0;u<7;u++)r=l([2e3,1]).day(u),t=b(this.weekdaysMin(r,"")),n=b(this.weekdaysShort(r,"")),r=b(this.weekdays(r,"")),o.push(t),i.push(n),s.push(r),a.push(t),a.push(n),a.push(r);o.sort(e),i.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+i(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),st("a",!0),st("A",!1),g("a",at),g("A",at),g("H",n,f),g("h",n,d),g("k",n,d),g("HH",n,t),g("hh",n,t),g("kk",n,t),g("hmm",me),g("hmmss",ye),g("Hmm",me),g("Hmmss",ye),w(["H","HH"],M),w(["k","kk"],function(e,t,n){e=_(e);t[M]=24===e?0:e}),w(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),w(["h","hh"],function(e,t,n){t[M]=_(e),y(n).bigHour=!0}),w("hmm",function(e,t,n){var r=e.length-2;t[M]=_(e.substr(0,r)),t[S]=_(e.substr(r)),y(n).bigHour=!0}),w("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[M]=_(e.substr(0,r)),t[S]=_(e.substr(r,2)),t[C]=_(e.substr(o)),y(n).bigHour=!0}),w("Hmm",function(e,t,n){var r=e.length-2;t[M]=_(e.substr(0,r)),t[S]=_(e.substr(r))}),w("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[M]=_(e.substr(0,r)),t[S]=_(e.substr(r,2)),t[C]=_(e.substr(o))}),o=He("Hours",!0);var ut,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:Ye,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:et,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},k={},ct={};function ht(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ht(e[i]).split("-")).length,n=(n=ht(e[i+1]))?n.split("-"):null;0<t;){if(r=ft(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n})(o,n)>=t-1)break;t--}i++}return ut}function ft(t){var e,n;if(void 0===k[t]&&Dr&&Dr.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ut._abbr,kn(),pt(e)}catch(e){k[t]=null}return k[t]}function pt(e,t){return e&&((t=a(t)?D(e):mt(e,t))?ut=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ut._abbr}function mt(e,t){if(null===t)return delete k[e],null;var n,r=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."),r=k[e]._config;else if(null!=t.parentLocale)if(null!=k[t.parentLocale])r=k[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return k[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),pt(e),k[e]}function D(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ut;if(!s(e)){if(t=ft(e))return t;e=[e]}return dt(e)}function yt(e){var t=e._a;return t&&-2===y(e).overflow&&(t=t[E]<0||11<t[E]?E:t[T]<1||t[T]>Le(t[B],t[E])?T:t[M]<0||24<t[M]||24===t[M]&&(0!==t[S]||0!==t[C]||0!==t[xe])?M:t[S]<0||59<t[S]?S:t[C]<0||59<t[C]?C:t[xe]<0||999<t[xe]?xe:-1,y(e)._overflowDayOfYear&&(t<B||T<t)&&(t=T),y(e)._overflowWeeks&&-1===t&&(t=ke),y(e)._overflowWeekday&&-1===t&&(t=De),y(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)?)?$/,bt=/^\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)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bt=/^\/?Date\((-?\d+)/i,Et=/^(?:(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}))$/,Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e){var t,n,r,o,i,s,a=e._i,u=gt.exec(a)||bt.exec(a),a=_t.length,l=wt.length;if(u){for(y(e).iso=!0,t=0,n=a;t<n;t++)if(_t[t][1].exec(u[1])){o=_t[t][0],r=!1!==_t[t][2];break}if(null==o)return e._isValid=!1;if(u[3]){for(t=0,n=l;t<n;t++)if(wt[t][1].exec(u[3])){i=(u[2]||" ")+wt[t][0];break}if(null==i)return e._isValid=!1}if(!r&&null!=i)return e._isValid=!1;if(u[4]){if(!vt.exec(u[4]))return e._isValid=!1;s="Z"}e._f=o+(i||"")+(s||""),kt(e)}else e._isValid=!1}function St(e,t,n,r,o,i){e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ie.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&e.push(parseInt(i,10)),e}function Ct(e){var t,n,r,o,i=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=St(i[4],i[3],i[2],i[5],i[6],i[7]),n=i[1],r=t,o=e,n&&Qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(y(o).weekdayMismatch=!0,o._isValid=!1):(e._a=t,e._tzm=(n=i[8],r=i[9],o=i[10],n?Tt[n]:r?0:((n=parseInt(o,10))-(r=n%100))/100*60+r),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0)):e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,r,o,i,s,a,u,l,c,h,d=[];if(!e._d){for(c=e,h=new Date(p.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[T]&&null==e._a[E]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=At(h.GG,c._a[B],qe(O(),1,4).year),o=At(h.W,1),((i=At(h.E,1))<1||7<i)&&(u=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,l=qe(O(),s,a),r=At(h.gg,c._a[B],l.year),o=At(h.w,l.week),null!=h.d?((i=h.d)<0||6<i)&&(u=!0):null!=h.e?(i=h.e+s,(h.e<0||6<h.e)&&(u=!0)):i=s),o<1||o>x(r,s,a)?y(c)._overflowWeeks=!0:null!=u?y(c)._overflowWeekday=!0:(l=Xe(r,o,i,s,a),c._a[B]=l.year,c._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(h=At(e._a[B],n[B]),(e._dayOfYear>Oe(h)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),u=ze(h,0,e._dayOfYear),e._a[E]=u.getUTCMonth(),e._a[T]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[S]&&0===e._a[C]&&0===e._a[xe]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?ze:Ve).apply(null,d),r=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!==r&&(y(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],y(e).empty=!0;for(var t,n,r,o=""+e._i,i=o.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,u=0;u<a;u++)r=n[u],(t=(o.match(Te(r,e))||[])[0])&&(0<(h=o.substr(0,o.indexOf(t))).length&&y(e).unusedInput.push(h),o=o.slice(o.indexOf(t)+t.length),s+=t.length),ie[r]?(t?y(e).empty=!1:y(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&m(Se,h)&&Se[h](d,f._a,f,h)):e._strict&&!t&&y(e).unusedTokens.push(r);y(e).charsLeftOver=i-s,0<o.length&&y(e).unusedInput.push(o),e._a[M]<=12&&!0===y(e).bigHour&&0<e._a[M]&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[M]=(i=e._locale,l=e._a[M],null==(c=e._meridiem)?l:null!=i.meridiemHour?i.meridiemHour(l,c):null!=i.isPM?((i=i.isPM(c))&&l<12&&(l+=12),l=i||12!==l?l:0):l),null!==(c=y(e).era)&&(e._a[B]=e._locale.erasConvertYear(c,e._a[B])),xt(e),yt(e)}else Ct(e);else Mt(e);var l,c,h,d,f}function Dt(e){var t,n=e._i,r=e._f;{var o,i;return(e._locale=e._locale||D(e._l),null===n||void 0===r&&""===n)?W({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),u(n)?new X(yt(n)):(U(n)?e._d=n:s(r)?(e=>{var t,n,r,o,i,s,a=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,e._d=new Date(NaN);for(o=0;o<u;o++)i=0,s=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],kt(t),$(t)&&(s=!0),i=(i+=y(t).charsLeftOver)+10*y(t).unusedTokens.length,y(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||s)&&(r=i,n=t,s)&&(a=!0);G(e,n||t)})(e):r?kt(e):a(r=(n=e)._i)?n._d=new Date(p.now()):U(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(o=n,null===(i=Bt.exec(o._i))?(Mt(o),!1===o._isValid&&(delete o._isValid,Ct(o),!1===o._isValid)&&(delete o._isValid,o._strict?o._isValid=!1:p.createFromInputFallback(o))):o._d=new Date(+i[1])):s(r)?(n._a=F(r.slice(0),function(e){return parseInt(e,10)}),xt(n)):L(r)?(o=n)._d||(t=void 0===(i=le(o._i)).day?i.date:i.day,o._a=F([i.year,i.month,t,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),xt(o)):I(r)?n._d=new Date(r):p.createFromInputFallback(n),$(e)||(e._d=null),e))}}function Ot(e,t,n,r,o){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(L(e)&&Y(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,(o=new X(yt(Dt(o=i))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function O(e,t,n,r){return Ot(e,t,n,r,!1)}function Pt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return O();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}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(){},me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),ye=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});var Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=le(e),t=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,i=e.day||0,s=e.hour||0,a=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=(e=>{var t,n,r=!1,o=Ht.length;for(t in e)if(m(e,t)&&(-1===A.call(Ht,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Ht[n]]){if(r)return!1;parseFloat(e[Ht[n]])!==_(e[Ht[n]])&&(r=!0)}return!0})(e),this._milliseconds=+l+1e3*u+6e4*a+1e3*s*60*60,this._days=+i+7*o,this._months=+r+3*n+12*t,this._data={},this._locale=D(),this._bubble()}function Rt(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+i(~~(e/60),2)+n+i(~~e%60,2)})}Yt("Z",":"),Yt("ZZ",""),g("Z",Ee),g("ZZ",Ee),w(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(Ee,e)});var It=/([\+\-]|\d\d)/gi;function Ut(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(It)||["-",0,0])[1]+_(e[2]))?0:"+"===e[0]?t:-t}function Ft(e,t){var n;return t._isUTC?(t=t.clone(),n=(u(e)||U(e)?e:O(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),p.updateOffset(t,!1),t):O(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function $t(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Wt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function P(e,t){var n,r,o=e;return Rt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:I(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=Wt.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:_(t[T])*n,h:_(t[M])*n,m:_(t[S])*n,s:_(t[C])*n,ms:_(Lt(1e3*t[xe]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,o={y:Vt(t[2],n),M:Vt(t[3],n),w:Vt(t[4],n),d:Vt(t[5],n),h:Vt(t[6],n),m:Vt(t[7],n),s:Vt(t[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=O(o.from),n=O(o.to),t=t.isValid()&&n.isValid()?(n=Ft(n,t),t.isBefore(n)?r=zt(t,n):((r=zt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(o={}).ms=t.milliseconds,o.M=t.months),r=new Nt(o),Rt(e)&&m(e,"_locale")&&(r._locale=e._locale),Rt(e)&&m(e,"_isValid")&&(r._isValid=e._isValid),r}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zt(r,o){return function(e,t){var n;return null===t||isNaN(+t)||(J(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Xt(this,P(e,t),r),this}}function Xt(e,t,n,r){var o=t._milliseconds,i=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&$e(e,Ne(e,"Month")+t*n),i&&Re(e,"Date",Ne(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r)&&p.updateOffset(e,i||t)}function qt(e){return"string"==typeof e||e instanceof String}function Kt(e){return u(e)||U(e)||qt(e)||I(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!I(e)&&qt(t)}).length),n&&r)||(e=>{var t,n,r=L(e)&&!Y(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],o=o||m(e,n);return r&&o})(e)||null==e;var t,n,r}function Jt(e,t){var n,r;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Qt(e){return void 0===e?this._locale._abbr:(null!=(e=D(e))&&(this._locale=e),this)}function en(){return this._locale}P.fn=Nt.prototype,P.invalid=function(){return P(NaN)},Ye=Zt(1,"add"),Je=Zt(-1,"subtract"),p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",et=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)});var tn=126227808e5;function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function an(){for(var e,t,n,r=[],o=[],i=[],s=[],a=this.eras(),u=0,l=a.length;u<l;++u)e=b(a[u].name),t=b(a[u].abbr),n=b(a[u].narrow),o.push(e),r.push(t),i.push(n),s.push(e),s.push(t),s.push(n);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function un(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,o){var i;return null==e?qe(this,r,o).year:(t>(i=x(e,r,o))&&(t=i),function(e,t,n,r,o){e=Xe(e,t,n,r,o),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,o))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),g("N",sn),g("NN",sn),g("NNN",sn),g("NNNN",function(e,t){return t.erasNameRegex(e)}),g("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),w(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?y(n).era=r:y(n).invalidEra=e}),g("y",_e),g("yy",_e),g("yyy",_e),g("yyyy",_e),g("yo",function(e,t){return t._eraYearOrdinalRegex||_e}),w(["y","yy","yyy","yyyy"],B),w(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[B]=n._locale.eraYearOrdinalParse(e,o):t[B]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),g("G",we),g("g",we),g("GG",n,t),g("gg",n,t),g("GGGG",be,fe),g("gggg",be,fe),g("GGGGG",ve,pe),g("ggggg",ve,pe),Ce(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=_(e)}),Ce(["gg","GG"],function(e,t,n,r){t[r]=p.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),g("Q",he),w("Q",function(e,t){t[E]=3*(_(e)-1)}),r("D",["DD",2],"Do","date"),g("D",n,d),g("DD",n,t),g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),w(["D","DD"],T),w("Do",function(e,t){t[T]=_(e.match(n)[0])}),be=He("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",ge),g("DDDD",de),w(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),r("m",["mm",2],0,"minute"),g("m",n,f),g("mm",n,t),w(["m","mm"],S),fe=He("Minutes",!1),r("s",["ss",2],0,"second"),g("s",n,f),g("ss",n,t),w(["s","ss"],C);var cn,ve=He("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),g("S",ge,he),g("SS",ge,t),g("SSS",ge,de),cn="SSSS";cn.length<=9;cn+="S")g(cn,_e);function hn(e,t){t[xe]=_(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")w(cn,hn);function dn(e){return e}function fn(e,t,n,r){var o=D(),r=l().set(r,t);return o[n](r,e)}function pn(e,t,n){if(I(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");for(var r=[],o=0;o<12;o++)r[o]=fn(e,o,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),I(t)&&(n=t,t=void 0),t||"");var o,i=D(),s=e?i._week.dow:0,a=[];if(null!=n)return fn(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=fn(t,(o+s)%7,r,"day");return a}pe=He("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName"),(d=X.prototype).add=Ye,d.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=L(e)&&!Y(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<r.length;o+=1)n=n||m(e,r[o]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||O(),n=Ft(e,this).startOf("day"),n=p.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,O(e)))},d.clone=function(){return new X(this)},d.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":i=Jt(this,r)/12;break;case"month":i=Jt(this,r);break;case"quarter":i=Jt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:v(i)},d.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}this._d.setTime(t),p.updateOffset(this,!0)}return this},d.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=se(this,e),this.localeData().postformat(e)},d.from=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||O(e).isValid())?P({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},d.fromNow=function(e){return this.from(O(),e)},d.to=function(e,t){return this.isValid()&&(u(e)&&e.isValid()||O(e).isValid())?P({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},d.toNow=function(e){return this.to(O(),e)},d.get=function(e){return c(this[e=h(e)])?this[e]():this},d.invalidAt=function(){return y(this).overflow},d.isAfter=function(e,t){return e=u(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},d.isBefore=function(e,t){return e=u(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},d.isBetween=function(e,t,n,r){return e=u(e)?e:O(e),t=u(t)?t:O(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},d.isSame=function(e,t){var e=u(e)?e:O(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},d.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},d.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},d.isValid=function(){return $(this)},d.lang=et,d.locale=Qt,d.localeData=en,d.max=ye,d.min=me,d.parsingFlags=function(){return G({},y(this))},d.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=le(e)),r=n.length,o=0;o<r;o++)this[n[o].unit](e[n[o].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},d.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}this._d.setTime(t),p.updateOffset(this,!0)}return this},d.subtract=Je,d.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},d.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()}},d.toDate=function(){return new Date(this.valueOf())},d.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(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",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},d.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},d.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},d.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},d.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},d.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},d.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,o=n.length;r<o;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-p(n[r].since).year())*e+n[r].offset;return this.year()},d.year=Pe,d.isLeapYear=function(){return Ae(this.year())},d.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},d.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},d.quarter=d.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},d.month=We,d.daysInMonth=function(){return Le(this.year(),this.month())},d.week=d.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},d.isoWeek=d.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},d.weeksInYear=function(){var e=this.localeData()._week;return x(this.year(),e.dow,e.doy)},d.weeksInWeekYear=function(){var e=this.localeData()._week;return x(this.weekYear(),e.dow,e.doy)},d.isoWeeksInYear=function(){return x(this.year(),1,4)},d.isoWeeksInISOWeekYear=function(){return x(this.isoWeekYear(),1,4)},d.date=be,d.day=d.days=function(e){var t,n,r;return this.isValid()?(t=Ne(this,"Day"),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},d.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},d.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},d.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")},d.hour=d.hours=o,d.minute=d.minutes=fe,d.second=d.seconds=ve,d.millisecond=d.milliseconds=pe,d.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Gt(this);if("string"==typeof e){if(null===(e=Ut(Ee,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Gt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,P(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},d.utc=function(e){return this.utcOffset(0,e)},d.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Gt(this),"m"),this},d.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ut(Be,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},d.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?O(e).utcOffset():0,(this.utcOffset()-e)%60==0)},d.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},d.isLocal=function(){return!!this.isValid()&&!this._isUTC},d.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},d.isUtc=$t,d.isUTC=$t,d.zoneAbbr=function(){return this._isUTC?"UTC":""},d.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},d.dates=e("dates accessor is deprecated. Use date instead.",be),d.months=e("months accessor is deprecated. Use month instead",We),d.years=e("years accessor is deprecated. Use year instead",Pe),d.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()}),d.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(Z(t={},this),(t=Dt(t))._a?(e=(t._isUTC?l:O)(t._a),this._isDSTShifted=this.isValid()&&0<((e,t,n)=>{for(var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&_(e[s])!==_(t[s]))&&i++;return i+o})(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(f=ee.prototype).calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},f.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},f.invalidDate=function(){return this._invalidDate},f.ordinal=function(e){return this._ordinal.replace("%d",e)},f.preparse=dn,f.postformat=dn,f.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return c(o)?o(e,t,n,r):o.replace(/%d/i,e)},f.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},f.set=function(e){var t,n;for(n in e)m(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},f.eras=function(e,t){for(var n,r=this._eras||D("en")._eras,o=0,i=r.length;o<i;++o)switch("string"==typeof r[o].since&&(n=p(r[o].since).startOf("day"),r[o].since=n.valueOf()),typeof r[o].until){case"undefined":r[o].until=1/0;break;case"string":n=p(r[o].until).startOf("day").valueOf(),r[o].until=n.valueOf()}return r},f.erasParse=function(e,t,n){var r,o,i,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if(0<=[i,s,a].indexOf(e))return u[r]},f.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*n},f.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},f.erasNameRegex=function(e){return m(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},f.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},f.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Ue).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},f.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Ue.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},f.monthsParse=function(e,t,n){var r,o;if(this._monthsParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=l([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=A.call(this._shortMonthsParse,e))?o:null:-1!==(o=A.call(this._longMonthsParse,e))?o:null:"MMM"===t?-1!==(o=A.call(this._shortMonthsParse,e))||-1!==(o=A.call(this._longMonthsParse,e))?o:null:-1!==(o=A.call(this._longMonthsParse,e))||-1!==(o=A.call(this._shortMonthsParse,e))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},f.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ge),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},f.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},f.week=function(e){return qe(e,this._week.dow,this._week.doy).week},f.firstDayOfYear=function(){return this._week.doy},f.firstDayOfWeek=function(){return this._week.dow},f.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ke(t,this._week.dow):e?t[e.day()]:t},f.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},f.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},f.weekdaysParse=function(e,t,n){var r,o;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=A.call(this._weekdaysParse,e))?o:null:"ddd"===t?-1!==(o=A.call(this._shortWeekdaysParse,e))?o:null:-1!==(o=A.call(this._minWeekdaysParse,e))?o:null:"dddd"===t?-1!==(o=A.call(this._weekdaysParse,e))||-1!==(o=A.call(this._shortWeekdaysParse,e))||-1!==(o=A.call(this._minWeekdaysParse,e))?o:null:"ddd"===t?-1!==(o=A.call(this._shortWeekdaysParse,e))||-1!==(o=A.call(this._weekdaysParse,e))||-1!==(o=A.call(this._minWeekdaysParse,e))?o:null:-1!==(o=A.call(this._minWeekdaysParse,e))||-1!==(o=A.call(this._weekdaysParse,e))||-1!==(o=A.call(this._shortWeekdaysParse,e))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},f.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=tt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},f.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},f.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},f.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},f.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},pt("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===_(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.",pt),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",D);var H=Math.abs;function yn(e,t,n,r){t=P(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function _n(e){return function(){return this.as(e)}}function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}he=_n("ms"),t=_n("s"),ge=_n("m"),de=_n("h"),Ye=_n("d"),ye=_n("w"),me=_n("M"),Je=_n("Q"),o=_n("y"),fe=he;var ve=wn("milliseconds"),pe=wn("seconds"),be=wn("minutes"),Pe=wn("hours"),f=wn("days"),Bn=wn("months"),En=wn("years"),Tn=Math.round,Mn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sn(e,t,n,r){var o=P(e).abs(),i=Tn(o.as("s")),s=Tn(o.as("m")),a=Tn(o.as("h")),u=Tn(o.as("d")),l=Tn(o.as("M")),c=Tn(o.as("w")),o=Tn(o.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(u<=1?["d"]:u<n.d&&["dd",u]);return(i=(i=null!=n.w?i||(c<=1?["w"]:c<n.w&&["ww",c]):i)||(l<=1?["M"]:l<n.M&&["MM",l])||(o<=1?["y"]:["yy",o]))[2]=t,i[3]=0<+e,i[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,i)}var Cn=Math.abs;function An(e){return(0<e)-(e<0)||+e}function xn(){var e,t,n,r,o,i,s,a,u,l,c;return this.isValid()?(a=Cn(this._milliseconds)/1e3,u=Cn(this._days),l=Cn(this._months),(c=this.asSeconds())?(e=v(a/60),t=v(e/60),a%=60,e%=60,n=v(l/12),l%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",o=An(this._months)!==An(c)?"-":"",i=An(this._days)!==An(c)?"-":"",s=An(this._milliseconds)!==An(c)?"-":"",(c<0?"-":"")+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(u?i+u+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"):this.localeData().invalidDate()}var N=Nt.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=H(this._milliseconds),this._days=H(this._days),this._months=H(this._months),e.milliseconds=H(e.milliseconds),e.seconds=H(e.seconds),e.minutes=H(e.minutes),e.hours=H(e.hours),e.months=H(e.months),e.years=H(e.years),this},N.add=function(e,t){return yn(this,e,t,1)},N.subtract=function(e,t){return yn(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},N.asMilliseconds=he,N.asSeconds=t,N.asMinutes=ge,N.asHours=de,N.asDays=Ye,N.asWeeks=ye,N.asMonths=me,N.asQuarters=Je,N.asYears=o,N.valueOf=fe,N._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=v(e/1e3),r.seconds=e%60,e=v(e/60),r.minutes=e%60,e=v(e/60),r.hours=e%24,t+=v(e/24),n+=e=v(bn(t)),t-=gn(vn(e)),e=v(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},N.clone=function(){return P(this)},N.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ve,N.seconds=pe,N.minutes=be,N.hours=Pe,N.days=f,N.weeks=function(){return v(this.days()/7)},N.months=Bn,N.years=En,N.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=Mn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Mn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Sn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=xn,N.toString=xn,N.toJSON=xn,N.locale=Qt,N.localeData=en,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),N.lang=et,r("X",0,0,"unix"),r("x",0,0,"valueOf"),g("x",we),g("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),w("x",function(e,t,n){n._d=new Date(_(e))}),p.version="2.30.1",R=O,p.fn=d,p.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},p.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=l,p.unix=function(e){return O(1e3*e)},p.months=function(e,t){return pn(e,t,"months")},p.isDate=U,p.locale=pt,p.invalid=W,p.duration=P,p.isMoment=u,p.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},p.parseZone=function(){return O.apply(null,arguments).parseZone()},p.localeData=D,p.isDuration=Rt,p.monthsShort=function(e,t){return pn(e,t,"monthsShort")},p.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},p.defineLocale=mt,p.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=k[e]&&null!=k[e].parentLocale?k[e].set(Q(k[e]._config,t)):(t=Q(r=null!=(n=ft(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=k[e],k[e]=r),pt(e)):null!=k[e]&&(null!=k[e].parentLocale?(k[e]=k[e].parentLocale,e===pt()&&pt(e)):null!=k[e]&&delete k[e]),k[e]},p.locales=function(){return te(k)},p.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},p.normalizeUnits=h,p.relativeTimeRounding=function(e){return void 0===e?Tn:"function"==typeof e&&(Tn=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Mn[e]&&(void 0===t?Mn[e]:(Mn[e]=t,"s"===e&&(Mn.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=d,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 kr,Dr,Or=kr.exports;function Pr(e){let n,r,o,i,s,a,u,l,c=e[9]("bonusAmount")+"";return{c(){n=t("div"),r=t("p"),o=V(c),i=z(),s=t("p"),a=V(e[3]),u=z(),l=V(e[6]),Z(r,"class","BonusCardRowTitle"),Z(s,"class","BonusCardRowText"),Z(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("bonusAmount")+"")&&X(o,c),8&t&&X(a,e[3]),64&t&&X(l,e[6])},d(e){e&&j(n)}}}function Hr(e){let n,r,o,i,s,a,u,l,c=e[9]("wageringAmount")+"";return{c(){n=t("div"),r=t("p"),o=V(c),i=z(),s=t("p"),a=V(e[4]),u=z(),l=V(e[6]),Z(r,"class","BonusCardRowTitle"),Z(s,"class","BonusCardRowText"),Z(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("wageringAmount")+"")&&X(o,c),16&t&&X(a,e[4]),64&t&&X(l,e[6])},d(e){e&&j(n)}}}function Nr(e){let n,r,o,i,s,a,u,l,c=e[9]("remainingBonus")+"";return{c(){n=t("div"),r=t("p"),o=V(c),i=z(),s=t("p"),a=V(e[5]),u=z(),l=V(e[6]),Z(r,"class","BonusCardRowTitle"),Z(s,"class","BonusCardRowText"),Z(n,"class","BonusCardRow")},m(e,t){W(e,n,t),$(n,r),$(r,o),$(n,i),$(n,s),$(s,a),$(s,u),$(s,l)},p(e,t){512&t&&c!==(c=e[9]("remainingBonus")+"")&&X(o,c),32&t&&X(a,e[5]),64&t&&X(l,e[6])},d(e){e&&j(n)}}}function Rr(n){let r,o,i,s,a=n[9]("forfeitBonus")+"";return{c(){r=t("button"),o=V(a),Z(r,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){W(e,r,t),$(r,o),i||(s=R(r,"click",n[11]),i=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&X(o,a)},d(e){e&&j(r),i=!1,s()}}}function Lr(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,v,_,w,Y,B,E,T,I,M,S,U,C,A,F,x=n[9]("date")+"",k=Or(n[0]).format("DD/MM/YYYY h:mm A")+"",D=n[9](""+n[1])+"",O=n[9]("bonusName")+"",P=n[9]("bonusType")+"",H=n[3]&&Pr(n),N=n[4]&&Hr(n),R=n[5]&&Nr(n),L="active"===n[1]&&Rr(n);return{c(){r=t("div"),o=t("div"),i=t("div"),s=t("p"),a=V(x),u=z(),l=t("span"),c=V(k),h=z(),d=t("p"),f=V(D),m=z(),y=t("div"),g=t("p"),b=V(O),v=z(),_=t("p"),w=V(n[2]),Y=z(),B=t("div"),E=t("p"),T=V(P),I=z(),M=t("p"),S=V(n[8]),U=z(),H&&H.c(),C=z(),N&&N.c(),A=z(),R&&R.c(),F=z(),L&&L.c(),this.c=G,Z(s,"class","BonusCardRowTitle"),Z(d,"class",p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),Z(i,"class","BonusCardRow"),Z(g,"class","BonusCardRowTitle"),Z(_,"class","BonusCardRowText"),Z(y,"class","BonusCardRow"),Z(E,"class","BonusCardRowTitle"),Z(M,"class","BonusCardRowText TextCapitalize"),Z(B,"class","BonusCardRow"),Z(o,"class","BonusCardInfo"),Z(r,"class","BonusCard")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(s,u),$(s,l),$(l,c),$(i,h),$(i,d),$(d,f),$(o,m),$(o,y),$(y,g),$(g,b),$(y,v),$(y,_),$(_,w),$(o,Y),$(o,B),$(B,E),$(E,T),$(B,I),$(B,M),$(M,S),$(o,U),H&&H.m(o,null),$(o,C),N&&N.m(o,null),$(o,A),R&&R.m(o,null),$(r,F),L&&L.m(r,null),n[18](r)},p(e,[t]){512&t&&x!==(x=e[9]("date")+"")&&X(a,x),1&t&&k!==(k=Or(e[0]).format("DD/MM/YYYY h:mm A")+"")&&X(c,k),514&t&&D!==(D=e[9](""+e[1])+"")&&X(f,D),2&t&&p!==(p="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&Z(d,"class",p),512&t&&O!==(O=e[9]("bonusName")+"")&&X(b,O),4&t&&X(w,e[2]),512&t&&P!==(P=e[9]("bonusType")+"")&&X(T,P),256&t&&X(S,e[8]),e[3]?H?H.p(e,t):((H=Pr(e)).c(),H.m(o,C)):H&&(H.d(1),H=null),e[4]?N?N.p(e,t):((N=Hr(e)).c(),N.m(o,A)):N&&(N.d(1),N=null),e[5]?R?R.p(e,t):((R=Nr(e)).c(),R.m(o,null)):R&&(R.d(1),R=null),"active"===e[1]?L?L.p(e,t):((L=Rr(e)).c(),L.m(r,null)):L&&(L.d(1),L=null)},i:G,o:G,d(e){e&&j(r),H&&H.d(),N&&N.d(),R&&R.d(),L&&L.d(),n[18](null)}}}function Yr(t,e,n){let r;O(t,Tr,e=>n(9,r=e));let o,{bonuswalletid:i=""}=e,{bonusdate:s=""}=e,{bonusstatus:a=""}=e,{bonusname:u=""}=e,{bonustype:l=""}=e,{bonusamount:c=""}=e,{bonuswageringamount:h=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:f=""}=e,{lang:p="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,b=window.navigator.userAgent,v="PC"!==Mr(b),_="";Object.keys(xr).forEach(e=>{Ar(e,xr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,i=e.bonuswalletid),"bonusdate"in e&&n(0,s=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,u=e.bonusname),"bonustype"in e&&n(13,l=e.bonustype),"bonusamount"in e&&n(3,c=e.bonusamount),"bonuswageringamount"in e&&n(4,h=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,f=e.bonuscurrency),"lang"in e&&n(14,p=e.lang),"clientstyling"in e&&n(15,m=e.clientstyling),"clientstylingurl"in e&&n(16,y=e.clientstylingurl),"translationurl"in e&&n(17,g=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&p&&(e=p,D.set(e)),8192&t.$$.dirty&&l&&(n(8,_=l),"freeRound"===_?n(8,_="Free Spins"):"freeBet"===_&&n(8,_="Free Bet")),65664&t.$$.dirty&&y&&o){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e;32896&t.$$.dirty&&m&&o&&((e=document.createElement("style")).innerHTML=m,o.appendChild(e)),131072&t.$$.dirty&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,u,c,h,d,f,o,_,r,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:i},window.location.href)},i,l,p,m,y,g,function(e){U[e?"unshift":"push"](()=>{o=e,n(7,o)})}]}function Ir(e,t,n){e=e.slice();return e[46]=t[n],e[48]=n,e}function Ur(e,t,n){e=e.slice();return e[49]=t[n],e}function Fr(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g,b,v,_,w,B,E,T,M=n[14]("titleBonuses")+"",S=n[14]("bonusCode")+"",C=n[14]("getBonus")+"",A=n[15]&&(n=>{let r,o,i,s,a,u,l,c,h,d,f,p,m,y=n[14]("titleBonuses")+"";return{c(){r=t("div"),o=e("svg"),i=e("defs"),s=e("style"),a=V(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),u=e("g"),l=e("g"),c=e("path"),h=z(),d=t("h2"),f=V(y),Z(c,"class","aaa"),Z(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),Z(c,"transform","translate(15 15) rotate(180)"),Z(l,"transform","translate(20 158)"),Z(u,"transform","translate(-20 -158)"),Z(o,"xmlns","http://www.w3.org/2000/svg"),Z(o,"width","15"),Z(o,"height","15"),Z(o,"viewBox","0 0 15 15"),Z(d,"class","ActiveBonusesTitleMobile"),Z(r,"class","MenuReturnButton")},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(o,u),$(u,l),$(l,c),$(r,h),$(r,d),$(d,f),p||(m=R(r,"click",n[28]),p=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("titleBonuses")+"")&&X(f,y)},d(e){e&&j(r),p=!1,m()}}})(n),x=n[5]&&Gr(n);function k(e){return 0===e[12].length?Wr:$r}let D=k(n),O=D(n),P=0!==n[12].length&&Zr(n),H=n[13]&&qr(n);return{c(){r=t("div"),A&&A.c(),o=z(),i=t("h2"),s=V(M),a=z(),u=t("div"),l=t("label"),c=V(S),h=z(),d=t("div"),f=t("input"),p=z(),m=t("button"),y=V(C),g=z(),x&&x.c(),b=z(),v=t("div"),O.c(),_=z(),P&&P.c(),w=z(),H&&H.c(),B=L(),Z(i,"class","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),Z(l,"for","BonusCode"),Z(f,"class","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),Z(f,"type","text"),Z(f,"id","BonusCode"),Z(m,"class","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),m.disabled=n[4],Z(d,"class","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),Z(u,"class","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),Z(v,"class","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),Z(r,"class","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){W(e,r,t),A&&A.m(r,null),$(r,o),$(r,i),$(i,s),$(r,a),$(r,u),$(u,l),$(l,c),$(u,h),$(u,d),$(d,f),Y(f,n[6]),$(d,p),$(d,m),$(m,y),$(u,g),x&&x.m(u,null),$(r,b),$(r,v),O.m(v,null),$(r,_),P&&P.m(r,null),W(e,w,t),H&&H.m(e,t),W(e,B,t),E||(T=[R(f,"input",n[29]),R(f,"keyup",n[17]),R(m,"click",n[22](n[19]))],E=!0)},p(e,t){e[15]&&A.p(e,t),16384&t[0]&&M!==(M=e[14]("titleBonuses")+"")&&X(s,M),16384&t[0]&&S!==(S=e[14]("bonusCode")+"")&&X(c,S),64&t[0]&&f.value!==e[6]&&Y(f,e[6]),16384&t[0]&&C!==(C=e[14]("getBonus")+"")&&X(y,C),16&t[0]&&(m.disabled=e[4]),e[5]?x?x.p(e,t):((x=Gr(e)).c(),x.m(u,null)):x&&(x.d(1),x=null),D===(D=k(e))&&O?O.p(e,t):(O.d(1),(O=D(e))&&(O.c(),O.m(v,null))),0!==e[12].length?P?P.p(e,t):((P=Zr(e)).c(),P.m(r,null)):P&&(P.d(1),P=null),e[13]?H?H.p(e,t):((H=qr(e)).c(),H.m(B.parentNode,B)):H&&(H.d(1),H=null)},d(e){e&&j(r),A&&A.d(),x&&x.d(),O.d(),P&&P.d(),e&&j(w),H&&H.d(e),e&&j(B),E=!1,N(T)}}}function Gr(e){let n,r,o=e[14]("invalidBonusCode")+"";return{c(){n=t("p"),r=V(o),Z(n,"class","InvalidBonusCodeMessage")},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("invalidBonusCode")+"")&&X(r,o)},d(e){e&&j(n)}}}function $r(t){let o,i=t[12],s=[];for(let e=0;e<i.length;e+=1)s[e]=zr(Ur(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();o=L()},m(t,n){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,n);W(t,o,n)},p(t,n){if(4103&n[0]){let e;for(i=t[12],e=0;e<i.length;e+=1){var r=Ur(t,i,e);s[e]?s[e].p(r,n):(s[e]=zr(r),s[e].c(),s[e].m(o.parentNode,o))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&j(o)}}}function Wr(e){let n,r,o=e[14]("noActiveBonuses")+"";return{c(){n=t("p"),r=V(o)},m(e,t){W(e,n,t),$(n,r)},p(e,t){16384&t[0]&&o!==(o=e[14]("noActiveBonuses")+"")&&X(r,o)},d(e){e&&j(n)}}}function jr(e){let n,r,o,i,s,a,u,l,c,h;return{c(){d(n=t("player-bonus-card"),"bonuswalletid",r=e[49].walletId),d(n,"bonusdate",o=e[49].granted),d(n,"bonusstatus",i=e[49].status),d(n,"bonusname",s=e[49].name),d(n,"bonustype",a=e[49].type),d(n,"bonusamount",u=e[49].extension.grantedPlayerCurrencyAmount),d(n,"bonuswageringamount",l=e[49].fulfilledWR+" / "+e[49].originalWageringRequirement),d(n,"bonusremainingamount",c=e[49].currentAmount),d(n,"bonuscurrency",h=e[49].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[49].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[49].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[49].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[49].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[49].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[49].extension.grantedPlayerCurrencyAmount)&&d(n,"bonusamount",u),4096&t[0]&&l!==(l=e[49].fulfilledWR+" / "+e[49].originalWageringRequirement)&&d(n,"bonuswageringamount",l),4096&t[0]&&c!==(c=e[49].currentAmount)&&d(n,"bonusremainingamount",c),4096&t[0]&&h!==(h=e[49].currency)&&d(n,"bonuscurrency",h),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function Vr(e){let n,r,o,i,s,a,u;return{c(){d(n=t("player-bonus-card"),"bonuswalletid",r=e[49].walletId),d(n,"bonusdate",o=e[49].granted),d(n,"bonusstatus",i=e[49].status),d(n,"bonusname",s=e[49].name),d(n,"bonustype",a=e[49].type),d(n,"bonuscurrency",u=e[49].currency),d(n,"lang",e[0]),d(n,"clientstyling",e[1]),d(n,"clientstylingurl",e[2])},m(e,t){W(e,n,t)},p(e,t){4096&t[0]&&r!==(r=e[49].walletId)&&d(n,"bonuswalletid",r),4096&t[0]&&o!==(o=e[49].granted)&&d(n,"bonusdate",o),4096&t[0]&&i!==(i=e[49].status)&&d(n,"bonusstatus",i),4096&t[0]&&s!==(s=e[49].name)&&d(n,"bonusname",s),4096&t[0]&&a!==(a=e[49].type)&&d(n,"bonustype",a),4096&t[0]&&u!==(u=e[49].currency)&&d(n,"bonuscurrency",u),1&t[0]&&d(n,"lang",e[0]),2&t[0]&&d(n,"clientstyling",e[1]),4&t[0]&&d(n,"clientstylingurl",e[2])},d(e){e&&j(n)}}}function zr(e){let n;function r(e){return"freeRound"===e[49].type?Vr:jr}let o=r(e),i=o(e);return{c(){i.c(),n=L()},m(e,t){i.m(e,t),W(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),(i=o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&j(n)}}}function Zr(n){let o,i,r,e,s,a,u,l,c,h,d,f,p,m,y,g,b,v,_,w=Array(n[10]),B=[];for(let e=0;e<w.length;e+=1)B[e]=Xr(Ir(n,w,e));return{c(){o=t("div"),i=t("span"),r=V("|<"),s=z(),a=t("span"),u=V("<"),c=z();for(let e=0;e<B.length;e+=1)B[e].c();h=z(),d=t("span"),f=V(">"),m=z(),y=t("span"),g=V(">|"),Z(i,"class",e="BonusesFirst "+(0===n[11]?"Inactive":"")),Z(a,"class",l="BonusesPrev "+(0===n[11]?"Inactive":"")),Z(d,"class",p="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),Z(y,"class",b="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),Z(o,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){W(e,o,t),$(o,i),$(i,r),$(o,s),$(o,a),$(a,u),$(o,c);for(let e=0;e<B.length;e+=1)B[e]&&B[e].m(o,null);$(o,h),$(o,d),$(d,f),$(o,m),$(o,y),$(y,g),v||(_=[R(i,"click",n[30]),R(a,"click",n[31]),R(d,"click",n[33]),R(y,"click",n[34])],v=!0)},p(t,n){if(2048&n[0]&&e!==(e="BonusesFirst "+(0===t[11]?"Inactive":""))&&Z(i,"class",e),2048&n[0]&&l!==(l="BonusesPrev "+(0===t[11]?"Inactive":""))&&Z(a,"class",l),265216&n[0]){let e;for(w=Array(t[10]),e=0;e<w.length;e+=1){var r=Ir(t,w,e);B[e]?B[e].p(r,n):(B[e]=Xr(r),B[e].c(),B[e].m(o,h))}for(;e<B.length;e+=1)B[e].d(1);B.length=w.length}3072&n[0]&&p!==(p="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&Z(d,"class",p),3072&n[0]&&b!==(b="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&Z(y,"class",b)},d(e){e&&j(o),k(B,e),v=!1,N(_)}}}function Xr(n){let r,o,i,s,a,e=n[48]+1+"";function u(){return n[32](n[48])}return{c(){r=t("span"),o=V(e),Z(r,"class",i="BonusesPage "+(n[48]===n[11]?"BonusPageActive":""))},m(e,t){W(e,r,t),$(r,o),s||(a=R(r,"click",u),s=!0)},p(e,t){n=e,2048&t[0]&&i!==(i="BonusesPage "+(n[48]===n[11]?"BonusPageActive":""))&&Z(r,"class",i)},d(e){e&&j(r),s=!1,a()}}}function qr(n){let r,o,i,s,a,u,l,c,h,d,f,p,m,y,g=n[14]("forfeitBonus")+"",b=n[14]("forfeitBonusCancel")+"",v=n[14]("forfeitBonusConfirm")+"";return{c(){r=t("div"),o=t("div"),i=t("div"),s=t("p"),a=V(g),u=z(),l=t("div"),c=t("button"),h=V(b),d=z(),f=t("button"),p=V(v),Z(s,"class","ModalText"),Z(c,"class","ModalCancel"),Z(f,"class","ModalConfirm"),Z(l,"class","ModalButtons"),Z(i,"class","ModalBody"),Z(o,"class","ModalContent"),Z(r,"class","ModalWrapper "+(n[15]?"ModalWrapperMobile":""))},m(e,t){W(e,r,t),$(r,o),$(o,i),$(i,s),$(s,a),$(i,u),$(i,l),$(l,c),$(c,h),$(l,d),$(l,f),$(f,p),m||(y=[R(c,"click",n[20]),R(f,"click",n[22](n[21]))],m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("forfeitBonus")+"")&&X(a,g),16384&t[0]&&b!==(b=e[14]("forfeitBonusCancel")+"")&&X(h,b),16384&t[0]&&v!==(v=e[14]("forfeitBonusConfirm")+"")&&X(p,v)},d(e){e&&j(r),m=!1,N(y)}}}function Kr(n){let r,o=Fr(n);return{c(){r=t("div"),o.c(),this.c=G},m(e,t){W(e,r,t),o.m(r,null),n[35](r)},p(e,t){o.p(e,t)},i:G,o:G,d(e){e&&j(r),o.d(),n[35](null)}}}function Jr(t,e,r){let n;O(t,Tr,e=>r(14,n=e));let o,i,{endpoint:s=""}=e,{session:a=""}=e,{playerid:u=""}=e,{lang:l="en"}=e,{playercurrency:c=""}=e,{clientstyling:h=""}=e,{clientstylingurl:d=""}=e,{translationurl:f=""}=e,p=window.navigator.userAgent,m="PC"!==Mr(p),y,g=!1,b="",v=0,_=0,w=0,B=0,E=0,T=[],M="",S=!1,C=(Object.keys(Cr).forEach(e=>{Sr(e,Cr[e])}),e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(M=e.data.bonuswalletid,r(13,S=!0))}),A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},x=t=>{var e={method:"GET",headers:{"X-SessionId":a}},n=new URL(`${s}/v1/player/${u}/bonusWallet`);n.searchParams.append("filter","status=active"),n.searchParams.append("pagination",`offset=${t},limit=6`),fetch(n,e).then(e=>e.json()).then(e=>{r(10,B=Math.ceil(e.total/6)),0<=t-6&&r(7,v=t-6),t+6<e.total&&r(8,_=t+6),r(9,w=6*(B-1)),r(11,E=t/6),r(12,T=e.items),window.scrollTo({top:0,behavior:"smooth"})},e=>{console.error(e)})},k=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,S=!1)};return e=()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}),(()=>{if(H)return H;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e),t.$$set=e=>{"endpoint"in e&&r(23,s=e.endpoint),"session"in e&&r(24,a=e.session),"playerid"in e&&r(25,u=e.playerid),"lang"in e&&r(0,l=e.lang),"playercurrency"in e&&r(26,c=e.playercurrency),"clientstyling"in e&&r(1,h=e.clientstyling),"clientstylingurl"in e&&r(2,d=e.clientstylingurl),"translationurl"in e&&r(27,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,D.set(e)),58720256&t.$$.dirty[0]&&a&&u&&s&&x(0),12&t.$$.dirty[0]&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&o&&((e=document.createElement("style")).innerHTML=h,o.appendChild(e)),134217728&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sr(e,t[e])})}).catch(e=>{console.log(e)})},[l,h,d,o,!0,g,b,v,_,w,B,E,T,S,n,m,A,()=>{r(4,y=!b)},x,()=>{var e=new URL(`${s}/v1/player/${u}/claimbonus`),t={method:"POST",headers:{"X-SessionId":a,accept:"application/json"}};e.searchParams.append("currency",c),e.searchParams.append("bonusCode",b),fetch(e.href,t).then(e=>{200==e.status?(r(5,g=!1),x(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage")}},window.location.href),"function"==typeof gtag&>ag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(u||"Not logged in"),bonusCode:""+b})):(r(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("errorMessage")}},window.location.href))})},k,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${s}/v1/player/${u}/bonusWallet`);t.searchParams.append("bonusWalletID",M),fetch(t,e).then(e=>{200==e.status&&(x(0),k())})},function(e){return function(t){return(...e)=>{clearTimeout(i),i=setTimeout(()=>{t.apply(this,e)},1e3)}}(e)},s,a,u,c,f,()=>A(),function(){b=this.value,r(6,b)},()=>x(0),()=>x(v),e=>x(6*e),()=>x(_),()=>x(w),function(e){U[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends re{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emw--color-white, #FFFFFF);padding:10px 20px 20px;border-radius:var(--emw--border-radius-large, 20px);box-shadow:0px 5px 12px 5px var(--emw--color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:var(--emw--font-size-small, 14px)}.BonusCardRow .BonusCardRowTitle{color:var(--emw--color-typography-cotrast, #444444);font-weight:var(--emw--font-weight-bold, 700)}.BonusCardRow .BonusCardRowTitle span{font-weight:var(--emw--font-weigh-normal, 400);color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:var(--emw--font-weight-bold, 700);color:vvar(--emw--color-typography-cotrast, #444444)}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emw--color-valid, #48952a)}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emw--color-error, #FD2839)}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emw--color-gray-50, #F9F8F8);border-radius:var(--emw--border-radius-small, 5px)}.DeleteBonus{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:var(--emw--border-radius-small, 5px);width:50%;height:44px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},Yr,Lr,A,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),p()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),p()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),p()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),p()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),p()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),p()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),p()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),p()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}});class Qr extends re{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),ne(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},Jr,Kr,A,{endpoint:23,session:24,playerid:25,lang:0,playercurrency:26,clientstyling:1,clientstylingurl:2,translationurl:27},null,[-1,-1]),e&&(e.target&&W(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[23]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[25]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[26]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}}return customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",Qr),Qr});
|
|
2
|
-
//# sourceMappingURL=player-active-bonuses.js.map
|