@everymatrix/casino-integrated-game-page 1.24.7 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(){}function i(e){return e()}function o(){return Object.create(null)}function s(e){e.forEach(i)}function a(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let u
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(){}function i(e){return e()}function o(){return Object.create(null)}function s(e){e.forEach(i)}function a(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let u;function c(e,t){return u||(u=document.createElement("a")),u.href=t,e===u.href}function h(e,...t){if(null==e)return r;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function d(e,t,n){e.$$.on_destroy.push(h(t,n))}const f="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function p(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function v(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function w(e){return document.createTextNode(e)}function b(){return w(" ")}function _(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function E(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:E(e,t,n)}function T(e,t){t=""+t,e.data!==t&&(e.data=t)}function M(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function x(e,t,n){e.classList[n?"add":"remove"](t)}function k(e){const t={};for(const n of e)t[n.name]=n.value;return t}let D;function O(e){D=e}
|
|
2
2
|
/**
|
|
3
3
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
4
4
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
10
10
|
*/
|
|
11
|
-
function
|
|
11
|
+
function P(e){(function(){if(!D)throw new Error("Function called outside component initialization");return D})().$$.on_mount.push(e)}const B=[],H=[];let F=[];const A=[],N=Promise.resolve();let C=!1;function L(e){F.push(e)}
|
|
12
12
|
// flush() calls callbacks in this order:
|
|
13
13
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
14
14
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -27,61 +27,61 @@ function O(e){(function(){if(!c)throw new Error("Function called outside compone
|
|
|
27
27
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
28
28
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
29
29
|
// function, guarantees this behavior.
|
|
30
|
-
const
|
|
31
|
-
function
|
|
30
|
+
const R=new Set;let I=0;// Do *not* move this inside the flush() function
|
|
31
|
+
function $(){
|
|
32
32
|
// Do not reenter flush while dirty components are updated, as this can
|
|
33
33
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
34
34
|
// Reentrancy is ok afterwards for bindings etc.
|
|
35
|
-
if(0!==
|
|
35
|
+
if(0!==I)return;const e=D;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;
|
|
38
|
+
try{for(;I<B.length;){const e=B[I];I++,O(e),Y(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw
|
|
40
|
+
throw B.length=0,I=0,e}for(O(null),B.length=0,I=0;H.length;)H.pop()();
|
|
41
41
|
// then, once components are updated, call
|
|
42
42
|
// afterUpdate functions. This may cause
|
|
43
43
|
// subsequent updates...
|
|
44
|
-
for(let e=0;e<
|
|
44
|
+
for(let e=0;e<F.length;e+=1){const t=F[e];R.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
|
|
46
|
+
R.add(t),t())}F.length=0}while(B.length);for(;A.length;)A.pop()();C=!1,R.clear(),O(e)}function Y(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
|
-
*/const U=new Set;function
|
|
49
|
+
*/const U=new Set;function G(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];F.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),F=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&(B.push(e),C||(C=!0,N.then($)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function W(e,t,n,l,u,c,h,d=[-1]){const f=D;O(e);const p=e.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
|
-
props:
|
|
54
|
+
props:c,update:r,not_equal:u,bound:o(),
|
|
55
55
|
// lifecycle
|
|
56
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(
|
|
56
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),
|
|
57
57
|
// everything else
|
|
58
|
-
callbacks:o(),dirty:
|
|
58
|
+
callbacks:o(),dirty:d,skip_bound:!1,root:t.target||f.$$.root};h&&h(p.root);let m=!1;if(p.ctx=n?n(e,t.props||{},((t,n,...r)=>{const i=r.length?r[0]:n;return p.ctx&&u(p.ctx[t],p.ctx[t]=i)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](i),m&&j(e,t)),n})):[],p.update(),m=!0,s(p.before_update),
|
|
59
59
|
// `false` as a special case of no DOM component
|
|
60
|
-
|
|
60
|
+
p.fragment=!!l&&l(p.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);
|
|
61
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
|
-
|
|
62
|
+
p.fragment&&p.fragment.l(e),e.forEach(y)}else
|
|
63
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
|
-
|
|
64
|
+
p.fragment&&p.fragment.c();t.intro&&((g=e.$$.fragment)&&g.i&&(U.delete(g),g.i(v))),function(e,t,n,r){const{fragment:o,after_update:l}=e.$$;o&&o.m(t,n),r||
|
|
65
65
|
// onMount happens before the initial afterUpdate
|
|
66
|
-
|
|
66
|
+
L((()=>{const t=e.$$.on_mount.map(i).filter(a);
|
|
67
67
|
// if the component was destroyed immediately
|
|
68
68
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
69
69
|
// the destructured on_destroy may still reference to the old array
|
|
70
70
|
e.$$.on_destroy?e.$$.on_destroy.push(...t):
|
|
71
71
|
// Edge case - component was destroyed immediately,
|
|
72
72
|
// most likely as a result of a binding initialising
|
|
73
|
-
s(t),e.$$.on_mount=[]})),l.forEach(
|
|
73
|
+
s(t),e.$$.on_mount=[]})),l.forEach(L)}(e,t.target,t.anchor,t.customElement),$()}var g,v;O(f)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(i).filter(a);
|
|
74
74
|
// @ts-ignore todo: improve typings
|
|
75
75
|
for(const e in this.$$.slotted)
|
|
76
76
|
// @ts-ignore todo: improve typings
|
|
77
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){
|
|
77
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){G(this,1),this.$destroy=r}$on(e,t){
|
|
78
78
|
// TODO should this delegate to addEventListener?
|
|
79
79
|
if(!a(t))return r;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}})
|
|
80
|
-
/* eslint-disable no-prototype-builtins */;var
|
|
80
|
+
/* eslint-disable no-prototype-builtins */;var z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
81
81
|
// eslint-disable-next-line no-undef
|
|
82
|
-
"undefined"!=typeof global&&global||{},
|
|
82
|
+
"undefined"!=typeof global&&global||{},Z="URLSearchParams"in z,X="Symbol"in z&&"iterator"in Symbol,q="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(e){return!1}}(),K="FormData"in z,J="ArrayBuffer"in z;if(J)var Q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(e){return e&&Q.indexOf(Object.prototype.toString.call(e))>-1};function te(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 ne(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
83
83
|
// Build a destructive iterator for the value list
|
|
84
|
-
function
|
|
84
|
+
function re(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return X&&(t[Symbol.iterator]=function(){return t}),t}function ie(e){this.map={},e instanceof ie?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.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):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function oe(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function se(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ae(e){var t=new FileReader,n=se(t);return t.readAsArrayBuffer(e),n}function le(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ue(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
85
85
|
/*
|
|
86
86
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
87
87
|
provide useful test harness features such as flush. However, on
|
|
@@ -93,29 +93,29 @@ function ne(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
|
93
93
|
_initBody is called.
|
|
94
94
|
*/
|
|
95
95
|
// eslint-disable-next-line no-self-assign
|
|
96
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:
|
|
96
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:q&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:K&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Z&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():J&&q&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=le(e.buffer),
|
|
97
97
|
// IE 10-11 can't handle a DataView body.
|
|
98
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
|
98
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):J&&(ArrayBuffer.prototype.isPrototypeOf(e)||ee(e))?this._bodyArrayBuffer=le(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):Z&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},q&&(this.blob=function(){var e=oe(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){var e=oe(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(q)return this.blob().then(ae);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=oe(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=se(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(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)},K&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
99
99
|
// HTTP methods whose capitalization should be normalized
|
|
100
|
-
|
|
100
|
+
ie.prototype.append=function(e,t){e=te(e),t=ne(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ie.prototype.delete=function(e){delete this.map[te(e)]},ie.prototype.get=function(e){return e=te(e),this.has(e)?this.map[e]:null},ie.prototype.has=function(e){return this.map.hasOwnProperty(te(e))},ie.prototype.set=function(e,t){this.map[te(e)]=ne(t)},ie.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ie.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),re(e)},ie.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),re(e)},ie.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),re(e)},X&&(ie.prototype[Symbol.iterator]=ie.prototype.entries);var ce=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function he(e,t){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof he){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ie(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 ie(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),ce.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in z)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
101
101
|
// Search for a '_' parameter in the query string
|
|
102
102
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
103
103
|
// If it already exists then set the value with the current time
|
|
104
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
|
104
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function de(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function fe(e,t){if(!(this instanceof fe))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||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ie(t.headers),this.url=t.url||"",this._initBody(e)}he.prototype.clone=function(){return new he(this,{body:this._bodyInit})},ue.call(he.prototype),ue.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ie(this.headers),url:this.url})},fe.error=function(){var e=new fe(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var pe=[301,302,303,307,308];fe.redirect=function(e,t){if(-1===pe.indexOf(t))throw new RangeError("Invalid status code");return new fe(null,{status:t,headers:{location:e}})};var me=z.DOMException;try{new me}catch(e){(me=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),me.prototype.constructor=me}function ye(e,t){return new Promise((function(n,r){var i=new he(e,t);if(i.signal&&i.signal.aborted)return r(new me("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e,t,r={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ie,
|
|
105
105
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
106
106
|
// https://github.com/github/fetch/issues/748
|
|
107
107
|
// https://github.com/zloirock/core-js/issues/751
|
|
108
108
|
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 n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};
|
|
109
109
|
// This check if specifically for when a user fetches a file locally from the file system
|
|
110
110
|
// Only if the status is out of a normal range
|
|
111
|
-
i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new
|
|
111
|
+
i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new fe(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new me("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&z.location.href?z.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(q?o.responseType="blob":J&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof ie||z.Headers&&t.headers instanceof z.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(te(e)),o.setRequestHeader(e,ne(t.headers[e]))})),i.headers.forEach((function(e,t){-1===a.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
|
112
112
|
// DONE (success or failure)
|
|
113
|
-
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}
|
|
113
|
+
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ye.polyfill=!0,z.fetch||(z.fetch=ye,z.Headers=ie,z.Request=he,z.Response=fe);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ge(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
114
114
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
115
115
|
// on the global object (window or self)
|
|
116
116
|
|
|
117
117
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
118
|
-
var
|
|
118
|
+
var ve=self.fetch.bind(self),we=function(e,t){return we=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])},we(e,t)};
|
|
119
119
|
/******************************************************************************
|
|
120
120
|
Copyright (c) Microsoft Corporation.
|
|
121
121
|
|
|
@@ -130,7 +130,7 @@ var ge=self.fetch.bind(self),ve=function(e,t){return ve=Object.setPrototypeOf||{
|
|
|
130
130
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
131
|
PERFORMANCE OF THIS SOFTWARE.
|
|
132
132
|
***************************************************************************** */
|
|
133
|
-
/* global Reflect, Promise, SuppressedError, Symbol */function be(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}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function we(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _e(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ee(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Se(e){return"function"==typeof e}function Te(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Me=Te((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ke(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=we(o),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 o.remove(this);var l=this.initialTeardown;if(Se(l))try{l()}catch(e){i=e instanceof Me?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=we(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{Pe(d)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ee(Ee([],_e(i)),_e(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Me(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ke(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ke(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),De=xe.EMPTY;function Oe(e){return e instanceof xe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Pe(e){Se(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},He={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=He.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],_e(n))):setTimeout.apply(void 0,Ee([e,t],_e(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var Ae=null;function Ne(e){if(Be.useDeprecatedSynchronousErrorHandling){var t=!Ae;if(t&&(Ae={errorThrown:!1,error:null}),e(),t){var n=Ae,r=n.errorThrown,i=n.error;if(Ae=null,r)throw i}}else e()}var Ce=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Oe(t)&&t.add(n)):n.destination=$e,n}return be(t,e),t.create=function(e,t,n){return new Ye(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xe),Le=Function.prototype.bind;function Re(e,t){return Le.call(e,t)}var Ie=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),Ye=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;Se(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Be.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new Ie(i),s}return be(t,e),t}(Ce);function Ue(e){var t;t=e,He.setTimeout((function(){throw t}))}var $e={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var We=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Ce||function(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(r)&&Oe(r)?e:new Ye(e,t,n);return Ne((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ve(t))((function(t,r){var i=new Ye({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?je:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ve(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Ve(e){var t;return null!==(t=null!=e?e:Be.Promise)&&void 0!==t?t:Promise}var ze=Te((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ze=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return be(t,e),t.prototype.lift=function(e){var t=new Xe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=we(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ne((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ne((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?De:(this.currentObservers=null,o.push(e),new xe((function(){t.currentObservers=null,ke(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new We;return e.source=this,e},t.create=function(e,t){return new Xe(e,t)},t}(We),Xe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:De},t}(Ze),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},Ke=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=qe);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return be(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(Ze);let Je=[],Qe={};
|
|
133
|
+
/* global Reflect, Promise, SuppressedError, Symbol */function be(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}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function _e(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Se(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Te(e){return"function"==typeof e}function Me(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var xe=Me((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ke(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var De=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=_e(o),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 o.remove(this);var l=this.initialTeardown;if(Te(l))try{l()}catch(e){i=e instanceof xe?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=_e(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{Be(d)}catch(e){i=null!=i?i:[],e instanceof xe?i=Se(Se([],Ee(i)),Ee(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new xe(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Be(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ke(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ke(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Oe=De.EMPTY;function Pe(e){return e instanceof De||e&&"closed"in e&&Te(e.remove)&&Te(e.add)&&Te(e.unsubscribe)}function Be(e){Te(e)?e():e.unsubscribe()}var He={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fe={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Fe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Se([e,t],Ee(n))):setTimeout.apply(void 0,Se([e,t],Ee(n)))},clearTimeout:function(e){var t=Fe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ae(){}var Ne=null;function Ce(e){if(He.useDeprecatedSynchronousErrorHandling){var t=!Ne;if(t&&(Ne={errorThrown:!1,error:null}),e(),t){var n=Ne,r=n.errorThrown,i=n.error;if(Ne=null,r)throw i}}else e()}var Le=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Pe(t)&&t.add(n)):n.destination=Ge,n}return be(t,e),t.create=function(e,t,n){return new Ye(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(De),Re=Function.prototype.bind;function Ie(e,t){return Re.call(e,t)}var $e=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),Ye=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;Te(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&He.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Ie(t.next,o),error:t.error&&Ie(t.error,o),complete:t.complete&&Ie(t.complete,o)}):i=t;return s.destination=new $e(i),s}return be(t,e),t}(Le);function Ue(e){var t;t=e,Fe.setTimeout((function(){throw t}))}var Ge={closed:!0,next:Ae,error:function(e){throw e},complete:Ae},je="function"==typeof Symbol&&Symbol.observable||"@@observable";function We(e){return e}var Ve=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Le||function(e){return e&&Te(e.next)&&Te(e.error)&&Te(e.complete)}(r)&&Pe(r)?e:new Ye(e,t,n);return Ce((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ze(t))((function(t,r){var i=new Ye({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[je]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?We:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ze(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function ze(e){var t;return null!==(t=null!=e?e:He.Promise)&&void 0!==t?t:Promise}var Ze=Me((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Xe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return be(t,e),t.prototype.lift=function(e){var t=new qe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ze},t.prototype.next=function(e){var t=this;Ce((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=_e(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ce((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ce((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Oe:(this.currentObservers=null,o.push(e),new De((function(){t.currentObservers=null,ke(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Ve;return e.source=this,e},t.create=function(e,t){return new qe(e,t)},t}(Ve),qe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Oe},t}(Xe),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Je=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Ke);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return be(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(Xe);let Qe=[],et={};
|
|
134
134
|
/**
|
|
135
135
|
* @name topic
|
|
136
136
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -138,36 +138,36 @@ var ge=self.fetch.bind(self),ve=function(e,t){return ve=Object.setPrototypeOf||{
|
|
|
138
138
|
* @param step [String] How many values to be buffed for new subscribers - default 0
|
|
139
139
|
* @returns ReplaySubject
|
|
140
140
|
*/
|
|
141
|
-
const
|
|
141
|
+
const tt=[];
|
|
142
142
|
/**
|
|
143
143
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
144
144
|
* @param {*=}value initial value
|
|
145
145
|
* @param {StartStopNotifier=} start
|
|
146
146
|
*/
|
|
147
|
-
function
|
|
148
|
-
const t=!
|
|
147
|
+
function nt(e,t=r){let n;const i=new Set;function o(t){if(l(e,t)&&(e=t,n)){// store is ready
|
|
148
|
+
const t=!tt.length;for(const t of i)t[1](),tt.push(t,e);if(t){for(let e=0;e<tt.length;e+=2)tt[e][0](tt[e+1]);tt.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=r){const l=[s,a];return i.add(l),1===i.size&&(n=t(o)||r),s(e),()=>{i.delete(l),0===i.size&&n&&(n(),n=null)}}}}function rt(e,t,n){const i=!Array.isArray(e),o=i?[e]:e,l=t.length<2;return u=e=>{let n=!1;const u=[];let c=0,d=r;const f=()=>{if(c)return;d();const n=t(i?u[0]:u,e);l?e(n):d=a(n)?n:r},p=o.map(((e,t)=>h(e,(e=>{u[t]=e,c&=~(1<<t),n&&f()}),(()=>{c|=1<<t}))));return n=!0,f(),function(){s(p),d(),
|
|
149
149
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
150
150
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
151
151
|
// invoke this derived store.
|
|
152
|
-
n=!1}},{subscribe:
|
|
152
|
+
n=!1}},{subscribe:nt(n,u).subscribe};
|
|
153
153
|
/**
|
|
154
154
|
* Creates a `Readable` store that allows reading by subscription.
|
|
155
155
|
* @param value initial value
|
|
156
156
|
* @param {StartStopNotifier} [start]
|
|
157
157
|
*/
|
|
158
|
-
var u}var
|
|
158
|
+
var u}var it=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===ot}(e)}
|
|
159
159
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
160
|
-
(e)};var
|
|
160
|
+
(e)};var ot="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function st(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ht((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function at(e,t,n){return e.concat(t).map((function(e){return st(e,n)}))}function lt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function ut(e,t){try{return t in e}catch(e){return!1}}
|
|
161
161
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
162
|
-
function
|
|
163
|
-
})(e,i)||(
|
|
162
|
+
function ct(e,t,n){var r={};return n.isMergeableObject(e)&<(e).forEach((function(t){r[t]=st(e[t],n)})),lt(t).forEach((function(i){(function(e,t){return ut(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
163
|
+
})(e,i)||(ut(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return ht;var n=t.customMerge(e);return"function"==typeof n?n:ht}(i,n)(e[i],t[i],n):r[i]=st(t[i],n))})),r}function ht(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||at,n.isMergeableObject=n.isMergeableObject||it,
|
|
164
164
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
165
165
|
// implementations can use it. The caller may not replace it.
|
|
166
|
-
n.cloneUnlessOtherwiseSpecified=
|
|
166
|
+
n.cloneUnlessOtherwiseSpecified=st;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):ct(e,t,n):st(t,n)}ht.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ht(e,n,t)}),{})};var dt=ht,ft=function(e,t){return ft=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])},ft(e,t)};function pt(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}ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var mt,yt,gt,vt=function(){return vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vt.apply(this,arguments)};function wt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
|
|
167
167
|
/**
|
|
168
168
|
* Type Guards
|
|
169
169
|
*/
|
|
170
|
-
function bt(e){return e.type===
|
|
170
|
+
function bt(e){return e.type===yt.literal}function _t(e){return e.type===yt.argument}function Et(e){return e.type===yt.number}function St(e){return e.type===yt.date}function Tt(e){return e.type===yt.time}function Mt(e){return e.type===yt.select}function xt(e){return e.type===yt.plural}function kt(e){return e.type===yt.pound}function Dt(e){return e.type===yt.tag}function Ot(e){return!(!e||"object"!=typeof e||e.type!==gt.number)}function Pt(e){return!(!e||"object"!=typeof e||e.type!==gt.dateTime)}
|
|
171
171
|
// @generated from regex-gen.ts
|
|
172
172
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
173
173
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -229,7 +229,7 @@ e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
|
|
|
229
229
|
/** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
|
|
230
230
|
e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
231
231
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
232
|
-
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(
|
|
232
|
+
e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(mt||(mt={})),function(e){
|
|
233
233
|
/**
|
|
234
234
|
* Raw text
|
|
235
235
|
*/
|
|
@@ -266,7 +266,7 @@ e[e.pound=7]="pound",
|
|
|
266
266
|
/**
|
|
267
267
|
* XML-like tag
|
|
268
268
|
*/
|
|
269
|
-
e[e.tag=8]="tag"}(
|
|
269
|
+
e[e.tag=8]="tag"}(yt||(yt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(gt||(gt={}));var Bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ht=/(?:[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;
|
|
270
270
|
/**
|
|
271
271
|
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
272
272
|
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
@@ -278,7 +278,7 @@ e[e.tag=8]="tag"}(mt||(mt={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
278
278
|
* @public
|
|
279
279
|
* @param skeleton skeleton string
|
|
280
280
|
*/
|
|
281
|
-
function
|
|
281
|
+
function Ft(e){var t={};return e.replace(Ht,(function(e){var n=e.length;switch(e[0]){
|
|
282
282
|
// Era
|
|
283
283
|
case"G":t.era=4===n?"long":5===n?"narrow":"short";break;
|
|
284
284
|
// Year
|
|
@@ -312,33 +312,33 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
312
312
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
313
313
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
314
314
|
// @generated from regex-gen.ts
|
|
315
|
-
var
|
|
315
|
+
var At=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Nt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ct=/^(@+)?(\+|#+)?[rs]?$/g,Lt=/(\*)(0+)|(#+)(0+)|(0+)/g,Rt=/^(0+)$/;function It(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ct,(function(e,n,r){
|
|
316
316
|
// @@@ case
|
|
317
|
-
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function
|
|
317
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function $t(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 Yt(e){
|
|
318
318
|
// Engineering
|
|
319
|
-
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)),!
|
|
319
|
+
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)),!Rt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ut(e){var t=$t(e);return t||{}}
|
|
320
320
|
/**
|
|
321
321
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
322
|
-
*/function
|
|
322
|
+
*/function Gt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=vt(vt(vt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return vt(vt({},e),Ut(t))}),{}));continue;case"engineering":t=vt(vt(vt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return vt(vt({},e),Ut(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
323
323
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
324
324
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
325
325
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
326
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(
|
|
326
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Lt,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
327
327
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
328
|
-
if(
|
|
328
|
+
if(Rt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Nt.test(i.stem)){
|
|
329
329
|
// Precision
|
|
330
330
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
331
331
|
// precision-integer case
|
|
332
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
332
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Nt,(function(e,n,r,i,o,s){
|
|
333
333
|
// .000* case (before ICU67 it was .000+)
|
|
334
334
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
|
335
335
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
336
|
-
"w"===o?t=
|
|
336
|
+
"w"===o?t=vt(vt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=vt(vt({},t),It(o)))}
|
|
337
337
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
338
|
-
else if(
|
|
338
|
+
else if(Ct.test(i.stem))t=vt(vt({},t),It(i.stem));else{var s=$t(i.stem);s&&(t=vt(vt({},t),s));var a=Yt(i.stem);a&&(t=vt(vt({},t),a))}}return t}
|
|
339
339
|
// @generated from time-data-gen.ts
|
|
340
340
|
// prettier-ignore
|
|
341
|
-
var
|
|
341
|
+
var jt,Wt={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"]};
|
|
342
342
|
/**
|
|
343
343
|
* Returns the best matching date time pattern if a date time skeleton
|
|
344
344
|
* pattern is provided with a locale. Follows the Unicode specification:
|
|
@@ -351,7 +351,7 @@ var Gt,jt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
351
351
|
* of the given `locale` to the corresponding time pattern.
|
|
352
352
|
* @param locale
|
|
353
353
|
*/
|
|
354
|
-
function
|
|
354
|
+
function Vt(e){var t=e.hourCycle;if(void 0===t&&
|
|
355
355
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
356
356
|
e.hourCycles&&
|
|
357
357
|
// @ts-ignore
|
|
@@ -359,37 +359,37 @@ e.hourCycles.length&&(
|
|
|
359
359
|
// @ts-ignore
|
|
360
360
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
361
361
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
362
|
-
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(
|
|
362
|
+
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Wt[n||""]||Wt[r||""]||Wt["".concat(r,"-001")]||Wt["001"])[0]}var zt=new RegExp("^".concat(Bt.source,"*")),Zt=new RegExp("".concat(Bt.source,"*$"));function Xt(e,t){return{start:e,end:t}}
|
|
363
363
|
// #region Ponyfills
|
|
364
364
|
// Consolidate these variables up top for easier toggling during debugging
|
|
365
|
-
var
|
|
365
|
+
var qt=!!String.prototype.startsWith,Kt=!!String.fromCodePoint,Jt=!!Object.fromEntries,Qt=!!String.prototype.codePointAt,en=!!String.prototype.trimStart,tn=!!String.prototype.trimEnd,nn=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rn=!0;try{
|
|
366
366
|
/**
|
|
367
367
|
* legacy Edge or Xbox One browser
|
|
368
368
|
* Unicode flag support: supported
|
|
369
369
|
* Pattern_Syntax support: not supported
|
|
370
370
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
371
371
|
*/
|
|
372
|
-
|
|
372
|
+
rn="a"===(null===(jt=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch(e){rn=!1}var on,sn=qt?// Native
|
|
373
373
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
374
|
-
function(e,t,n){return e.slice(n,n+t.length)===t},
|
|
375
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)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},
|
|
374
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},an=Kt?String.fromCodePoint:// IE11
|
|
375
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)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=
|
|
376
376
|
// native
|
|
377
|
-
|
|
378
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},
|
|
377
|
+
Jt?Object.fromEntries:// Ponyfill
|
|
378
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t[o]=s}return t},un=Qt?// Native
|
|
379
379
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
380
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},
|
|
380
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},cn=en?// Native
|
|
381
381
|
function(e){return e.trimStart()}:// Ponyfill
|
|
382
|
-
function(e){return e.replace(
|
|
382
|
+
function(e){return e.replace(zt,"")},hn=tn?// Native
|
|
383
383
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
384
|
-
function(e){return e.replace(
|
|
384
|
+
function(e){return e.replace(Zt,"")};
|
|
385
385
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
386
|
-
function
|
|
386
|
+
function dn(e,t){return new RegExp(e,t)}
|
|
387
387
|
// #endregion
|
|
388
|
-
if(
|
|
388
|
+
if(rn){
|
|
389
389
|
// Native
|
|
390
|
-
var dn
|
|
390
|
+
var fn=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");on=function(e,t){var n;return fn.lastIndex=t,null!==(n=fn.exec(e)[1])&&void 0!==n?n:""}}else
|
|
391
391
|
// IE11
|
|
392
|
-
|
|
392
|
+
on=function(e,t){for(var n=[];;){var r=un(e,t);if(void 0===r||yn(r)||gn(r))break;n.push(r),t+=r>=65536?2:1}return an.apply(void 0,n)};var pn=/** @class */function(){function e(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}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(mt.UNMATCHED_CLOSING_TAG,Xt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&mn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:yt.pound,location:Xt(s,this.clonePosition())})}}}return{val:r,err:null}},
|
|
393
393
|
/**
|
|
394
394
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
395
395
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -411,14 +411,14 @@ rn=function(e,t){for(var n=[];;){var r=ln(e,t);if(void 0===r||mn(r)||yn(r))break
|
|
|
411
411
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
412
412
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
413
413
|
// Self closing tag
|
|
414
|
-
return{val:{type:
|
|
414
|
+
return{val:{type:yt.literal,value:"<".concat(r,"/>"),location:Xt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
|
|
415
415
|
// Expecting a close tag
|
|
416
|
-
if(this.bumpIf("</")){if(this.isEOF()||!
|
|
416
|
+
if(this.bumpIf("</")){if(this.isEOF()||!mn(this.char()))return this.error(mt.INVALID_TAG,Xt(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(mt.UNMATCHED_CLOSING_TAG,Xt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:yt.tag,value:r,children:o,location:Xt(n,this.clonePosition())},err:null}:this.error(mt.INVALID_TAG,Xt(s,this.clonePosition())))}return this.error(mt.UNCLOSED_TAG,Xt(n,this.clonePosition()))}return this.error(mt.INVALID_TAG,Xt(n,this.clonePosition()))},
|
|
417
417
|
/**
|
|
418
418
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
419
419
|
*/
|
|
420
420
|
e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
|
|
421
|
-
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=
|
|
421
|
+
for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=Xt(n,this.clonePosition());return{val:{type:yt.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(mn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
422
422
|
/** See `parseTag` function docs. */},
|
|
423
423
|
/**
|
|
424
424
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -440,67 +440,67 @@ for(this.bump();!this.isEOF();){var n=this.char();if(39/* `'` */===n){if(39/* `'
|
|
|
440
440
|
// Optional closing apostrophe.
|
|
441
441
|
this.bump();break}t.push(39),
|
|
442
442
|
// Bump one more time because we need to skip 2 characters.
|
|
443
|
-
this.bump()}else t.push(n);this.bump()}return
|
|
444
|
-
this.bumpSpace(),this.isEOF())return this.error(
|
|
443
|
+
this.bump()}else t.push(n);this.bump()}return an.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60/* `<` */===n||123/* `{` */===n||35/* `#` */===n&&("plural"===t||"selectordinal"===t)||125/* `}` */===n&&e>0?null:(this.bump(),an(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),// `{`
|
|
444
|
+
this.bumpSpace(),this.isEOF())return this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(n,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(mt.EMPTY_ARGUMENT,Xt(n,this.clonePosition()));
|
|
445
445
|
// argument name
|
|
446
|
-
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(
|
|
446
|
+
var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(mt.MALFORMED_ARGUMENT,Xt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(n,this.clonePosition()));switch(this.char()){
|
|
447
447
|
// Simple argument: `{name}`
|
|
448
448
|
case 125/* `}` */:// `}`
|
|
449
|
-
return this.bump(),{val:{type:
|
|
449
|
+
return this.bump(),{val:{type:yt.argument,
|
|
450
450
|
// value does not include the opening and closing braces.
|
|
451
|
-
value:r,location:
|
|
451
|
+
value:r,location:Xt(n,this.clonePosition())},err:null};
|
|
452
452
|
// Argument with options: `{name, format, ...}`
|
|
453
453
|
case 44/* `,` */:return this.bump(),// `,`
|
|
454
|
-
this.bumpSpace(),this.isEOF()?this.error(
|
|
454
|
+
this.bumpSpace(),this.isEOF()?this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(mt.MALFORMED_ARGUMENT,Xt(n,this.clonePosition()))}},
|
|
455
455
|
/**
|
|
456
456
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
457
457
|
* an identifier character. Return an empty string otherwise.
|
|
458
458
|
*/
|
|
459
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=
|
|
459
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=on(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Xt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
|
460
460
|
// Parse this range:
|
|
461
461
|
// {name, type, style}
|
|
462
462
|
// ^---^
|
|
463
463
|
switch(s){case"":
|
|
464
464
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
465
|
-
return this.error(
|
|
465
|
+
return this.error(mt.EXPECT_ARGUMENT_TYPE,Xt(o,a));case"number":case"date":case"time":
|
|
466
466
|
// Parse this range:
|
|
467
467
|
// {name, number, style}
|
|
468
468
|
// ^-------^
|
|
469
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(f=
|
|
469
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(f=hn(g.val)).length)return this.error(mt.EXPECT_ARGUMENT_STYLE,Xt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Xt(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var c=Xt(r,this.clonePosition());
|
|
470
470
|
// Extract style or skeleton
|
|
471
|
-
if(l&&
|
|
471
|
+
if(l&&sn(null==l?void 0:l.style,"::",0)){
|
|
472
472
|
// Skeleton starts with `::`.
|
|
473
|
-
var h=
|
|
473
|
+
var h=cn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?g:{val:{type:yt.number,value:n,location:c,style:g.val},err:null};if(0===h.length)return this.error(mt.EXPECT_DATE_TIME_SKELETON,c);var d=h;
|
|
474
474
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
475
475
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
476
476
|
// for unsupported patterns.
|
|
477
|
-
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=
|
|
477
|
+
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Vt(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var f={type:gt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ft(d):{}};return{val:{type:"date"===s?yt.date:yt.time,value:n,location:c,style:f},err:null}}
|
|
478
478
|
// Regular style or no style.
|
|
479
|
-
return{val:{type:"number"===s?
|
|
479
|
+
return{val:{type:"number"===s?yt.number:"date"===s?yt.date:yt.time,value:n,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
480
480
|
// Parse this range:
|
|
481
481
|
// {name, plural, options}
|
|
482
482
|
// ^---------^
|
|
483
|
-
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(
|
|
483
|
+
var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(mt.EXPECT_SELECT_ARGUMENT_OPTIONS,Xt(p,vt({},p)));this.bumpSpace();
|
|
484
484
|
// Parse offset:
|
|
485
485
|
// {name, plural, offset:1, options}
|
|
486
486
|
// ^-----^
|
|
487
487
|
// or the first option:
|
|
488
488
|
// {name, plural, one {...} other {...}}
|
|
489
489
|
// ^--^
|
|
490
|
-
var m=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(
|
|
490
|
+
var m=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xt(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,mt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;
|
|
491
491
|
// Parse another identifier for option parsing
|
|
492
|
-
this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=g.val}var v,
|
|
492
|
+
this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=g.val}var v,w=this.tryParsePluralOrSelectOptions(e,s,t,m);if(w.err)return w;if((v=this.tryParseArgumentClose(r)).err)return v;var b=Xt(r,this.clonePosition());return"select"===s?{val:{type:yt.select,value:n,options:ln(w.val),location:b},err:null}:{val:{type:yt.plural,value:n,options:ln(w.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(mt.INVALID_ARGUMENT_TYPE,Xt(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
493
493
|
// Parse: {value, number, ::currency/GBP }
|
|
494
|
-
return this.isEOF()||125/* `}` */!==this.char()?this.error(
|
|
494
|
+
return this.isEOF()||125/* `}` */!==this.char()?this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Xt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
495
495
|
/**
|
|
496
496
|
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
497
497
|
*/
|
|
498
498
|
e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
499
499
|
// Treat apostrophe as quoting but include it in the style part.
|
|
500
500
|
// Find the end of the quoted literal text.
|
|
501
|
-
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(
|
|
501
|
+
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(mt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xt(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
502
502
|
// Parse the skeleton
|
|
503
|
-
for(var t=[],n=0,r=e.split(
|
|
503
|
+
for(var t=[],n=0,r=e.split(At).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(mt.INVALID_NUMBER_SKELETON,t)}return{val:{type:gt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Gt(n):{}},err:null}},
|
|
504
504
|
/**
|
|
505
505
|
* @param nesting_level The current nesting level of messages.
|
|
506
506
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -517,24 +517,24 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
|
517
517
|
// ^--^
|
|
518
518
|
for(var i,o=!1,s=[],a=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
519
519
|
// Try parse `={number}` selector
|
|
520
|
-
var h=this.tryParseDecimalInteger(
|
|
520
|
+
var h=this.tryParseDecimalInteger(mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,mt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Xt(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
521
521
|
// Duplicate selector clauses
|
|
522
|
-
if(a.has(l))return this.error("select"===t?
|
|
522
|
+
if(a.has(l))return this.error("select"===t?mt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:mt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),
|
|
523
523
|
// Parse:
|
|
524
524
|
// one {one apple}
|
|
525
525
|
// ^----------^
|
|
526
|
-
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?
|
|
526
|
+
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?mt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:mt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:f.val,location:Xt(d,this.clonePosition())}]),
|
|
527
527
|
// Keep track of the existing selectors
|
|
528
528
|
a.add(l),
|
|
529
529
|
// Prep next selector clause.
|
|
530
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?
|
|
530
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?mt.EXPECT_SELECT_ARGUMENT_SELECTOR:mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(mt.MISSING_OTHER_CLAUSE,Xt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Xt(r,this.clonePosition());return i?nn(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
531
531
|
// This is much faster than `Object.assign` or spread.
|
|
532
532
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
533
533
|
/**
|
|
534
534
|
* Return the code point at the current position of the parser.
|
|
535
535
|
* Throws if the index is out of bound.
|
|
536
536
|
*/
|
|
537
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
537
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=un(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
538
538
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
539
539
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
540
540
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -545,7 +545,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
|
545
545
|
* following the prefix and return true. Otherwise, don't bump the parser
|
|
546
546
|
* and return false.
|
|
547
547
|
*/
|
|
548
|
-
e.prototype.bumpIf=function(e){if(
|
|
548
|
+
e.prototype.bumpIf=function(e){if(sn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
549
549
|
/**
|
|
550
550
|
* Bump the parser until the pattern character is found and return `true`.
|
|
551
551
|
* Otherwise bump to the end of the file and return `false`.
|
|
@@ -557,7 +557,7 @@ e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t
|
|
|
557
557
|
*/
|
|
558
558
|
e.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(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
559
559
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
560
|
-
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
560
|
+
e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yn(this.char());)this.bump()},
|
|
561
561
|
/**
|
|
562
562
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
563
563
|
* If the input has been exhausted, then this returns null.
|
|
@@ -567,106 +567,106 @@ e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this
|
|
|
567
567
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
568
568
|
* @param codepoint
|
|
569
569
|
* @returns
|
|
570
|
-
*/function
|
|
570
|
+
*/function mn(e){return e>=97&&e<=122||e>=65&&e<=90}
|
|
571
571
|
/**
|
|
572
572
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
573
573
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
574
574
|
*/
|
|
575
|
-
function
|
|
575
|
+
function yn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
|
|
576
576
|
/**
|
|
577
577
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
578
578
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
579
|
-
*/function
|
|
579
|
+
*/function gn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function vn(e){e.forEach((function(e){if(delete e.location,Mt(e)||xt(e))for(var t in e.options)delete e.options[t].location,vn(e.options[t].value);else Et(e)&&Ot(e.style)||(St(e)||Tt(e))&&Pt(e.style)?delete e.style.location:Dt(e)&&vn(e.children)}))}function wn(e,t){void 0===t&&(t={}),t=vt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new pn(e,t).parse();if(n.err){var r=SyntaxError(mt[n.err.kind]);
|
|
580
580
|
// @ts-expect-error Assign to error object
|
|
581
581
|
throw r.location=n.err.location,
|
|
582
582
|
// @ts-expect-error Assign to error object
|
|
583
|
-
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||
|
|
583
|
+
r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||vn(n.val),n.val}
|
|
584
584
|
|
|
585
585
|
// Main
|
|
586
586
|
|
|
587
|
-
function bn(e,t){var n=t&&t.cache?t.cache:
|
|
587
|
+
function bn(e,t){var n=t&&t.cache?t.cache:Dn,r=t&&t.serializer?t.serializer:Mn;return(t&&t.strategy?t.strategy:Tn)(e,{cache:n,serializer:r})}
|
|
588
588
|
|
|
589
589
|
// Strategy
|
|
590
590
|
|
|
591
|
-
function
|
|
591
|
+
function _n(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(o);return void 0===s&&(s=e.call(this,r),t.set(o,s)),s}function En(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function Sn(e,t,n,r,i){return n.bind(t,e,r,i)}function Tn(e,t){return Sn(e,this,1===e.length?_n:En,t.cache.create(),t.serializer)}
|
|
592
592
|
// Serializer
|
|
593
|
-
var
|
|
593
|
+
var Mn=function(){return JSON.stringify(arguments)};
|
|
594
594
|
|
|
595
595
|
// Cache
|
|
596
596
|
|
|
597
|
-
function
|
|
597
|
+
function xn(){this.cache=Object.create(null)}xn.prototype.get=function(e){return this.cache[e]},xn.prototype.set=function(e,t){this.cache[e]=t};var kn,Dn={create:function(){
|
|
598
598
|
// @ts-ignore
|
|
599
|
-
return new
|
|
599
|
+
return new xn}},On={variadic:function(e,t){return Sn(e,this,En,t.cache.create(),t.serializer)},monadic:function(e,t){return Sn(e,this,_n,t.cache.create(),t.serializer)}};!function(e){
|
|
600
600
|
// When we have a placeholder but no value to format
|
|
601
601
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
602
602
|
// When value supplied is invalid
|
|
603
603
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
604
604
|
// When we need specific Intl API but it's not available
|
|
605
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(kn||(kn={}));var
|
|
605
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(kn||(kn={}));var Pn,Bn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return pt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),kn.INVALID_VALUE,i)||this}return pt(t,e),t}(Bn),Fn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),kn.INVALID_VALUE,r)||this}return pt(t,e),t}(Bn),An=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),kn.MISSING_VALUE,n)||this}return pt(t,e),t}(Bn);function Nn(e){return"function"==typeof e}
|
|
606
606
|
// TODO(skeleton): add skeleton support
|
|
607
|
-
function
|
|
607
|
+
function Cn(e,t,n,r,i,o,
|
|
608
608
|
// For debugging
|
|
609
609
|
s){
|
|
610
610
|
// Hot path for straight simple msg translations
|
|
611
|
-
if(1===e.length&&bt(e[0]))return[{type:
|
|
611
|
+
if(1===e.length&&bt(e[0]))return[{type:Pn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
612
612
|
// Exit early for string parts.
|
|
613
|
-
if(bt(c))a.push({type:
|
|
613
|
+
if(bt(c))a.push({type:Pn.literal,value:c.value});else
|
|
614
614
|
// TODO: should this part be literal type?
|
|
615
615
|
// Replace `#` in plural rules with the actual numeric value.
|
|
616
|
-
if(kt(c))"number"==typeof o&&a.push({type:
|
|
616
|
+
if(kt(c))"number"==typeof o&&a.push({type:Pn.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
|
|
617
617
|
// Enforce that all required values are provided by the caller.
|
|
618
|
-
if(!i||!(h in i))throw new
|
|
618
|
+
if(!i||!(h in i))throw new An(h,s);var d=i[h];if(_t(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Pn.literal:Pn.object,value:d});else
|
|
619
619
|
// Recursively format plural and select parts' option — which can be a
|
|
620
620
|
// nested pattern structure. The choosing of the option to use is
|
|
621
621
|
// abstracted-by and delegated-to the part helper object.
|
|
622
|
-
if(
|
|
622
|
+
if(St(c)){var f="string"==typeof c.style?r.date[c.style]:Pt(c.style)?c.style.parsedOptions:void 0;a.push({type:Pn.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(Tt(c)){f="string"==typeof c.style?r.time[c.style]:Pt(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:Pn.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(Et(c)){(f="string"==typeof c.style?r.number[c.style]:Ot(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:Pn.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(Dt(c)){var p=c.children,m=c.value,y=i[m];if(!Nn(y))throw new Fn(m,"function",s);var g=y(Cn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?Pn.literal:Pn.object,value:e}})))}if(Mt(c)){if(!(v=c.options[d]||c.options.other))throw new Hn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Cn(v.value,t,n,r,i))}else if(xt(c)){var v;if(!(v=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Bn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,s);var w=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));v=c.options[w]||c.options.other}if(!v)throw new Hn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Cn(v.value,t,n,r,i,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Pn.literal&&t.type===Pn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
|
623
623
|
/*
|
|
624
624
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
625
625
|
Copyrights licensed under the New BSD License.
|
|
626
626
|
See the accompanying LICENSE file for terms.
|
|
627
627
|
*/
|
|
628
628
|
// -- MessageFormat --------------------------------------------------------
|
|
629
|
-
function
|
|
629
|
+
function Ln(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?vt(vt(vt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=vt(vt({},i[t]),o[t]||{}),e}),{})):i),n}),vt({},e)):e}function Rn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Pn||(Pn={}));var In=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
630
630
|
// Hot path for straight simple msg translations
|
|
631
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===
|
|
631
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Pn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Cn(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},
|
|
632
632
|
// Defined first because it's used to build the format pattern.
|
|
633
633
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
634
634
|
// Parse string messages into an AST.
|
|
635
635
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
636
636
|
// Creates a new object with the specified `formats` merged with the default
|
|
637
637
|
// formats.
|
|
638
|
-
this.formats=
|
|
638
|
+
this.formats=Ln(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{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,wt([void 0],t,!1)))}),{cache:Rn(o.number),strategy:On.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,wt([void 0],t,!1)))}),{cache:Rn(o.dateTime),strategy:On.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,wt([void 0],t,!1)))}),{cache:Rn(o.pluralRules),strategy:On.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=wn,
|
|
639
639
|
// Default format options used as the prototype of the `formats` provided to the
|
|
640
640
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
641
641
|
// and Intl.DateTimeFormat instances.
|
|
642
|
-
e.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"}}},e}();const
|
|
642
|
+
e.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"}}},e}();const $n={},Yn=(e,t,n)=>n?(t in $n||($n[t]={}),e in $n[t]||($n[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in $n&&e in $n[t])return $n[t][e];const n=fr(t);for(let r=0;r<n.length;r++){const i=Vn(n[r],e);if(i)return Yn(e,t,i)}};let Gn;const jn=nt({});function Wn(e){return e in Gn}function Vn(e,t){if(!Wn(e))return null;const n=function(e){return Gn[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function zn(e,...t){delete $n[e],jn.update((n=>(n[e]=dt.all([n[e]||{},...t]),n)))}rt([jn],(([e])=>Object.keys(e))),jn.subscribe((e=>Gn=e));const Zn={};function Xn(e){return Zn[e]}function qn(e){return null!=e&&fr(e).some((e=>{var t;return null==(t=Xn(e))?void 0:t.size}))}function Kn(e,t){const n=Promise.all(t.map((t=>(function(e,t){Zn[e].delete(t),0===Zn[e].size&&delete Zn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>zn(e,...t)))}const Jn={};function Qn(e){if(!qn(e))return e in Jn?Jn[e]:Promise.resolve();const t=function(e){return fr(e).map((e=>{const t=Xn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Jn[e]=Promise.all(t.map((([e,t])=>Kn(e,t)))).then((()=>{if(qn(e))return Qn(e);delete Jn[e]})),Jn[e]}const er={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function tr(){return er}const nr=nt(!1);var rr=Object.defineProperty,ir=Object.defineProperties,or=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,ur=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let cr;const hr=nt(null);function dr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function fr(e,t=tr().fallbackLocale){const n=dr(e);return t?[...new Set([...n,...dr(t)])]:n}function pr(){return null!=cr?cr:void 0}hr.subscribe((e=>{cr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const mr=(yr=((e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&ur(e,n,t[n]);if(sr)for(var n of sr(t))lr.call(t,n)&&ur(e,n,t[n]);return e})({},hr),ir(yr,or({set:e=>{if(e&&function(e){if(null==e)return;const t=fr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Wn(n))return n}}(e)&&qn(e)){const{loadingDelay:t}=tr();let n;return"undefined"!=typeof window&&null!=pr()&&t?n=window.setTimeout((()=>nr.set(!0)),t):nr.set(!0),Qn(e).then((()=>{hr.set(e)})).finally((()=>{clearTimeout(n),nr.set(!1)}))}return hr.set(e)}})));var yr;const gr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var vr=Object.defineProperty,wr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Er=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t)=>{for(var n in t||(t={}))br.call(t,n)&&Er(e,n,t[n]);if(wr)for(var n of wr(t))_r.call(t,n)&&Er(e,n,t[n]);return e},Tr=(e,t)=>{var n={};for(var r in e)br.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wr)for(var r of wr(e))t.indexOf(r)<0&&_r.call(e,r)&&(n[r]=e[r]);return n};const Mr=(e,t)=>{const{formats:n}=tr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xr=gr((e=>{var t=e,{locale:n,format:r}=t,i=Tr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Mr("number",r)),new Intl.NumberFormat(n,i)})),kr=gr((e=>{var t=e,{locale:n,format:r}=t,i=Tr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Mr("date",r):0===Object.keys(i).length&&(i=Mr("date","short")),new Intl.DateTimeFormat(n,i)})),Dr=gr((e=>{var t=e,{locale:n,format:r}=t,i=Tr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Mr("time",r):0===Object.keys(i).length&&(i=Mr("time","short")),new Intl.DateTimeFormat(n,i)})),Or=gr((
|
|
643
643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
644
|
-
(e,t=
|
|
644
|
+
(e,t=pr())=>new In(e,t,tr().formats,{ignoreTag:tr().ignoreTag}))),Pr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=pr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Un(e,l);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!=(o=null!=(i=null==(r=(n=tr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=Or(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Br=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Tr(t,["locale"]);return Dr(Sr({locale:n},r))})(t).format(e),Hr=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Tr(t,["locale"]);return kr(Sr({locale:n},r))})(t).format(e),Fr=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Tr(t,["locale"]);return xr(Sr({locale:n},r))})(t).format(e),Ar=(e,t=pr())=>Un(e,t),Nr=rt([mr,jn],(()=>Pr));rt([mr],(()=>Br)),rt([mr],(()=>Hr)),rt([mr],(()=>Fr)),rt([mr,jn],(()=>Ar)),window.emWidgets={topic:(e,t=0)=>{if(-1==Qe.indexOf(e)){let n=new Je(t);et[e]=n,Qe.push(e)}return et[e]}};
|
|
645
645
|
/**
|
|
646
646
|
* @name isMobile
|
|
647
647
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
648
648
|
* @param {String} userAgent window.navigator.userAgent
|
|
649
649
|
* @returns {Boolean} true or false
|
|
650
650
|
*/
|
|
651
|
-
const
|
|
651
|
+
const Cr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
|
652
652
|
/**
|
|
653
653
|
* @name getDevice
|
|
654
654
|
* @description A method that returns the type of the device
|
|
655
655
|
* @param {String} userAgent window.navigator.userAgent
|
|
656
656
|
* @returns {String} Android/iPhone/iPad/PC
|
|
657
|
-
*/function
|
|
657
|
+
*/function Lr(e,t){zn(e,t)}const Rr={en:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"zh-hk":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"},it:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},fr:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"},tr:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ru:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},hr:{signIn:"Prijava",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započni sada!",breakButton:"Držite gumb 3 sekunde za trenutno zaključavanje na 24 sata"},hu:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pl:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pt:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sl:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sr:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}};function Ir(e,t){zn(e,t)}const $r={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."},hr:{title:"Uplata",loading:"Učitavanje"}};
|
|
658
658
|
/* ../player-deposit/src/PlayerDeposit.svelte generated by Svelte v3.59.2 */
|
|
659
|
-
// (
|
|
660
|
-
function Yr(e){let t,n,r;return{c(){t=g("div"),n=g("iframe"),
|
|
661
|
-
// (
|
|
662
|
-
function Ur(e){let t,n,r=/*$_*/e[4]("loading")+"";return{c(){t=g("p"),n=
|
|
663
|
-
return e[1]?Ur:Yr}let c=u(e),h=c(e);return{c(){t=g("div"),l&&l.c(),n=
|
|
659
|
+
// (157:2) {:else}
|
|
660
|
+
function Yr(e){let t,n,r;return{c(){t=g("div"),n=g("iframe"),c(n.src,r=/*iframeUrl*/e[3])||E(n,"src",r),E(n,"title","Deposit Iframe"),E(t,"class","DepositIframeWrapper")},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*iframeUrl*/8&t&&!c(n.src,r=/*iframeUrl*/e[3])&&E(n,"src",r)},d(e){e&&y(t)}}}
|
|
661
|
+
// (155:2) {#if isLoading}
|
|
662
|
+
function Ur(e){let t,n,r=/*$_*/e[4]("loading")+"";return{c(){t=g("p"),n=w(r)},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*$_*/16&t&&r!==(r=/*$_*/e[4]("loading")+"")&&T(n,r)},d(e){e&&y(t)}}}function Gr(e){let t,n,i,o,s,a=/*$_*/e[4]("title")+"",l=/*isMobile*/e[5]&&function(e){let t,n,r,i,o,s,a,l,u,c,h,d,f,S=/*$_*/e[4]("title")+"";return{c(){t=g("div"),n=v("svg"),r=v("defs"),i=v("style"),o=w(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=v("g"),a=v("g"),l=v("path"),u=b(),c=g("h2"),h=w(S),E(l,"class","aaa"),E(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),E(l,"transform","translate(15 15) rotate(180)"),E(a,"transform","translate(20 158)"),E(s,"transform","translate(-20 -158)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"width","15"),E(n,"height","15"),E(n,"viewBox","0 0 15 15"),E(c,"class","DepositTitleMobile"),E(t,"class","MenuReturnButton")},m(y,g){m(y,t,g),p(t,n),p(n,r),p(r,i),p(i,o),p(n,s),p(s,a),p(a,l),p(t,u),p(t,c),p(c,h),d||(f=_(t,"click",/*click_handler*/e[17]),d=!0)},p(e,t){/*$_*/16&t&&S!==(S=/*$_*/e[4]("title")+"")&&T(h,S)},d(e){e&&y(t),d=!1,f()}}}(e);function u(e,t){/*isLoading*/
|
|
663
|
+
return e[1]?Ur:Yr}let c=u(e),h=c(e);return{c(){t=g("div"),l&&l.c(),n=b(),i=g("h2"),o=w(a),s=b(),h.c(),this.c=r,E(i,"class","DepositTitle "+(/*isMobile*/e[5]?"DepositTitleNone":"")),E(t,"class","DepositWrapper "+(/*isMobile*/e[5]?"DepositWrapperMobile":"")),M(t,"--dynamic-height",/*dynamicHeight*/e[2])},m(r,a){m(r,t,a),l&&l.m(t,null),p(t,n),p(t,i),p(i,o),p(t,s),h.m(t,null),
|
|
664
664
|
/*div_binding*/e[18](t)},p(e,[n]){/*isMobile*/e[5]&&l.p(e,n),/*$_*/16&n&&a!==(a=/*$_*/e[4]("title")+"")&&T(o,a),c===(c=u(e))&&h?h.p(e,n):(h.d(1),h=c(e),h&&(h.c(),h.m(t,null))),/*dynamicHeight*/4&n&&M(t,"--dynamic-height",/*dynamicHeight*/e[2])},i:r,o:r,d(n){n&&y(t),l&&l.d(),h.d(),
|
|
665
|
-
/*div_binding*/e[18](null)}}}function
|
|
665
|
+
/*div_binding*/e[18](null)}}}function jr(e,t,n){let r;d(e,Nr,(e=>n(4,r=e)));let i,o,{endpoint:s=""}=t,{session:a=""}=t,{playerid:l=""}=t,{lang:u="en"}=t,{hasdefaultamount:c=""}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{translationurl:p=""}=t,{playercurrency:m=""}=t,{shortcashierenabled:y="false"}=t,g=window.navigator.userAgent,v="PC"!==Cr(g),w=!0,b=0,_="";Object.keys($r).forEach((e=>{Ir(e,$r[e])}));const E=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},S=e=>{if(e.data){if("ProfileDetailsData"===e.data.type)n(7,m=e.data.profileDetails.currency);switch(e.data["MMFE:setQuickDepositHeight"]&&n(2,o=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),"true"===e.data["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href)}}},T=()=>{var e;e=u,mr.set(e)};P((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})));return e.$$set=e=>{"endpoint"in e&&n(8,s=e.endpoint),"session"in e&&n(9,a=e.session),"playerid"in e&&n(10,l=e.playerid),"lang"in e&&n(11,u=e.lang),"hasdefaultamount"in e&&n(12,c=e.hasdefaultamount),"clientstyling"in e&&n(13,h=e.clientstyling),"clientstylingurl"in e&&n(14,f=e.clientstylingurl),"translationurl"in e&&n(15,p=e.translationurl),"playercurrency"in e&&n(7,m=e.playercurrency),"shortcashierenabled"in e&&n(16,y=e.shortcashierenabled)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&u&&T(),/*clientstylingurl, customStylingContainer*/16385&e.$$.dirty&&f&&i&&(()=>{let e=new URL(f),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/8193&e.$$.dirty&&h&&i&&(()=>{let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)})(),/*translationurl*/32768&e.$$.dirty&&p&&fetch(p).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ir(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/69504&e.$$.dirty&&a&&l&&s&&m&&u&&y&&(()=>{let e=new URL(`${s}/v1/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(y&&e.searchParams.append("isShortCashier",y),c)switch(m){case"USD":b=.4;break;case"CDF":b=1e3}let t={method:"POST",headers:{"X-SessionId":a,currency:m||"EUR",amount:b,cashierMode:"Default",IsShortCashier:y,accept:"application/json"}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(1,w=!1),n(3,_=e.CashierUrl)}),(e=>{console.error(e)}))})()},[i,w,o,_,r,v,E,m,s,a,l,u,c,h,f,p,y,()=>E(),function(e){H[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}function Wr(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}!customElements.get("player-deposit")&&customElements.define("player-deposit",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},jr,Gr,l,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},null),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[8]}set endpoint(e){this.$$set({endpoint:e}),$()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),$()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),$()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),$()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),$()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),$()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(e){this.$$set({playercurrency:e}),$()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),$()}}),
|
|
666
666
|
/* eslint-disable */
|
|
667
667
|
window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t){var r=window.cstmNativeBridge.eventListeners[n];return window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"==typeof t){
|
|
668
668
|
// copy everything except first param, which is the event.
|
|
669
|
-
var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var
|
|
669
|
+
var n=Array.prototype.slice.call(arguments,1);return t.apply(this,n),!0}return console.error("Native Bridge `"+e+"` method is not defined"),!1};var Vr={getBridge:function(){try{return n.default.readFileSync(`${__dirname}/bridge.js`,"utf8")}catch(e){return console.error("Cannot load bridge script:",e),""}},isNative:function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},call:function(e,...t){try{return Wr(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},registerEventListener:function(e,t){try{return Wr(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}}},zr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return ge(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
670
670
|
// This is done to register the method called with moment()
|
|
671
671
|
// without creating circular dependencies.
|
|
672
672
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
@@ -677,36 +677,36 @@ return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a
|
|
|
677
677
|
return{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}}function y(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=p(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}
|
|
678
678
|
// Plugins that add properties should also add the key here (null value),
|
|
679
679
|
// so we can properly clone ourselves.
|
|
680
|
-
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var
|
|
680
|
+
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=r.momentProperties=[],b=!1;function _(e,t){var n,r,i,o=w.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=y(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=w[n]])||(e[r]=i);return e}
|
|
681
681
|
// Moment prototype object
|
|
682
682
|
function E(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
683
683
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
684
684
|
// objects.
|
|
685
|
-
!1===
|
|
685
|
+
!1===b&&(b=!0,r.updateOffset(this),b=!1)}function S(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,k={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(T(t),k[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
686
686
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
687
687
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
688
688
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
689
689
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(
|
|
690
690
|
// make sure changes to properties don't modify parent config
|
|
691
|
-
r[n]=f({},r[n]));return r}function H(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,
|
|
691
|
+
r[n]=f({},r[n]));return r}function H(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var C=/(\[[^\[]*\])|(\\)?([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,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};
|
|
692
692
|
// token: 'M'
|
|
693
693
|
// padded: ['MM', 2]
|
|
694
694
|
// ordinal: 'Mo'
|
|
695
695
|
// callback: function () { this.month() + 1 }
|
|
696
|
-
function
|
|
696
|
+
function $(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(C);for(t=0,n=r.length;t<n;t++)I[r[t]]?r[t]=I[r[t]]:r[t]=Y(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}
|
|
697
697
|
// format date using native date object
|
|
698
|
-
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]
|
|
698
|
+
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||U(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var W={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"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var z="Invalid date";function Z(){return this._invalidDate}var X="%d",q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var J={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"};function Q(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)a(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function ae(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function he(e,t){return function(n){return null!=n?(fe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
699
699
|
// MOMENTS
|
|
700
|
-
function pe(e){return O(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=re(e)]))return this[e](t);return this}var
|
|
701
|
-
|
|
702
|
-
|
|
700
|
+
function pe(e){return O(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=re(e)]))return this[e](t);return this}var ye,ve=/\d/,// 0 - 9
|
|
701
|
+
we=/\d\d/,// 00 - 99
|
|
702
|
+
be=/\d{3}/,// 000 - 999
|
|
703
703
|
_e=/\d{4}/,// 0000 - 9999
|
|
704
704
|
Ee=/[+-]?\d{6}/,// -999999 - 999999
|
|
705
705
|
Se=/\d\d?/,// 0 - 99
|
|
706
706
|
Te=/\d\d\d\d?/,// 999 - 9999
|
|
707
707
|
Me=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
708
|
-
|
|
709
|
-
|
|
708
|
+
xe=/\d{1,3}/,// 0 - 999
|
|
709
|
+
ke=/\d{1,4}/,// 0 - 9999
|
|
710
710
|
De=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
711
711
|
Oe=/\d+/,// 0 - inf
|
|
712
712
|
Pe=/[+-]?\d+/,// -inf - inf
|
|
@@ -715,19 +715,19 @@ He=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
|
715
715
|
Fe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
716
716
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
717
717
|
// includes scottish gaelic two word and hyphenated months
|
|
718
|
-
Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){
|
|
718
|
+
Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){ye[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ce(e,t){return a(ye,e)?ye[e](t._strict,t._locale):new RegExp(Le(e))}
|
|
719
719
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
720
|
-
function Le(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}
|
|
720
|
+
function Le(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Ie={};function $e(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ie[e[n]]=i}function Ye(e,t){$e(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&a(Ie,e)&&Ie[e](t,n._a,n,e)}var Ge,je=0,We=1,Ve=2,ze=3,Ze=4,Xe=5,qe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
|
721
721
|
// FORMATTING
|
|
722
722
|
Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
723
723
|
// I know
|
|
724
|
-
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1}
|
|
724
|
+
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),$("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
|
725
725
|
// ALIASES
|
|
726
726
|
ne("month","M"),
|
|
727
727
|
// PRIORITY
|
|
728
728
|
se("month",8),
|
|
729
729
|
// PARSING
|
|
730
|
-
Ne("M",Se),Ne("MM",Se,
|
|
730
|
+
Ne("M",Se),Ne("MM",Se,we),Ne("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ne("MMMM",(function(e,t){return t.monthsRegex(e)})),$e(["M","MM"],(function(e,t){t[We]=ce(e)-1})),$e(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
|
731
731
|
// if we didn't find a month name, mark the date as invalid.
|
|
732
732
|
null!=i?t[We]=i:y(n).invalidMonth=e}));
|
|
733
733
|
// LOCALES
|
|
@@ -757,57 +757,57 @@ for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Re(r[t]),i[t]=Re(i[t]);for(t
|
|
|
757
757
|
// HELPERS
|
|
758
758
|
function yt(e){return le(e)?366:365}
|
|
759
759
|
// HOOKS
|
|
760
|
-
|
|
760
|
+
$("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),
|
|
761
761
|
// ALIASES
|
|
762
762
|
ne("year","y"),
|
|
763
763
|
// PRIORITIES
|
|
764
764
|
se("year",1),
|
|
765
765
|
// PARSING
|
|
766
|
-
Ne("Y",Pe),Ne("YY",Se,
|
|
766
|
+
Ne("Y",Pe),Ne("YY",Se,we),Ne("YYYY",ke,_e),Ne("YYYYY",De,Ee),Ne("YYYYYY",De,Ee),$e(["YYYYY","YYYYYY"],je),$e("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),$e("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),$e("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};
|
|
767
767
|
// MOMENTS
|
|
768
|
-
var gt=he("FullYear",!0);function vt(){return le(this.year())}function
|
|
768
|
+
var gt=he("FullYear",!0);function vt(){return le(this.year())}function wt(e,t,n,r,i,o,s){
|
|
769
769
|
// can't just apply() to create a date:
|
|
770
770
|
// https://stackoverflow.com/q/181348
|
|
771
771
|
var a;
|
|
772
772
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
773
773
|
return e<100&&e>=0?(
|
|
774
774
|
// preserve leap years using a full 400 year cycle, then reset
|
|
775
|
-
a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function
|
|
775
|
+
a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function bt(e){var t,n;
|
|
776
776
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
777
777
|
return e<100&&e>=0?(
|
|
778
778
|
// preserve leap years using a full 400 year cycle, then reset
|
|
779
779
|
(n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
|
|
780
780
|
// start-of-first-week - start-of-year
|
|
781
781
|
function _t(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
782
|
-
r=7+t-n;return-(7+
|
|
782
|
+
r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}
|
|
783
783
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
784
784
|
function Et(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return a<=0?s=yt(o=e-1)+a:a>yt(e)?(o=e+1,s=a-yt(e)):(o=e,s=a),{year:o,dayOfYear:s}}function St(e,t,n){var r,i,o=_t(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Tt(i=e.year()-1,t,n):s>Tt(e.year(),t,n)?(r=s-Tt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Tt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(yt(e)-r+i)/7}
|
|
785
785
|
// FORMATTING
|
|
786
786
|
// HELPERS
|
|
787
787
|
// LOCALES
|
|
788
|
-
function Mt(e){return St(e,this._week.dow,this._week.doy).week}
|
|
788
|
+
function Mt(e){return St(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),
|
|
789
789
|
// ALIASES
|
|
790
790
|
ne("week","w"),ne("isoWeek","W"),
|
|
791
791
|
// PRIORITIES
|
|
792
792
|
se("week",5),se("isoWeek",5),
|
|
793
793
|
// PARSING
|
|
794
|
-
Ne("w",Se),Ne("ww",Se,
|
|
795
|
-
doy:6};function
|
|
794
|
+
Ne("w",Se),Ne("ww",Se,we),Ne("W",Se),Ne("WW",Se,we),Ye(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var xt={dow:0,// Sunday is the first day of the week.
|
|
795
|
+
doy:6};function kt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
796
796
|
// MOMENTS
|
|
797
797
|
function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
798
798
|
// FORMATTING
|
|
799
799
|
// HELPERS
|
|
800
800
|
function Bt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
801
801
|
// LOCALES
|
|
802
|
-
function Ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}
|
|
802
|
+
function Ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),$("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),$("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),
|
|
803
803
|
// ALIASES
|
|
804
804
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
805
805
|
// PRIORITY
|
|
806
806
|
se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
807
807
|
// PARSING
|
|
808
|
-
Ne("d",Se),Ne("e",Se),Ne("E",Se),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),
|
|
808
|
+
Ne("d",Se),Ne("e",Se),Ne("E",Se),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ye(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
809
809
|
// if we didn't get a weekday name, mark the date as invalid
|
|
810
|
-
null!=i?t.d=i:y(n).invalidWeekday=e})),
|
|
810
|
+
null!=i?t.d=i:y(n).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Ae,Rt=Ae,It=Ae;function $t(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ft(n,this._week.dow):e?n[e.day()]:n}function Yt(e){return!0===e?Ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
811
811
|
// test the regex
|
|
812
812
|
if(
|
|
813
813
|
// make the regex if we don't have it already
|
|
@@ -824,23 +824,23 @@ n=p([2e3,1]).day(t),r=Re(this.weekdaysMin(n,"")),i=Re(this.weekdaysShort(n,"")),
|
|
|
824
824
|
// will match the longer piece.
|
|
825
825
|
s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
|
|
826
826
|
// FORMATTING
|
|
827
|
-
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){
|
|
827
|
+
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){$(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
|
|
828
828
|
// PARSING
|
|
829
829
|
function tn(e,t){return t._meridiemParse}
|
|
830
830
|
// LOCALES
|
|
831
831
|
function nn(e){
|
|
832
832
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
833
833
|
// Using charAt should be more compatible.
|
|
834
|
-
return"p"===(e+"").toLowerCase().charAt(0)}
|
|
834
|
+
return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Jt),$("k",["kk",2],0,Qt),$("hmm",0,0,(function(){return""+Jt.apply(this)+N(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Jt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),
|
|
835
835
|
// ALIASES
|
|
836
836
|
ne("hour","h"),
|
|
837
837
|
// PRIORITY
|
|
838
|
-
se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",Se),Ne("h",Se),Ne("k",Se),Ne("HH",Se,
|
|
838
|
+
se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",Se),Ne("h",Se),Ne("k",Se),Ne("HH",Se,we),Ne("hh",Se,we),Ne("kk",Se,we),Ne("hmm",Te),Ne("hmmss",Me),Ne("Hmm",Te),Ne("Hmmss",Me),$e(["H","HH"],ze),$e(["k","kk"],(function(e,t,n){var r=ce(e);t[ze]=24===r?0:r})),$e(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),$e(["h","hh"],(function(e,t,n){t[ze]=ce(e),y(n).bigHour=!0})),$e("hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r)),y(n).bigHour=!0})),$e("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i)),y(n).bigHour=!0})),$e("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r))})),$e("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Xe]=ce(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
|
839
839
|
// Setting the hour should keep the time, because the user explicitly
|
|
840
840
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
841
841
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
842
842
|
// this rule.
|
|
843
|
-
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:F,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:
|
|
843
|
+
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:F,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:xt,weekdays:At,weekdaysMin:Ct,weekdaysShort:Nt,meridiemParse:rn},un={},cn={};
|
|
844
844
|
// internal storage for locale config files
|
|
845
845
|
function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
846
846
|
// pick the locale from the array
|
|
@@ -852,7 +852,7 @@ break;t--}o++}return an}function pn(e){
|
|
|
852
852
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
853
853
|
return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;
|
|
854
854
|
// TODO: Find a better way to register and load all the locales in Node
|
|
855
|
-
if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,
|
|
855
|
+
if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,ge(),yn(n)}catch(e){
|
|
856
856
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
857
857
|
// when trying to find en-US, en_US, en-us for every format call
|
|
858
858
|
un[t]=null;// null means not found
|
|
@@ -860,7 +860,7 @@ un[t]=null;// null means not found
|
|
|
860
860
|
// This function will load locale and then set the global locale. If
|
|
861
861
|
// no arguments are passed in, it will simply return the current global
|
|
862
862
|
// locale key.
|
|
863
|
-
function yn(e,t){var n;return e&&((n=u(t)?
|
|
863
|
+
function yn(e,t){var n;return e&&((n=u(t)?wn(e):gn(e,t))?
|
|
864
864
|
// moment.duration._locale = moment._locale = data;
|
|
865
865
|
an=n:"undefined"!=typeof console&&console.warn&&
|
|
866
866
|
//warn user if arguments are passed but the locale could not be set
|
|
@@ -884,28 +884,28 @@ yn(e)}else
|
|
|
884
884
|
// pass null for config to unupdate, useful for tests
|
|
885
885
|
null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===yn()&&yn(e)):null!=un[e]&&delete un[e]);return un[e]}
|
|
886
886
|
// returns locale data
|
|
887
|
-
function
|
|
887
|
+
function wn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
|
888
888
|
//short-circuit everything else
|
|
889
|
-
t=mn(e))return t;e=[e]}return fn(e)}function
|
|
889
|
+
t=mn(e))return t;e=[e]}return fn(e)}function bn(){return x(un)}function _n(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>et(n[je],n[We])?Ve:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ze]||0!==n[Xe]||0!==n[qe])?ze:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[qe]<0||n[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<je||t>Ve)&&(t=Ve),y(e)._overflowWeeks&&-1===t&&(t=Ke),y(e)._overflowWeekday&&-1===t&&(t=Je),y(e).overflow=t),e}
|
|
890
890
|
// iso 8601 regex
|
|
891
891
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
892
892
|
var En=/^\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)?)?$/,Sn=/^\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)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["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]],
|
|
893
893
|
// iso time formats and regexes
|
|
894
|
-
|
|
894
|
+
xn=[["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/]],kn=/^\/?Date\((-?\d+)/i,
|
|
895
895
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
896
896
|
Dn=/^(?:(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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
897
897
|
// date from iso format
|
|
898
|
-
function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=
|
|
898
|
+
function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=xn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(Mn[t][1].exec(l[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(xn[t][1].exec(l[3])){
|
|
899
899
|
// match[2] should be 'T' or space
|
|
900
|
-
o=(l[2]||" ")+
|
|
900
|
+
o=(l[2]||" ")+xn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function Bn(e,t,n,r,i,o){var s=[Hn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Fn(e){
|
|
901
901
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
902
902
|
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return On[e];if(t)
|
|
903
903
|
// the only allowed military tz is Z
|
|
904
904
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
905
905
|
// date and time from ref 2822 format
|
|
906
|
-
function Cn(e){var t,n=Dn.exec(Fn(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=
|
|
906
|
+
function Cn(e){var t,n=Dn.exec(Fn(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
|
|
907
907
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
908
|
-
function Ln(e){var t=
|
|
908
|
+
function Ln(e){var t=kn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
909
909
|
// Final attempt, use Input Fallback
|
|
910
910
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
911
911
|
// Pick the first defined of two or three arguments.
|
|
@@ -916,7 +916,7 @@ var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.g
|
|
|
916
916
|
// the array should mirror the parameters below
|
|
917
917
|
// note: all values past the year are optional and will default to the lowest possible value.
|
|
918
918
|
// [year, month, day , hour, minute, second, millisecond]
|
|
919
|
-
function
|
|
919
|
+
function $n(e){var t,n,r,i,o,s=[];if(!e._d){
|
|
920
920
|
// Default to current date.
|
|
921
921
|
// * if no year, month, day of month are given, default to today
|
|
922
922
|
// * if day of month is given, default month and year
|
|
@@ -924,18 +924,18 @@ function Yn(e){var t,n,r,i,o,s=[];if(!e._d){
|
|
|
924
924
|
// * if year is given, don't default anything
|
|
925
925
|
for(r=In(e),
|
|
926
926
|
//compute day of the year from weeks and weekdays
|
|
927
|
-
e._w&&null==e._a[Ve]&&null==e._a[We]&&
|
|
927
|
+
e._w&&null==e._a[Ve]&&null==e._a[We]&&Yn(e),
|
|
928
928
|
//if the day of the year is set, figure out what it is
|
|
929
|
-
null!=e._dayOfYear&&(o=Rn(e._a[je],r[je]),(e._dayOfYear>yt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=
|
|
929
|
+
null!=e._dayOfYear&&(o=Rn(e._a[je],r[je]),(e._dayOfYear>yt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
|
930
930
|
// Zero out whatever was not defaulted, including time
|
|
931
931
|
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
932
932
|
// Check for 24:00:00.000
|
|
933
|
-
24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[qe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?wt
|
|
933
|
+
24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[qe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?bt:wt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
934
934
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
935
935
|
// with parseZone.
|
|
936
936
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),
|
|
937
937
|
// check for mismatching day of week
|
|
938
|
-
e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function
|
|
938
|
+
e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
|
|
939
939
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
940
940
|
// how we interpret now (local, utc, fixed offset). So create
|
|
941
941
|
// a now version of current config (take local/utc/offset flags, and
|
|
@@ -951,13 +951,13 @@ i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
|
|
|
951
951
|
i=o),r<1||r>Tt(n,o,s)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(a=Et(n,r,i,o,s),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}
|
|
952
952
|
// constant that refers to the ISO standard
|
|
953
953
|
// date from string and format string
|
|
954
|
-
function
|
|
954
|
+
function Un(e){
|
|
955
955
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
956
956
|
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;
|
|
957
957
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
958
958
|
var t,n,i,o,s,a,l,u=""+e._i,c=u.length,h=0;for(l=(i=j(e._f,e._locale).match(C)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(Ce(o,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&y(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),
|
|
959
959
|
// don't parse if it's not a known token
|
|
960
|
-
I[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o)
|
|
960
|
+
I[o]?(n?y(e).empty=!1:y(e).unusedTokens.push(o),Ue(o,n,e)):e._strict&&!n&&y(e).unusedTokens.push(o);
|
|
961
961
|
// add remaining unparsed input length to the string
|
|
962
962
|
y(e).charsLeftOver=c-h,u.length>0&&y(e).unusedInput.push(u),
|
|
963
963
|
// clear _12h flag if hour is <= 12
|
|
@@ -965,17 +965,17 @@ e._a[ze]<=12&&!0===y(e).bigHour&&e._a[ze]>0&&(y(e).bigHour=void 0),y(e).parsedDa
|
|
|
965
965
|
// handle meridiem
|
|
966
966
|
e._a[ze]=Gn(e._locale,e._a[ze],e._meridiem),null!==(
|
|
967
967
|
// handle era
|
|
968
|
-
a=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je]))
|
|
968
|
+
a=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),$n(e),_n(e)}else Cn(e);else Pn(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
969
969
|
// Fallback
|
|
970
970
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
971
971
|
// date from string and array of format strings
|
|
972
|
-
function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i]
|
|
972
|
+
function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),g(t)&&(s=!0),
|
|
973
973
|
// if there is any input that was not parsed add a penalty for that format
|
|
974
974
|
o+=y(t).charsLeftOver,
|
|
975
975
|
//or tokens
|
|
976
|
-
o+=10*y(t).unusedTokens.length,y(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));f(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)}))
|
|
976
|
+
o+=10*y(t).unusedTokens.length,y(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));f(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),$n(e)}}function Vn(e){var t=new E(_n(zn(e)));return t._nextDay&&(
|
|
977
977
|
// Adding is smart enough around DST
|
|
978
|
-
t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||
|
|
978
|
+
t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||wn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new E(_n(t)):(h(t)?e._d=t:o(n)?jn(e):n?Un(e):Zn(e),g(e)||(e._d=null),e))}function Zn(e){var t=e._i;u(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ln(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),$n(e)):s(t)?Wn(e):c(t)?
|
|
979
979
|
// from milliseconds
|
|
980
980
|
e._d=new Date(t):r.createFromInputFallback(e)}function Xn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),
|
|
981
981
|
// object construction must be done this way.
|
|
@@ -1002,13 +1002,13 @@ this._days=+s+7*o,
|
|
|
1002
1002
|
// It is impossible to translate months into days without knowing
|
|
1003
1003
|
// which months you are are talking about, so we have to store
|
|
1004
1004
|
// it separately.
|
|
1005
|
-
this._months=+i+3*r+12*n,this._data={},this._locale=
|
|
1005
|
+
this._months=+i+3*r+12*n,this._data={},this._locale=wn(),this._bubble()}function lr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
1006
1006
|
// compare two arrays, return the number of differences
|
|
1007
1007
|
function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&s++;return s+o}
|
|
1008
1008
|
// FORMATTING
|
|
1009
|
-
function hr(e,t){
|
|
1009
|
+
function hr(e,t){$(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
|
|
1010
1010
|
// PARSING
|
|
1011
|
-
Ne("Z",He),Ne("ZZ",He)
|
|
1011
|
+
Ne("Z",He),Ne("ZZ",He),$e(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(He,e)}));
|
|
1012
1012
|
// HELPERS
|
|
1013
1013
|
// timezone chunker
|
|
1014
1014
|
// '+10:00' > ['10', '00']
|
|
@@ -1034,15 +1034,15 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1034
1034
|
// a second time. In case it wants us to change the offset again
|
|
1035
1035
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1036
1036
|
// there is no such time in the given timezone.
|
|
1037
|
-
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(He,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Ar(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function
|
|
1037
|
+
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(He,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Ar(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function wr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1038
1038
|
// ASP.NET json date format regex
|
|
1039
|
-
r.updateOffset=function(){};var
|
|
1039
|
+
r.updateOffset=function(){};var kr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1040
1040
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1041
1041
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1042
1042
|
// and further modified to allow for strings containing both week and day
|
|
1043
1043
|
Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,i,o=e,
|
|
1044
1044
|
// matching against regexp is expensive, do it on demand
|
|
1045
|
-
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=
|
|
1045
|
+
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=kr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[Ve])*n,h:ce(s[ze])*n,m:ce(s[Ze])*n,s:ce(s[Xe])*n,ms:ce(ur(1e3*s[qe]))*n}):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:Pr(s[2],n),M:Pr(s[3],n),w:Pr(s[4],n),d:Pr(s[5],n),h:Pr(s[6],n),m:Pr(s[7],n),s:Pr(s[8],n)}):null==o?
|
|
1046
1046
|
// checks for null or undefined
|
|
1047
1047
|
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Hr(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&a(e,"_locale")&&(r._locale=e._locale),lr(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){
|
|
1048
1048
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
@@ -1056,9 +1056,9 @@ function Fr(e,t){return function(n,r){var i;
|
|
|
1056
1056
|
//invert the arguments, but complain about it
|
|
1057
1057
|
return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Ar(this,Or(n,r),e),this}}function Ar(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Nr=Fr(1,"add"),Cr=Fr(-1,"subtract");function Lr(e){return"string"==typeof e||e instanceof String}
|
|
1058
1058
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1059
|
-
function Rr(e){return S(e)||h(e)||Lr(e)||c(e)
|
|
1059
|
+
function Rr(e){return S(e)||h(e)||Lr(e)||c(e)||$r(e)||Ir(e)||null==e}function Ir(e){var t,n,r=s(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||a(e,n);return r&&i}function $r(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Lr(e)})).length),t&&n}function Yr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){
|
|
1060
1060
|
// Support for single parameter, formats only overload to the calendar function
|
|
1061
|
-
1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):
|
|
1061
|
+
1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1062
1062
|
// We want to compare the start of today, vs this.
|
|
1063
1063
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1064
1064
|
var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,qn(n)))}function jr(){return new E(this)}function Wr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=S(e)?e:qn(e),o=S(t)?t:qn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Zr(e,t){var n,r=S(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Xr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;// 1000
|
|
@@ -1087,15 +1087,15 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
1087
1087
|
// If passed a locale key, it will set the locale for this
|
|
1088
1088
|
// instance. Otherwise, it will return the locale configuration
|
|
1089
1089
|
// variables for this instance.
|
|
1090
|
-
function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=
|
|
1090
|
+
function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=wn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var ci=1e3,hi=60*ci,di=60*hi,fi=3506328*di;
|
|
1091
1091
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
1092
1092
|
function pi(e,t){return(e%t+t)%t}function mi(e,t,n){
|
|
1093
1093
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
1094
1094
|
return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function yi(e,t,n){
|
|
1095
1095
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1096
|
-
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,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-=pi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,hi);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,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+=di-pi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-pi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function
|
|
1096
|
+
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,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-=pi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,hi);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,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+=di-pi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-pi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function Ei(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){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()}}function Ti(){
|
|
1097
1097
|
// new Date(NaN).toJSON() === null
|
|
1098
|
-
return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function
|
|
1098
|
+
return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function xi(){return f({},y(this))}function ki(){return y(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,s=this._eras||wn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
|
|
1099
1099
|
// truncate time
|
|
1100
1100
|
o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
|
|
1101
1101
|
// truncate time
|
|
@@ -1107,36 +1107,36 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
|
1107
1107
|
// truncate time
|
|
1108
1108
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ni(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
|
|
1109
1109
|
// truncate time
|
|
1110
|
-
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Li(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ii(e,t){return t.erasAbbrRegex(e)}function
|
|
1110
|
+
i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ci(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Li(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ii(e,t){return t.erasAbbrRegex(e)}function $i(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||Oe}function Gi(){var e,t,n=[],r=[],i=[],o=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Re(s[e].name)),n.push(Re(s[e].abbr)),i.push(Re(s[e].narrow)),o.push(Re(s[e].name)),o.push(Re(s[e].abbr)),o.push(Re(s[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
|
1111
1111
|
// FORMATTING
|
|
1112
|
-
function ji(e,t){
|
|
1112
|
+
function ji(e,t){$(0,[e,e.length],0,t)}
|
|
1113
1113
|
// MOMENTS
|
|
1114
|
-
function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qi(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?St(this,r,i).year:(t>(o=Tt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=Et(e,t,n,r,i),s=
|
|
1114
|
+
function Wi(e){return Ki.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function qi(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?St(this,r,i).year:(t>(o=Tt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=Et(e,t,n,r,i),s=bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
|
1115
1115
|
// FORMATTING
|
|
1116
1116
|
// MOMENTS
|
|
1117
1117
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
1118
1118
|
// FORMATTING
|
|
1119
|
-
|
|
1119
|
+
$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ne("N",Ii),Ne("NN",Ii),Ne("NNN",Ii),Ne("NNNN",$i),Ne("NNNNN",Yi),$e(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Ne("y",Oe),Ne("yy",Oe),Ne("yyy",Oe),Ne("yyyy",Oe),Ne("yo",Ui),$e(["y","yy","yyy","yyyy"],je),$e(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[je]=n._locale.eraYearOrdinalParse(e,i):t[je]=parseInt(e,10)})),$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
|
|
1120
1120
|
// ALIASES
|
|
1121
1121
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1122
1122
|
// PRIORITY
|
|
1123
1123
|
se("weekYear",1),se("isoWeekYear",1),
|
|
1124
1124
|
// PARSING
|
|
1125
|
-
Ne("G",Pe),Ne("g",Pe),Ne("GG",Se,
|
|
1125
|
+
Ne("G",Pe),Ne("g",Pe),Ne("GG",Se,we),Ne("gg",Se,we),Ne("GGGG",ke,_e),Ne("gggg",ke,_e),Ne("GGGGG",De,Ee),Ne("ggggg",De,Ee),Ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Ye(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),$("Q",0,"Qo","quarter"),
|
|
1126
1126
|
// ALIASES
|
|
1127
1127
|
ne("quarter","Q"),
|
|
1128
1128
|
// PRIORITY
|
|
1129
1129
|
se("quarter",7),
|
|
1130
1130
|
// PARSING
|
|
1131
|
-
Ne("Q",ve)
|
|
1131
|
+
Ne("Q",ve),$e("Q",(function(e,t){t[We]=3*(ce(e)-1)})),$("D",["DD",2],"Do","date"),
|
|
1132
1132
|
// ALIASES
|
|
1133
1133
|
ne("date","D"),
|
|
1134
1134
|
// PRIORITY
|
|
1135
1135
|
se("date",9),
|
|
1136
1136
|
// PARSING
|
|
1137
|
-
Ne("D",Se),Ne("DD",Se,
|
|
1137
|
+
Ne("D",Se),Ne("DD",Se,we),Ne("Do",(function(e,t){
|
|
1138
1138
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
1139
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}))
|
|
1139
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),$e(["D","DD"],Ve),$e("Do",(function(e,t){t[Ve]=ce(e.match(Se)[0])}));
|
|
1140
1140
|
// MOMENTS
|
|
1141
1141
|
var eo=he("Date",!0);
|
|
1142
1142
|
// FORMATTING
|
|
@@ -1144,43 +1144,43 @@ var eo=he("Date",!0);
|
|
|
1144
1144
|
// MOMENTS
|
|
1145
1145
|
function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
|
|
1146
1146
|
// FORMATTING
|
|
1147
|
-
|
|
1147
|
+
$("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
1148
1148
|
// ALIASES
|
|
1149
1149
|
ne("dayOfYear","DDD"),
|
|
1150
1150
|
// PRIORITY
|
|
1151
1151
|
se("dayOfYear",4),
|
|
1152
1152
|
// PARSING
|
|
1153
|
-
Ne("DDD",
|
|
1153
|
+
Ne("DDD",xe),Ne("DDDD",be),$e(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),$("m",["mm",2],0,"minute"),
|
|
1154
1154
|
// ALIASES
|
|
1155
1155
|
ne("minute","m"),
|
|
1156
1156
|
// PRIORITY
|
|
1157
1157
|
se("minute",14),
|
|
1158
1158
|
// PARSING
|
|
1159
|
-
Ne("m",Se),Ne("mm",Se,
|
|
1159
|
+
Ne("m",Se),Ne("mm",Se,we),$e(["m","mm"],Ze);
|
|
1160
1160
|
// MOMENTS
|
|
1161
1161
|
var no=he("Minutes",!1);
|
|
1162
1162
|
// FORMATTING
|
|
1163
|
-
|
|
1163
|
+
$("s",["ss",2],0,"second"),
|
|
1164
1164
|
// ALIASES
|
|
1165
1165
|
ne("second","s"),
|
|
1166
1166
|
// PRIORITY
|
|
1167
1167
|
se("second",15),
|
|
1168
1168
|
// PARSING
|
|
1169
|
-
Ne("s",Se),Ne("ss",Se,
|
|
1169
|
+
Ne("s",Se),Ne("ss",Se,we),$e(["s","ss"],Xe);
|
|
1170
1170
|
// MOMENTS
|
|
1171
1171
|
var ro,io,oo=he("Seconds",!1);
|
|
1172
1172
|
// FORMATTING
|
|
1173
|
-
for(
|
|
1173
|
+
for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
|
1174
1174
|
// ALIASES
|
|
1175
1175
|
ne("millisecond","ms"),
|
|
1176
1176
|
// PRIORITY
|
|
1177
1177
|
se("millisecond",16),
|
|
1178
1178
|
// PARSING
|
|
1179
|
-
Ne("S",
|
|
1179
|
+
Ne("S",xe,ve),Ne("SS",xe,we),Ne("SSS",xe,be),ro="SSSS";ro.length<=9;ro+="S")Ne(ro,Oe);function so(e,t){t[qe]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")$e(ro,so);
|
|
1180
1180
|
// MOMENTS
|
|
1181
1181
|
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=he("Milliseconds",!1),
|
|
1182
1182
|
// FORMATTING
|
|
1183
|
-
|
|
1183
|
+
$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Nr,uo.calendar=Gr,uo.clone=jr,uo.diff=Kr,uo.endOf=vi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=ki,uo.isAfter=Wr,uo.isBefore=Vr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=qr,uo.isValid=Mi,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=Kn,uo.parsingFlags=xi,uo.set=me,uo.startOf=gi,uo.subtract=Cr,uo.toArray=Ei,uo.toObject=Si,uo.toDate=_i,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=bi,uo.valueOf=wi,uo.creationData=Di,uo.eraName=Hi,uo.eraNarrow=Fi,uo.eraAbbr=Ai,uo.eraYear=Ni,uo.year=gt,uo.isLeapYear=vt,uo.weekYear=Wi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Ot,uo.isoWeek=uo.isoWeeks=Pt,uo.weeksInYear=Xi,uo.weeksInWeekYear=qi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=Zi,uo.date=eo,uo.day=uo.days=Wt,uo.weekday=Vt,uo.isoWeekday=zt,uo.dayOfYear=to,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=yr,uo.utc=vr,uo.local=wr,uo.parseZone=br,uo.hasAlignedHourOffset=_r,uo.isDST=Er,uo.isLocal=Tr,uo.isUtcOffset=Mr,uo.isUtc=xr,uo.isUTC=xr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=M("dates accessor is deprecated. Use date instead.",eo),uo.months=M("months accessor is deprecated. Use month instead",ht),uo.years=M("years accessor is deprecated. Use year instead",gt),uo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),uo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=H.prototype;function mo(e,t,n,r){var i=wn(),o=p().set(r,t);return i[n](o,e)}function yo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
|
|
1184
1184
|
// ()
|
|
1185
1185
|
// (5)
|
|
1186
1186
|
// (fmt, 5)
|
|
@@ -1189,13 +1189,13 @@ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var uo=E.prototype;function co(e){r
|
|
|
1189
1189
|
// (true, 5)
|
|
1190
1190
|
// (true, fmt, 5)
|
|
1191
1191
|
// (true, fmt)
|
|
1192
|
-
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=
|
|
1192
|
+
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=wn(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function vo(e,t){return yo(e,t,"months")}function wo(e,t){return yo(e,t,"monthsShort")}function bo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=A,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=P,po.eras=Oi,po.erasParse=Pi,po.erasConvertYear=Bi,po.erasAbbrRegex=Li,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=kt,po.weekdays=$t,po.weekdaysMin=Ut,po.weekdaysShort=Yt,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,yn("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===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1193
1193
|
// Side effect imports
|
|
1194
|
-
r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",
|
|
1194
|
+
r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",wn);var So=Math.abs;function To(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Mo(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1195
1195
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1196
|
-
function
|
|
1196
|
+
function xo(e,t){return Mo(this,e,t,1)}
|
|
1197
1197
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1198
|
-
function
|
|
1198
|
+
function ko(e,t){return Mo(this,e,t,-1)}function Do(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;
|
|
1199
1199
|
// if we have a mix of positive and negative values, bubble down first
|
|
1200
1200
|
// check: https://github.com/moment/moment/issues/2166
|
|
1201
1201
|
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Do(Bo(a)+s),s=0,a=0),
|
|
@@ -1216,7 +1216,7 @@ t=this._days+Math.round(Bo(this._months)),e){case"week":return t/7+r/6048e5;case
|
|
|
1216
1216
|
// Math.floor prevents floating point math errors here
|
|
1217
1217
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1218
1218
|
// TODO: Use this.as('ms')?
|
|
1219
|
-
function Fo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var No=Ao("ms"),Co=Ao("s"),Lo=Ao("m"),Ro=Ao("h"),Io=Ao("d")
|
|
1219
|
+
function Fo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var No=Ao("ms"),Co=Ao("s"),Lo=Ao("m"),Ro=Ao("h"),Io=Ao("d"),$o=Ao("w"),Yo=Ao("M"),Uo=Ao("Q"),Go=Ao("y");function jo(){return Or(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Vo("milliseconds"),Zo=Vo("seconds"),Xo=Vo("minutes"),qo=Vo("hours"),Ko=Vo("days"),Jo=Vo("months"),Qo=Vo("years");function es(){return ue(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
|
1220
1220
|
s:45,// seconds to minute
|
|
1221
1221
|
m:45,// minutes to hour
|
|
1222
1222
|
h:22,// hours to day
|
|
@@ -1242,13 +1242,13 @@ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
|
|
|
1242
1242
|
// 12 months -> 1 year
|
|
1243
1243
|
n=ue(c/12),c%=12,
|
|
1244
1244
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1245
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=
|
|
1245
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=xo,hs.subtract=ko,hs.as=Ho,hs.asMilliseconds=No,hs.asSeconds=Co,hs.asMinutes=Lo,hs.asHours=Ro,hs.asDays=Io,hs.asWeeks=$o,hs.asMonths=Yo,hs.asQuarters=Uo,hs.asYears=Go,hs.valueOf=Fo,hs._bubble=Oo,hs.clone=jo,hs.get=Wo,hs.milliseconds=zo,hs.seconds=Zo,hs.minutes=Xo,hs.hours=qo,hs.days=Ko,hs.weeks=es,hs.months=Jo,hs.years=Qo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ai,hs.localeData=ui,hs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=li,
|
|
1246
1246
|
// FORMATTING
|
|
1247
|
-
|
|
1247
|
+
$("X",0,0,"unix"),$("x",0,0,"valueOf"),
|
|
1248
1248
|
// PARSING
|
|
1249
|
-
Ne("x",Pe),Ne("X",Fe)
|
|
1249
|
+
Ne("x",Pe),Ne("X",Fe),$e("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),$e("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
1250
1250
|
//! moment.js
|
|
1251
|
-
r.version="2.29.4",i(qn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=vo,r.isDate=h,r.locale=yn,r.invalid=v,r.duration=Or,r.isMoment=S,r.weekdays=
|
|
1251
|
+
r.version="2.29.4",i(qn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=vo,r.isDate=h,r.locale=yn,r.invalid=v,r.duration=Or,r.isMoment=S,r.weekdays=bo,r.parseZone=ho,r.localeData=wn,r.isDuration=lr,r.monthsShort=wo,r.weekdaysMin=Eo,r.defineLocale=gn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Ur,r.prototype=uo,
|
|
1252
1252
|
// currently HTML5 input type only supports 24-hour formats
|
|
1253
1253
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1254
1254
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -1260,86 +1260,91 @@ TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
|
|
|
1260
1260
|
WEEK:"GGGG-[W]WW",// <input type="week" />
|
|
1261
1261
|
MONTH:"YYYY-MM"},r}()}));
|
|
1262
1262
|
/* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.59.2 */
|
|
1263
|
-
function
|
|
1264
|
-
return e[
|
|
1265
|
-
// (
|
|
1266
|
-
function
|
|
1267
|
-
// (
|
|
1268
|
-
function
|
|
1269
|
-
// (
|
|
1270
|
-
function
|
|
1271
|
-
return e[
|
|
1272
|
-
/*p_binding_1*/e[
|
|
1273
|
-
/*iframe_1_binding_1*/e[
|
|
1274
|
-
/*div3_binding_1*/e[
|
|
1275
|
-
/*div4_binding_1*/e[
|
|
1276
|
-
/*div5_binding*/,e[
|
|
1277
|
-
/*p_binding_1*/,e[
|
|
1278
|
-
/*iframe_1_binding_1*/,e[
|
|
1279
|
-
/*div3_binding_1*/e[
|
|
1280
|
-
/*div4_binding_1*/e[
|
|
1281
|
-
/*div5_binding*/,e[
|
|
1282
|
-
// (
|
|
1283
|
-
function
|
|
1284
|
-
return e[
|
|
1285
|
-
/*p_binding*/e[
|
|
1286
|
-
/*iframe_1_binding*/e[
|
|
1287
|
-
/*div2_binding*/e[
|
|
1288
|
-
/*div3_binding*/e[
|
|
1289
|
-
/*div4_binding*/,e[
|
|
1290
|
-
/*p_binding*/,e[
|
|
1291
|
-
/*iframe_1_binding*/,e[
|
|
1292
|
-
/*div2_binding*/e[
|
|
1293
|
-
/*div3_binding*/e[
|
|
1294
|
-
/*div4_binding*/,e[
|
|
1295
|
-
// (
|
|
1296
|
-
function
|
|
1297
|
-
// (
|
|
1298
|
-
function
|
|
1299
|
-
// (
|
|
1300
|
-
function
|
|
1301
|
-
// (
|
|
1302
|
-
function
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1263
|
+
const{document:Zr}=f;function Xr(e){let t;function n(e,t){/*isLoggedIn*/
|
|
1264
|
+
return e[25]?Qr:/*funMode*/e[30]?Jr:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),E(t,"class","CasinoIntegratedGamePage")},m(e,n){m(e,t,n),i&&i.m(t,null)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&y(t),i&&i.d()}}}
|
|
1265
|
+
// (392:4) {#if hasErrors}
|
|
1266
|
+
function qr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
|
|
1267
|
+
// (389:2) {#if isLoading}
|
|
1268
|
+
function Kr(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
|
|
1269
|
+
// (476:10) {#if funMode}
|
|
1270
|
+
function Jr(e){let t,n,r,i,o,a,l,u,h,d,f,v,S,k,D,O,P,B,H,F,A,N,C,L,R,I=/*$_*/e[43]("signIn")+"",$=/*$_*/e[43]("register")+"";function Y(e,t){/*isFullscreen*/
|
|
1271
|
+
return e[36]?ti:ei}let U=Y(e),G=U(e),j=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&ni();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=b(),i=g("p"),o=g("span"),a=w(/*time*/e[23]),l=b(),u=g("div"),h=b(),d=g("div"),f=g("div"),v=g("iframe"),k=b(),D=g("div"),O=g("div"),P=g("button"),B=w(I),H=b(),F=g("button"),A=w($),N=b(),G.c(),C=b(),j&&j.c(),E(n,"class","backButton"),E(i,"class","Time"),E(t,"class","GamePageIntegratedTopSection"),E(v,"title","Games"),E(v,"class","GamesContainer"),E(v,"aria-hidden","false"),c(v.src,S=/*game*/e[29].launchUrl)||E(v,"src",S),E(P,"class","LoginButton"),E(F,"class","RegisterButton"),E(O,"class","ButtonsContainer ButtonsContainerFunMode"),E(D,"class","BottomGame"),E(f,"id","IframeGame"),M(f,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),M(f,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),M(f,"max-width",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].width?Math.floor(/*game*/e[29].width)+"px":"1280px"),M(f,"max-height",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),E(d,"id","IframeContainer"),x(d,"FullsScreenLayout",/*isFullscreen*/e[36])},m(s,c){m(s,t,c),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
|
|
1272
|
+
/*p_binding_1*/e[74](i),p(t,l),p(t,u),m(s,h,c),m(s,d,c),p(d,f),p(f,v),
|
|
1273
|
+
/*iframe_1_binding_1*/e[75](v),p(f,k),p(f,D),p(D,O),p(O,P),p(P,B),p(O,H),p(O,F),p(F,A),p(D,N),G.m(D,null),
|
|
1274
|
+
/*div3_binding_1*/e[80](D),
|
|
1275
|
+
/*div4_binding_1*/e[81](f),p(d,C),j&&j.m(d,null)
|
|
1276
|
+
/*div5_binding*/,e[82](d),L||(R=[_(n,"click",/*click_handler_6*/e[73]),_(P,"click",/*click_handler_7*/e[76]),_(F,"click",/*click_handler_8*/e[77])],L=!0)},p(e,t){/*time*/8388608&t[0]&&T(a,/*time*/e[23]),/*game*/536870912&t[0]&&!c(v.src,S=/*game*/e[29].launchUrl)&&E(v,"src",S),/*$_*/4096&t[1]&&I!==(I=/*$_*/e[43]("signIn")+"")&&T(B,I),/*$_*/4096&t[1]&&$!==($=/*$_*/e[43]("register")+"")&&T(A,$),U===(U=Y(e))&&G?G.p(e,t):(G.d(1),G=U(e),G&&(G.c(),G.m(D,null))),/*isFullscreen, definitiveIframeWidth*/96&t[1]&&M(f,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),/*isFullscreen, definitiveIframeHeight*/160&t[1]&&M(f,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),/*game*/536870912&t[0]|/*isFullscreen, isModal*/33&t[1]&&M(f,"max-width",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].width?Math.floor(/*game*/e[29].width)+"px":"1280px"),/*game*/536870912&t[0]|/*isFullscreen, isModal*/33&t[1]&&M(f,"max-height",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[12]||/*isFullscreen*/e[36]?j&&(j.d(1),j=null):j||(j=ni(),j.c(),j.m(d,null)),/*isFullscreen*/32&t[1]&&x(d,"FullsScreenLayout",/*isFullscreen*/e[36])},d(n){n&&y(t)
|
|
1277
|
+
/*p_binding_1*/,e[74](null),n&&y(h),n&&y(d)
|
|
1278
|
+
/*iframe_1_binding_1*/,e[75](null),G.d(),
|
|
1279
|
+
/*div3_binding_1*/e[80](null),
|
|
1280
|
+
/*div4_binding_1*/e[81](null),j&&j.d()
|
|
1281
|
+
/*div5_binding*/,e[82](null),L=!1,s(R)}}}
|
|
1282
|
+
// (396:8) {#if isLoggedIn}
|
|
1283
|
+
function Qr(e){let t,n,r,i,o,a,l,u,h,d,f,v,S,k,D,O,P,B,H,F,A,N,C,L=/*$_*/e[43]("deposit")+"",R=/*shortCashierActivated*/e[42]&&ri(e),I=/*haspanicbutton*/"true"===e[11]&&si(e);function $(e,t){/*isFullscreen*/
|
|
1284
|
+
return e[36]?li:ai}let Y=$(e),U=Y(e),G=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&ui();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=b(),i=g("p"),o=g("span"),a=w(/*time*/e[23]),l=b(),u=g("div"),h=w(L),d=b(),R&&R.c(),f=b(),v=g("div"),S=g("div"),k=g("iframe"),B=b(),H=g("div"),I&&I.c(),F=b(),U.c(),A=b(),G&&G.c(),E(n,"class","backButton"),E(i,"class","Time"),E(u,"class","DepositButton"),E(t,"class","GamePageIntegratedTopSection"),E(k,"title","Games"),E(k,"id","IframeGame"),E(k,"class","GamesContainer"),E(k,"aria-hidden","false"),c(k.src,D=/*game*/e[29].launchUrl)||E(k,"src",D),E(k,"width",O=/*gameContainerWidth*/e[33]+"px"),E(k,"height",P=/*gameContainerHeight*/e[34]+"px"),E(H,"class","BottomGame BottomGameLoggedin"),E(S,"id","IframeGame"),M(S,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),M(S,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),M(S,"max-width",/*isFullscreen*/e[36]?"none":/*game*/e[29].width?/*game*/e[29].width+"px":"1280px"),M(S,"max-height",/*isFullscreen*/e[36]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),E(v,"id","IframeContainer"),x(v,"FullsScreenLayout",/*isFullscreen*/e[36])},m(s,c){m(s,t,c),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
|
|
1285
|
+
/*p_binding*/e[62](i),p(t,l),p(t,u),p(u,h),p(t,d),R&&R.m(t,null),m(s,f,c),m(s,v,c),p(v,S),p(S,k),
|
|
1286
|
+
/*iframe_1_binding*/e[66](k),p(S,B),p(S,H),I&&I.m(H,null),p(H,F),U.m(H,null),
|
|
1287
|
+
/*div2_binding*/e[70](H),
|
|
1288
|
+
/*div3_binding*/e[71](S),p(v,A),G&&G.m(v,null)
|
|
1289
|
+
/*div4_binding*/,e[72](v),N||(C=[_(n,"click",/*click_handler*/e[61]),_(u,"click",/*click_handler_1*/e[63])],N=!0)},p(e,n){/*time*/8388608&n[0]&&T(a,/*time*/e[23]),/*$_*/4096&n[1]&&L!==(L=/*$_*/e[43]("deposit")+"")&&T(h,L),/*shortCashierActivated*/e[42]?R?R.p(e,n):(R=ri(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/536870912&n[0]&&!c(k.src,D=/*game*/e[29].launchUrl)&&E(k,"src",D),/*gameContainerWidth*/4&n[1]&&O!==(O=/*gameContainerWidth*/e[33]+"px")&&E(k,"width",O),/*gameContainerHeight*/8&n[1]&&P!==(P=/*gameContainerHeight*/e[34]+"px")&&E(k,"height",P),/*haspanicbutton*/"true"===e[11]?I?I.p(e,n):(I=si(e),I.c(),I.m(H,F)):I&&(I.d(1),I=null),Y===(Y=$(e))&&U?U.p(e,n):(U.d(1),U=Y(e),U&&(U.c(),U.m(H,null))),/*isFullscreen, definitiveIframeWidth*/96&n[1]&&M(S,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),/*isFullscreen, definitiveIframeHeight*/160&n[1]&&M(S,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),/*game*/536870912&n[0]|/*isFullscreen*/32&n[1]&&M(S,"max-width",/*isFullscreen*/e[36]?"none":/*game*/e[29].width?/*game*/e[29].width+"px":"1280px"),/*game*/536870912&n[0]|/*isFullscreen*/32&n[1]&&M(S,"max-height",/*isFullscreen*/e[36]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[12]||/*isFullscreen*/e[36]?G&&(G.d(1),G=null):G||(G=ui(),G.c(),G.m(v,null)),/*isFullscreen*/32&n[1]&&x(v,"FullsScreenLayout",/*isFullscreen*/e[36])},d(n){n&&y(t)
|
|
1290
|
+
/*p_binding*/,e[62](null),R&&R.d(),n&&y(f),n&&y(v)
|
|
1291
|
+
/*iframe_1_binding*/,e[66](null),I&&I.d(),U.d(),
|
|
1292
|
+
/*div2_binding*/e[70](null),
|
|
1293
|
+
/*div3_binding*/e[71](null),G&&G.d()
|
|
1294
|
+
/*div4_binding*/,e[72](null),N=!1,s(C)}}}
|
|
1295
|
+
// (496:18) {:else}
|
|
1296
|
+
function ei(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',E(t,"class","FullscreenButton"),E(t,"part","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_10*/e[79]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1297
|
+
// (492:18) {#if isFullscreen}
|
|
1298
|
+
function ti(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_9*/e[78]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1299
|
+
// (503:14) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1300
|
+
function ni(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}
|
|
1301
|
+
// (403:12) {#if shortCashierActivated}
|
|
1302
|
+
function ri(e){let t,n,r,i,o,a,l,u;function c(e,t){/*gmversion*/
|
|
1303
|
+
return"gmcore"===e[6]?oi:ii}let h=c(e),d=h(e);return{c(){t=g("div"),n=b(),r=g("div"),i=g("div"),o=g("div"),o.innerHTML='<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="2" x2="18" y2="18" stroke="black" stroke-width="2"></line><line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"></line></svg>',a=b(),d.c(),E(t,"class","ShortCashierWindow"),E(o,"class","ClosePopUpButtonShortCashier"),E(i,"class","ShortCashierContainerMobile"),E(r,"class","ShortCashierContainerWrapperMobile")},m(s,c){m(s,t,c),m(s,n,c),m(s,r,c),p(r,i),p(i,o),p(i,a),d.m(i,null),l||(u=[_(t,"click",/*click_handler_2*/e[64]),_(o,"click",/*click_handler_3*/e[65])],l=!0)},p(e,t){h===(h=c(e))&&d?d.p(e,t):(d.d(1),d=h(e),d&&(d.c(),d.m(i,null)))},d(e){e&&y(t),e&&y(n),e&&y(r),d.d(),l=!1,s(u)}}}
|
|
1304
|
+
// (425:18) {:else}
|
|
1305
|
+
function ii(e){let t,n,r,i,o,s,a,l,u,c;return{c(){t=g("user-deposit-withdrawal"),S(t,"endpoint",/*endpoint*/e[0]),S(t,"type","deposit"),S(t,"channel",n=/*mobileView*/e[39]?"Mobile":"Desktop"),S(t,"is-short-cashier",/*shortcashierenabled*/e[8]),S(t,"language",/*lang*/e[1]),S(t,"product-type",/*producttype*/e[13]),S(t,"user-id",/*userid*/e[3]),S(t,"session",/*session*/e[2]),S(t,"success-url",r="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*successurl*/e[14]),S(t,"cancel-url",i="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*cancelurl*/e[16]),S(t,"fail-url",o="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*failurl*/e[15]),S(t,"sports-url",s="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*sportsurl*/e[17]),S(t,"casino-url",a="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*casinourl*/e[18]),S(t,"contact-url",l="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*contacturl*/e[19]),S(t,"home-url",u="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*homeurl*/e[20]),S(t,"deposit-url",c="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*depositurl*/e[7])},m(e,n){m(e,t,n)},p(e,h){/*endpoint*/1&h[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*mobileView*/256&h[1]&&n!==(n=/*mobileView*/e[39]?"Mobile":"Desktop")&&S(t,"channel",n),/*shortcashierenabled*/256&h[0]&&S(t,"is-short-cashier",/*shortcashierenabled*/e[8]),/*lang*/2&h[0]&&S(t,"language",/*lang*/e[1]),/*producttype*/8192&h[0]&&S(t,"product-type",/*producttype*/e[13]),/*userid*/8&h[0]&&S(t,"user-id",/*userid*/e[3]),/*session*/4&h[0]&&S(t,"session",/*session*/e[2]),/*lang, successurl*/16386&h[0]&&r!==(r="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*successurl*/e[14])&&S(t,"success-url",r),/*lang, cancelurl*/65538&h[0]&&i!==(i="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*cancelurl*/e[16])&&S(t,"cancel-url",i),/*lang, failurl*/32770&h[0]&&o!==(o="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*failurl*/e[15])&&S(t,"fail-url",o),/*lang, sportsurl*/131074&h[0]&&s!==(s="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*sportsurl*/e[17])&&S(t,"sports-url",s),/*lang, casinourl*/262146&h[0]&&a!==(a="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*casinourl*/e[18])&&S(t,"casino-url",a),/*lang, contacturl*/524290&h[0]&&l!==(l="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*contacturl*/e[19])&&S(t,"contact-url",l),/*lang, homeurl*/1048578&h[0]&&u!==(u="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*homeurl*/e[20])&&S(t,"home-url",u),/*lang, depositurl*/130&h[0]&&c!==(c="https://"+window.location.hostname+"/"+/*lang*/e[1]+/*depositurl*/e[7])&&S(t,"deposit-url",c)},d(e){e&&y(t)}}}
|
|
1306
|
+
// (413:18) {#if gmversion === 'gmcore'}
|
|
1307
|
+
function oi(e){let t;return{c(){t=g("player-deposit"),S(t,"endpoint",/*endpoint*/e[0]),S(t,"session",/*session*/e[2]),S(t,"playerid",/*userid*/e[3]),S(t,"lang",/*lang*/e[1]),S(t,"hasdefaultamount",/*hasdefaultamount*/e[9]),S(t,"playercurrency",/*playercurrency*/e[10]),S(t,"shortcashierenabled",/*shortcashierenabled*/e[8]),S(t,"clientstyling",/*clientstyling*/e[4]),S(t,"clientstylingurl",/*clientstylingurl*/e[5])},m(e,n){m(e,t,n)},p(e,n){/*endpoint*/1&n[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*session*/4&n[0]&&S(t,"session",/*session*/e[2]),/*userid*/8&n[0]&&S(t,"playerid",/*userid*/e[3]),/*lang*/2&n[0]&&S(t,"lang",/*lang*/e[1]),/*hasdefaultamount*/512&n[0]&&S(t,"hasdefaultamount",/*hasdefaultamount*/e[9]),/*playercurrency*/1024&n[0]&&S(t,"playercurrency",/*playercurrency*/e[10]),/*shortcashierenabled*/256&n[0]&&S(t,"shortcashierenabled",/*shortcashierenabled*/e[8]),/*clientstyling*/16&n[0]&&S(t,"clientstyling",/*clientstyling*/e[4]),/*clientstylingurl*/32&n[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[5])},d(e){e&&y(t)}}}
|
|
1308
|
+
// (453:16) {#if haspanicbutton === "true"}
|
|
1309
|
+
function si(e){let t,n,r,i=/*$_*/e[43]("breakButton")+"";return{c(){t=g("div"),n=g("button"),r=w(i),E(n,"class","PanicButton "+("PC"!==Cr(/*userAgent*/e[44])?"PanicButtonMobile":"")),E(n,"part","PanicButton "+("PC"!==Cr(/*userAgent*/e[44])?"PanicButtonMobile":"")),x(n,"PanicButtonAnimation",/*panicLoading*/e[28]),E(t,"class","PanicSection")},m(i,o){m(i,t,o),p(t,n),p(n,r),
|
|
1310
|
+
/*button_binding*/e[67](n)},p(e,t){/*$_*/4096&t[1]&&i!==(i=/*$_*/e[43]("breakButton")+"")&&T(r,i),/*panicLoading*/268435456&t[0]&&x(n,"PanicButtonAnimation",/*panicLoading*/e[28])},d(n){n&&y(t)
|
|
1311
|
+
/*button_binding*/,e[67](null)}}}
|
|
1312
|
+
// (462:16) {:else}
|
|
1313
|
+
function ai(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_5*/e[69]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1314
|
+
// (458:16) {#if isFullscreen}
|
|
1315
|
+
function li(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_4*/e[68]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1316
|
+
// (469:12) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1317
|
+
function ui(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}function ci(e){let t,n,i,o;function s(e,t){/*isLoading*/
|
|
1318
|
+
return e[27]?Kr:/*hasErrors*/e[26]?qr:Xr}let a=s(e),l=a(e);return{c(){t=g("script"),i=b(),o=g("div"),l.c(),this.c=r,E(t,"type","module"),c(t.src,n="https://unpkg.com/@everymatrix/user-deposit-withdrawal")||E(t,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal")},m(n,r){p(Zr.head,t),m(n,i,r),m(n,o,r),l.m(o,null),
|
|
1319
|
+
/*div_binding*/e[83](o)},p(e,t){a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(o,null)))},i:r,o:r,d(n){y(t),n&&y(i),n&&y(o),l.d(),
|
|
1320
|
+
/*div_binding*/e[83](null)}}}function hi(e,t,n){let r;d(e,Nr,(e=>n(43,r=e)));let i,o,s,a,l,u,c,h,f,p,m,y,g,v,w,b,_,{endpoint:E=""}=t,{lang:S=""}=t,{session:T=""}=t,{userid:M=""}=t,{clientstyling:x=""}=t,{clientstylingurl:k=""}=t,{translationurl:D=""}=t,{gmversion:O=""}=t,{loginurl:B=""}=t,{registerurl:F=""}=t,{depositurl:A=""}=t,{loginevent:N=""}=t,{registerevent:C=""}=t,{depositevent:L=""}=t,{shortcashierenabled:R="false"}=t,{hasdefaultamount:I=""}=t,{playercurrency:$=""}=t,{clockformat:Y=""}=t,{haspanicbutton:U="false"}=t,{playforfun:G="true"}=t,{checksession:j="true"}=t,{gamebanneractive:W="false"}=t,{gameid:V=""}=t,z=!1,Z=!1,X=!0,q=!1,K=0,J=!1,Q=!1,ee=!0,te=!1,ne=window.navigator.userAgent,re=!1,ie=!1,{producttype:oe=""}=t,{successurl:se=""}=t,{failurl:ae=""}=t,{cancelurl:le=""}=t,{sportsurl:ue=""}=t,{casinourl:ce=""}=t,{contacturl:he=""}=t,{homeurl:de=""}=t;!function({withLocale:e,translations:t}){mr.subscribe((n=>{null==n&&(jn.set(t),mr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1316
1321
|
/*dictionary.set(translations);
|
|
1317
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(
|
|
1322
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Rr).forEach((e=>{Lr(e,Rr[e])}));
|
|
1318
1323
|
// @TODO game typescript model type
|
|
1319
|
-
const
|
|
1324
|
+
const fe=(e,t)=>{let r=new URL(`${E}/v1/casino/games/${e}`);r.searchParams.append("language",S),r.searchParams.append("expand","vendor"),n(31,ee=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(29,u=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",S),
|
|
1320
1325
|
// @TODO wtf? session check or go home
|
|
1321
1326
|
// Maybe we should check if the session is valid, somehow?
|
|
1322
|
-
s&&s.length>0&&(n(
|
|
1327
|
+
s&&s.length>0&&(n(25,z=!0),t.searchParams.append("_sid",s),t.searchParams.append("funMode","false")),e.launchUrl=t,w.scrollIntoView(),e})(e[0])),u.launchUrl&&(J=!0,n(30,Q="true"==G&&u.hasFunMode),"true"==G&&u.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(26,Z=!0)})).then((()=>{c&&(me(),ee||pe())}))},pe=()=>{n(37,g=u.width),n(38,v=u.height),m=u.width,y=u.height},me=()=>{let e=getComputedStyle(c),t=getComputedStyle(p);n(33,h=parseInt(e.width.slice(0,-2))),n(34,f=parseInt(e.height.slice(0,-2)));const r=u.width/(u.height+100);m=parseInt(t.width),y=parseInt(t.height),
|
|
1323
1328
|
// resize logic for maintaining game ratio when resizing
|
|
1324
|
-
h/r>
|
|
1329
|
+
h/r>f-b.clientHeight-_.clientHeight?(y=f-b.clientHeight-_.clientHeight,m=f*r):(m=h,y=h/r),n(37,g=m?Math.floor(m)+"px":"1280px"),n(38,v=y?Math.floor(y)+"px":"720px")},ye=()=>{
|
|
1325
1330
|
// sent to modal component a flag (detailsObtained) by witch to determine if a game is open
|
|
1326
|
-
window.postMessage({type:"GameStateOnResize",detailsObtained:
|
|
1331
|
+
window.postMessage({type:"GameStateOnResize",detailsObtained:J},window.location.href),
|
|
1327
1332
|
// make sure that a game is open before trying to get the element properties
|
|
1328
|
-
|
|
1333
|
+
J&&c&&"PC"==Cr(ne)&&me()},ge=()=>{N&&(window.postMessage({type:N,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),B&&(
|
|
1329
1334
|
// @ts-ignore
|
|
1330
|
-
window.location=
|
|
1335
|
+
window.location=B),
|
|
1331
1336
|
//Analytics event
|
|
1332
|
-
"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"GeneralPlayerRegisterForm"})},
|
|
1337
|
+
"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"GeneralPlayerRegisterForm"})},we=()=>{C&&(window.postMessage({type:C,transition:"Register"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),F&&(
|
|
1333
1338
|
// @ts-ignore
|
|
1334
|
-
window.location=
|
|
1339
|
+
window.location=F),
|
|
1335
1340
|
//Analytics event
|
|
1336
|
-
"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"IntegratedGamePage"})},
|
|
1341
|
+
"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"IntegratedGamePage"})},be=()=>{R?(n(42,ie=!0),window.postMessage({type:"DisableScroll"},window.location.href)):L&&(window.postMessage({type:L},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href),
|
|
1337
1342
|
//Analytics event
|
|
1338
|
-
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),
|
|
1343
|
+
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),A&&!R&&(
|
|
1339
1344
|
// @ts-ignore
|
|
1340
|
-
window.location=
|
|
1345
|
+
window.location=A)},_e=e=>{n(42,ie=!1),window.postMessage({type:"EnableScroll"},window.location.href),null==e||e.stopPropagation()},Ee=e=>{if(e.data&&"CloseShortCashier"===e.data.type)_e()};function Se(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!te||Te()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",Se,!1),document.addEventListener("mozfullscreenchange",Se,!1),document.addEventListener("fullscreenchange",Se,!1),document.addEventListener("MSFullscreenChange",Se,!1));const Te=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(te?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():c.requestFullscreen?c.requestFullscreen():c.webkitRequestFullscreen?c.webkitRequestFullscreen():c.mozRequestFullScreen?c.mozRequestFullScreen():c.msRequestFullscreen&&c.msRequestFullscreen()),n(36,te=!te)},Me=setInterval((()=>{n(23,i=Y?zr().format(Y):zr().format("LTS"))}),100),xe=()=>{var e;e=S,mr.set(e),n(39,re=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(ne)),n(27,X=!1)},ke=()=>{"true"==j?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),ve(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(E,T).then((e=>{s=e.Guid,e.UserID,n(25,z=!0)}),(e=>{n(25,z=!1),console.error("err on session",e)})):s=T},De=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},Oe=e=>{K=0,l=setInterval((()=>{K+=1,n(28,q=!0),K>=3&&clearInterval(l)}),1e3)},Pe=e=>{K<3&&n(28,q=!1),clearInterval(l)};P((()=>(window.addEventListener("message",Ee,!1),window.addEventListener("resize",ye,!1),Vr.isNative(ne),()=>{n(28,q=!1),null==a||a.removeEventListener("mousedown",Oe),null==a||a.removeEventListener("touchstart",Oe),
|
|
1341
1346
|
// on mouseup stop interval count
|
|
1342
|
-
null==a||a.removeEventListener("mouseup",
|
|
1347
|
+
null==a||a.removeEventListener("mouseup",Pe),null==a||a.removeEventListener("touchend",Pe),window.removeEventListener("message",Ee),window.removeEventListener("resize",ye),clearInterval(Me)})));return e.$$set=e=>{"endpoint"in e&&n(0,E=e.endpoint),"lang"in e&&n(1,S=e.lang),"session"in e&&n(2,T=e.session),"userid"in e&&n(3,M=e.userid),"clientstyling"in e&&n(4,x=e.clientstyling),"clientstylingurl"in e&&n(5,k=e.clientstylingurl),"translationurl"in e&&n(51,D=e.translationurl),"gmversion"in e&&n(6,O=e.gmversion),"loginurl"in e&&n(52,B=e.loginurl),"registerurl"in e&&n(53,F=e.registerurl),"depositurl"in e&&n(7,A=e.depositurl),"loginevent"in e&&n(54,N=e.loginevent),"registerevent"in e&&n(55,C=e.registerevent),"depositevent"in e&&n(56,L=e.depositevent),"shortcashierenabled"in e&&n(8,R=e.shortcashierenabled),"hasdefaultamount"in e&&n(9,I=e.hasdefaultamount),"playercurrency"in e&&n(10,$=e.playercurrency),"clockformat"in e&&n(57,Y=e.clockformat),"haspanicbutton"in e&&n(11,U=e.haspanicbutton),"playforfun"in e&&n(58,G=e.playforfun),"checksession"in e&&n(59,j=e.checksession),"gamebanneractive"in e&&n(12,W=e.gamebanneractive),"gameid"in e&&n(60,V=e.gameid),"producttype"in e&&n(13,oe=e.producttype),"successurl"in e&&n(14,se=e.successurl),"failurl"in e&&n(15,ae=e.failurl),"cancelurl"in e&&n(16,le=e.cancelurl),"sportsurl"in e&&n(17,ue=e.sportsurl),"casinourl"in e&&n(18,ce=e.casinourl),"contacturl"in e&&n(19,he=e.contacturl),"homeurl"in e&&n(20,de=e.homeurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&S&&xe(),/*endpoint, lang*/3&e.$$.dirty[0]|/*gameid*/536870912&e.$$.dirty[1]&&E&&V&&S&&fe(V),/*session, userid, endpoint*/13&e.$$.dirty[0]&&T&&M&&E&&ke(),/*clientstyling, customStylingContainer*/4194320&e.$$.dirty[0]&&x&&w&&(()=>{let e=document.createElement("style");e.innerHTML=x,w.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4194336&e.$$.dirty[0]&&k&&w&&(()=>{let e=document.createElement("style");if(k){let t=new URL(k);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/2097152&e.$$.dirty[0]&&a&&(null==a||a.addEventListener("mousedown",Oe,!1),null==a||a.addEventListener("touchstart",Oe,!1),
|
|
1343
1348
|
// on mouseup stop interval count
|
|
1344
|
-
null==a||a.addEventListener("mouseup",we,!1),null==a||a.addEventListener("touchend",we,!1)),/*translationurl*/512&e.$$.dirty[1]&&D&&fetch(D).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)}))},[E,S,T,M,k,x,L,R,I,U,j,a,b,i,o,V,z,Z,X,u,J,Q,c,h,d,p,ee,g,v,w,_,ne,r,te,ae,le,ue,ce,fe,ve,D,P,H,F,A,N,C,Y,$,G,W,()=>ve(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},()=>ue(),e=>ce(e),e=>ce(e),function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},function(e){B[e?"unshift":"push"]((()=>{a=e,n(11,a)}))},()=>fe(),()=>fe(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},()=>ve(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},()=>ae(),()=>le(),()=>fe(),()=>fe(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},function(e){B[e?"unshift":"push"]((()=>{b=e,n(12,b)}))}]}class li extends W{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},ai,si,l,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:40,loginurl:41,registerurl:42,depositurl:43,loginevent:44,registerevent:45,depositevent:46,shortcashierenabled:6,hasdefaultamount:7,playercurrency:8,clockformat:47,haspanicbutton:9,playforfun:48,checksession:49,gamebanneractive:10,gameid:50},null,[-1,-1,-1,-1]),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),I()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),I()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),I()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),I()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),I()}get depositurl(){return this.$$.ctx[43]}set depositurl(e){this.$$set({depositurl:e}),I()}get loginevent(){return this.$$.ctx[44]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[45]}set registerevent(e){this.$$set({registerevent:e}),I()}get depositevent(){return this.$$.ctx[46]}set depositevent(e){this.$$set({depositevent:e}),I()}get shortcashierenabled(){return this.$$.ctx[6]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),I()}get hasdefaultamount(){return this.$$.ctx[7]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),I()}get playercurrency(){return this.$$.ctx[8]}set playercurrency(e){this.$$set({playercurrency:e}),I()}get clockformat(){return this.$$.ctx[47]}set clockformat(e){this.$$set({clockformat:e}),I()}get haspanicbutton(){return this.$$.ctx[9]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),I()}get playforfun(){return this.$$.ctx[48]}set playforfun(e){this.$$set({playforfun:e}),I()}get checksession(){return this.$$.ctx[49]}set checksession(e){this.$$set({checksession:e}),I()}get gamebanneractive(){return this.$$.ctx[10]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),I()}get gameid(){return this.$$.ctx[50]}set gameid(e){this.$$set({gameid:e}),I()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",li),li}));
|
|
1349
|
+
null==a||a.addEventListener("mouseup",Pe,!1),null==a||a.addEventListener("touchend",Pe,!1)),/*translationurl*/1048576&e.$$.dirty[1]&&D&&fetch(D).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Lr(t,e[t])}))})).catch((e=>{console.log(e)}))},[E,S,T,M,x,k,O,A,R,I,$,U,W,oe,se,ae,le,ue,ce,he,de,a,w,i,o,z,Z,X,q,u,Q,ee,c,h,f,p,te,g,v,re,b,_,ie,r,ne,ge,we,be,_e,Te,De,D,B,F,N,C,L,Y,G,j,V,()=>De(),function(e){H[e?"unshift":"push"]((()=>{_=e,n(41,_)}))},()=>be(),e=>_e(e),e=>_e(e),function(e){H[e?"unshift":"push"]((()=>{o=e,n(24,o)}))},function(e){H[e?"unshift":"push"]((()=>{a=e,n(21,a)}))},()=>Te(),()=>Te(),function(e){H[e?"unshift":"push"]((()=>{b=e,n(40,b)}))},function(e){H[e?"unshift":"push"]((()=>{p=e,n(35,p)}))},function(e){H[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},()=>De(),function(e){H[e?"unshift":"push"]((()=>{_=e,n(41,_)}))},function(e){H[e?"unshift":"push"]((()=>{o=e,n(24,o)}))},()=>ge(),()=>we(),()=>Te(),()=>Te(),function(e){H[e?"unshift":"push"]((()=>{b=e,n(40,b)}))},function(e){H[e?"unshift":"push"]((()=>{p=e,n(35,p)}))},function(e){H[e?"unshift":"push"]((()=>{c=e,n(32,c)}))},function(e){H[e?"unshift":"push"]((()=>{w=e,n(22,w)}))}]}class di extends V{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),W(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},hi,ci,l,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:51,gmversion:6,loginurl:52,registerurl:53,depositurl:7,loginevent:54,registerevent:55,depositevent:56,shortcashierenabled:8,hasdefaultamount:9,playercurrency:10,clockformat:57,haspanicbutton:11,playforfun:58,checksession:59,gamebanneractive:12,gameid:60,producttype:13,successurl:14,failurl:15,cancelurl:16,sportsurl:17,casinourl:18,contacturl:19,homeurl:20},null,[-1,-1,-1,-1]),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","gmversion","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),$()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),$()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),$()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),$()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationurl(){return this.$$.ctx[51]}set translationurl(e){this.$$set({translationurl:e}),$()}get gmversion(){return this.$$.ctx[6]}set gmversion(e){this.$$set({gmversion:e}),$()}get loginurl(){return this.$$.ctx[52]}set loginurl(e){this.$$set({loginurl:e}),$()}get registerurl(){return this.$$.ctx[53]}set registerurl(e){this.$$set({registerurl:e}),$()}get depositurl(){return this.$$.ctx[7]}set depositurl(e){this.$$set({depositurl:e}),$()}get loginevent(){return this.$$.ctx[54]}set loginevent(e){this.$$set({loginevent:e}),$()}get registerevent(){return this.$$.ctx[55]}set registerevent(e){this.$$set({registerevent:e}),$()}get depositevent(){return this.$$.ctx[56]}set depositevent(e){this.$$set({depositevent:e}),$()}get shortcashierenabled(){return this.$$.ctx[8]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),$()}get hasdefaultamount(){return this.$$.ctx[9]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),$()}get playercurrency(){return this.$$.ctx[10]}set playercurrency(e){this.$$set({playercurrency:e}),$()}get clockformat(){return this.$$.ctx[57]}set clockformat(e){this.$$set({clockformat:e}),$()}get haspanicbutton(){return this.$$.ctx[11]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),$()}get playforfun(){return this.$$.ctx[58]}set playforfun(e){this.$$set({playforfun:e}),$()}get checksession(){return this.$$.ctx[59]}set checksession(e){this.$$set({checksession:e}),$()}get gamebanneractive(){return this.$$.ctx[12]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),$()}get gameid(){return this.$$.ctx[60]}set gameid(e){this.$$set({gameid:e}),$()}get producttype(){return this.$$.ctx[13]}set producttype(e){this.$$set({producttype:e}),$()}get successurl(){return this.$$.ctx[14]}set successurl(e){this.$$set({successurl:e}),$()}get failurl(){return this.$$.ctx[15]}set failurl(e){this.$$set({failurl:e}),$()}get cancelurl(){return this.$$.ctx[16]}set cancelurl(e){this.$$set({cancelurl:e}),$()}get sportsurl(){return this.$$.ctx[17]}set sportsurl(e){this.$$set({sportsurl:e}),$()}get casinourl(){return this.$$.ctx[18]}set casinourl(e){this.$$set({casinourl:e}),$()}get contacturl(){return this.$$.ctx[19]}set contacturl(e){this.$$set({contacturl:e}),$()}get homeurl(){return this.$$.ctx[20]}set homeurl(e){this.$$set({homeurl:e}),$()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",di),di}));
|
|
1345
1350
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|