@everymatrix/casino-footer-v2 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-footer-v2.js +181 -219
- package/dist/casino-footer-v2.js.map +1 -1
- package/package.json +2 -2
package/dist/casino-footer-v2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(l(t,n))}function u(t){return t&&i(t.destroy)?t.destroy:e}const h="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function d(e,t){e.appendChild(t)}function f(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function v(){return b(" ")}function _(){return b("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:k(e,t,n)}function S(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t,n){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];if(r.__value===t)return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function x(e,t,n){e.classList[n?"add":"remove"](t)}function L(e){const t={};for(const n of e)t[n.name]=n.value;return t}let
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function c(e,t,n){e.$$.on_destroy.push(l(t,n))}function u(t){return t&&i(t.destroy)?t.destroy:e}const h="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function d(e,t){e.appendChild(t)}function f(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function g(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function b(e){return document.createTextNode(e)}function v(){return b(" ")}function _(){return b("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:k(e,t,n)}function S(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t,n){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];if(r.__value===t)return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function x(e,t,n){e.classList[n?"add":"remove"](t)}function L(e){const t={};for(const n of e)t[n.name]=n.value;return t}let M;function D(e){M=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 O(e){(function(){if(!
|
11
|
+
function O(e){(function(){if(!M)throw new Error("Function called outside component initialization");return M})().$$.on_mount.push(e)}const F=[],I=[];let P=[];const A=[],$=Promise.resolve();let H=!1;function C(e){P.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.
|
@@ -32,24 +32,24 @@ function R(){
|
|
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!==N)return;const e=
|
35
|
+
if(0!==N)return;const e=M;do{
|
36
36
|
// first, call beforeUpdate functions
|
37
37
|
// and update components
|
38
|
-
try{for(;N<F.length;){const e=F[N];N++,
|
38
|
+
try{for(;N<F.length;){const e=F[N];N++,D(e),Y(e.$$)}}catch(e){
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
40
|
-
throw F.length=0,N=0,e}for(
|
40
|
+
throw F.length=0,N=0,e}for(D(null),F.length=0,N=0;I.length;)I.pop()();
|
41
41
|
// then, once components are updated, call
|
42
42
|
// afterUpdate functions. This may cause
|
43
43
|
// subsequent updates...
|
44
44
|
for(let e=0;e<P.length;e+=1){const t=P[e];B.has(t)||(
|
45
45
|
// ...so guard against infinite loops
|
46
|
-
B.add(t),t())}P.length=0}while(F.length);for(;A.length;)A.pop()();H=!1,B.clear(),
|
46
|
+
B.add(t),t())}P.length=0}while(F.length);for(;A.length;)A.pop()();H=!1,B.clear(),D(e)}function Y(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}
|
47
47
|
/**
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
49
49
|
*/const U=new Set;function G(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];P.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),P=t}(n.after_update),r(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 j(e,t){-1===e.$$.dirty[0]&&(F.push(e),H||(H=!0,$.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function V(o,s,a,l,c,u,h,d=[-1]){const f=D
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function j(e,t){-1===e.$$.dirty[0]&&(F.push(e),H||(H=!0,$.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function V(o,s,a,l,c,u,h,d=[-1]){const f=M;D(o);const m=o.$$={fragment:null,ctx:[],
|
53
53
|
// state
|
54
54
|
props:u,update:e,not_equal:c,bound:n(),
|
55
55
|
// lifecycle
|
@@ -70,7 +70,7 @@ C((()=>{const n=e.$$.on_mount.map(t).filter(i);
|
|
70
70
|
e.$$.on_destroy?e.$$.on_destroy.push(...n):
|
71
71
|
// Edge case - component was destroyed immediately,
|
72
72
|
// most likely as a result of a binding initialising
|
73
|
-
r(n),e.$$.on_mount=[]})),l.forEach(C)}(o,s.target,s.anchor,s.customElement),R()}var y,b;
|
73
|
+
r(n),e.$$.on_mount=[]})),l.forEach(C)}(o,s.target,s.anchor,s.customElement),R()}var y,b;D(f)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
74
74
|
// @ts-ignore todo: improve typings
|
75
75
|
for(const e in this.$$.slotted)
|
76
76
|
// @ts-ignore todo: improve typings
|
@@ -79,7 +79,7 @@ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}d
|
|
79
79
|
if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.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
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||{},Z="URLSearchParams"in z,X="Symbol"in z&&"iterator"in Symbol,
|
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
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 ce(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
85
85
|
/*
|
@@ -93,22 +93,22 @@ function re(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])):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"))},
|
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 ue=["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(),ue.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 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})},ce.call(he.prototype),ce.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 ge(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,
|
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})},ce.call(he.prototype),ce.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.ok=!1,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 ge(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.
|
111
|
+
0===i.url.indexOf("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
113
|
4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ge.polyfill=!0,z.fetch||(z.fetch=ge,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 ye(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
114
114
|
// the whatwg-fetch polyfill installs the fetch() function
|
@@ -130,7 +130,7 @@ var be=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 _e(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 ke(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 xe=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 Le(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}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 xe?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=we(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Fe(d)}catch(e){i=null!=i?i:[],e instanceof xe?i=Ee(Ee([],ke(i)),ke(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}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)Fe(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)&&Le(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Le(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Me=De.EMPTY;function Oe(e){return e instanceof De||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Fe(e){Se(e)?e():e.unsubscribe()}var Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pe={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Pe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],ke(n))):setTimeout.apply(void 0,Ee([e,t],ke(n)))},clearTimeout:function(e){var t=Pe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ae(){}var $e=null;function He(e){if(Ie.useDeprecatedSynchronousErrorHandling){var t=!$e;if(t&&($e={errorThrown:!1,error:null}),e(),t){var n=$e,r=n.errorThrown,i=n.error;if($e=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=Ge,n}return _e(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),Be=Function.prototype.bind;function Ne(e,t){return Be.call(e,t)}var Re=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&&Ie.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Ne(t.next,o),error:t.error&&Ne(t.error,o),complete:t.complete&&Ne(t.complete,o)}):i=t;return s.destination=new Re(i),s}return _e(t,e),t}(Ce);function Ue(e){var t;t=e,Pe.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 Ve(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 He((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?Ve: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:Ie.Promise)&&void 0!==t?t:Promise}var Ze=Te((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 _e(t,e),t.prototype.lift=function(e){var t=new Ke(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;He((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;He((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;He((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?Me:(this.currentObservers=null,o.push(e),new De((function(){t.currentObservers=null,Le(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 Ke(e,t)},t}(We),Ke=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return _e(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:Me},t}(Xe),qe={now:function(){return(qe.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=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 _e(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={};
|
133
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */function _e(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 ke(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 xe=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 Le(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Me=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}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 xe?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=we(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Fe(d)}catch(e){i=null!=i?i:[],e instanceof xe?i=Ee(Ee([],ke(i)),ke(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}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)Fe(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)&&Le(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Le(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),De=Me.EMPTY;function Oe(e){return e instanceof Me||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Fe(e){Se(e)?e():e.unsubscribe()}var Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pe={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Pe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],ke(n))):setTimeout.apply(void 0,Ee([e,t],ke(n)))},clearTimeout:function(e){var t=Pe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ae(){}var $e=null;function He(e){if(Ie.useDeprecatedSynchronousErrorHandling){var t=!$e;if(t&&($e={errorThrown:!1,error:null}),e(),t){var n=$e,r=n.errorThrown,i=n.error;if($e=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=Ge,n}return _e(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}(Me),Be=Function.prototype.bind;function Ne(e,t){return Be.call(e,t)}var Re=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&&Ie.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Ne(t.next,o),error:t.error&&Ne(t.error,o),complete:t.complete&&Ne(t.complete,o)}):i=t;return s.destination=new Re(i),s}return _e(t,e),t}(Ce);function Ue(e){var t;t=e,Pe.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 Ve(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 He((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?Ve: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:Ie.Promise)&&void 0!==t?t:Promise}var Ze=Te((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 _e(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;He((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;He((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;He((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 Me((function(){t.currentObservers=null,Le(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 qe(e,t)},t}(We),qe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return _e(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}(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 _e(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
|
@@ -167,7 +167,7 @@ n.cloneUnlessOtherwiseSpecified=st;var r=Array.isArray(t);return r===Array.isArr
|
|
167
167
|
/**
|
168
168
|
* Type Guards
|
169
169
|
*/
|
170
|
-
function _t(e){return e.type===gt.literal}function wt(e){return e.type===gt.argument}function kt(e){return e.type===gt.number}function Et(e){return e.type===gt.date}function St(e){return e.type===gt.time}function Tt(e){return e.type===gt.select}function xt(e){return e.type===gt.plural}function Lt(e){return e.type===gt.pound}function
|
170
|
+
function _t(e){return e.type===gt.literal}function wt(e){return e.type===gt.argument}function kt(e){return e.type===gt.number}function Et(e){return e.type===gt.date}function St(e){return e.type===gt.time}function Tt(e){return e.type===gt.select}function xt(e){return e.type===gt.plural}function Lt(e){return e.type===gt.pound}function Mt(e){return e.type===gt.tag}function Dt(e){return!(!e||"object"!=typeof e||e.type!==yt.number)}function Ot(e){return!(!e||"object"!=typeof e||e.type!==yt.dateTime)}
|
171
171
|
// @generated from regex-gen.ts
|
172
172
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
173
173
|
/** Argument is unclosed (e.g. `{0`) */
|
@@ -362,16 +362,16 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
362
362
|
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Vt[n||""]||Vt[r||""]||Vt["".concat(r,"-001")]||Vt["001"])[0]}var zt=new RegExp("^".concat(Ft.source,"*")),Zt=new RegExp("".concat(Ft.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
|
-
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=
|
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},an=
|
374
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},an=Kt?String.fromCodePoint:// IE11
|
375
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
377
|
Jt?Object.fromEntries:// Ponyfill
|
@@ -576,7 +576,7 @@ function gn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===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 yn(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 bn(e){e.forEach((function(e){if(delete e.location,Tt(e)||xt(e))for(var t in e.options)delete e.options[t].location,bn(e.options[t].value);else kt(e)&&
|
579
|
+
*/function yn(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 bn(e){e.forEach((function(e){if(delete e.location,Tt(e)||xt(e))for(var t in e.options)delete e.options[t].location,bn(e.options[t].value);else kt(e)&&Dt(e.style)||(Et(e)||St(e))&&Ot(e.style)?delete e.style.location:Mt(e)&&bn(e.children)}))}function vn(e,t){void 0===t&&(t={}),t=bt({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
|
@@ -584,7 +584,7 @@ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||bn(n
|
|
584
584
|
|
585
585
|
// Main
|
586
586
|
|
587
|
-
function _n(e,t){var n=t&&t.cache?t.cache:
|
587
|
+
function _n(e,t){var n=t&&t.cache?t.cache:Mn,r=t&&t.serializer?t.serializer:Tn;return(t&&t.strategy?t.strategy:Sn)(e,{cache:n,serializer:r})}
|
588
588
|
|
589
589
|
// Strategy
|
590
590
|
|
@@ -594,9 +594,9 @@ var Tn=function(){return JSON.stringify(arguments)};
|
|
594
594
|
|
595
595
|
// Cache
|
596
596
|
|
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 Ln,
|
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 Ln,Mn={create:function(){
|
598
598
|
// @ts-ignore
|
599
|
-
return new xn}},
|
599
|
+
return new xn}},Dn={variadic:function(e,t){return En(e,this,kn,t.cache.create(),t.serializer)},monadic:function(e,t){return En(e,this,wn,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
|
@@ -619,7 +619,7 @@ if(!i||!(h in i))throw new An(h,s);var d=i[h];if(wt(u))d&&"string"!=typeof d&&"n
|
|
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(Et(u)){var f="string"==typeof u.style?r.date[u.style]:Ot(u.style)?u.style.parsedOptions:void 0;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(St(u)){f="string"==typeof u.style?r.time[u.style]:Ot(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(kt(u)){(f="string"==typeof u.style?r.number[u.style]:
|
622
|
+
if(Et(u)){var f="string"==typeof u.style?r.date[u.style]:Ot(u.style)?u.style.parsedOptions:void 0;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(St(u)){f="string"==typeof u.style?r.time[u.style]:Ot(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(kt(u)){(f="string"==typeof u.style?r.number[u.style]:Dt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:On.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(Mt(u)){var p=u.children,m=u.value,g=i[m];if(!$n(g))throw new Pn(m,"function",s);var y=g(Hn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?On.literal:On.object,value:e}})))}if(Tt(u)){if(!(b=u.options[d]||u.options.other))throw new In(u.value,d,Object.keys(u.options),s);a.push.apply(a,Hn(b.value,t,n,r,i))}else if(xt(u)){var b;if(!(b=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ln.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new In(u.value,d,Object.keys(u.options),s);a.push.apply(a,Hn(b.value,t,n,r,i,d-(u.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===On.literal&&t.type===On.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.
|
@@ -635,13 +635,13 @@ this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(thi
|
|
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=Cn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_n((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,vt([void 0],t,!1)))}),{cache:Bn(o.number),strategy:
|
638
|
+
this.formats=Cn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_n((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,vt([void 0],t,!1)))}),{cache:Bn(o.number),strategy:Dn.variadic}),getDateTimeFormat:_n((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,vt([void 0],t,!1)))}),{cache:Bn(o.dateTime),strategy:Dn.variadic}),getPluralRules:_n((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,vt([void 0],t,!1)))}),{cache:Bn(o.pluralRules),strategy:Dn.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=vn,
|
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 Rn={},Yn=(e,t,n)=>n?(t in Rn||(Rn[t]={}),e in Rn[t]||(Rn[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in Rn&&e in Rn[t])return Rn[t][e];const n=fr(t);for(let r=0;r<n.length;r++){const i=Wn(n[r],e);if(i)return Yn(e,t,i)}};let Gn;const jn=nt({});function Vn(e){return e in Gn}function Wn(e,t){if(!Vn(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 Rn[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
|
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 Rn={},Yn=(e,t,n)=>n?(t in Rn||(Rn[t]={}),e in Rn[t]||(Rn[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in Rn&&e in Rn[t])return Rn[t][e];const n=fr(t);for(let r=0;r<n.length;r++){const i=Wn(n[r],e);if(i)return Yn(e,t,i)}};let Gn;const jn=nt({});function Vn(e){return e in Gn}function Wn(e,t){if(!Vn(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 Rn[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,cr=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ur;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!=ur?ur:void 0}hr.subscribe((e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const mr=(gr=((e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&cr(e,n,t[n]);if(sr)for(var n of sr(t))lr.call(t,n)&&cr(e,n,t[n]);return e})({},hr),ir(gr,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(Vn(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 gr;const yr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var br=Object.defineProperty,vr=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,kr=(e,t,n)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))_r.call(t,n)&&kr(e,n,t[n]);if(vr)for(var n of vr(t))wr.call(t,n)&&kr(e,n,t[n]);return e},Sr=(e,t)=>{var n={};for(var r in e)_r.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vr)for(var r of vr(e))t.indexOf(r)<0&&wr.call(e,r)&&(n[r]=e[r]);return n};const Tr=(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=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Tr("number",r)),new Intl.NumberFormat(n,i)})),Lr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Tr("date",r):0===Object.keys(i).length&&(i=Tr("date","short")),new Intl.DateTimeFormat(n,i)})),Mr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Tr("time",r):0===Object.keys(i).length&&(i=Tr("time","short")),new Intl.DateTimeFormat(n,i)})),Dr=yr((
|
643
643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
644
|
-
(e,t=pr())=>new Nn(e,t,tr().formats,{ignoreTag:tr().ignoreTag}))),Or=(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:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Un(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=tr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=
|
644
|
+
(e,t=pr())=>new Nn(e,t,tr().formats,{ignoreTag:tr().ignoreTag}))),Or=(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:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Un(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=tr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=Dr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Fr=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Sr(t,["locale"]);return Mr(Er({locale:n},r))})(t).format(e),Ir=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Sr(t,["locale"]);return Lr(Er({locale:n},r))})(t).format(e),Pr=(e,t)=>((e={})=>{var t=e,{locale:n=pr()}=t,r=Sr(t,["locale"]);return xr(Er({locale:n},r))})(t).format(e),Ar=(e,t=pr())=>Un(e,t),$r=rt([mr,jn],(()=>Or));rt([mr],(()=>Fr)),rt([mr],(()=>Ir)),rt([mr],(()=>Pr)),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
|
@@ -660,7 +660,7 @@ function Cr(e){let t;function n(e,t){/*sponsorimage*/
|
|
660
660
|
return e[1]?jr:/*paymentimage*/e[4]?Gr:/*vendorimage*/e[7]?Ur:/*helperlinkurl*/e[9]?Yr:/*licenseimage*/e[13]?Rr:/*sociallinkimage*/e[16]?Nr:void 0}let r=n(e),i=r&&r(e);return{c(){i&&i.c(),t=_()},m(e,n){i&&i.m(e,n),f(e,t,n)},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.parentNode,t)))},d(e){i&&i.d(e),e&&p(t)}}}
|
661
661
|
// (64:2) {#if device == 'PC'}
|
662
662
|
function Br(e){let t;function n(e,t){/*sponsorimage*/
|
663
|
-
return e[1]?ei:/*paymentimage*/e[4]?Qr:/*vendorimage*/e[7]?Jr:/*helperlinkurl*/e[9]?
|
663
|
+
return e[1]?ei:/*paymentimage*/e[4]?Qr:/*vendorimage*/e[7]?Jr:/*helperlinkurl*/e[9]?Kr:/*licenseimage*/e[13]?qr:/*sociallinkimage*/e[16]?Xr:void 0}let r=n(e),i=r&&r(e);return{c(){i&&i.c(),t=_()},m(e,n){i&&i.m(e,n),f(e,t,n)},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.parentNode,t)))},d(e){i&&i.d(e),e&&p(t)}}}
|
664
664
|
// (178:30)
|
665
665
|
function Nr(e){let t,n,r,i,o,s,l,c;return{c(){t=g("div"),n=g("button"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),a(r.src,i=/*sociallinkimage*/e[16])||k(r,"src",i),k(r,"title",o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15]),k(n,"class",s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(t,"class","FooterItem SocialItem"),k(t,"part","FooterItem SocialItem")},m(i,o){f(i,t,o),d(t,n),d(n,r),l||(c=w(n,"click",/*click_handler_5*/e[33]),l=!0)},p(e,t){/*sociallinkimage*/65536&t[0]&&!a(r.src,i=/*sociallinkimage*/e[16])&&k(r,"src",i),/*sociallinktitle, sociallinkurl*/163840&t[0]&&o!==(o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15])&&k(r,"title",o),/*sociallinkurl*/32768&t[0]&&s!==(s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s)},d(e){e&&p(t),l=!1,c()}}}
|
666
666
|
// (171:27)
|
@@ -684,9 +684,9 @@ function Zr(e){let t,n;return{c(){t=g("p"),n=b(/*sponsortitle*/e[2]),k(t,"class"
|
|
684
684
|
// (121:30)
|
685
685
|
function Xr(e){let t,n,r,i,o,s,l,c;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),a(r.src,i=/*sociallinkimage*/e[16])||k(r,"src",i),k(r,"title",o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15]),k(n,"class",s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",l="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*sociallinkurl*/e[15]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sociallinkurl*/+e[15]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem SocialItem"),k(t,"part","FooterItem SocialItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*sociallinkimage*/65536&t[0]&&!a(r.src,i=/*sociallinkimage*/e[16])&&k(r,"src",i),/*sociallinktitle, sociallinkurl*/163840&t[0]&&o!==(o=/*sociallinktitle*/e[17]||/*sociallinkurl*/e[15])&&k(r,"title",o),/*sociallinkurl*/32768&t[0]&&s!==(s="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*sociallinkurl*/32768&t[0]&&l!==(l="FooterLink "+(/*sociallinkurl*/e[15]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",l),/*linktype, sociallinkurl, baseurl, lang*/6848512&t[0]&&c!==(c=/*linktype*/e[19]?/*sociallinkurl*/e[15]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*sociallinkurl*/+e[15])&&k(n,"href",c),/*target*/262144&t[0]&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
686
686
|
// (112:27)
|
687
|
-
function
|
687
|
+
function qr(e){let t,n,r,i,o,s,l,c;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),a(r.src,i=/*licenseimage*/e[13])||k(r,"src",i),k(r,"title",o=/*licensetitle*/e[14]||/*licenseurl*/e[12]),k(n,"class",s="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",l="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*licenseurl*/e[12]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*licenseurl*/+e[12]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem"),k(t,"part","FooterItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*licenseimage*/8192&t[0]&&!a(r.src,i=/*licenseimage*/e[13])&&k(r,"src",i),/*licensetitle, licenseurl*/20480&t[0]&&o!==(o=/*licensetitle*/e[14]||/*licenseurl*/e[12])&&k(r,"title",o),/*licenseurl*/4096&t[0]&&s!==(s="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*licenseurl*/4096&t[0]&&l!==(l="FooterLink "+(/*licenseurl*/e[12]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",l),/*linktype, licenseurl, baseurl, lang*/6819840&t[0]&&c!==(c=/*linktype*/e[19]?/*licenseurl*/e[12]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*licenseurl*/+e[12])&&k(n,"href",c),/*target*/262144&t[0]&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
688
688
|
// (98:28)
|
689
|
-
function
|
689
|
+
function Kr(e){let t,n,r,i,o,s,a,l=/*helperlinkimage*/e[10]&&ti(e),c=/*helperlinktitle*/e[11]&&ni(e);return{c(){t=g("div"),n=g("a"),l&&l.c(),r=v(),c&&c.c(),k(n,"class",i=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",o=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",s=/*linktype*/e[19]?/*helperlinkurl*/e[9]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*helperlinkurl*/+e[9]),k(n,"target",/*target*/e[18]),k(t,"class",a="FooterItem HelperLinkItem "+(/*displaycolumn*/"true"==e[20]?"DisplayColumn":"")),k(t,"part","FooterItem HelperLinkItem")},m(e,i){f(e,t,i),d(t,n),l&&l.m(n,null),d(n,r),c&&c.m(n,null)},p(e,u){/*helperlinkimage*/e[10]?l?l.p(e,u):(l=ti(e),l.c(),l.m(n,r)):l&&(l.d(1),l=null),/*helperlinktitle*/e[11]?c?c.p(e,u):(c=ni(e),c.c(),c.m(n,null)):c&&(c.d(1),c=null),/*helperlinktitle, helperlinkurl*/2560&u[0]&&i!==(i=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",i),/*helperlinktitle, helperlinkurl*/2560&u[0]&&o!==(o=/*helperlinktitle*/(e[11]?"FooterHelperLink":"")+" "+(/*helperlinkurl*/e[9]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",o),/*linktype, helperlinkurl, baseurl, lang*/6816256&u[0]&&s!==(s=/*linktype*/e[19]?/*helperlinkurl*/e[9]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*helperlinkurl*/+e[9])&&k(n,"href",s),/*target*/262144&u[0]&&k(n,"target",/*target*/e[18]),/*displaycolumn*/1048576&u[0]&&a!==(a="FooterItem HelperLinkItem "+(/*displaycolumn*/"true"==e[20]?"DisplayColumn":""))&&k(t,"class",a)},d(e){e&&p(t),l&&l.d(),c&&c.d()}}}
|
690
690
|
// (89:26)
|
691
691
|
function Jr(e){let t,n,r,i,o,s,l,c;return{c(){t=g("div"),n=g("a"),r=g("img"),k(r,"class","FooterImage"),k(r,"part","FooterImage"),a(r.src,i=/*vendorimage*/e[7])||k(r,"src",i),k(r,"title",o=/*vendortitle*/e[8]||/*vendorurl*/e[6]),k(n,"class",s=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"part",l=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor"),k(n,"href",c=/*linktype*/e[19]?/*vendorurl*/e[6]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*vendorurl*/+e[6]),k(n,"target",/*target*/e[18]),k(t,"class","FooterItem GameVendorItem"),k(t,"part","FooterItem GameVendorItem")},m(e,i){f(e,t,i),d(t,n),d(n,r)},p(e,t){/*vendorimage*/128&t[0]&&!a(r.src,i=/*vendorimage*/e[7])&&k(r,"src",i),/*vendortitle, vendorurl*/320&t[0]&&o!==(o=/*vendortitle*/e[8]||/*vendorurl*/e[6])&&k(r,"title",o),/*vendorurl*/64&t[0]&&s!==(s=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"class",s),/*vendorurl*/64&t[0]&&l!==(l=/*vendorurl*/(e[6]?"":"FooterLinkDisabled")+" FooterItemAnchor")&&k(n,"part",l),/*linktype, vendorurl, baseurl, lang*/6815808&t[0]&&c!==(c=/*linktype*/e[19]?/*vendorurl*/e[6]:/*baseurl*/e[21]+`/${/*lang*/e[22]}/`/*vendorurl*/+e[6])&&k(n,"href",c),/*target*/262144&t[0]&&k(n,"target",/*target*/e[18])},d(e){e&&p(t)}}}
|
692
692
|
// (77:27)
|
@@ -700,12 +700,12 @@ function ni(e){let t,n;return{c(){t=g("p"),n=b(/*helperlinktitle*/e[11]),k(t,"cl
|
|
700
700
|
// (84:10) {#if paymenttitle}
|
701
701
|
function ri(e){let t,n;return{c(){t=g("p"),n=b(/*paymenttitle*/e[5]),k(t,"class","PaymentTitle"),k(t,"part","PaymentTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*paymenttitle*/32&t[0]&&S(n,/*paymenttitle*/e[5])},d(e){e&&p(t)}}}
|
702
702
|
// (72:10) {#if sponsortitle}
|
703
|
-
function ii(e){let t,n;return{c(){t=g("p"),n=b(/*sponsortitle*/e[2]),k(t,"class","SponsorTitle"),k(t,"part","SponsorTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*sponsortitle*/4&t[0]&&S(n,/*sponsortitle*/e[2])},d(e){e&&p(t)}}}function oi(t){let n;let r=function(e
|
703
|
+
function ii(e){let t,n;return{c(){t=g("p"),n=b(/*sponsortitle*/e[2]),k(t,"class","SponsorTitle"),k(t,"part","SponsorTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*sponsortitle*/4&t[0]&&S(n,/*sponsortitle*/e[2])},d(e){e&&p(t)}}}function oi(t){let n;let r=function(e){/*device*/
|
704
704
|
return"PC"==e[24]?Br:Cr}(t),i=r(t);return{c(){n=g("div"),i.c(),this.c=e,k(n,"class","ThumbnailContainer"),k(n,"part","ThumbnailContainer")},m(e,r){f(e,n,r),i.m(n,null),
|
705
705
|
/*div_binding*/t[34](n)},p(e,t){i.p(e,t)},i:e,o:e,d(e){e&&p(n),i.d(),
|
706
|
-
/*div_binding*/t[34](null)}}}function si(e,t,n){let r,{sponsorurl:i=""}=t,{sponsorimage:o=""}=t,{sponsortitle:s=""}=t,{paymenturl:a=""}=t,{paymentimage:l=""}=t,{paymenttitle:c=""}=t,{vendorurl:u=""}=t,{vendorimage:h=""}=t,{vendortitle:d=""}=t,{helperlinkurl:f=""}=t,{helperlinkimage:p=""}=t,{helperlinktitle:m=""}=t,{licenseurl:g=""}=t,{licenseimage:y=""}=t,{licensetitle:b=""}=t,{sociallinkurl:v=""}=t,{sociallinkimage:_=""}=t,{sociallinktitle:w=""}=t,{target:k="_self"}=t,{linktype:E="false"}=t,{displaycolumn:S=""}=t,{baseurl:T=""}=t,{lang:x=""}=t,{clientstyling:L=""}=t,{clientstylingurl:
|
706
|
+
/*div_binding*/t[34](null)}}}function si(e,t,n){let r,{sponsorurl:i=""}=t,{sponsorimage:o=""}=t,{sponsortitle:s=""}=t,{paymenturl:a=""}=t,{paymentimage:l=""}=t,{paymenttitle:c=""}=t,{vendorurl:u=""}=t,{vendorimage:h=""}=t,{vendortitle:d=""}=t,{helperlinkurl:f=""}=t,{helperlinkimage:p=""}=t,{helperlinktitle:m=""}=t,{licenseurl:g=""}=t,{licenseimage:y=""}=t,{licensetitle:b=""}=t,{sociallinkurl:v=""}=t,{sociallinkimage:_=""}=t,{sociallinktitle:w=""}=t,{target:k="_self"}=t,{linktype:E="false"}=t,{displaycolumn:S=""}=t,{baseurl:T=""}=t,{lang:x=""}=t,{clientstyling:L=""}=t,{clientstylingurl:M=""}=t,D=window.navigator.userAgent,O=Hr(D);const F=(e,t,n)=>{const r=t,i=r?e:T+`/${x}/`+e;window.postMessage({type:"NavigateTo",path:e,target:n||null,externalLink:r||!1},window.location.href),
|
707
707
|
// To avoid breaking changes, send constructed url for native
|
708
|
-
r?window.postMessage({type:"ExternalLinkNavigation",externalUrl:i,target:n},window.location.href):window.postMessage({type:"LinkNavigation",navUrl:i,target:n},window.location.href)};return e.$$set=e=>{"sponsorurl"in e&&n(0,i=e.sponsorurl),"sponsorimage"in e&&n(1,o=e.sponsorimage),"sponsortitle"in e&&n(2,s=e.sponsortitle),"paymenturl"in e&&n(3,a=e.paymenturl),"paymentimage"in e&&n(4,l=e.paymentimage),"paymenttitle"in e&&n(5,c=e.paymenttitle),"vendorurl"in e&&n(6,u=e.vendorurl),"vendorimage"in e&&n(7,h=e.vendorimage),"vendortitle"in e&&n(8,d=e.vendortitle),"helperlinkurl"in e&&n(9,f=e.helperlinkurl),"helperlinkimage"in e&&n(10,p=e.helperlinkimage),"helperlinktitle"in e&&n(11,m=e.helperlinktitle),"licenseurl"in e&&n(12,g=e.licenseurl),"licenseimage"in e&&n(13,y=e.licenseimage),"licensetitle"in e&&n(14,b=e.licensetitle),"sociallinkurl"in e&&n(15,v=e.sociallinkurl),"sociallinkimage"in e&&n(16,_=e.sociallinkimage),"sociallinktitle"in e&&n(17,w=e.sociallinktitle),"target"in e&&n(18,k=e.target),"linktype"in e&&n(19,E=e.linktype),"displaycolumn"in e&&n(20,S=e.displaycolumn),"baseurl"in e&&n(21,T=e.baseurl),"lang"in e&&n(22,x=e.lang),"clientstyling"in e&&n(26,L=e.clientstyling),"clientstylingurl"in e&&n(27,
|
708
|
+
r?window.postMessage({type:"ExternalLinkNavigation",externalUrl:i,target:n},window.location.href):window.postMessage({type:"LinkNavigation",navUrl:i,target:n},window.location.href)};return e.$$set=e=>{"sponsorurl"in e&&n(0,i=e.sponsorurl),"sponsorimage"in e&&n(1,o=e.sponsorimage),"sponsortitle"in e&&n(2,s=e.sponsortitle),"paymenturl"in e&&n(3,a=e.paymenturl),"paymentimage"in e&&n(4,l=e.paymentimage),"paymenttitle"in e&&n(5,c=e.paymenttitle),"vendorurl"in e&&n(6,u=e.vendorurl),"vendorimage"in e&&n(7,h=e.vendorimage),"vendortitle"in e&&n(8,d=e.vendortitle),"helperlinkurl"in e&&n(9,f=e.helperlinkurl),"helperlinkimage"in e&&n(10,p=e.helperlinkimage),"helperlinktitle"in e&&n(11,m=e.helperlinktitle),"licenseurl"in e&&n(12,g=e.licenseurl),"licenseimage"in e&&n(13,y=e.licenseimage),"licensetitle"in e&&n(14,b=e.licensetitle),"sociallinkurl"in e&&n(15,v=e.sociallinkurl),"sociallinkimage"in e&&n(16,_=e.sociallinkimage),"sociallinktitle"in e&&n(17,w=e.sociallinktitle),"target"in e&&n(18,k=e.target),"linktype"in e&&n(19,E=e.linktype),"displaycolumn"in e&&n(20,S=e.displaycolumn),"baseurl"in e&&n(21,T=e.baseurl),"lang"in e&&n(22,x=e.lang),"clientstyling"in e&&n(26,L=e.clientstyling),"clientstylingurl"in e&&n(27,M=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/75497472&e.$$.dirty[0]&&L&&r&&(()=>{let e=document.createElement("style");e.innerHTML=L,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/142606336&e.$$.dirty[0]&&M&&r&&(()=>{let e=new URL(M),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,c,u,h,d,f,p,m,g,y,b,v,_,w,k,E,S,T,x,r,O,F,L,M,()=>F(i,E,k),()=>F(a,E,k),()=>F(u,E,k),()=>F(f,E,k),()=>F(g,E,k),()=>F(v,E,k),function(e){I[e?"unshift":"push"]((()=>{r=e,n(23,r)}))}]}
|
709
709
|
/* ../casino-footer-section/src/CasinoFooterSection.svelte generated by Svelte v3.59.2 */
|
710
710
|
function ai(e,t,n){const r=e.slice();return r[30]=t[n],r}function li(e,t,n){const r=e.slice();return r[30]=t[n],r}function ci(e,t,n){const r=e.slice();return r[33]=t[n],r}function ui(e,t,n){const r=e.slice();return r[30]=t[n],r}function hi(e,t,n){const r=e.slice();return r[30]=t[n],r}function di(e,t,n){const r=e.slice();return r[27]=t[n],r}function fi(e,t,n){const r=e.slice();return r[24]=t[n],r}
|
711
711
|
// (157:51)
|
@@ -719,7 +719,7 @@ function yi(e){let t,n=/*footervendors*/e[13],r=[];for(let t=0;t<n.length;t+=1)r
|
|
719
719
|
// (83:48)
|
720
720
|
function bi(e){let t,n=/*footerpayment*/e[12],r=[];for(let t=0;t<n.length;t+=1)r[t]=Li(di(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footerpayment, clientstyling, baseurl, lang*/4928&i[0]){let o;for(n=/*footerpayment*/e[12],o=0;o<n.length;o+=1){const s=di(e,n,o);r[o]?r[o].p(s,i):(r[o]=Li(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
721
721
|
// (69:2) {#if sponsorflag && footersponsors.length}
|
722
|
-
function vi(e){let t,n=/*footersponsors*/e[11],r=[];for(let t=0;t<n.length;t+=1)r[t]=
|
722
|
+
function vi(e){let t,n=/*footersponsors*/e[11],r=[];for(let t=0;t<n.length;t+=1)r[t]=Mi(fi(e,n,t));return{c(){t=g("div");for(let e=0;e<r.length;e+=1)r[e].c();k(t,"class","FooterSectionInnerContainer"),k(t,"part","FooterSectionInnerContainer")},m(e,n){f(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*footersponsors, clientstyling, baseurl, lang*/2880&i[0]){let o;for(n=/*footersponsors*/e[11],o=0;o<n.length;o+=1){const s=fi(e,n,o);r[o]?r[o].p(s,i):(r[o]=Mi(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&p(t),m(r,e)}}}
|
723
723
|
// (159:6) {#each footersociallinks as footerData}
|
724
724
|
function _i(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"sociallinkurl",n=/*footerData*/e[30].socialLinkUrl),E(t,"sociallinkimage",r=/*footerData*/e[30].socialLinkImage),E(t,"sociallinktitle",i=/*footerData*/e[30].socialLinkTitle),E(t,"clientstyling",/*clientstyling*/e[6]),E(t,"linktype",o=/*footerData*/e[30]?.isExternalLink),E(t,"target",s=/*footerData*/e[30]?.target),E(t,"baseurl",/*baseurl*/e[8]),E(t,"lang",/*lang*/e[9])},m(e,n){f(e,t,n)},p(e,a){/*footersociallinks*/65536&a[0]&&n!==(n=/*footerData*/e[30].socialLinkUrl)&&E(t,"sociallinkurl",n),/*footersociallinks*/65536&a[0]&&r!==(r=/*footerData*/e[30].socialLinkImage)&&E(t,"sociallinkimage",r),/*footersociallinks*/65536&a[0]&&i!==(i=/*footerData*/e[30].socialLinkTitle)&&E(t,"sociallinktitle",i),/*clientstyling*/64&a[0]&&E(t,"clientstyling",/*clientstyling*/e[6]),/*footersociallinks*/65536&a[0]&&o!==(o=/*footerData*/e[30]?.isExternalLink)&&E(t,"linktype",o),/*footersociallinks*/65536&a[0]&&s!==(s=/*footerData*/e[30]?.target)&&E(t,"target",s),/*baseurl*/256&a[0]&&E(t,"baseurl",/*baseurl*/e[8]),/*lang*/512&a[0]&&E(t,"lang",/*lang*/e[9])},d(e){e&&p(t)}}}
|
725
725
|
// (145:6) {#each footerlicenses as footerData}
|
@@ -738,10 +738,10 @@ function xi(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"ve
|
|
738
738
|
// (85:4) {#each footerpayment as paymentData}
|
739
739
|
function Li(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"paymenturl",n=/*paymentData*/e[27].paymentMethodUrl),E(t,"paymentimage",r=/*paymentData*/e[27].paymentMethodImage),E(t,"paymenttitle",i=/*paymentData*/e[27].paymentMethodTitle),E(t,"clientstyling",/*clientstyling*/e[6]),E(t,"linktype",o=/*paymentData*/e[27]?.isExternalLink),E(t,"target",s=/*paymentData*/e[27]?.target),E(t,"baseurl",/*baseurl*/e[8]),E(t,"lang",/*lang*/e[9])},m(e,n){f(e,t,n)},p(e,a){/*footerpayment*/4096&a[0]&&n!==(n=/*paymentData*/e[27].paymentMethodUrl)&&E(t,"paymenturl",n),/*footerpayment*/4096&a[0]&&r!==(r=/*paymentData*/e[27].paymentMethodImage)&&E(t,"paymentimage",r),/*footerpayment*/4096&a[0]&&i!==(i=/*paymentData*/e[27].paymentMethodTitle)&&E(t,"paymenttitle",i),/*clientstyling*/64&a[0]&&E(t,"clientstyling",/*clientstyling*/e[6]),/*footerpayment*/4096&a[0]&&o!==(o=/*paymentData*/e[27]?.isExternalLink)&&E(t,"linktype",o),/*footerpayment*/4096&a[0]&&s!==(s=/*paymentData*/e[27]?.target)&&E(t,"target",s),/*baseurl*/256&a[0]&&E(t,"baseurl",/*baseurl*/e[8]),/*lang*/512&a[0]&&E(t,"lang",/*lang*/e[9])},d(e){e&&p(t)}}}
|
740
740
|
// (71:6) {#each footersponsors as sponsorData}
|
741
|
-
function
|
741
|
+
function Mi(e){let t,n,r,i,o,s;return{c(){t=g("casino-footer-thumbnail"),E(t,"sponsorurl",n=/*sponsorData*/e[24].sponsorUrl),E(t,"sponsorimage",r=/*sponsorData*/e[24].sponsorImage),E(t,"sponsortitle",i=/*sponsorData*/e[24].sponsorTitle),E(t,"clientstyling",/*clientstyling*/e[6]),E(t,"linktype",o=/*sponsorData*/e[24]?.isExternalLink),E(t,"target",s=/*sponsorData*/e[24]?.target),E(t,"baseurl",/*baseurl*/e[8]),E(t,"lang",/*lang*/e[9])},m(e,n){f(e,t,n)},p(e,a){/*footersponsors*/2048&a[0]&&n!==(n=/*sponsorData*/e[24].sponsorUrl)&&E(t,"sponsorurl",n),/*footersponsors*/2048&a[0]&&r!==(r=/*sponsorData*/e[24].sponsorImage)&&E(t,"sponsorimage",r),/*footersponsors*/2048&a[0]&&i!==(i=/*sponsorData*/e[24].sponsorTitle)&&E(t,"sponsortitle",i),/*clientstyling*/64&a[0]&&E(t,"clientstyling",/*clientstyling*/e[6]),/*footersponsors*/2048&a[0]&&o!==(o=/*sponsorData*/e[24]?.isExternalLink)&&E(t,"linktype",o),/*footersponsors*/2048&a[0]&&s!==(s=/*sponsorData*/e[24]?.target)&&E(t,"target",s),/*baseurl*/256&a[0]&&E(t,"baseurl",/*baseurl*/e[8]),/*lang*/512&a[0]&&E(t,"lang",/*lang*/e[9])},d(e){e&&p(t)}}}function Di(t){let n;function r(e,t){/*sponsorflag*/
|
742
742
|
return e[0]&&/*footersponsors*/e[11].length?vi:/*paymentflag*/e[1]&&/*footerpayment*/e[12].length?bi:/*vendorflag*/e[2]&&/*footervendors*/e[13].length?yi:/*helperflag*/e[3]&&/*footerhelperlinks*/e[14].length?gi:/*licenseflag*/e[4]&&/*footerlicenses*/e[15].length?mi:/*socialflag*/e[5]&&/*footersociallinks*/e[16].length?pi:void 0}let i=r(t),o=i&&i(t);return{c(){n=g("div"),o&&o.c(),this.c=e,k(n,"class","FooterSectionContainer"),k(n,"part","FooterSectionContainer")},m(e,r){f(e,n,r),o&&o.m(n,null)
|
743
743
|
/*div_binding*/,t[20](n)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(n,null)))},i:e,o:e,d(e){e&&p(n),o&&o.d()
|
744
|
-
/*div_binding*/,t[20](null)}}}!customElements.get("casino-footer-thumbnail")&&customElements.define("casino-footer-thumbnail",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterItem{display:inline-block;padding:0 12px}.FooterItem .FooterSponsorLink,.FooterItem .FooterPaymentLink{display:block}.FooterItem .FooterSponsorLink{display:flex;align-items:center}.FooterItem .FooterPaymentLink,.FooterItem .FooterHelperLink{display:flex;align-items:center;justify-content:center}.FooterItem .FooterLinkDisabled{pointer-events:none;cursor:auto}.FooterItem .SponsorTitle,.FooterItem .PaymentTitle{font-size:9px;text-decoration:none;color:var(--emfe-w-color-gray-150, #828282);text-align:center}.FooterItem .HelperTitle{color:var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111));font-size:8px}.FooterItem.HelperLinkItem p{font-size:10px}.FooterItem .FooterItemAnchor{display:flex;flex-direction:column;gap:6px;text-decoration:none;cursor:pointer;border:none;background:transparent;padding:0}.FooterItem.SocialItem .FooterItemAnchor{width:42px;height:42px}.FooterItem .FooterImage{min-height:38px}.SponsorTitle{margin:0}.FooterLink{display:block;text-align:center}.DisplayColumn .FooterItemAnchor{flex-direction:row}.DisplayColumn .FooterImage{height:16px;width:16px;min-height:unset}.DisplayColumn.FooterItem.HelperLinkItem p{font-size:12px}@media only screen and (max-width: 768px){.FooterItem{padding:0 5px}.FooterItem.PaymentItem{padding:15px 5px}.FooterItem.GameVendorItem{padding:0 10px}}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},si,oi,o,{sponsorurl:0,sponsorimage:1,sponsortitle:2,paymenturl:3,paymentimage:4,paymenttitle:5,vendorurl:6,vendorimage:7,vendortitle:8,helperlinkurl:9,helperlinkimage:10,helperlinktitle:11,licenseurl:12,licenseimage:13,licensetitle:14,sociallinkurl:15,sociallinkimage:16,sociallinktitle:17,target:18,linktype:19,displaycolumn:20,baseurl:21,lang:22,clientstyling:26,clientstylingurl:27},null,[-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["sponsorurl","sponsorimage","sponsortitle","paymenturl","paymentimage","paymenttitle","vendorurl","vendorimage","vendortitle","helperlinkurl","helperlinkimage","helperlinktitle","licenseurl","licenseimage","licensetitle","sociallinkurl","sociallinkimage","sociallinktitle","target","linktype","displaycolumn","baseurl","lang","clientstyling","clientstylingurl"]}get sponsorurl(){return this.$$.ctx[0]}set sponsorurl(e){this.$$set({sponsorurl:e}),R()}get sponsorimage(){return this.$$.ctx[1]}set sponsorimage(e){this.$$set({sponsorimage:e}),R()}get sponsortitle(){return this.$$.ctx[2]}set sponsortitle(e){this.$$set({sponsortitle:e}),R()}get paymenturl(){return this.$$.ctx[3]}set paymenturl(e){this.$$set({paymenturl:e}),R()}get paymentimage(){return this.$$.ctx[4]}set paymentimage(e){this.$$set({paymentimage:e}),R()}get paymenttitle(){return this.$$.ctx[5]}set paymenttitle(e){this.$$set({paymenttitle:e}),R()}get vendorurl(){return this.$$.ctx[6]}set vendorurl(e){this.$$set({vendorurl:e}),R()}get vendorimage(){return this.$$.ctx[7]}set vendorimage(e){this.$$set({vendorimage:e}),R()}get vendortitle(){return this.$$.ctx[8]}set vendortitle(e){this.$$set({vendortitle:e}),R()}get helperlinkurl(){return this.$$.ctx[9]}set helperlinkurl(e){this.$$set({helperlinkurl:e}),R()}get helperlinkimage(){return this.$$.ctx[10]}set helperlinkimage(e){this.$$set({helperlinkimage:e}),R()}get helperlinktitle(){return this.$$.ctx[11]}set helperlinktitle(e){this.$$set({helperlinktitle:e}),R()}get licenseurl(){return this.$$.ctx[12]}set licenseurl(e){this.$$set({licenseurl:e}),R()}get licenseimage(){return this.$$.ctx[13]}set licenseimage(e){this.$$set({licenseimage:e}),R()}get licensetitle(){return this.$$.ctx[14]}set licensetitle(e){this.$$set({licensetitle:e}),R()}get sociallinkurl(){return this.$$.ctx[15]}set sociallinkurl(e){this.$$set({sociallinkurl:e}),R()}get sociallinkimage(){return this.$$.ctx[16]}set sociallinkimage(e){this.$$set({sociallinkimage:e}),R()}get sociallinktitle(){return this.$$.ctx[17]}set sociallinktitle(e){this.$$set({sociallinktitle:e}),R()}get target(){return this.$$.ctx[18]}set target(e){this.$$set({target:e}),R()}get linktype(){return this.$$.ctx[19]}set linktype(e){this.$$set({linktype:e}),R()}get displaycolumn(){return this.$$.ctx[20]}set displaycolumn(e){this.$$set({displaycolumn:e}),R()}get baseurl(){return this.$$.ctx[21]}set baseurl(e){this.$$set({baseurl:e}),R()}get lang(){return this.$$.ctx[22]}set lang(e){this.$$set({lang:e}),R()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}});let Oi=/^(?:[^\/]*\/){2}[^\/]+/g;function Fi(e,t,n){let r,{sponsorflag:i=""}=t,{paymentflag:o=""}=t,{vendorflag:s=""}=t,{helperflag:a=""}=t,{licenseflag:l=""}=t,{socialflag:c=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{target:d=""}=t,{displaycolumn:f=""}=t,{category:p=""}=t,{baseurl:m=""}=t,{lang:g=""}=t,y=[],b=[],v=[],_=[],w=[],k=[];const E=e=>{e.origin==window.location.href.match(Oi)[0]&&e.data&&"FooterData"===e.data.type&&(n(11,y=e.data.sponsorsRepeater),n(12,b=e.data.paymentMethodsRepeater),n(13,v=e.data.gameVendorsRepeater),n(14,_=e.data.helpLinksRepeater),n(15,w=e.data.licensesRepeater),n(16,k=e.data.socialLinksRepeater),p&&n(14,_=_.filter((e=>e.key==p))))};return O((()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}))),e.$$set=e=>{"sponsorflag"in e&&n(0,i=e.sponsorflag),"paymentflag"in e&&n(1,o=e.paymentflag),"vendorflag"in e&&n(2,s=e.vendorflag),"helperflag"in e&&n(3,a=e.helperflag),"licenseflag"in e&&n(4,l=e.licenseflag),"socialflag"in e&&n(5,c=e.socialflag),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(17,h=e.clientstylingurl),"target"in e&&n(18,d=e.target),"displaycolumn"in e&&n(7,f=e.displaycolumn),"category"in e&&n(19,p=e.category),"baseurl"in e&&n(8,m=e.baseurl),"lang"in e&&n(9,g=e.lang)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/1088&e.$$.dirty[0]&&u&&r&&(()=>{let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/132096&e.$$.dirty[0]&&h&&r&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,c,u,f,m,g,r,y,b,v,_,w,k,h,d,p,function(e){I[e?"unshift":"push"]((()=>{r=e,n(10,r)}))}]}function Ii(e,t){zn(e,t)}!customElements.get("casino-footer-section")&&customElements.define("casino-footer-section",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterSectionInnerContainer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.DisplayColumn{flex-direction:column;align-items:flex-start}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Fi,
|
744
|
+
/*div_binding*/,t[20](null)}}}!customElements.get("casino-footer-thumbnail")&&customElements.define("casino-footer-thumbnail",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterItem{display:inline-block;padding:0 12px}.FooterItem .FooterSponsorLink,.FooterItem .FooterPaymentLink{display:block}.FooterItem .FooterSponsorLink{display:flex;align-items:center}.FooterItem .FooterPaymentLink,.FooterItem .FooterHelperLink{display:flex;align-items:center;justify-content:center}.FooterItem .FooterLinkDisabled{pointer-events:none;cursor:auto}.FooterItem .SponsorTitle,.FooterItem .PaymentTitle{font-size:9px;text-decoration:none;color:var(--emfe-w-color-gray-150, #828282);text-align:center}.FooterItem .HelperTitle{color:var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111));font-size:8px}.FooterItem.HelperLinkItem p{font-size:10px}.FooterItem .FooterItemAnchor{display:flex;flex-direction:column;gap:6px;text-decoration:none;cursor:pointer;border:none;background:transparent;padding:0}.FooterItem.SocialItem .FooterItemAnchor{width:42px;height:42px}.FooterItem .FooterImage{min-height:38px}.SponsorTitle{margin:0}.FooterLink{display:block;text-align:center}.DisplayColumn .FooterItemAnchor{flex-direction:row}.DisplayColumn .FooterImage{height:16px;width:16px;min-height:unset}.DisplayColumn.FooterItem.HelperLinkItem p{font-size:12px}@media only screen and (max-width: 768px){.FooterItem{padding:0 5px}.FooterItem.PaymentItem{padding:15px 5px}.FooterItem.GameVendorItem{padding:0 10px}}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},si,oi,o,{sponsorurl:0,sponsorimage:1,sponsortitle:2,paymenturl:3,paymentimage:4,paymenttitle:5,vendorurl:6,vendorimage:7,vendortitle:8,helperlinkurl:9,helperlinkimage:10,helperlinktitle:11,licenseurl:12,licenseimage:13,licensetitle:14,sociallinkurl:15,sociallinkimage:16,sociallinktitle:17,target:18,linktype:19,displaycolumn:20,baseurl:21,lang:22,clientstyling:26,clientstylingurl:27},null,[-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["sponsorurl","sponsorimage","sponsortitle","paymenturl","paymentimage","paymenttitle","vendorurl","vendorimage","vendortitle","helperlinkurl","helperlinkimage","helperlinktitle","licenseurl","licenseimage","licensetitle","sociallinkurl","sociallinkimage","sociallinktitle","target","linktype","displaycolumn","baseurl","lang","clientstyling","clientstylingurl"]}get sponsorurl(){return this.$$.ctx[0]}set sponsorurl(e){this.$$set({sponsorurl:e}),R()}get sponsorimage(){return this.$$.ctx[1]}set sponsorimage(e){this.$$set({sponsorimage:e}),R()}get sponsortitle(){return this.$$.ctx[2]}set sponsortitle(e){this.$$set({sponsortitle:e}),R()}get paymenturl(){return this.$$.ctx[3]}set paymenturl(e){this.$$set({paymenturl:e}),R()}get paymentimage(){return this.$$.ctx[4]}set paymentimage(e){this.$$set({paymentimage:e}),R()}get paymenttitle(){return this.$$.ctx[5]}set paymenttitle(e){this.$$set({paymenttitle:e}),R()}get vendorurl(){return this.$$.ctx[6]}set vendorurl(e){this.$$set({vendorurl:e}),R()}get vendorimage(){return this.$$.ctx[7]}set vendorimage(e){this.$$set({vendorimage:e}),R()}get vendortitle(){return this.$$.ctx[8]}set vendortitle(e){this.$$set({vendortitle:e}),R()}get helperlinkurl(){return this.$$.ctx[9]}set helperlinkurl(e){this.$$set({helperlinkurl:e}),R()}get helperlinkimage(){return this.$$.ctx[10]}set helperlinkimage(e){this.$$set({helperlinkimage:e}),R()}get helperlinktitle(){return this.$$.ctx[11]}set helperlinktitle(e){this.$$set({helperlinktitle:e}),R()}get licenseurl(){return this.$$.ctx[12]}set licenseurl(e){this.$$set({licenseurl:e}),R()}get licenseimage(){return this.$$.ctx[13]}set licenseimage(e){this.$$set({licenseimage:e}),R()}get licensetitle(){return this.$$.ctx[14]}set licensetitle(e){this.$$set({licensetitle:e}),R()}get sociallinkurl(){return this.$$.ctx[15]}set sociallinkurl(e){this.$$set({sociallinkurl:e}),R()}get sociallinkimage(){return this.$$.ctx[16]}set sociallinkimage(e){this.$$set({sociallinkimage:e}),R()}get sociallinktitle(){return this.$$.ctx[17]}set sociallinktitle(e){this.$$set({sociallinktitle:e}),R()}get target(){return this.$$.ctx[18]}set target(e){this.$$set({target:e}),R()}get linktype(){return this.$$.ctx[19]}set linktype(e){this.$$set({linktype:e}),R()}get displaycolumn(){return this.$$.ctx[20]}set displaycolumn(e){this.$$set({displaycolumn:e}),R()}get baseurl(){return this.$$.ctx[21]}set baseurl(e){this.$$set({baseurl:e}),R()}get lang(){return this.$$.ctx[22]}set lang(e){this.$$set({lang:e}),R()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}});let Oi=/^(?:[^\/]*\/){2}[^\/]+/g;function Fi(e,t,n){let r,{sponsorflag:i=""}=t,{paymentflag:o=""}=t,{vendorflag:s=""}=t,{helperflag:a=""}=t,{licenseflag:l=""}=t,{socialflag:c=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{target:d=""}=t,{displaycolumn:f=""}=t,{category:p=""}=t,{baseurl:m=""}=t,{lang:g=""}=t,y=[],b=[],v=[],_=[],w=[],k=[];const E=e=>{e.origin==window.location.href.match(Oi)[0]&&e.data&&"FooterData"===e.data.type&&(n(11,y=e.data.sponsorsRepeater),n(12,b=e.data.paymentMethodsRepeater),n(13,v=e.data.gameVendorsRepeater),n(14,_=e.data.helpLinksRepeater),n(15,w=e.data.licensesRepeater),n(16,k=e.data.socialLinksRepeater),p&&n(14,_=_.filter((e=>e.key==p))))};return O((()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}))),e.$$set=e=>{"sponsorflag"in e&&n(0,i=e.sponsorflag),"paymentflag"in e&&n(1,o=e.paymentflag),"vendorflag"in e&&n(2,s=e.vendorflag),"helperflag"in e&&n(3,a=e.helperflag),"licenseflag"in e&&n(4,l=e.licenseflag),"socialflag"in e&&n(5,c=e.socialflag),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(17,h=e.clientstylingurl),"target"in e&&n(18,d=e.target),"displaycolumn"in e&&n(7,f=e.displaycolumn),"category"in e&&n(19,p=e.category),"baseurl"in e&&n(8,m=e.baseurl),"lang"in e&&n(9,g=e.lang)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/1088&e.$$.dirty[0]&&u&&r&&(()=>{let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/132096&e.$$.dirty[0]&&h&&r&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{r.appendChild(t)}),1)}))})()},[i,o,s,a,l,c,u,f,m,g,r,y,b,v,_,w,k,h,d,p,function(e){I[e?"unshift":"push"]((()=>{r=e,n(10,r)}))}]}function Ii(e,t){zn(e,t)}!customElements.get("casino-footer-section")&&customElements.define("casino-footer-section",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, Roboto, Helvetica}.FooterSectionInnerContainer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.DisplayColumn{flex-direction:column;align-items:flex-start}",this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Fi,Di,o,{sponsorflag:0,paymentflag:1,vendorflag:2,helperflag:3,licenseflag:4,socialflag:5,clientstyling:6,clientstylingurl:17,target:18,displaycolumn:7,category:19,baseurl:8,lang:9},null,[-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["sponsorflag","paymentflag","vendorflag","helperflag","licenseflag","socialflag","clientstyling","clientstylingurl","target","displaycolumn","category","baseurl","lang"]}get sponsorflag(){return this.$$.ctx[0]}set sponsorflag(e){this.$$set({sponsorflag:e}),R()}get paymentflag(){return this.$$.ctx[1]}set paymentflag(e){this.$$set({paymentflag:e}),R()}get vendorflag(){return this.$$.ctx[2]}set vendorflag(e){this.$$set({vendorflag:e}),R()}get helperflag(){return this.$$.ctx[3]}set helperflag(e){this.$$set({helperflag:e}),R()}get licenseflag(){return this.$$.ctx[4]}set licenseflag(e){this.$$set({licenseflag:e}),R()}get socialflag(){return this.$$.ctx[5]}set socialflag(e){this.$$set({socialflag:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get target(){return this.$$.ctx[18]}set target(e){this.$$set({target:e}),R()}get displaycolumn(){return this.$$.ctx[7]}set displaycolumn(e){this.$$set({displaycolumn:e}),R()}get category(){return this.$$.ctx[19]}set category(e){this.$$set({category:e}),R()}get baseurl(){return this.$$.ctx[8]}set baseurl(e){this.$$set({baseurl:e}),R()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),R()}});const Pi={en:{panicButtonString:"Hold button for 3 seconds to take 24-hour timeout"},"zh-hk":{panicButtonString:"长按3秒24小时即时锁定"},fr:{panicButtonString:"Maintenez le bouton enfoncé pendant 3 secondes pour prendre un verrouillage instantané de 24 heures"},ro:{panicButtonString:"Tine apasat 3 secunde pentru a lua o pauza de 24h"},es:{panicButtonString:"Dar clic durante 3 segundos para tomar un descanso de 24 horas"},de:{panicButtonString:"Button für 3 Sekunden drücken um eine 24-stündige Auszeit zu nehmen"},hr:{panicButtonString:"Držite gumb 3 sekunde za 24-satno vremensko ograničenje"},sl:{panicButtonString:"Držite gumb 3 sekunde, da bi vzeli 24 urni premor"},pl:{panicButtonString:"Przytrzymaj przycisk przez 3 sekundy, aby uzyskać 24-godzinny limit czasu"},"pt-br":{panicButtonString:"Pressione o botão por 3 segundos para fazer uma pausa de 24 horas."},"es-mx":{panicButtonString:"Presionar el botón 3 segundos para tomar una pausa de 24 horas."},tr:{panicButtonString:"24 saatlik zaman aşımına uğramak için düğmeyi 3 saniye basılı tutun"}};
|
745
745
|
/* ../player-panic-button/src/PlayerPanicButton.svelte generated by Svelte v3.59.2 */function Ai(t){let n,r,i,o,s,a=/*customtext*/(t[0]||/*$_*/t[5]("panicButtonString"))+"";return{c(){n=g("div"),r=g("div"),i=g("button"),o=b(a),this.c=e,k(i,"class","PanicButton "+("PC"!==Hr(/*userAgent*/t[6])?"PanicButtonMobile":"")),k(i,"part","PanicButton "+("PC"!==Hr(/*userAgent*/t[6])?"PanicButtonMobile":"")),x(i,"PanicButtonAnimation",/*panicLoading*/t[4]),k(r,"class","PanicSection "+("PC"!==Hr(/*userAgent*/t[6])?"PanicSectionMobile":"")),k(r,"part","PanicSection "+("PC"!==Hr(/*userAgent*/t[6])?"PanicSectionMobile":"")),k(n,"class",s=/*alternativestyling*/"true"==t[1]?"PanicButtonV2":"")},m(e,s){f(e,n,s),d(n,r),d(r,i),d(i,o),
|
746
746
|
/*button_binding*/t[11](i),
|
747
747
|
/*div1_binding*/t[12](n)},p(e,[t]){/*customtext, $_*/33&t&&a!==(a=/*customtext*/(e[0]||/*$_*/e[5]("panicButtonString"))+"")&&S(o,a),/*panicLoading*/16&t&&x(i,"PanicButtonAnimation",/*panicLoading*/e[4]),/*alternativestyling*/2&t&&s!==(s=/*alternativestyling*/"true"==e[1]?"PanicButtonV2":"")&&k(n,"class",s)},i:e,o:e,d(e){e&&p(n)
|
@@ -760,7 +760,7 @@ function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Ob
|
|
760
760
|
// input != null
|
761
761
|
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Xn(e,t,n,r,!0).utc()}function m(){
|
762
762
|
// We need to deep clone this object.
|
763
|
-
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 g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){
|
763
|
+
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 g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function b(e){var t=p(NaN);return null!=e?f(g(t),e):g(t).userInvalidated=!0,t}
|
764
764
|
// Plugins that add properties should also add the key here (null value),
|
765
765
|
// so we can properly clone ourselves.
|
766
766
|
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 v=r.momentProperties=[],_=!1;function w(e,t){var n,r,i,o=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=v[n]])||(e[r]=i);return e}
|
@@ -768,58 +768,73 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
|
|
768
768
|
function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
769
769
|
// Prevent infinite loop in case updateOffset creates new moment
|
770
770
|
// objects.
|
771
|
-
!1===_&&(_=!0,r.updateOffset(this),_=!1)}function E(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],c=arguments.length;for(o=0;o<c;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)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,L={};function
|
771
|
+
!1===_&&(_=!0,r.updateOffset(this),_=!1)}function E(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],c=arguments.length;for(o=0;o<c;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)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,L={};function M(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),L[e]||(S(t),L[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)a(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
772
772
|
// Lenient ordinal parsing accepts just a number in addition to
|
773
773
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
774
774
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
775
775
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F(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])&&(
|
776
776
|
// make sure changes to properties don't modify parent config
|
777
|
-
r[n]=f({},r[n]));return r}function I(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 P={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
|
777
|
+
r[n]=f({},r[n]));return r}function I(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 P={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 D(r)?r.call(t,n):r}function $(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 H=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},N={};
|
778
778
|
// token: 'M'
|
779
779
|
// padded: ['MM', 2]
|
780
780
|
// ordinal: 'Mo'
|
781
781
|
// callback: function () { this.month() + 1 }
|
782
|
-
function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return $(i.apply(this,arguments),t[1],t[2])}),n&&(N[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(H);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=Y(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=
|
782
|
+
function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return $(i.apply(this,arguments),t[1],t[2])}),n&&(N[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(H);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=Y(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}
|
783
783
|
// format date using native date object
|
784
|
-
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),B[t]=B[t]||U(t),B[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(C.lastIndex=0;n>=0&&C.test(e);)e=e.replace(C,r),C.lastIndex=0,n-=1;return e}var V={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 W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).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",
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
Pe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
784
|
+
function G(e,t){return e.isValid()?(t=j(t,e.localeData()),B[t]=B[t]||U(t),B[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(C.lastIndex=0;n>=0&&C.test(e);)e=e.replace(C,r),C.lastIndex=0,n-=1;return e}var V={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 W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).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 D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)a(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var// 0-99
|
785
|
+
se,ae=/\d/,// 0 - 9
|
786
|
+
le=/\d\d/,// 00 - 99
|
787
|
+
ce=/\d{3}/,// 000 - 999
|
788
|
+
ue=/\d{4}/,// 0000 - 9999
|
789
|
+
he=/[+-]?\d{6}/,// -999999 - 999999
|
790
|
+
de=/\d\d?/,// 0 - 99
|
791
|
+
fe=/\d\d\d\d?/,// 999 - 9999
|
792
|
+
pe=/\d\d\d\d\d\d?/,// 99999 - 999999
|
793
|
+
me=/\d{1,3}/,// 0 - 999
|
794
|
+
ge=/\d{1,4}/,// 0 - 9999
|
795
|
+
be=/[+-]?\d{1,6}/,// -999999 - 999999
|
796
|
+
ve=/\d+/,// 0 - inf
|
797
|
+
_e=/[+-]?\d+/,// -inf - inf
|
798
|
+
we=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
799
|
+
ke=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
800
|
+
Ee=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
802
801
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
803
802
|
// includes scottish gaelic two word and hyphenated months
|
804
|
-
|
803
|
+
Se=/[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,Te=/^[1-9]\d?/,// 1-99
|
804
|
+
xe=/^([1-9]\d|\d)/;function Le(e,t,n){se[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Me(e,t){return a(se,e)?se[e](t._strict,t._locale):new RegExp(De(e))}
|
805
805
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
806
|
-
function
|
806
|
+
function De(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ie(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Fe(t)),n}se={};var Pe={};function Ae(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=Ie(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=i}function $e(e,t){Ae(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function He(e,t,n){null!=t&&a(Pe,e)&&Pe[e](t,n._a,n,e)}function Ce(e){return e%4==0&&e%100!=0||e%400==0}var Be=0,Ne=1,Re=2,Ye=3,Ue=4,Ge=5,je=6,Ve=7,We=8;
|
807
807
|
// FORMATTING
|
808
|
-
|
808
|
+
// HELPERS
|
809
|
+
function ze(e){return Ce(e)?366:365}
|
810
|
+
// HOOKS
|
811
|
+
R("Y",0,0,(function(){var e=this.year();return e<=9999?$(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),
|
812
|
+
// PARSING
|
813
|
+
Le("Y",_e),Le("YY",de,le),Le("YYYY",ge,ue),Le("YYYYY",be,he),Le("YYYYYY",be,he),Ae(["YYYYY","YYYYYY"],Be),Ae("YYYY",(function(e,t){t[Be]=2===e.length?r.parseTwoDigitYear(e):Ie(e)})),Ae("YY",(function(e,t){t[Be]=r.parseTwoDigitYear(e)})),Ae("Y",(function(e,t){t[Be]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ie(e)+(Ie(e)>68?1900:2e3)};
|
814
|
+
// MOMENTS
|
815
|
+
var Ze,Xe=Ke("FullYear",!0);function qe(){return Ce(this.year())}function Ke(e,t){return function(n){return null!=n?(Qe(this,e,n),r.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN;// Just in case
|
816
|
+
}}function Qe(e,t,n){var r,i,o,s,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));
|
817
|
+
// case 'Day': // Not real
|
818
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
819
|
+
// case 'Month': // Not used because we need to pass two variables
|
820
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
821
|
+
case"FullYear":break;// See below ...
|
822
|
+
default:return;// Just in case
|
823
|
+
}o=n,s=e.month(),a=29!==(a=e.date())||1!==s||Ce(o)?a:28,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}
|
824
|
+
// MOMENTS
|
825
|
+
function et(e){return D(this[e=ne(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=oe(e=re(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=ne(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?Ce(e)?29:28:31-n%7%2}
|
826
|
+
// FORMATTING
|
827
|
+
Ze=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
809
828
|
// I know
|
810
829
|
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
|
811
|
-
// ALIASES
|
812
|
-
ne("month","M"),
|
813
|
-
// PRIORITY
|
814
|
-
se("month",8),
|
815
830
|
// PARSING
|
816
|
-
|
831
|
+
Le("M",de,Te),Le("MM",de,le),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ae(["M","MM"],(function(e,t){t[Ne]=Ie(e)-1})),Ae(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
817
832
|
// if we didn't find a month name, mark the date as invalid.
|
818
|
-
null!=i?t[
|
833
|
+
null!=i?t[Ne]=i:g(n).invalidMonth=e}));
|
819
834
|
// LOCALES
|
820
|
-
var
|
835
|
+
var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Se,lt=Se;function ct(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ut(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ht(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
821
836
|
// this is not used
|
822
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=
|
837
|
+
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ze.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ze.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ze.call(this._shortMonthsParse,s))||-1!==(i=Ze.call(this._longMonthsParse,s))?i:null:-1!==(i=Ze.call(this._longMonthsParse,s))||-1!==(i=Ze.call(this._shortMonthsParse,s))?i:null}function dt(e,t,n){var r,i,o;if(this._monthsParseExact)return ht.call(this,e,t,n);
|
823
838
|
// TODO: add sorting
|
824
839
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
825
840
|
// see sorting in computeMonthsParse
|
@@ -829,29 +844,16 @@ if(
|
|
829
844
|
// make the regex if we don't have it already
|
830
845
|
i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}
|
831
846
|
// MOMENTS
|
832
|
-
function
|
847
|
+
function ft(e,t){if(!e.isValid())
|
833
848
|
// No op
|
834
|
-
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=
|
849
|
+
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ie(t);else
|
835
850
|
// TODO: Another silent failure?
|
836
|
-
if(!u(t=e.localeData().monthsParse(t)))return e;
|
851
|
+
if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Je(this,"Month")}function mt(){return rt(this.year(),this.month())}function gt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],s=[],a=[];for(t=0;t<12;t++)
|
837
852
|
// make the regex if we don't have it already
|
838
|
-
n=p([2e3,t]),r
|
853
|
+
n=p([2e3,t]),r=Oe(this.monthsShort(n,"")),i=Oe(this.months(n,"")),o.push(r),s.push(i),a.push(i),a.push(r);
|
839
854
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
840
855
|
// will match the longer piece.
|
841
|
-
|
842
|
-
// FORMATTING
|
843
|
-
// HELPERS
|
844
|
-
function gt(e){return le(e)?366:365}
|
845
|
-
// HOOKS
|
846
|
-
R("Y",0,0,(function(){var e=this.year();return e<=9999?$(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),
|
847
|
-
// ALIASES
|
848
|
-
ne("year","y"),
|
849
|
-
// PRIORITIES
|
850
|
-
se("year",1),
|
851
|
-
// PARSING
|
852
|
-
$e("Y",Oe),$e("YY",Ee,ve),$e("YYYY",Le,we),$e("YYYYY",De,ke),$e("YYYYYY",De,ke),Re(["YYYYY","YYYYYY"],je),Re("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),Re("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};
|
853
|
-
// MOMENTS
|
854
|
-
var yt=he("FullYear",!0);function bt(){return le(this.year())}function vt(e,t,n,r,i,o,s){
|
856
|
+
o.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function vt(e,t,n,r,i,o,s){
|
855
857
|
// can't just apply() to create a date:
|
856
858
|
// https://stackoverflow.com/q/181348
|
857
859
|
var a;
|
@@ -867,45 +869,37 @@ return e<100&&e>=0?(
|
|
867
869
|
function wt(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
868
870
|
r=7+t-n;return-(7+_t(e,0,r).getUTCDay()-t)%7+r-1}
|
869
871
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
870
|
-
function kt(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return a<=0?s=
|
872
|
+
function kt(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return a<=0?s=ze(o=e-1)+a:a>ze(e)?(o=e+1,s=a-ze(e)):(o=e,s=a),{year:o,dayOfYear:s}}function Et(e,t,n){var r,i,o=wt(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+St(i=e.year()-1,t,n):s>St(e.year(),t,n)?(r=s-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function St(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(ze(e)-r+i)/7}
|
871
873
|
// FORMATTING
|
872
874
|
// HELPERS
|
873
875
|
// LOCALES
|
874
876
|
function Tt(e){return Et(e,this._week.dow,this._week.doy).week}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),
|
875
|
-
// ALIASES
|
876
|
-
ne("week","w"),ne("isoWeek","W"),
|
877
|
-
// PRIORITIES
|
878
|
-
se("week",5),se("isoWeek",5),
|
879
877
|
// PARSING
|
880
|
-
|
881
|
-
doy:6};function Lt(){return this._week.dow}function
|
878
|
+
Le("w",de,Te),Le("ww",de,le),Le("W",de,Te),Le("WW",de,le),$e(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ie(e)}));var xt={dow:0,// Sunday is the first day of the week.
|
879
|
+
doy:6};function Lt(){return this._week.dow}function Mt(){return this._week.doy}
|
882
880
|
// MOMENTS
|
883
|
-
function
|
881
|
+
function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=Et(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
884
882
|
// FORMATTING
|
885
883
|
// HELPERS
|
886
884
|
function Ft(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function It(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
887
885
|
// LOCALES
|
888
886
|
function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),
|
889
|
-
// ALIASES
|
890
|
-
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
891
|
-
// PRIORITY
|
892
|
-
se("day",11),se("weekday",11),se("isoWeekday",11),
|
893
887
|
// PARSING
|
894
|
-
|
888
|
+
Le("d",de),Le("e",de),Le("E",de),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),$e(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
895
889
|
// if we didn't get a weekday name, mark the date as invalid
|
896
|
-
null!=i?t.d=i:g(n).invalidWeekday=e}))
|
890
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),$e(["d","e","E"],(function(e,t,n,r){t[r]=Ie(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ct=Se,Bt=Se,Nt=Se;function Rt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Yt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Pt(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=Ze.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ze.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ze.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ze.call(this._weekdaysParse,s))||-1!==(i=Ze.call(this._shortWeekdaysParse,s))||-1!==(i=Ze.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ze.call(this._shortWeekdaysParse,s))||-1!==(i=Ze.call(this._weekdaysParse,s))||-1!==(i=Ze.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ze.call(this._minWeekdaysParse,s))||-1!==(i=Ze.call(this._weekdaysParse,s))||-1!==(i=Ze.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++){
|
897
891
|
// test the regex
|
898
892
|
if(
|
899
893
|
// make the regex if we don't have it already
|
900
894
|
i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
|
901
895
|
// MOMENTS
|
902
|
-
function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=
|
896
|
+
function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Ft(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function zt(e){if(!this.isValid())return null!=e?this:NaN;
|
903
897
|
// behaves the same as moment#day except
|
904
898
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
905
899
|
// as a setter, sunday should belong to the previous week.
|
906
|
-
if(null!=e){var t=It(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||
|
900
|
+
if(null!=e){var t=It(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ct),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)
|
907
901
|
// make the regex if we don't have it already
|
908
|
-
n=p([2e3,1]).day(t),r=
|
902
|
+
n=p([2e3,1]).day(t),r=Oe(this.weekdaysMin(n,"")),i=Oe(this.weekdaysShort(n,"")),o=Oe(this.weekdays(n,"")),s.push(r),a.push(i),l.push(o),c.push(r),c.push(i),c.push(o);
|
909
903
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
910
904
|
// will match the longer piece.
|
911
905
|
s.sort(e),a.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.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")}
|
@@ -917,16 +911,12 @@ function tn(e,t){return t._meridiemParse}
|
|
917
911
|
function nn(e){
|
918
912
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
919
913
|
// Using charAt should be more compatible.
|
920
|
-
return"p"===(e+"").toLowerCase().charAt(0)}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Jt),R("k",["kk",2],0,Qt),R("hmm",0,0,(function(){return""+Jt.apply(this)+$(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Jt.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+$(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)})),en("a",!0),en("A",!1),
|
921
|
-
// ALIASES
|
922
|
-
ne("hour","h"),
|
923
|
-
// PRIORITY
|
924
|
-
se("hour",13),$e("a",tn),$e("A",tn),$e("H",Ee),$e("h",Ee),$e("k",Ee),$e("HH",Ee,ve),$e("hh",Ee,ve),$e("kk",Ee,ve),$e("hmm",Se),$e("hmmss",Te),$e("Hmm",Se),$e("Hmmss",Te),Re(["H","HH"],ze),Re(["k","kk"],(function(e,t,n){var r=ue(e);t[ze]=24===r?0:r})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[ze]=ue(e),g(n).bigHour=!0})),Re("hmm",(function(e,t,n){var r=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r)),g(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Xe]=ue(e.substr(i)),g(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r))})),Re("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Xe]=ue(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
914
|
+
return"p"===(e+"").toLowerCase().charAt(0)}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Jt),R("k",["kk",2],0,Qt),R("hmm",0,0,(function(){return""+Jt.apply(this)+$(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Jt.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+$(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)})),en("a",!0),en("A",!1),Le("a",tn),Le("A",tn),Le("H",de,xe),Le("h",de,Te),Le("k",de,Te),Le("HH",de,le),Le("hh",de,le),Le("kk",de,le),Le("hmm",fe),Le("hmmss",pe),Le("Hmm",fe),Le("Hmmss",pe),Ae(["H","HH"],Ye),Ae(["k","kk"],(function(e,t,n){var r=Ie(e);t[Ye]=24===r?0:r})),Ae(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ae(["h","hh"],(function(e,t,n){t[Ye]=Ie(e),g(n).bigHour=!0})),Ae("hmm",(function(e,t,n){var r=e.length-2;t[Ye]=Ie(e.substr(0,r)),t[Ue]=Ie(e.substr(r)),g(n).bigHour=!0})),Ae("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ye]=Ie(e.substr(0,r)),t[Ue]=Ie(e.substr(r,2)),t[Ge]=Ie(e.substr(i)),g(n).bigHour=!0})),Ae("Hmm",(function(e,t,n){var r=e.length-2;t[Ye]=Ie(e.substr(0,r)),t[Ue]=Ie(e.substr(r))})),Ae("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ye]=Ie(e.substr(0,r)),t[Ue]=Ie(e.substr(r,2)),t[Ge]=Ie(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
925
915
|
// Setting the hour should keep the time, because the user explicitly
|
926
916
|
// specified which hour they want. So trying to maintain the same hour (in
|
927
917
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
928
918
|
// this rule.
|
929
|
-
on=
|
919
|
+
on=Ke("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:P,longDateFormat:V,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:it,monthsShort:ot,week:xt,weekdays:At,weekdaysMin:Ht,weekdaysShort:$t,meridiemParse:rn},cn={},un={};
|
930
920
|
// internal storage for locale config files
|
931
921
|
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}
|
932
922
|
// pick the locale from the array
|
@@ -936,7 +926,8 @@ function fn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).le
|
|
936
926
|
//the next array item is better than a shallower substring of this one
|
937
927
|
break;t--}o++}return an}function pn(e){
|
938
928
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
939
|
-
|
929
|
+
// Ensure name is available and function returns boolean
|
930
|
+
return!(!e||!e.match("^[^/\\\\]*$"))}function mn(t){var n=null;
|
940
931
|
// TODO: Find a better way to register and load all the locales in Node
|
941
932
|
if(void 0===cn[t]&&e&&e.exports&&pn(t))try{n=an._abbr,ye(),gn(n)}catch(e){
|
942
933
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
@@ -950,7 +941,7 @@ function gn(e,t){var n;return e&&((n=c(t)?vn(e):yn(e,t))?
|
|
950
941
|
// moment.duration._locale = moment._locale = data;
|
951
942
|
an=n:"undefined"!=typeof console&&console.warn&&
|
952
943
|
//warn user if arguments are passed but the locale could not be set
|
953
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])
|
944
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new I(F(r,t)),un[e]&&un[e].forEach((function(e){yn(e.name,e.config)})),
|
954
945
|
// backwards compat for now: also set the locale
|
955
946
|
// make sure we set the locale AFTER all child locales have been
|
956
947
|
// created, so we won't end up with the child locale set.
|
@@ -972,24 +963,24 @@ null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)
|
|
972
963
|
// returns locale data
|
973
964
|
function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
974
965
|
//short-circuit everything else
|
975
|
-
t=mn(e))return t;e=[e]}return fn(e)}function _n(){return x(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[
|
966
|
+
t=mn(e))return t;e=[e]}return fn(e)}function _n(){return x(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ne]<0||n[Ne]>11?Ne:n[Re]<1||n[Re]>rt(n[Be],n[Ne])?Re:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[Ue]||0!==n[Ge]||0!==n[je])?Ye:n[Ue]<0||n[Ue]>59?Ue:n[Ge]<0||n[Ge]>59?Ge:n[je]<0||n[je]>999?je:-1,g(e)._overflowDayOfYear&&(t<Be||t>Re)&&(t=Re),g(e)._overflowWeeks&&-1===t&&(t=Ve),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}
|
976
967
|
// iso 8601 regex
|
977
968
|
// 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)
|
978
969
|
var kn=/^\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)?)?$/,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=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["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]],
|
979
970
|
// iso time formats and regexes
|
980
971
|
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/]],Ln=/^\/?Date\((-?\d+)/i,
|
981
972
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
982
|
-
|
973
|
+
Mn=/^(?:(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}))$/,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
983
974
|
// date from iso format
|
984
975
|
function On(e){var t,n,r,i,o,s,a=e._i,l=kn.exec(a)||En.exec(a),c=Tn.length,u=xn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Tn[t][1].exec(l[1])){i=Tn[t][0],r=!1!==Tn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(xn[t][1].exec(l[3])){
|
985
976
|
// match[2] should be 'T' or space
|
986
|
-
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(!Sn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function Fn(e,t,n,r,i,o){var s=[In(e),
|
977
|
+
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(!Sn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function Fn(e,t,n,r,i,o){var s=[In(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function In(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){
|
987
978
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
988
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||$t.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function $n(e,t,n){if(e)return
|
979
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||$t.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function $n(e,t,n){if(e)return Dn[e];if(t)
|
989
980
|
// the only allowed military tz is Z
|
990
981
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
991
982
|
// date and time from ref 2822 format
|
992
|
-
function Hn(e){var t,n=
|
983
|
+
function Hn(e){var t,n=Mn.exec(Pn(e._i));if(n){if(t=Fn(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=$n(n[8],n[9],n[10]),e._d=_t.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
993
984
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
994
985
|
function Cn(e){var t=Ln.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Hn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
995
986
|
// Final attempt, use Input Fallback
|
@@ -1010,23 +1001,23 @@ function Rn(e){var t,n,r,i,o,s=[];if(!e._d){
|
|
1010
1001
|
// * if year is given, don't default anything
|
1011
1002
|
for(r=Nn(e),
|
1012
1003
|
//compute day of the year from weeks and weekdays
|
1013
|
-
e._w&&null==e._a[
|
1004
|
+
e._w&&null==e._a[Re]&&null==e._a[Ne]&&Yn(e),
|
1014
1005
|
//if the day of the year is set, figure out what it is
|
1015
|
-
null!=e._dayOfYear&&(o=Bn(e._a[
|
1006
|
+
null!=e._dayOfYear&&(o=Bn(e._a[Be],r[Be]),(e._dayOfYear>ze(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=_t(o,0,e._dayOfYear),e._a[Ne]=n.getUTCMonth(),e._a[Re]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
1016
1007
|
// Zero out whatever was not defaulted, including time
|
1017
1008
|
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
1018
1009
|
// Check for 24:00:00.000
|
1019
|
-
24===e._a[
|
1010
|
+
24===e._a[Ye]&&0===e._a[Ue]&&0===e._a[Ge]&&0===e._a[je]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?_t:vt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
1020
1011
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
1021
1012
|
// with parseZone.
|
1022
|
-
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[
|
1013
|
+
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),
|
1023
1014
|
// check for mismatching day of week
|
1024
1015
|
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,s,a,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,
|
1025
1016
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
1026
1017
|
// how we interpret now (local, utc, fixed offset). So create
|
1027
1018
|
// a now version of current config (take local/utc/offset flags, and
|
1028
1019
|
// create now).
|
1029
|
-
n=Bn(t.GG,e._a[
|
1020
|
+
n=Bn(t.GG,e._a[Be],Et(qn(),1,4).year),r=Bn(t.W,1),((i=Bn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,c=Et(qn(),o,s),n=Bn(t.gg,e._a[Be],c.year),
|
1030
1021
|
// Default to current week.
|
1031
1022
|
r=Bn(t.w,c.week),null!=t.d?((
|
1032
1023
|
// weekday -- low day numbers are considered next week
|
@@ -1034,24 +1025,24 @@ i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
|
|
1034
1025
|
// local weekday -- counting starts from beginning of week
|
1035
1026
|
i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):
|
1036
1027
|
// default to beginning of week
|
1037
|
-
i=o),r<1||r>St(n,o,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(a=kt(n,r,i,o,s),e._a[
|
1028
|
+
i=o),r<1||r>St(n,o,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(a=kt(n,r,i,o,s),e._a[Be]=a.year,e._dayOfYear=a.dayOfYear)}
|
1038
1029
|
// constant that refers to the ISO standard
|
1039
1030
|
// date from string and format string
|
1040
1031
|
function Un(e){
|
1041
1032
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
1042
1033
|
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;
|
1043
1034
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
1044
|
-
var t,n,i,o,s,a,l,c=""+e._i,u=c.length,h=0;for(l=(i=j(e._f,e._locale).match(H)||[]).length,t=0;t<l;t++)o=i[t],(n=(c.match(
|
1035
|
+
var t,n,i,o,s,a,l,c=""+e._i,u=c.length,h=0;for(l=(i=j(e._f,e._locale).match(H)||[]).length,t=0;t<l;t++)o=i[t],(n=(c.match(Me(o,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),h+=n.length),
|
1045
1036
|
// don't parse if it's not a known token
|
1046
|
-
N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),
|
1037
|
+
N[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),He(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);
|
1047
1038
|
// add remaining unparsed input length to the string
|
1048
1039
|
g(e).charsLeftOver=u-h,c.length>0&&g(e).unusedInput.push(c),
|
1049
1040
|
// clear _12h flag if hour is <= 12
|
1050
|
-
e._a[
|
1041
|
+
e._a[Ye]<=12&&!0===g(e).bigHour&&e._a[Ye]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,
|
1051
1042
|
// handle meridiem
|
1052
|
-
e._a[
|
1043
|
+
e._a[Ye]=Gn(e._locale,e._a[Ye],e._meridiem),null!==(
|
1053
1044
|
// handle era
|
1054
|
-
a=g(e).era)&&(e._a[
|
1045
|
+
a=g(e).era)&&(e._a[Be]=e._locale.erasConvertYear(a,e._a[Be])),Rn(e),wn(e)}else Hn(e);else On(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
1055
1046
|
// Fallback
|
1056
1047
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
1057
1048
|
// date from string and array of format strings
|
@@ -1059,25 +1050,25 @@ function jn(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return g(e).invalidFo
|
|
1059
1050
|
// if there is any input that was not parsed add a penalty for that format
|
1060
1051
|
o+=g(t).charsLeftOver,
|
1061
1052
|
//or tokens
|
1062
|
-
o+=10*g(t).unusedTokens.length,g(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 Vn(e){if(!e._d){var t=
|
1053
|
+
o+=10*g(t).unusedTokens.length,g(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 Vn(e){if(!e._d){var t=re(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)})),Rn(e)}}function Wn(e){var t=new k(wn(zn(e)));return t._nextDay&&(
|
1063
1054
|
// Adding is smart enough around DST
|
1064
1055
|
t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new k(wn(t)):(h(t)?e._d=t:o(n)?jn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Cn(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Rn(e)):s(t)?Vn(e):u(t)?
|
1065
1056
|
// from milliseconds
|
1066
1057
|
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),
|
1067
1058
|
// object construction must be done this way.
|
1068
1059
|
// https://github.com/moment/moment/issues/1423
|
1069
|
-
a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,Wn(a)}function
|
1060
|
+
a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,Wn(a)}function qn(e,t,n,r){return Xn(e,t,n,r,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},
|
1070
1061
|
// constant that refers to the RFC 2822 form
|
1071
|
-
r.RFC_2822=function(){};var
|
1062
|
+
r.RFC_2822=function(){};var Kn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Jn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));
|
1072
1063
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
1073
1064
|
// other. This relies on the function fn to be transitive.
|
1074
1065
|
|
1075
1066
|
// moments should either be an array of moment objects or an array, whose
|
1076
1067
|
// first element is an array of moment objects.
|
1077
|
-
function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return
|
1068
|
+
function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
1078
1069
|
// TODO: Use [].sort instead?
|
1079
|
-
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===
|
1080
|
-
parseFloat(e[rr[n]])!==
|
1070
|
+
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===Ze.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
1071
|
+
parseFloat(e[rr[n]])!==Ie(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Dr(NaN)}function ar(e){var t=re(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),
|
1081
1072
|
// representation for dateAddRemove
|
1082
1073
|
this._milliseconds=+u+1e3*c+// 1000
|
1083
1074
|
6e4*l+// 1000 * 60
|
@@ -1090,20 +1081,20 @@ this._days=+s+7*o,
|
|
1090
1081
|
// it separately.
|
1091
1082
|
this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function lr(e){return e instanceof ar}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
1092
1083
|
// compare two arrays, return the number of differences
|
1093
|
-
function ur(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&&
|
1084
|
+
function ur(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&&Ie(e[r])!==Ie(t[r]))&&s++;return s+o}
|
1094
1085
|
// FORMATTING
|
1095
1086
|
function hr(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+$(~~(e/60),2)+t+$(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
|
1096
1087
|
// PARSING
|
1097
|
-
|
1088
|
+
Le("Z",ke),Le("ZZ",ke),Ae(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(ke,e)}));
|
1098
1089
|
// HELPERS
|
1099
1090
|
// timezone chunker
|
1100
1091
|
// '+10:00' > ['10', '00']
|
1101
1092
|
// '-1530' > ['-15', '30']
|
1102
|
-
var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+
|
1093
|
+
var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+Ie(n[2]))?0:"+"===n[0]?r:-r}
|
1103
1094
|
// Return a moment from input, that is local/utc/zone equivalent to model.
|
1104
|
-
function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(E(e)||h(e)?e.valueOf():
|
1095
|
+
function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(E(e)||h(e)?e.valueOf():qn(e).valueOf())-n.valueOf(),
|
1105
1096
|
// Use low-level api, because this fn is low-level api.
|
1106
|
-
n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):
|
1097
|
+
n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):qn(e).local()}function mr(e){
|
1107
1098
|
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
1108
1099
|
// https://github.com/moment/moment/pull/1871
|
1109
1100
|
return-Math.round(e._d.getTimezoneOffset())}
|
@@ -1120,17 +1111,17 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
1120
1111
|
// a second time. In case it wants us to change the offset again
|
1121
1112
|
// _changeInProgress == true case, then we have to adjust, because
|
1122
1113
|
// there is no such time in the given timezone.
|
1123
|
-
function gr(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(
|
1114
|
+
function gr(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(ke,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,Dr(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 yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Er(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
1124
1115
|
// ASP.NET json date format regex
|
1125
1116
|
r.updateOffset=function(){};var Lr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
1126
1117
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
1127
1118
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
1128
1119
|
// and further modified to allow for strings containing both week and day
|
1129
|
-
|
1120
|
+
Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(e,t){var n,r,i,o=e,
|
1130
1121
|
// matching against regexp is expensive, do it on demand
|
1131
|
-
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Lr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:
|
1122
|
+
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Lr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:Ie(s[Re])*n,h:Ie(s[Ye])*n,m:Ie(s[Ue])*n,s:Ie(s[Ge])*n,ms:Ie(cr(1e3*s[je]))*n}):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,o={y:Or(s[2],n),M:Or(s[3],n),w:Or(s[4],n),d:Or(s[5],n),h:Or(s[6],n),m:Or(s[7],n),s:Or(s[8],n)}):null==o?
|
1132
1123
|
// checks for null or undefined
|
1133
|
-
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ir(
|
1124
|
+
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ir(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 Or(e,t){
|
1134
1125
|
// We'd normally use ~~inp for this, but unfortunately it also
|
1135
1126
|
// converts floats to ints.
|
1136
1127
|
// inp may be undefined, so careful calling replace on it.
|
@@ -1140,19 +1131,19 @@ return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.mon
|
|
1140
1131
|
// TODO: remove 'name' arg after deprecation is removed
|
1141
1132
|
function Pr(e,t){return function(n,r){var i;
|
1142
1133
|
//invert the arguments, but complain about it
|
1143
|
-
return null===r||isNaN(+r)||(
|
1134
|
+
return null===r||isNaN(+r)||(M(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,Dr(n,r),e),this}}function Ar(e,t,n,i){var o=t._milliseconds,s=cr(t._days),a=cr(t._months);e.isValid()&&(i=null==i||i,a&&ft(e,Je(e,"Month")+a*n),s&&Qe(e,"Date",Je(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Dr.fn=ar.prototype,Dr.invalid=sr;var $r=Pr(1,"add"),Hr=Pr(-1,"subtract");function Cr(e){return"string"==typeof e||e instanceof String}
|
1144
1135
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
1145
1136
|
function Br(e){return E(e)||h(e)||Cr(e)||u(e)||Rr(e)||Nr(e)||null==e}function Nr(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"],c=o.length;for(t=0;t<c;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Rr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Cr(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){
|
1146
1137
|
// Support for single parameter, formats only overload to the calendar function
|
1147
1138
|
1===arguments.length&&(arguments[0]?Br(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
1148
1139
|
// We want to compare the start of today, vs this.
|
1149
1140
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
1150
|
-
var n=e||
|
1141
|
+
var n=e||qn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,qn(n)))}function jr(){return new k(this)}function Vr(e,t){var n=E(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=E(e)?e:qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=E(e)?e:qn(e),o=E(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=E(e)?e:qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(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=ne(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
|
1151
1142
|
case"minute":o=(this-r)/6e4;break;// 1000 * 60
|
1152
1143
|
case"hour":o=(this-r)/36e5;break;// 1000 * 60 * 60
|
1153
1144
|
case"day":o=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
1154
1145
|
case"week":o=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
1155
|
-
default:o=this-r}return n?o:
|
1146
|
+
default:o=this-r}return n?o:Fe(o)}function Jr(e,t){if(e.date()<t.date())
|
1156
1147
|
// end-of-month calculations work correct when the start month has more
|
1157
1148
|
// days than the end month.
|
1158
1149
|
return-Jr(t,e);
|
@@ -1161,7 +1152,7 @@ var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
1161
1152
|
// b is in (anchor - 1 month, anchor + 1 month)
|
1162
1153
|
r=e.clone().add(n,"months");
|
1163
1154
|
//check for negative zero, return zero if negative zero
|
1164
|
-
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):
|
1155
|
+
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?
|
1165
1156
|
// native implementation is ~50x faster, use it when we can
|
1166
1157
|
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
|
1167
1158
|
/**
|
@@ -1169,7 +1160,7 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
1169
1160
|
* also be evaluated to get a new moment which is the same
|
1170
1161
|
*
|
1171
1162
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
1172
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(E(e)&&e.isValid()||
|
1163
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(E(e)&&e.isValid()||qn(e).isValid())?Dr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(qn(),e)}function oi(e,t){return this.isValid()&&(E(e)&&e.isValid()||qn(e).isValid())?Dr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(qn(),e)}
|
1173
1164
|
// If passed a locale key, it will set the locale for this
|
1174
1165
|
// instance. Otherwise, it will return the locale configuration
|
1175
1166
|
// variables for this instance.
|
@@ -1179,9 +1170,9 @@ function pi(e,t){return(e%t+t)%t}function mi(e,t,n){
|
|
1179
1170
|
// the date constructor remaps years 0-99 to 1900-1999
|
1180
1171
|
return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function gi(e,t,n){
|
1181
1172
|
// Date.UTC remaps years 0-99 to 1900-1999
|
1182
|
-
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=
|
1173
|
+
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi: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,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi: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+=ui-pi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function ki(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ei(){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 Si(){
|
1183
1174
|
// new Date(NaN).toJSON() === null
|
1184
|
-
return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function xi(){return f({},g(this))}function Li(){return g(this).overflow}function
|
1175
|
+
return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function xi(){return f({},g(this))}function Li(){return g(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Di(e,t){var n,i,o,s=this._eras||vn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
|
1185
1176
|
// truncate time
|
1186
1177
|
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":
|
1187
1178
|
// truncate time
|
@@ -1193,80 +1184,53 @@ n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e]
|
|
1193
1184
|
// truncate time
|
1194
1185
|
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 $i(){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,
|
1195
1186
|
// truncate time
|
1196
|
-
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 Hi(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Ci(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bi(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Ri(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||
|
1187
|
+
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 Hi(e){return a(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Ci(e){return a(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bi(e){return a(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ni(e,t){return t.erasAbbrRegex(e)}function Ri(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||ve}function Gi(){var e,t,n,r,i,o=[],s=[],a=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=Oe(c[e].name),r=Oe(c[e].abbr),i=Oe(c[e].narrow),s.push(n),o.push(r),a.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}
|
1197
1188
|
// FORMATTING
|
1198
1189
|
function ji(e,t){R(0,[e,e.length],0,t)}
|
1199
1190
|
// MOMENTS
|
1200
|
-
function Vi(e){return
|
1191
|
+
function Vi(e){return Ki.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return St(this.year(),1,4)}function Zi(){return St(this.isoWeekYear(),1,4)}function Xi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function qi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?Et(this,r,i).year:(t>(o=St(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=kt(e,t,n,r,i),s=_t(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
1201
1192
|
// FORMATTING
|
1202
1193
|
// MOMENTS
|
1203
1194
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
1204
1195
|
// FORMATTING
|
1205
|
-
R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear")
|
1196
|
+
R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),Le("N",Ni),Le("NN",Ni),Le("NNN",Ni),Le("NNNN",Ri),Le("NNNNN",Yi),Ae(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Le("y",ve),Le("yy",ve),Le("yyy",ve),Le("yyyy",ve),Le("yo",Ui),Ae(["y","yy","yyy","yyyy"],Be),Ae(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Be]=n._locale.eraYearOrdinalParse(e,i):t[Be]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),
|
1206
1197
|
// ALIASES
|
1207
|
-
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
1208
|
-
// PRIORITY
|
1209
|
-
se("weekYear",1),se("isoWeekYear",1),
|
1210
1198
|
// PARSING
|
1211
|
-
|
1212
|
-
// ALIASES
|
1213
|
-
ne("quarter","Q"),
|
1214
|
-
// PRIORITY
|
1215
|
-
se("quarter",7),
|
1199
|
+
Le("G",_e),Le("g",_e),Le("GG",de,le),Le("gg",de,le),Le("GGGG",ge,ue),Le("gggg",ge,ue),Le("GGGGG",be,he),Le("ggggg",be,he),$e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ie(e)})),$e(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),
|
1216
1200
|
// PARSING
|
1217
|
-
|
1218
|
-
// ALIASES
|
1219
|
-
ne("date","D"),
|
1220
|
-
// PRIORITY
|
1221
|
-
se("date",9),
|
1201
|
+
Le("Q",ae),Ae("Q",(function(e,t){t[Ne]=3*(Ie(e)-1)})),R("D",["DD",2],"Do","date"),
|
1222
1202
|
// PARSING
|
1223
|
-
|
1203
|
+
Le("D",de,Te),Le("DD",de,le),Le("Do",(function(e,t){
|
1224
1204
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
1225
|
-
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),
|
1205
|
+
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ae(["D","DD"],Re),Ae("Do",(function(e,t){t[Re]=Ie(e.match(de)[0])}));
|
1226
1206
|
// MOMENTS
|
1227
|
-
var eo=
|
1207
|
+
var eo=Ke("Date",!0);
|
1228
1208
|
// FORMATTING
|
1229
1209
|
// HELPERS
|
1230
1210
|
// MOMENTS
|
1231
1211
|
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")}
|
1232
1212
|
// FORMATTING
|
1233
1213
|
R("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
1234
|
-
// ALIASES
|
1235
|
-
ne("dayOfYear","DDD"),
|
1236
|
-
// PRIORITY
|
1237
|
-
se("dayOfYear",4),
|
1238
1214
|
// PARSING
|
1239
|
-
|
1240
|
-
// ALIASES
|
1241
|
-
ne("minute","m"),
|
1242
|
-
// PRIORITY
|
1243
|
-
se("minute",14),
|
1215
|
+
Le("DDD",me),Le("DDDD",ce),Ae(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ie(e)})),R("m",["mm",2],0,"minute"),
|
1244
1216
|
// PARSING
|
1245
|
-
|
1217
|
+
Le("m",de,xe),Le("mm",de,le),Ae(["m","mm"],Ue);
|
1246
1218
|
// MOMENTS
|
1247
|
-
var no=
|
1219
|
+
var no=Ke("Minutes",!1);
|
1248
1220
|
// FORMATTING
|
1249
1221
|
R("s",["ss",2],0,"second"),
|
1250
|
-
// ALIASES
|
1251
|
-
ne("second","s"),
|
1252
|
-
// PRIORITY
|
1253
|
-
se("second",15),
|
1254
1222
|
// PARSING
|
1255
|
-
|
1223
|
+
Le("s",de,xe),Le("ss",de,le),Ae(["s","ss"],Ge);
|
1256
1224
|
// MOMENTS
|
1257
|
-
var ro,io,oo=
|
1225
|
+
var ro,io,oo=Ke("Seconds",!1);
|
1258
1226
|
// FORMATTING
|
1259
1227
|
for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
|
1260
|
-
// ALIASES
|
1261
|
-
ne("millisecond","ms"),
|
1262
|
-
// PRIORITY
|
1263
|
-
se("millisecond",16),
|
1264
1228
|
// PARSING
|
1265
|
-
|
1229
|
+
Le("S",me,ae),Le("SS",me,le),Le("SSS",me,ce),ro="SSSS";ro.length<=9;ro+="S")Le(ro,ve);function so(e,t){t[je]=Ie(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ae(ro,so);
|
1266
1230
|
// MOMENTS
|
1267
|
-
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=
|
1231
|
+
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=Ke("Milliseconds",!1),
|
1268
1232
|
// FORMATTING
|
1269
|
-
R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var co=k.prototype;function uo(e){return
|
1233
|
+
R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var co=k.prototype;function uo(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}co.add=$r,co.calendar=Gr,co.clone=jr,co.diff=Kr,co.endOf=bi,co.format=ni,co.from=ri,co.fromNow=ii,co.to=oi,co.toNow=si,co.get=et,co.invalidAt=Li,co.isAfter=Vr,co.isBefore=Wr,co.isBetween=zr,co.isSame=Zr,co.isSameOrAfter=Xr,co.isSameOrBefore=qr,co.isValid=Ti,co.lang=li,co.locale=ai,co.localeData=ci,co.max=Jn,co.min=Kn,co.parsingFlags=xi,co.set=tt,co.startOf=yi,co.subtract=Hr,co.toArray=ki,co.toObject=Ei,co.toDate=wi,co.toISOString=ei,co.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Si,co.toString=Qr,co.unix=_i,co.valueOf=vi,co.creationData=Mi,co.eraName=Ii,co.eraNarrow=Pi,co.eraAbbr=Ai,co.eraYear=$i,co.year=Xe,co.isLeapYear=qe,co.weekYear=Vi,co.isoWeekYear=Wi,co.quarter=co.quarters=Qi,co.month=pt,co.daysInMonth=mt,co.week=co.weeks=Dt,co.isoWeek=co.isoWeeks=Ot,co.weeksInYear=Xi,co.weeksInWeekYear=qi,co.isoWeeksInYear=zi,co.isoWeeksInISOWeekYear=Zi,co.date=eo,co.day=co.days=Vt,co.weekday=Wt,co.isoWeekday=zt,co.dayOfYear=to,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=io,co.utcOffset=gr,co.utc=br,co.local=vr,co.parseZone=_r,co.hasAlignedHourOffset=wr,co.isDST=kr,co.isLocal=Sr,co.isUtcOffset=Tr,co.isUtc=xr,co.isUTC=xr,co.zoneAbbr=ao,co.zoneName=lo,co.dates=T("dates accessor is deprecated. Use date instead.",eo),co.months=T("months accessor is deprecated. Use month instead",pt),co.years=T("years accessor is deprecated. Use year instead",Xe),co.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),co.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Er);var po=I.prototype;function mo(e,t,n,r){var i=vn(),o=p().set(r,t);return i[n](o,e)}function go(e,t,n){if(u(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}
|
1270
1234
|
// ()
|
1271
1235
|
// (5)
|
1272
1236
|
// (fmt, 5)
|
@@ -1275,34 +1239,32 @@ R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var co=k.prototype;function uo(e){r
|
|
1275
1239
|
// (true, 5)
|
1276
1240
|
// (true, fmt, 5)
|
1277
1241
|
// (true, fmt)
|
1278
|
-
function yo(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=vn(),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 bo(e,t){return go(e,t,"months")}function vo(e,t){return go(e,t,"monthsShort")}function _o(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=A,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=
|
1242
|
+
function yo(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=vn(),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 bo(e,t){return go(e,t,"months")}function vo(e,t){return go(e,t,"monthsShort")}function _o(e,t,n){return yo(e,t,n,"weekdays")}function wo(e,t,n){return yo(e,t,n,"weekdaysShort")}function ko(e,t,n){return yo(e,t,n,"weekdaysMin")}po.calendar=A,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=O,po.eras=Di,po.erasParse=Oi,po.erasConvertYear=Fi,po.erasAbbrRegex=Ci,po.erasNameRegex=Hi,po.erasNarrowRegex=Bi,po.months=ct,po.monthsShort=ut,po.monthsParse=dt,po.monthsRegex=yt,po.monthsShortRegex=gt,po.week=Tt,po.firstDayOfYear=Mt,po.firstDayOfWeek=Lt,po.weekdays=Rt,po.weekdaysMin=Ut,po.weekdaysShort=Yt,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,gn("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===Ie(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
1279
1243
|
// Side effect imports
|
1280
|
-
r.lang=T("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",vn);var Eo=Math.abs;function So(){var e=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),e.milliseconds=Eo(e.milliseconds),e.seconds=Eo(e.seconds),e.minutes=Eo(e.minutes),e.hours=Eo(e.hours),e.months=Eo(e.months),e.years=Eo(e.years),this}function To(e,t,n,r){var i=
|
1244
|
+
r.lang=T("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",vn);var Eo=Math.abs;function So(){var e=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),e.milliseconds=Eo(e.milliseconds),e.seconds=Eo(e.seconds),e.minutes=Eo(e.minutes),e.hours=Eo(e.hours),e.months=Eo(e.months),e.years=Eo(e.years),this}function To(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
1281
1245
|
// supports only 2.0-style add(1, 's') or add(duration)
|
1282
1246
|
function xo(e,t){return To(this,e,t,1)}
|
1283
1247
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
1284
|
-
function Lo(e,t){return To(this,e,t,-1)}function
|
1248
|
+
function Lo(e,t){return To(this,e,t,-1)}function Mo(e){return e<0?Math.floor(e):Math.ceil(e)}function Do(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;
|
1285
1249
|
// if we have a mix of positive and negative values, bubble down first
|
1286
1250
|
// check: https://github.com/moment/moment/issues/2166
|
1287
|
-
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*
|
1251
|
+
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Mo(Fo(a)+s),s=0,a=0),
|
1288
1252
|
// The following code bubbles up values, see the tests for
|
1289
1253
|
// examples of what that means.
|
1290
|
-
l.milliseconds=o%1e3,e=
|
1254
|
+
l.milliseconds=o%1e3,e=Fe(o/1e3),l.seconds=e%60,t=Fe(e/60),l.minutes=t%60,n=Fe(t/60),l.hours=n%24,s+=Fe(n/24),a+=
|
1291
1255
|
// convert days to months
|
1292
|
-
i=
|
1256
|
+
i=Fe(Oo(s)),s-=Mo(Fo(i)),
|
1293
1257
|
// 12 months -> 1 year
|
1294
|
-
r=
|
1258
|
+
r=Fe(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function Oo(e){
|
1295
1259
|
// 400 years have 146097 days (taking into account leap year rules)
|
1296
1260
|
// 400 years have 12 months === 4800
|
1297
1261
|
return 4800*e/146097}function Fo(e){
|
1298
1262
|
// the reverse of daysToMonths
|
1299
|
-
return 146097*e/4800}function Io(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=
|
1263
|
+
return 146097*e/4800}function Io(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
1300
1264
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
1301
1265
|
t=this._days+Math.round(Fo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
|
1302
1266
|
// Math.floor prevents floating point math errors here
|
1303
|
-
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
1304
|
-
// TODO: Use this.as('ms')?
|
1305
|
-
function Po(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var $o=Ao("ms"),Ho=Ao("s"),Co=Ao("m"),Bo=Ao("h"),No=Ao("d"),Ro=Ao("w"),Yo=Ao("M"),Uo=Ao("Q"),Go=Ao("y");function jo(){return Mr(this)}function Vo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Wo("milliseconds"),Zo=Wo("seconds"),Xo=Wo("minutes"),Ko=Wo("hours"),qo=Wo("days"),Jo=Wo("months"),Qo=Wo("years");function es(){return ce(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
1267
|
+
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Po(e){return function(){return this.as(e)}}var Ao=Po("ms"),$o=Po("s"),Ho=Po("m"),Co=Po("h"),Bo=Po("d"),No=Po("w"),Ro=Po("M"),Yo=Po("Q"),Uo=Po("y"),Go=Ao;function jo(){return Dr(this)}function Vo(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Wo("milliseconds"),Zo=Wo("seconds"),Xo=Wo("minutes"),qo=Wo("hours"),Ko=Wo("days"),Jo=Wo("months"),Qo=Wo("years");function es(){return Fe(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
1306
1268
|
s:45,// seconds to minute
|
1307
1269
|
m:45,// minutes to hour
|
1308
1270
|
h:22,// hours to day
|
@@ -1310,7 +1272,7 @@ d:26,// days to month/week
|
|
1310
1272
|
w:null,// weeks to month
|
1311
1273
|
M:11};
|
1312
1274
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
1313
|
-
function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=
|
1275
|
+
function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=Dr(e).abs(),o=ts(i.as("s")),s=ts(i.as("m")),a=ts(i.as("h")),l=ts(i.as("d")),c=ts(i.as("M")),u=ts(i.as("w")),h=ts(i.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=r,rs.apply(null,d)}
|
1314
1276
|
// This function allows you to set the rounding function for relative time strings
|
1315
1277
|
function os(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}
|
1316
1278
|
// This function allows you to set a threshold for relative time strings
|
@@ -1324,17 +1286,17 @@ function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.
|
|
1324
1286
|
// and also not between days and months (28-31 days per month)
|
1325
1287
|
if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,l=ls(this._milliseconds)/1e3,c=ls(this._days),u=ls(this._months),h=this.asSeconds();return h?(
|
1326
1288
|
// 3600 seconds -> 60 minutes -> 1 hour
|
1327
|
-
e=
|
1289
|
+
e=Fe(l/60),t=Fe(e/60),l%=60,e%=60,
|
1328
1290
|
// 12 months -> 1 year
|
1329
|
-
n=
|
1291
|
+
n=Fe(u/12),u%=12,
|
1330
1292
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
1331
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=cs(this._months)!==cs(h)?"-":"",s=cs(this._days)!==cs(h)?"-":"",a=cs(this._milliseconds)!==cs(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?s+c+"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=So,hs.add=xo,hs.subtract=Lo,hs.as=Io,hs.asMilliseconds
|
1293
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=cs(this._months)!==cs(h)?"-":"",s=cs(this._days)!==cs(h)?"-":"",a=cs(this._milliseconds)!==cs(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?s+c+"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=So,hs.add=xo,hs.subtract=Lo,hs.as=Io,hs.asMilliseconds=Ao,hs.asSeconds=$o,hs.asMinutes=Ho,hs.asHours=Co,hs.asDays=Bo,hs.asWeeks=No,hs.asMonths=Ro,hs.asQuarters=Yo,hs.asYears=Uo,hs.valueOf=Go,hs._bubble=Do,hs.clone=jo,hs.get=Vo,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=us,hs.toString=us,hs.toJSON=us,hs.locale=ai,hs.localeData=ci,hs.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),hs.lang=li,
|
1332
1294
|
// FORMATTING
|
1333
1295
|
R("X",0,0,"unix"),R("x",0,0,"valueOf"),
|
1334
1296
|
// PARSING
|
1335
|
-
|
1297
|
+
Le("x",_e),Le("X",Ee),Ae("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ae("x",(function(e,t,n){n._d=new Date(Ie(e))})),
|
1336
1298
|
//! moment.js
|
1337
|
-
r.version="2.
|
1299
|
+
r.version="2.30.1",i(qn),r.fn=co,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=uo,r.months=bo,r.isDate=h,r.locale=gn,r.invalid=b,r.duration=Dr,r.isMoment=E,r.weekdays=_o,r.parseZone=ho,r.localeData=vn,r.isDuration=lr,r.monthsShort=vo,r.weekdaysMin=ko,r.defineLocale=yn,r.updateLocale=bn,r.locales=_n,r.weekdaysShort=wo,r.normalizeUnits=ne,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Ur,r.prototype=co,
|
1338
1300
|
// currently HTML5 input type only supports 24-hour formats
|
1339
1301
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
1340
1302
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
@@ -1349,8 +1311,8 @@ MONTH:"YYYY-MM"},r}()}));function Ci(e,t){zn(e,t)}const Bi={en:{timeText:"Time",
|
|
1349
1311
|
// (298:2) {#if headScript}
|
1350
1312
|
function Gi(e){let t,n;return{c(){t=g("script"),a(t.src,n=/*licenseScriptSrc*/e[23])||k(t,"src",n)},m(e,n){f(e,t,n)},p(e,r){/*licenseScriptSrc*/8388608&r[0]&&!a(t.src,n=/*licenseScriptSrc*/e[23])&&k(t,"src",n)},d(e){e&&p(t)}}}
|
1351
1313
|
// (308:2) {:else}
|
1352
|
-
function ji(e){let t,n,r,i,o,s,a,l,c,u,h,m,y=/*helpLinksRepeater*/e[13]&&zi(e),b=/*gameVendorsRepeater*/e[8]&&
|
1353
|
-
/*div2_binding*/,e[56](t)},p(e,t){/*helpLinksRepeater*/e[13]?y?y.p(e,t):(y=zi(e),y.c(),y.m(n,null)):y&&(y.d(1),y=null),/*isLoggedIn, panicbuttonenabled*/33554440&t[0]&&r!==(r="FooterSide "+(/*isOnMobile*/e[33]&&/*isLoggedIn*/e[25]&&/*panicbuttonenabled*/"true"===e[3]?"FooterSideMobile":""))&&k(n,"class",r),/*gameVendorsRepeater*/e[8]?b?b.p(e,t):(b=
|
1314
|
+
function ji(e){let t,n,r,i,o,s,a,l,c,u,h,m,y=/*helpLinksRepeater*/e[13]&&zi(e),b=/*gameVendorsRepeater*/e[8]&&qi(e),_=/*paymentMethodsRepeater*/e[10]&&Ji(e),w=/*panicbuttonenabled*/"true"===e[3]&&/*isLoggedIn*/e[25]&&eo(e),E=/*licensesRepeater*/e[15]&&to(e),S=/*sponsorsRepeater*/e[12]&&io(e),T=/*socialLinksRepeater*/e[17]&&ao(e),x=/*languageselectorenabled*/"true"===e[2]&&/*languagePackLoaded*/e[31]&&/*selectedLanguage*/e[26]&&co(e),L=/*copyright*/e[18]&&fo(e);return{c(){t=g("div"),n=g("div"),y&&y.c(),i=v(),o=g("div"),b&&b.c(),s=v(),_&&_.c(),a=v(),w&&w.c(),l=v(),E&&E.c(),c=v(),S&&S.c(),u=v(),T&&T.c(),h=v(),x&&x.c(),m=v(),L&&L.c(),k(n,"class",r="FooterSide "+(/*isOnMobile*/e[33]&&/*isLoggedIn*/e[25]&&/*panicbuttonenabled*/"true"===e[3]?"FooterSideMobile":"")),k(o,"class","FooterGrid"),k(t,"class","Footer")},m(r,p){f(r,t,p),d(t,n),y&&y.m(n,null),d(t,i),d(t,o),b&&b.m(o,null),d(o,s),_&&_.m(o,null),d(o,a),w&&w.m(o,null),d(o,l),E&&E.m(o,null),d(o,c),S&&S.m(o,null),d(o,u),T&&T.m(o,null),d(o,h),x&&x.m(o,null),d(o,m),L&&L.m(o,null)
|
1315
|
+
/*div2_binding*/,e[56](t)},p(e,t){/*helpLinksRepeater*/e[13]?y?y.p(e,t):(y=zi(e),y.c(),y.m(n,null)):y&&(y.d(1),y=null),/*isLoggedIn, panicbuttonenabled*/33554440&t[0]&&r!==(r="FooterSide "+(/*isOnMobile*/e[33]&&/*isLoggedIn*/e[25]&&/*panicbuttonenabled*/"true"===e[3]?"FooterSideMobile":""))&&k(n,"class",r),/*gameVendorsRepeater*/e[8]?b?b.p(e,t):(b=qi(e),b.c(),b.m(o,s)):b&&(b.d(1),b=null),/*paymentMethodsRepeater*/e[10]?_?_.p(e,t):(_=Ji(e),_.c(),_.m(o,a)):_&&(_.d(1),_=null),/*panicbuttonenabled*/"true"===e[3]&&/*isLoggedIn*/e[25]?w?w.p(e,t):(w=eo(e),w.c(),w.m(o,l)):w&&(w.d(1),w=null),/*licensesRepeater*/e[15]?E?E.p(e,t):(E=to(e),E.c(),E.m(o,c)):E&&(E.d(1),E=null),/*sponsorsRepeater*/e[12]?S?S.p(e,t):(S=io(e),S.c(),S.m(o,u)):S&&(S.d(1),S=null),/*socialLinksRepeater*/e[17]?T?T.p(e,t):(T=ao(e),T.c(),T.m(o,h)):T&&(T.d(1),T=null),/*languageselectorenabled*/"true"===e[2]&&/*languagePackLoaded*/e[31]&&/*selectedLanguage*/e[26]?x?x.p(e,t):(x=co(e),x.c(),x.m(o,m)):x&&(x.d(1),x=null),/*copyright*/e[18]?L?L.p(e,t):(L=fo(e),L.c(),L.m(o,null)):L&&(L.d(1),L=null)},d(n){n&&p(t),y&&y.d(),b&&b.d(),_&&_.d(),w&&w.d(),E&&E.d(),S&&S.d(),T&&T.d(),x&&x.d(),L&&L.d()
|
1354
1316
|
/*div2_binding*/,e[56](null)}}}
|
1355
1317
|
// (306:2) {#if isLoading}
|
1356
1318
|
function Vi(t){let n;return{c(){n=g("p"),n.textContent="Loading ...",k(n,"class","SearchLoading")},m(e,t){f(e,n,t)},p:e,d(e){e&&p(n)}}}
|
@@ -1363,9 +1325,9 @@ function Zi(e){let t,n,r=/*category*/e[87].key+"";return{c(){t=g("p"),n=b(r),k(t
|
|
1363
1325
|
// (314:8) {#each helpLinksRepeater as category}
|
1364
1326
|
function Xi(e){let t,n,r,i=/*category*/e[87].key&&Zi(e);return{c(){i&&i.c(),t=v(),n=g("casino-footer-section"),E(n,"helperflag","1"),E(n,"clientstyling",/*clientstyling*/e[0]),E(n,"category",r=/*category*/e[87].key),E(n,"displaycolumn","true"),E(n,"baseurl",/*baseurl*/e[4]),E(n,"lang",/*lang*/e[1]),E(n,"footertype","footersecondary")},m(e,r){i&&i.m(e,r),f(e,t,r),f(e,n,r)},p(e,o){/*category*/e[87].key?i?i.p(e,o):(i=Zi(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),/*clientstyling*/1&o[0]&&E(n,"clientstyling",/*clientstyling*/e[0]),/*helpLinksRepeater*/8192&o[0]&&r!==(r=/*category*/e[87].key)&&E(n,"category",r),/*baseurl*/16&o[0]&&E(n,"baseurl",/*baseurl*/e[4]),/*lang*/2&o[0]&&E(n,"lang",/*lang*/e[1])},d(e){i&&i.d(e),e&&p(t),e&&p(n)}}}
|
1365
1327
|
// (333:8) {#if gameVendorsRepeater}
|
1366
|
-
function
|
1328
|
+
function qi(e){let t,n,r,i,o=/*gameVendorsLinksTitle*/e[7]&&Ki(e);return{c(){t=g("div"),n=g("div"),o&&o.c(),r=v(),i=g("casino-footer-section"),E(i,"vendorflag","1"),E(i,"clientstyling",/*clientstyling*/e[0]),E(i,"baseurl",/*baseurl*/e[4]),E(i,"lang",/*lang*/e[1]),E(i,"footertype","footersecondary"),k(t,"class","GridRow")},m(e,s){f(e,t,s),d(t,n),o&&o.m(n,null),d(n,r),d(n,i)},p(e,t){/*gameVendorsLinksTitle*/e[7]?o?o.p(e,t):(o=Ki(e),o.c(),o.m(n,r)):o&&(o.d(1),o=null),/*clientstyling*/1&t[0]&&E(i,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&t[0]&&E(i,"baseurl",/*baseurl*/e[4]),/*lang*/2&t[0]&&E(i,"lang",/*lang*/e[1])},d(e){e&&p(t),o&&o.d()}}}
|
1367
1329
|
// (336:14) {#if gameVendorsLinksTitle}
|
1368
|
-
function
|
1330
|
+
function Ki(e){let t,n;return{c(){t=g("p"),n=b(/*gameVendorsLinksTitle*/e[7]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*gameVendorsLinksTitle*/128&t[0]&&S(n,/*gameVendorsLinksTitle*/e[7])},d(e){e&&p(t)}}}
|
1369
1331
|
// (351:6) {#if paymentMethodsRepeater}
|
1370
1332
|
function Ji(e){let t,n,r,i,o=/*paymentLinksTitle*/e[9]&&Qi(e);return{c(){t=g("div"),n=g("div"),o&&o.c(),r=v(),i=g("casino-footer-section"),E(i,"paymentflag","1"),E(i,"clientstyling",/*clientstyling*/e[0]),E(i,"baseurl",/*baseurl*/e[4]),E(i,"lang",/*lang*/e[1]),E(i,"footertype","footersecondary"),k(t,"class","GridRow")},m(e,s){f(e,t,s),d(t,n),o&&o.m(n,null),d(n,r),d(n,i)},p(e,t){/*paymentLinksTitle*/e[9]?o?o.p(e,t):(o=Qi(e),o.c(),o.m(n,r)):o&&(o.d(1),o=null),/*clientstyling*/1&t[0]&&E(i,"clientstyling",/*clientstyling*/e[0]),/*baseurl*/16&t[0]&&E(i,"baseurl",/*baseurl*/e[4]),/*lang*/2&t[0]&&E(i,"lang",/*lang*/e[1])},d(e){e&&p(t),o&&o.d()}}}
|
1371
1333
|
// (354:12) {#if paymentLinksTitle}
|
@@ -1389,8 +1351,8 @@ function ao(e){let t,n,r,i=/*socialLinksTitle*/e[16]&&lo(e);return{c(){t=g("div"
|
|
1389
1351
|
// (430:12) {#if socialLinksTitle}
|
1390
1352
|
function lo(e){let t,n;return{c(){t=g("p"),n=b(/*socialLinksTitle*/e[16]),k(t,"class","FooterTitle")},m(e,r){f(e,t,r),d(t,n)},p(e,t){/*socialLinksTitle*/65536&t[0]&&S(n,/*socialLinksTitle*/e[16])},d(e){e&&p(t)}}}
|
1391
1353
|
// (445:6) {#if (languageselectorenabled==="true" && languagePackLoaded && selectedLanguage)}
|
1392
|
-
function co(e){let t,n,i,o,s,l,c,u,h,_,E,x,L,D,
|
1393
|
-
/*div0_binding*/e[55](l),d(s,u),d(s,h),d(h,_),d(h,x),d(h,L),d(h,
|
1354
|
+
function co(e){let t,n,i,o,s,l,c,u,h,_,E,x,L,M,D,O,F,I=/*languagesArray*/e[27],P=[];for(let t=0;t<I.length;t+=1)P[t]=uo(Yi(e,I,t));let A=/*languages*/e[5],$=[];for(let t=0;t<A.length;t+=1)$[t]=ho(Ri(e,A,t));return{c(){t=g("div"),n=g("div"),i=g("select");for(let e=0;e<P.length;e+=1)P[e].c();o=v(),s=g("div"),l=g("div"),c=g("ul");for(let e=0;e<$.length;e+=1)$[e].c();u=v(),h=g("button"),_=g("img"),x=b(/*languageDisplayName*/e[29]),L=v(),M=y("svg"),D=y("path"),k(i,"class","Item ItemLanguage"),/*selectedLanguage*/void 0===e[26]&&C((()=>/*select_change_handler*/e[53].call(i))),k(c,"id","LanguageList"),k(l,"class","LanguageDrawer hidden"),k(_,"class","LanguageFlag"),a(_.src,E=/*currentLanguageFlag*/e[30])||k(_,"src",E),k(D,"opacity","0.4"),k(D,"d","M0.94 0L4.00067 3.05467L7.06 0L8 0.940667L4.00067 4.94133L0 0.940667L0.94 0Z"),k(D,"fill","black"),k(M,"width","8"),k(M,"height","5"),k(M,"viewBox","0 0 8 5"),k(M,"fill","none"),k(M,"xmlns","http://www.w3.org/2000/svg"),k(h,"class","DrawerButton"),h.value=/*selectedLanguage*/e[26],k(s,"class","LanguageSelectorOverlay"),k(n,"class","LanguageSelectorContainer"),k(t,"class","GridRow")},m(r,a){f(r,t,a),d(t,n),d(n,i);for(let e=0;e<P.length;e+=1)P[e]&&P[e].m(i,null);T(i,/*selectedLanguage*/e[26],!0),d(n,o),d(n,s),d(s,l),d(l,c);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(c,null);
|
1355
|
+
/*div0_binding*/e[55](l),d(s,u),d(s,h),d(h,_),d(h,x),d(h,L),d(h,M),d(M,D),O||(F=[w(i,"change",/*select_change_handler*/e[53]),w(i,"change",/*change_handler*/e[54]),w(h,"click",/*toggleLanguageDrawer*/e[36])],O=!0)},p(e,t){if(/*languagesArray*/134217728&t[0]){let n;for(I=/*languagesArray*/e[27],n=0;n<I.length;n+=1){const r=Yi(e,I,n);P[n]?P[n].p(r,t):(P[n]=uo(r),P[n].c(),P[n].m(i,null))}for(;n<P.length;n+=1)P[n].d(1);P.length=I.length}if(/*selectedLanguage, languagesArray*/201326592&t[0]&&T(i,/*selectedLanguage*/e[26]),/*languages*/32&t[0]|/*overlayOptionTrigger*/64&t[1]){let n;for(A=/*languages*/e[5],n=0;n<A.length;n+=1){const r=Ri(e,A,n);$[n]?$[n].p(r,t):($[n]=ho(r),$[n].c(),$[n].m(c,null))}for(;n<$.length;n+=1)$[n].d(1);$.length=A.length}/*currentLanguageFlag*/1073741824&t[0]&&!a(_.src,E=/*currentLanguageFlag*/e[30])&&k(_,"src",E),/*languageDisplayName*/536870912&t[0]&&S(x,/*languageDisplayName*/e[29]),/*selectedLanguage, languagesArray*/201326592&t[0]&&(h.value=/*selectedLanguage*/e[26])},d(n){n&&p(t),m(P,n),m($,n),
|
1394
1356
|
/*div0_binding*/e[55](null),O=!1,r(F)}}}
|
1395
1357
|
// (450:14) {#each languagesArray as operatorLanguage}
|
1396
1358
|
function uo(e){let t,n,r,i=/*operatorLanguage*/e[84]+"";return{c(){t=g("option"),n=b(i),t.__value=r=/*operatorLanguage*/e[84],t.value=t.__value,t.selected=!0},m(e,r){f(e,t,r),d(t,n)},p(e,o){/*languagesArray*/134217728&o[0]&&i!==(i=/*operatorLanguage*/e[84]+"")&&S(n,i),/*languagesArray*/134217728&o[0]&&r!==(r=/*operatorLanguage*/e[84])&&(t.__value=r,t.value=t.__value)},d(e){e&&p(t)}}}
|
@@ -1398,15 +1360,15 @@ function uo(e){let t,n,r,i=/*operatorLanguage*/e[84]+"";return{c(){t=g("option")
|
|
1398
1360
|
function ho(e){let t,n,r,i,o,s,l,c,u,h=/*language*/e[81].name+"";return{c(){t=g("li"),n=g("img"),i=g("a"),o=g("span"),s=b(h),k(n,"class","LanguageFlag"),a(n.src,r=/*language*/e[81].flag_icon_editable)||k(n,"src",r),k(i,"href","javascript:void(0)"),k(t,"class","OverlayLanguageOption"),k(t,"data-lang",l=/*language*/e[81].code)},m(r,a){f(r,t,a),d(t,n),d(t,i),d(i,o),d(o,s),c||(u=w(t,"click",/*overlayOptionTrigger*/e[37]),c=!0)},p(e,i){/*languages*/32&i[0]&&!a(n.src,r=/*language*/e[81].flag_icon_editable)&&k(n,"src",r),/*languages*/32&i[0]&&h!==(h=/*language*/e[81].name+"")&&S(s,h),/*languages*/32&i[0]&&l!==(l=/*language*/e[81].code)&&k(t,"data-lang",l)},d(e){e&&p(t),c=!1,u()}}}
|
1399
1361
|
// (475:6) {#if copyright}
|
1400
1362
|
function fo(e){let t,n,r,o;return{c(){t=g("div"),k(t,"class","CopyrightAreaRights CopyrightArea")},m(i,s){f(i,t,s),r||(o=u(n=/*setContent*/e[34].call(null,t,/*copyright*/e[18])),r=!0)},p(e,t){n&&i(n.update)&&/*copyright*/262144&t[0]&&n.update.call(null,/*copyright*/e[18])},d(e){e&&p(t),r=!1,o()}}}function po(t){let n,r,i,o=/*headScript*/t[22]&&Gi(t);function s(e,t){/*hasErrors*/
|
1401
|
-
return e[20]?Wi:/*isLoading*/e[21]?Vi:ji}let a=s(t),l=a(t);return{c(){o&&o.c(),n=_(),r=v(),l.c(),i=_(),this.c=e},m(e,t){o&&o.m(Ni.head,null),d(Ni.head,n),f(e,r,t),l.m(e,t),f(e,i,t)},p(e,t){/*headScript*/e[22]?o?o.p(e,t):(o=Gi(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(i.parentNode,i)))},i:e,o:e,d(e){o&&o.d(e),p(n),e&&p(r),l.d(e),e&&p(i)}}}function mo(e,t,n){let r;c(e,$r,(e=>n(68,r=e)));let i,o,s,a,l,u,h,{endpoint:d=""}=t,{lang:f="en"}=t,{env:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,{clockenabled:b=""}=t,{clocksecondsenabled:v=""}=t,{clockcustomformat:_=""}=t,{clocktext:w="Time:"}=t,{languageselectorenabled:k="true"}=t,{languageslist:E="en, ro"}=t,{languagedisplaytype:S="name"}=t,{session:T=""}=t,{userid:x=""}=t,{userendpoint:L=""}=t,{panicbuttonenabled:
|
1363
|
+
return e[20]?Wi:/*isLoading*/e[21]?Vi:ji}let a=s(t),l=a(t);return{c(){o&&o.c(),n=_(),r=v(),l.c(),i=_(),this.c=e},m(e,t){o&&o.m(Ni.head,null),d(Ni.head,n),f(e,r,t),l.m(e,t),f(e,i,t)},p(e,t){/*headScript*/e[22]?o?o.p(e,t):(o=Gi(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),a===(a=s(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(i.parentNode,i)))},i:e,o:e,d(e){o&&o.d(e),p(n),e&&p(r),l.d(e),e&&p(i)}}}function mo(e,t,n){let r;c(e,$r,(e=>n(68,r=e)));let i,o,s,a,l,u,h,{endpoint:d=""}=t,{lang:f="en"}=t,{env:p=""}=t,{clientstyling:m=""}=t,{clientstylingurl:g=""}=t,{translationurl:y=""}=t,{clockenabled:b=""}=t,{clocksecondsenabled:v=""}=t,{clockcustomformat:_=""}=t,{clocktext:w="Time:"}=t,{languageselectorenabled:k="true"}=t,{languageslist:E="en, ro"}=t,{languagedisplaytype:S="name"}=t,{session:T=""}=t,{userid:x=""}=t,{userendpoint:L=""}=t,{panicbuttonenabled:M="true"}=t,{sessiontimerenabled:D="true"}=t,{grouplink:F="true"}=t,{baseurl:P=""}=t,A=window.navigator.userAgent,$=(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)))(A),H="",C=[],B="",N=[],R="",Y=[],U="",G=[],j="",V=[],W="",z=[],Z="",X="",q=!1,K=!1,J=!1,Q="",ee="",te=!1,ne="hr",re=[],ie=[],oe="",se="",ae=!1,le="",ce=document.createElement("p"),ue=document.createElement("p");!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
|
1402
1364
|
/*dictionary.set(translations);
|
1403
1365
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Bi).forEach((e=>{Ci(e,Bi[e])}));let he=r("panicButton");const de=()=>{(function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),be(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))})(L,T).then((e=>{e.Guid,e.UserID,n(25,te=!0),fe(e)}),(e=>{n(25,te=!1),console.error("Error while checking the session - ",e)}))},fe=e=>{
|
1404
1366
|
// using Date instead of moment because they recommend in their docs to stop using it for new projects
|
1405
|
-
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ce.innerHTML=` ${r("sessionTimer",{values:{timeString:le}})}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=_?_:`hh:mm${"true"===v?":ss":""} (UTC Z)`;o=Hi().format(e),ue.innerHTML=r("timeText").length>0?` ${r("timeText")} ${o}`:` ${w} ${o}`},me=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:ne},window.location.href)},ge=()=>{let e=!1;re.forEach(((t,r)=>{if(t.code==ne.toLowerCase()){let r="";switch(e=!0,n(30,se=t.flag_icon_editable),S){case"name":r=t.name;break;case"translatedName":r=t.translated_name;break;default:r=t.code}n(29,oe=r)}})),e||n(29,oe=ne)},ye=()=>{var e;e=f,mr.set(e),n(32,he=r("panicButton"))};O((()=>()=>{clearInterval(l),clearInterval(u)}));return e.$$set=e=>{"endpoint"in e&&n(38,d=e.endpoint),"lang"in e&&n(1,f=e.lang),"env"in e&&n(39,p=e.env),"clientstyling"in e&&n(0,m=e.clientstyling),"clientstylingurl"in e&&n(40,g=e.clientstylingurl),"translationurl"in e&&n(41,y=e.translationurl),"clockenabled"in e&&n(42,b=e.clockenabled),"clocksecondsenabled"in e&&n(43,v=e.clocksecondsenabled),"clockcustomformat"in e&&n(44,_=e.clockcustomformat),"clocktext"in e&&n(45,w=e.clocktext),"languageselectorenabled"in e&&n(2,k=e.languageselectorenabled),"languageslist"in e&&n(46,E=e.languageslist),"languagedisplaytype"in e&&n(47,S=e.languagedisplaytype),"session"in e&&n(48,T=e.session),"userid"in e&&n(49,x=e.userid),"userendpoint"in e&&n(50,L=e.userendpoint),"panicbuttonenabled"in e&&n(3,
|
1367
|
+
const t=new Date(e.Login),n=(new Date).getTimezoneOffset()/60;let i=(new Date).getTime()-t.getTime(),o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3);u=setInterval((()=>{o=Math.floor(i/36e5)+n,s=Math.floor(i%36e5/6e4),a=Math.floor(i%6e4/1e3),le=`${o>9?o:"0"+o}:${s>9?s:"0"+s}:${a>9?a:"0"+a}`,ce.innerHTML=` ${r("sessionTimer",{values:{timeString:le}})}`,i+=1e3}),1e3)},pe=()=>{const e="false"!=_?_:`hh:mm${"true"===v?":ss":""} (UTC Z)`;o=Hi().format(e),ue.innerHTML=r("timeText").length>0?` ${r("timeText")} ${o}`:` ${w} ${o}`},me=()=>{window.postMessage({type:"LanguageChanged",selectedLanguage:ne},window.location.href)},ge=()=>{let e=!1;re.forEach(((t,r)=>{if(t.code==ne.toLowerCase()){let r="";switch(e=!0,n(30,se=t.flag_icon_editable),S){case"name":r=t.name;break;case"translatedName":r=t.translated_name;break;default:r=t.code}n(29,oe=r)}})),e||n(29,oe=ne)},ye=()=>{var e;e=f,mr.set(e),n(32,he=r("panicButton"))};O((()=>()=>{clearInterval(l),clearInterval(u)}));return e.$$set=e=>{"endpoint"in e&&n(38,d=e.endpoint),"lang"in e&&n(1,f=e.lang),"env"in e&&n(39,p=e.env),"clientstyling"in e&&n(0,m=e.clientstyling),"clientstylingurl"in e&&n(40,g=e.clientstylingurl),"translationurl"in e&&n(41,y=e.translationurl),"clockenabled"in e&&n(42,b=e.clockenabled),"clocksecondsenabled"in e&&n(43,v=e.clocksecondsenabled),"clockcustomformat"in e&&n(44,_=e.clockcustomformat),"clocktext"in e&&n(45,w=e.clocktext),"languageselectorenabled"in e&&n(2,k=e.languageselectorenabled),"languageslist"in e&&n(46,E=e.languageslist),"languagedisplaytype"in e&&n(47,S=e.languagedisplaytype),"session"in e&&n(48,T=e.session),"userid"in e&&n(49,x=e.userid),"userendpoint"in e&&n(50,L=e.userendpoint),"panicbuttonenabled"in e&&n(3,M=e.panicbuttonenabled),"sessiontimerenabled"in e&&n(51,D=e.sessiontimerenabled),"grouplink"in e&&n(52,F=e.grouplink),"baseurl"in e&&n(4,P=e.baseurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&f&&ye(),/*languageslist*/32768&e.$$.dirty[1]&&E&&(n(27,ie=E.replace(/ /g,"").split(",")),n(27,ie=ie.map((e=>e.toUpperCase())))),/*session, userid, userendpoint*/917504&e.$$.dirty[1]&&T&&x&&L&&de(),/*lang*/2&e.$$.dirty[0]|/*endpoint, env*/384&e.$$.dirty[1]&&d&&f&&p&&(async()=>{let e=new URL(`${d}/${f}/footer-raw-data`),t=Hr(A);e.searchParams.append("env",p),t&&("PC"===t?e.searchParams.append("device","dk"):e.searchParams.append("device","mtWeb")),"true"==F&&e.searchParams.append("helpLinks_groupby","helpLinkCategory"),n(20,q=!1),n(21,K=!0);try{let t=await fetch(e.href);if(t.ok){let e=await t.json();n(21,K=!1),i=e,n(13,G=i.helpLinksRepeater),n(7,H=i.gameVendorsLinksTitle),n(8,C=i.gameVendorsRepeater),n(9,B=i.paymentLinksTitle),n(10,N=i.paymentMethodsRepeater),n(11,R=i.sponsorsLinksTitle),n(12,Y=i.sponsorsRepeater),U=i.helpLinksTitle,n(13,G=i.helpLinksRepeater),n(14,j=i.licensesLinksTitle),n(15,V=i.licensesRepeater),n(16,W=i.socialLinksTitle),n(17,z=i.socialLinksRepeater),n(18,Z=i.copyright),n(19,X=i.licenseDesc),n(5,re=i.language);let{licenseHeadScriptSrc:r,licenseScriptBody:o,licenseEvent:s}=i;re&&(n(31,ae=!0),ge()),(null==r?void 0:r.length)>0&&(n(22,J=!0),n(23,Q=r)),(null==o?void 0:o.length)>0&&n(24,ee=o),window.postMessage({type:s},window.location.href),window.postMessage({type:"FooterData",gameVendorsRepeater:C,paymentMethodsRepeater:N,sponsorsRepeater:Y,helpLinksRepeater:G,licensesRepeater:V,socialLinksRepeater:z},window.location.href)}else n(20,q=!0),n(21,K=!1),console.error("Error fetching data. Status:",t.status)}catch(e){n(20,q=!0),n(21,K=!1),console.error("Error fetching data:",e)}})(),/*translationurl*/1024&e.$$.dirty[1]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ci(t,e[t])}))})).catch((e=>{console.log(e)})),/*clockenabled, clocksecondsenabled, clockcustomformat*/14336&e.$$.dirty[1]&&"false"!==b&&v&&_&&pe(),/*clockenabled, clocksecondsenabled*/6144&e.$$.dirty[1]&&"false"!==b&&v&&(s="true"==v?1e3:6e4)&&(l=setInterval((()=>{pe()}),s)),/*lang, languages*/34&e.$$.dirty[0]&&f&&n(26,ne=f)&&re&&re.length>0&&ge(),/*clientstyling, customStylingContainer*/65&e.$$.dirty[0]&&m&&h&&(()=>{let e=document.createElement("style");e.innerHTML=m,h.appendChild(e)})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstylingurl*/512&e.$$.dirty[1]&&g&&h&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,
|
1406
1368
|
// after the first call is made for the custom styling file, save the css inside clientstyling in order to avoid multiple fetches inside subwidgets
|
1407
|
-
n(0,m=m?m+e:e),setTimeout((()=>{h.appendChild(t)}),1)}))})()},[m,f,k,
|
1369
|
+
n(0,m=m?m+e:e),setTimeout((()=>{h.appendChild(t)}),1)}))})()},[m,f,k,M,P,re,h,H,C,B,N,R,Y,G,j,V,W,z,Z,X,q,K,J,Q,ee,te,ne,ie,a,oe,se,ae,he,$,(e,t)=>{let n=document.createElement("div");n.innerHTML=t,e.append(n),
|
1408
1370
|
//Add clock
|
1409
1371
|
"true"===b&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ue),
|
1410
1372
|
//Add session timer
|
1411
|
-
"true"==
|
1373
|
+
"true"==D&&e.classList.contains("DetailedLicenses")&&e.children[0].children[0].append(ce)},me,()=>{a.classList.toggle("hidden")},e=>{let t=e.target.closest(".OverlayLanguageOption");n(26,ne=t.getAttribute("data-lang")),me(),ge(),a.classList.toggle("hidden")},d,p,g,y,b,v,_,w,E,S,T,x,L,D,F,function(){ne=function(e){const t=e.querySelector(":checked");return t&&t.__value}(this),n(26,ne),n(1,f),n(5,re),n(27,ie)},()=>me(),function(e){I[e?"unshift":"push"]((()=>{a=e,n(28,a)}))},function(e){I[e?"unshift":"push"]((()=>{h=e,n(6,h)}))}]}class go extends W{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);text-align:center}.Footer{position:relative;background-color:var(--emfe-w-color-footer-bg, var(--emfe-w-color-background-secondary, #E8E9EB));display:flex;padding:21px 12px;flex-direction:row}.FooterSideMobile{margin-top:44px}.FooterSide{justify-content:center;height:100%;display:flex;flex-direction:column;background-color:var(--emfe-w-color-footer-bg, var(--emfe-w-color-background-secondary, #E8E9EB))}.FooterSide .FooterTitle{font-weight:500;font-size:12px;color:var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111));text-transform:uppercase;margin:21px 12px}.FooterGrid{font-weight:400;height:100%;display:flex;max-width:1200px;margin:auto;background-color:var(--emfe-w-color-footer-bg, var(--emfe-w-color-background-secondary, #E8E9EB));flex-direction:column;align-items:center;justify-content:center}.FooterGrid .GridRow{display:flex;flex-flow:row wrap;width:100%;align-items:flex-start;justify-content:center;align-items:center;padding:20px 0;text-align:left;max-width:1100px}.FooterGrid .GridRow p{display:inline;font-family:"Roboto";font-style:normal;font-weight:300;font-size:12px;color:var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111))}.FooterGrid .GridRow .LicenseDesc{flex:1;max-width:575px;line-height:1.3;display:flex;flex-direction:column;align-items:flex-start}.FooterGrid .GridRow .LicenseDesc .DetailedLicenses{font-size:10px;color:var(--emfe-w-color-gray-150, #828282)}.FooterGrid .CopyrightAreaRights{margin-top:10px}.FooterGrid .CopyrightTextArea p,.FooterGrid .CopyrightArea p{margin:0;color:var(--emfe-w-color-gray-150, #828282);font-size:9px}@media only screen and (max-width: 768px){.Footer{display:flex;flex-direction:column}.FooterSide{position:relative;margin-left:14px;margin-top:66px}.FooterGrid{padding:0}.FooterGrid:last-child{padding-bottom:50px}.GridRow{border-bottom:1px solid rgba(0, 0, 0, 0.05);gap:15px}.GridRow:last-child{border:none}}.ItemLanguage{display:none}#LanguageList{padding:0;margin:0}.LanguageSelectorContainer{position:relative}.LanguageSelectorOverlay{position:relative;font-size:12px}.DrawerButton{height:30px;width:150px;background:inherit;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-evenly;align-items:center;border-radius:0px;border:0;position:relative}.LanguageDrawer{position:absolute;background-color:var(--emfe-w-color-footer-bg, var(--emfe-w-color-background-secondary, #E8E9EB));width:150px;bottom:30px;padding:6px 0;left:7px}.LanguageDrawer.hidden{display:none}.LanguageFlag{margin-right:8px;background:black;border-radius:50%;width:16px;height:16px}.OverlayLanguageOption{justify-content:center;list-style:none;position:relative;height:35px;padding:0;justify-content:space-between;display:flex;flex-direction:row}.OverlayLanguageOption img{position:absolute;z-index:0;cursor:pointer;top:6px;left:12px}.OverlayLanguageOption a{text-decoration:none;color:var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111));display:inline-block;width:150px}.OverlayLanguageOption a span{width:100%;display:flex;justify-content:center;margin:4px 0}',this.shadowRoot.appendChild(t),V(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},mo,po,o,{endpoint:38,lang:1,env:39,clientstyling:0,clientstylingurl:40,translationurl:41,clockenabled:42,clocksecondsenabled:43,clockcustomformat:44,clocktext:45,languageselectorenabled:2,languageslist:46,languagedisplaytype:47,session:48,userid:49,userendpoint:50,panicbuttonenabled:3,sessiontimerenabled:51,grouplink:52,baseurl:4},null,[-1,-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","lang","env","clientstyling","clientstylingurl","translationurl","clockenabled","clocksecondsenabled","clockcustomformat","clocktext","languageselectorenabled","languageslist","languagedisplaytype","session","userid","userendpoint","panicbuttonenabled","sessiontimerenabled","grouplink","baseurl"]}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),R()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),R()}get env(){return this.$$.ctx[39]}set env(e){this.$$set({env:e}),R()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[40]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[41]}set translationurl(e){this.$$set({translationurl:e}),R()}get clockenabled(){return this.$$.ctx[42]}set clockenabled(e){this.$$set({clockenabled:e}),R()}get clocksecondsenabled(){return this.$$.ctx[43]}set clocksecondsenabled(e){this.$$set({clocksecondsenabled:e}),R()}get clockcustomformat(){return this.$$.ctx[44]}set clockcustomformat(e){this.$$set({clockcustomformat:e}),R()}get clocktext(){return this.$$.ctx[45]}set clocktext(e){this.$$set({clocktext:e}),R()}get languageselectorenabled(){return this.$$.ctx[2]}set languageselectorenabled(e){this.$$set({languageselectorenabled:e}),R()}get languageslist(){return this.$$.ctx[46]}set languageslist(e){this.$$set({languageslist:e}),R()}get languagedisplaytype(){return this.$$.ctx[47]}set languagedisplaytype(e){this.$$set({languagedisplaytype:e}),R()}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),R()}get userendpoint(){return this.$$.ctx[50]}set userendpoint(e){this.$$set({userendpoint:e}),R()}get panicbuttonenabled(){return this.$$.ctx[3]}set panicbuttonenabled(e){this.$$set({panicbuttonenabled:e}),R()}get sessiontimerenabled(){return this.$$.ctx[51]}set sessiontimerenabled(e){this.$$set({sessiontimerenabled:e}),R()}get grouplink(){return this.$$.ctx[52]}set grouplink(e){this.$$set({grouplink:e}),R()}get baseurl(){return this.$$.ctx[4]}set baseurl(e){this.$$set({baseurl:e}),R()}}return!customElements.get("casino-footer-v2")&&customElements.define("casino-footer-v2",go),go}));
|
1412
1374
|
//# sourceMappingURL=casino-footer-v2.js.map
|