@everymatrix/casino-integrated-game-page 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"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 u(e,t,n){e.$$.on_destroy.push(l(t,n))}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function h(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function g(){return y(" ")}function b(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function v(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:v(e,t,n)}function _(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function S(e,t,n){e.classList[n?"add":"remove"](t)}function T(e){const t={};for(const n of e)t[n.name]=n.value;return t}let M;function
|
|
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 u(e,t,n){e.$$.on_destroy.push(l(t,n))}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function h(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function g(){return y(" ")}function b(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function v(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:v(e,t,n)}function _(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function S(e,t,n){e.classList[n?"add":"remove"](t)}function T(e){const t={};for(const n of e)t[n.name]=n.value;return t}let M;function k(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
|
|
11
|
+
function x(e){(function(){if(!M)throw new Error("Function called outside component initialization");return M})().$$.on_mount.push(e)}const D=[],O=[];let P=[];const F=[],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.
|
|
@@ -35,21 +35,21 @@ function L(){
|
|
|
35
35
|
if(0!==N)return;const e=M;do{
|
|
36
36
|
// first, call beforeUpdate functions
|
|
37
37
|
// and update components
|
|
38
|
-
try{for(;N<D.length;){const e=D[N];N++,
|
|
38
|
+
try{for(;N<D.length;){const e=D[N];N++,k(e),R(e.$$)}}catch(e){
|
|
39
39
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
40
|
-
throw D.length=0,N=0,e}for(
|
|
40
|
+
throw D.length=0,N=0,e}for(k(null),D.length=0,N=0;O.length;)O.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(D.length);for(;F.length;)F.pop()();
|
|
46
|
+
B.add(t),t())}P.length=0}while(D.length);for(;F.length;)F.pop()();H=!1,B.clear(),k(e)}function R(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 I=new Set;function $(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 Y(e,t){-1===e.$$.dirty[0]&&(D.push(e),
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){-1===e.$$.dirty[0]&&(D.push(e),H||(H=!0,A.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,a,l,u,c,h,d=[-1]){const p=M;k(o);const m=o.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
54
|
props:c,update:e,not_equal:u,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),L()}var g,b;
|
|
73
|
+
r(n),e.$$.on_mount=[]})),l.forEach(C)}(o,s.target,s.anchor,s.customElement),L()}var g,b;k(p)}let G;"function"==typeof HTMLElement&&(G=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
|
|
@@ -130,7 +130,7 @@ var me=self.fetch.bind(self),ye=function(e,t){return ye=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 ge(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}ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function be(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 ve(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 we(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 _e(e){return"function"==typeof e}function Ee(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 Se=Ee((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 Te(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}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=be(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(_e(l))try{l()}catch(e){i=e instanceof Se?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=be(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{De(d)}catch(e){i=null!=i?i:[],e instanceof Se?i=we(we([],ve(i)),ve(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Se(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)De(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)&&Te(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Te(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),xe=Me.EMPTY;function ke(e){return e instanceof Me||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function De(e){_e(e)?e():e.unsubscribe()}var Oe={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,we([e,t],ve(n))):setTimeout.apply(void 0,we([e,t],ve(n)))},clearTimeout:function(e){var t=Pe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var He=null;function Ae(e){if(Oe.useDeprecatedSynchronousErrorHandling){var t=!He;if(t&&(He={errorThrown:!1,error:null}),e(),t){var n=He,r=n.errorThrown,i=n.error;if(He=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,ke(t)&&t.add(n)):n.destination=$e,n}return ge(t,e),t.create=function(e,t,n){return new Re(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 Le=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){Ie(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ie(e)}else Ie(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ie(e)}},e}(),Re=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;_e(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Oe.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 Le(i),s}return ge(t,e),t}(Ce);function Ie(e){var t;t=e,Pe.setTimeout((function(){throw t}))}var $e={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},Ye="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ue(e){return e}var Ge=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&&_e(e.next)&&_e(e.error)&&_e(e.complete)}(r)&&ke(r)?e:new Re(e,t,n);return Ae((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=je(t))((function(t,r){var i=new Re({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[Ye]=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?Ue: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=je(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 je(e){var t;return null!==(t=null!=e?e:Oe.Promise)&&void 0!==t?t:Promise}var We=Ee((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=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 ge(t,e),t.prototype.lift=function(e){var t=new ze(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new We},t.prototype.next=function(e){var t=this;Ae((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=be(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;Ae((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;Ae((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?xe:(this.currentObservers=null,o.push(e),new Me((function(){t.currentObservers=null,Te(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 Ge;return e.source=this,e},t.create=function(e,t){return new ze(e,t)},t}(Ge),ze=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ge(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:xe},t}(Ve),Ze={now:function(){return(Ze.delegate||Date).now()},delegate:void 0},Xe=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Ze);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 ge(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}(Ve);let qe=[],Je={};
|
|
133
|
+
/* global Reflect, Promise, SuppressedError, Symbol */function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function be(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 ve(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 we(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 _e(e){return"function"==typeof e}function Ee(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 Se=Ee((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 Te(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}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=be(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(_e(l))try{l()}catch(e){i=e instanceof Se?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=be(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{De(d)}catch(e){i=null!=i?i:[],e instanceof Se?i=we(we([],ve(i)),ve(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Se(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)De(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)&&Te(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Te(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),ke=Me.EMPTY;function xe(e){return e instanceof Me||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function De(e){_e(e)?e():e.unsubscribe()}var Oe={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,we([e,t],ve(n))):setTimeout.apply(void 0,we([e,t],ve(n)))},clearTimeout:function(e){var t=Pe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var Ae=null;function He(e){if(Oe.useDeprecatedSynchronousErrorHandling){var t=!Ae;if(t&&(Ae={errorThrown:!1,error:null}),e(),t){var n=Ae,r=n.errorThrown,i=n.error;if(Ae=null,r)throw i}}else e()}var Ce=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,xe(t)&&t.add(n)):n.destination=$e,n}return ge(t,e),t.create=function(e,t,n){return new Re(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 Le=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){Ie(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ie(e)}else Ie(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ie(e)}},e}(),Re=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;_e(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Oe.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 Le(i),s}return ge(t,e),t}(Ce);function Ie(e){var t;t=e,Pe.setTimeout((function(){throw t}))}var $e={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},Ye="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ue(e){return e}var Ge=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&&_e(e.next)&&_e(e.error)&&_e(e.complete)}(r)&&xe(r)?e:new Re(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=je(t))((function(t,r){var i=new Re({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[Ye]=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?Ue: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=je(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 je(e){var t;return null!==(t=null!=e?e:Oe.Promise)&&void 0!==t?t:Promise}var We=Ee((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=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 ge(t,e),t.prototype.lift=function(e){var t=new ze(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new We},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=be(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?ke:(this.currentObservers=null,o.push(e),new Me((function(){t.currentObservers=null,Te(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 Ge;return e.source=this,e},t.create=function(e,t){return new ze(e,t)},t}(Ge),ze=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ge(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:ke},t}(Ve),Ze={now:function(){return(Ze.delegate||Date).now()},delegate:void 0},Xe=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Ze);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 ge(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}(Ve);let qe=[],Je={};
|
|
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=rt;var r=Array.isArray(t);return r===Array.isArr
|
|
|
167
167
|
/**
|
|
168
168
|
* Type Guards
|
|
169
169
|
*/
|
|
170
|
-
function gt(e){return e.type===ft.literal}function bt(e){return e.type===ft.argument}function vt(e){return e.type===ft.number}function wt(e){return e.type===ft.date}function _t(e){return e.type===ft.time}function Et(e){return e.type===ft.select}function St(e){return e.type===ft.plural}function Tt(e){return e.type===ft.pound}function Mt(e){return e.type===ft.tag}function
|
|
170
|
+
function gt(e){return e.type===ft.literal}function bt(e){return e.type===ft.argument}function vt(e){return e.type===ft.number}function wt(e){return e.type===ft.date}function _t(e){return e.type===ft.time}function Et(e){return e.type===ft.select}function St(e){return e.type===ft.plural}function Tt(e){return e.type===ft.pound}function Mt(e){return e.type===ft.tag}function kt(e){return!(!e||"object"!=typeof e||e.type!==pt.number)}function xt(e){return!(!e||"object"!=typeof e||e.type!==pt.dateTime)}
|
|
171
171
|
// @generated from regex-gen.ts
|
|
172
172
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
173
173
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -312,7 +312,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
312
312
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
313
313
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
314
314
|
// @generated from regex-gen.ts
|
|
315
|
-
var Ft=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var
|
|
315
|
+
var Ft=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var At=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ht=/^(@+)?(\+|#+)?[rs]?$/g,Ct=/(\*)(0+)|(#+)(0+)|(0+)/g,Bt=/^(0+)$/;function Nt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ht,(function(e,n,r){
|
|
316
316
|
// @@@ case
|
|
317
317
|
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Lt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Rt(e){
|
|
318
318
|
// Engineering
|
|
@@ -325,17 +325,17 @@ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";
|
|
|
325
325
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
326
326
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ct,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
327
327
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
328
|
-
if(Bt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(
|
|
328
|
+
if(Bt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(At.test(i.stem)){
|
|
329
329
|
// Precision
|
|
330
330
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
331
331
|
// precision-integer case
|
|
332
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
332
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(At,(function(e,n,r,i,o,s){
|
|
333
333
|
// .000* case (before ICU67 it was .000+)
|
|
334
334
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
|
335
335
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
336
336
|
"w"===o?t=mt(mt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=mt(mt({},t),Nt(o)))}
|
|
337
337
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
338
|
-
else if(
|
|
338
|
+
else if(Ht.test(i.stem))t=mt(mt({},t),Nt(i.stem));else{var s=Lt(i.stem);s&&(t=mt(mt({},t),s));var a=Rt(i.stem);a&&(t=mt(mt({},t),a))}}return t}
|
|
339
339
|
// @generated from time-data-gen.ts
|
|
340
340
|
// prettier-ignore
|
|
341
341
|
var Yt,Ut={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -576,7 +576,7 @@ function fn(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 pn(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 mn(e){e.forEach((function(e){if(delete e.location,Et(e)||St(e))for(var t in e.options)delete e.options[t].location,mn(e.options[t].value);else vt(e)&&
|
|
579
|
+
*/function pn(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 mn(e){e.forEach((function(e){if(delete e.location,Et(e)||St(e))for(var t in e.options)delete e.options[t].location,mn(e.options[t].value);else vt(e)&&kt(e.style)||(wt(e)||_t(e))&&xt(e.style)?delete e.style.location:Mt(e)&&mn(e.children)}))}function yn(e,t){void 0===t&&(t={}),t=mt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new hn(e,t).parse();if(n.err){var r=SyntaxError(dt[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
|
|
@@ -596,65 +596,65 @@ var En=function(){return JSON.stringify(arguments)};
|
|
|
596
596
|
|
|
597
597
|
function Sn(){this.cache=Object.create(null)}Sn.prototype.get=function(e){return this.cache[e]},Sn.prototype.set=function(e,t){this.cache[e]=t};var Tn,Mn={create:function(){
|
|
598
598
|
// @ts-ignore
|
|
599
|
-
return new Sn}},
|
|
599
|
+
return new Sn}},kn={variadic:function(e,t){return wn(e,this,vn,t.cache.create(),t.serializer)},monadic:function(e,t){return wn(e,this,bn,t.cache.create(),t.serializer)}};!function(e){
|
|
600
600
|
// When we have a placeholder but no value to format
|
|
601
601
|
e.MISSING_VALUE="MISSING_VALUE",
|
|
602
602
|
// When value supplied is invalid
|
|
603
603
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
604
604
|
// When we need specific Intl API but it's not available
|
|
605
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(Tn||(Tn={}));var
|
|
605
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(Tn||(Tn={}));var xn,Dn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ht(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),On=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Tn.INVALID_VALUE,i)||this}return ht(t,e),t}(Dn),Pn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Tn.INVALID_VALUE,r)||this}return ht(t,e),t}(Dn),Fn=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Tn.MISSING_VALUE,n)||this}return ht(t,e),t}(Dn);function An(e){return"function"==typeof e}
|
|
606
606
|
// TODO(skeleton): add skeleton support
|
|
607
|
-
function
|
|
607
|
+
function Hn(e,t,n,r,i,o,
|
|
608
608
|
// For debugging
|
|
609
609
|
s){
|
|
610
610
|
// Hot path for straight simple msg translations
|
|
611
|
-
if(1===e.length&>(e[0]))return[{type:
|
|
611
|
+
if(1===e.length&>(e[0]))return[{type:xn.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
612
612
|
// Exit early for string parts.
|
|
613
|
-
if(gt(c))a.push({type:
|
|
613
|
+
if(gt(c))a.push({type:xn.literal,value:c.value});else
|
|
614
614
|
// TODO: should this part be literal type?
|
|
615
615
|
// Replace `#` in plural rules with the actual numeric value.
|
|
616
|
-
if(Tt(c))"number"==typeof o&&a.push({type:
|
|
616
|
+
if(Tt(c))"number"==typeof o&&a.push({type:xn.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
|
|
617
617
|
// Enforce that all required values are provided by the caller.
|
|
618
|
-
if(!i||!(h in i))throw new Fn(h,s);var d=i[h];if(bt(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?
|
|
618
|
+
if(!i||!(h in i))throw new Fn(h,s);var d=i[h];if(bt(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?xn.literal:xn.object,value:d});else
|
|
619
619
|
// Recursively format plural and select parts' option — which can be a
|
|
620
620
|
// nested pattern structure. The choosing of the option to use is
|
|
621
621
|
// abstracted-by and delegated-to the part helper object.
|
|
622
|
-
if(wt(c)){var f="string"==typeof c.style?r.date[c.style]:
|
|
622
|
+
if(wt(c)){var f="string"==typeof c.style?r.date[c.style]:xt(c.style)?c.style.parsedOptions:void 0;a.push({type:xn.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(_t(c)){f="string"==typeof c.style?r.time[c.style]:xt(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:xn.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(vt(c)){(f="string"==typeof c.style?r.number[c.style]:kt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:xn.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(Mt(c)){var p=c.children,m=c.value,y=i[m];if(!An(y))throw new Pn(m,"function",s);var g=y(Hn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?xn.literal:xn.object,value:e}})))}if(Et(c)){if(!(b=c.options[d]||c.options.other))throw new On(c.value,d,Object.keys(c.options),s);a.push.apply(a,Hn(b.value,t,n,r,i))}else if(St(c)){var b;if(!(b=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Dn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Tn.MISSING_INTL_API,s);var v=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new On(c.value,d,Object.keys(c.options),s);a.push.apply(a,Hn(b.value,t,n,r,i,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===xn.literal&&t.type===xn.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
|
623
623
|
/*
|
|
624
624
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
625
625
|
Copyrights licensed under the New BSD License.
|
|
626
626
|
See the accompanying LICENSE file for terms.
|
|
627
627
|
*/
|
|
628
628
|
// -- MessageFormat --------------------------------------------------------
|
|
629
|
-
function Cn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?mt(mt(mt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=mt(mt({},i[t]),o[t]||{}),e}),{})):i),n}),mt({},e)):e}function Bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(
|
|
629
|
+
function Cn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?mt(mt(mt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=mt(mt({},i[t]),o[t]||{}),e}),{})):i),n}),mt({},e)):e}function Bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(xn||(xn={}));var Nn=/** @class */function(){function e(t,n,r,i){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
630
630
|
// Hot path for straight simple msg translations
|
|
631
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===
|
|
631
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===xn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Hn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
632
632
|
// Defined first because it's used to build the format pattern.
|
|
633
633
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
634
634
|
// Parse string messages into an AST.
|
|
635
635
|
this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
636
636
|
// Creates a new object with the specified `formats` merged with the default
|
|
637
637
|
// formats.
|
|
638
|
-
this.formats=Cn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yt([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:gn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yt([void 0],t,!1)))}),{cache:Bn(o.number),strategy:kn.variadic}),getDateTimeFormat:gn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yt([void 0],t,!1)))}),{cache:Bn(o.dateTime),strategy:kn.variadic}),getPluralRules:gn((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yt([void 0],t,!1)))}),{cache:Bn(o.pluralRules),strategy:kn.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=yn,
|
|
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 Ln={},Rn=(e,t,n)=>n?(t in Ln||(Ln[t]={}),e in Ln[t]||(Ln[t][e]=n),n):n,In=(e,t)=>{if(null==t)return;if(t in Ln&&e in Ln[t])return Ln[t][e];const n=cr(t);for(let r=0;r<n.length;r++){const i=Gn(n[r],e);if(i)return Rn(e,t,i)}};let $n;const Yn=Qe({});function Un(e){return e in $n}function Gn(e,t){if(!Un(e))return null;const n=function(e){return $n[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 jn(e,...t){delete Ln[e],Yn.update((n=>(n[e]=ut.all([n[e]||{},...t]),n)))}et([Yn],(([e])=>Object.keys(e))),Yn.subscribe((e=>$n=e));const Wn={};function Vn(e){return Wn[e]}function zn(e){return null!=e&&cr(e).some((e=>{var t;return null==(t=Vn(e))?void 0:t.size}))}function Zn(e,t){const n=Promise.all(t.map((t=>(function(e,t){Wn[e].delete(t),0===Wn[e].size&&delete Wn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>jn(e,...t)))}const Xn={};function qn(e){if(!zn(e))return e in Xn?Xn[e]:Promise.resolve();const t=function(e){return cr(e).map((e=>{const t=Vn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Xn[e]=Promise.all(t.map((([e,t])=>Zn(e,t)))).then((()=>{if(zn(e))return qn(e);delete Xn[e]})),Xn[e]}const Jn={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 Kn(){return Jn}const Qn=Qe(!1);var er=Object.defineProperty,tr=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,n)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ar;const lr=Qe(null);function ur(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function cr(e,t=Kn().fallbackLocale){const n=ur(e);return t?[...new Set([...n,...ur(t)])]:n}function hr(){return null!=ar?ar:void 0}lr.subscribe((e=>{ar=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const dr=(fr=((e,t)=>{for(var n in t||(t={}))ir.call(t,n)&&sr(e,n,t[n]);if(rr)for(var n of rr(t))or.call(t,n)&&sr(e,n,t[n]);return e})({},lr),tr(fr,nr({set:e=>{if(e&&function(e){if(null==e)return;const t=cr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Un(n))return n}}(e)&&zn(e)){const{loadingDelay:t}=Kn();let n;return"undefined"!=typeof window&&null!=hr()&&t?n=window.setTimeout((()=>Qn.set(!0)),t):Qn.set(!0),qn(e).then((()=>{lr.set(e)})).finally((()=>{clearTimeout(n),Qn.set(!1)}))}return lr.set(e)}})));var fr;const pr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var mr=Object.defineProperty,yr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,vr=(e,t,n)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))gr.call(t,n)&&vr(e,n,t[n]);if(yr)for(var n of yr(t))br.call(t,n)&&vr(e,n,t[n]);return e},_r=(e,t)=>{var n={};for(var r in e)gr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yr)for(var r of yr(e))t.indexOf(r)<0&&br.call(e,r)&&(n[r]=e[r]);return n};const Er=(e,t)=>{const{formats:n}=Kn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Sr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Er("number",r)),new Intl.NumberFormat(n,i)})),Tr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Er("date",r):0===Object.keys(i).length&&(i=Er("date","short")),new Intl.DateTimeFormat(n,i)})),Mr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Er("time",r):0===Object.keys(i).length&&(i=Er("time","short")),new Intl.DateTimeFormat(n,i)})),
|
|
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 Ln={},Rn=(e,t,n)=>n?(t in Ln||(Ln[t]={}),e in Ln[t]||(Ln[t][e]=n),n):n,In=(e,t)=>{if(null==t)return;if(t in Ln&&e in Ln[t])return Ln[t][e];const n=cr(t);for(let r=0;r<n.length;r++){const i=Gn(n[r],e);if(i)return Rn(e,t,i)}};let $n;const Yn=Qe({});function Un(e){return e in $n}function Gn(e,t){if(!Un(e))return null;const n=function(e){return $n[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 jn(e,...t){delete Ln[e],Yn.update((n=>(n[e]=ut.all([n[e]||{},...t]),n)))}et([Yn],(([e])=>Object.keys(e))),Yn.subscribe((e=>$n=e));const Wn={};function Vn(e){return Wn[e]}function zn(e){return null!=e&&cr(e).some((e=>{var t;return null==(t=Vn(e))?void 0:t.size}))}function Zn(e,t){const n=Promise.all(t.map((t=>(function(e,t){Wn[e].delete(t),0===Wn[e].size&&delete Wn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>jn(e,...t)))}const Xn={};function qn(e){if(!zn(e))return e in Xn?Xn[e]:Promise.resolve();const t=function(e){return cr(e).map((e=>{const t=Vn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Xn[e]=Promise.all(t.map((([e,t])=>Zn(e,t)))).then((()=>{if(zn(e))return qn(e);delete Xn[e]})),Xn[e]}const Jn={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 Kn(){return Jn}const Qn=Qe(!1);var er=Object.defineProperty,tr=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,n)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ar;const lr=Qe(null);function ur(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function cr(e,t=Kn().fallbackLocale){const n=ur(e);return t?[...new Set([...n,...ur(t)])]:n}function hr(){return null!=ar?ar:void 0}lr.subscribe((e=>{ar=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const dr=(fr=((e,t)=>{for(var n in t||(t={}))ir.call(t,n)&&sr(e,n,t[n]);if(rr)for(var n of rr(t))or.call(t,n)&&sr(e,n,t[n]);return e})({},lr),tr(fr,nr({set:e=>{if(e&&function(e){if(null==e)return;const t=cr(e);for(let e=0;e<t.length;e++){const n=t[e];if(Un(n))return n}}(e)&&zn(e)){const{loadingDelay:t}=Kn();let n;return"undefined"!=typeof window&&null!=hr()&&t?n=window.setTimeout((()=>Qn.set(!0)),t):Qn.set(!0),qn(e).then((()=>{lr.set(e)})).finally((()=>{clearTimeout(n),Qn.set(!1)}))}return lr.set(e)}})));var fr;const pr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var mr=Object.defineProperty,yr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,vr=(e,t,n)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))gr.call(t,n)&&vr(e,n,t[n]);if(yr)for(var n of yr(t))br.call(t,n)&&vr(e,n,t[n]);return e},_r=(e,t)=>{var n={};for(var r in e)gr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yr)for(var r of yr(e))t.indexOf(r)<0&&br.call(e,r)&&(n[r]=e[r]);return n};const Er=(e,t)=>{const{formats:n}=Kn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Sr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Er("number",r)),new Intl.NumberFormat(n,i)})),Tr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Er("date",r):0===Object.keys(i).length&&(i=Er("date","short")),new Intl.DateTimeFormat(n,i)})),Mr=pr((e=>{var t=e,{locale:n,format:r}=t,i=_r(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Er("time",r):0===Object.keys(i).length&&(i=Er("time","short")),new Intl.DateTimeFormat(n,i)})),kr=pr((
|
|
643
643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
644
|
-
(e,t=hr())=>new Nn(e,t,Kn().formats,{ignoreTag:Kn().ignoreTag}))),
|
|
644
|
+
(e,t=hr())=>new Nn(e,t,Kn().formats,{ignoreTag:Kn().ignoreTag}))),xr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=hr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=In(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=Kn()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=kr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Dr=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Mr(wr({locale:n},r))})(t).format(e),Or=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Tr(wr({locale:n},r))})(t).format(e),Pr=(e,t)=>((e={})=>{var t=e,{locale:n=hr()}=t,r=_r(t,["locale"]);return Sr(wr({locale:n},r))})(t).format(e),Fr=(e,t=hr())=>In(e,t),Ar=et([dr,Yn],(()=>xr));et([dr],(()=>Dr)),et([dr],(()=>Or)),et([dr],(()=>Pr)),et([dr,Yn],(()=>Fr)),window.emWidgets={topic:(e,t=0)=>{if(-1==qe.indexOf(e)){let n=new Xe(t);Je[e]=n,qe.push(e)}return Je[e]}};
|
|
645
645
|
/**
|
|
646
646
|
* @name isMobile
|
|
647
647
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
648
648
|
* @param {String} userAgent window.navigator.userAgent
|
|
649
649
|
* @returns {Boolean} true or false
|
|
650
650
|
*/
|
|
651
|
-
const
|
|
651
|
+
const Hr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";
|
|
652
652
|
/**
|
|
653
653
|
* @name getDevice
|
|
654
654
|
* @description A method that returns the type of the device
|
|
655
655
|
* @param {String} userAgent window.navigator.userAgent
|
|
656
656
|
* @returns {String} Android/iPhone/iPad/PC
|
|
657
|
-
*/function Cr(e,t){jn(e,t)}const Br={en:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"zh-hk":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"},it:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},fr:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"},tr:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ru:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},hr:{signIn:"Prijava",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započni sada!",breakButton:"Držite gumb 3 sekunde za trenutno zaključavanje na 24 sata"},hu:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pl:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pt:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sl:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sr:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"pt-br":{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Começa agora!",breakButton:"Pressione o botão por 3 segundos para um bloqueio instantâneo de 24 horas"},"es-mx":{signIn:"Ingresar",register:"REGISTRO",deposit:"Depósito",playForFun:"Juega por diversión",playNow:"Comienza ahora!",breakButton:"Presiona el botón por 3 segundos para un bloqueo instantáneo de 24 horas"}};function Nr(e,t){jn(e,t)}const Lr={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."},hr:{title:"Uplata",loading:"Učitavanje"},"pt-br":{title:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{title:"Depositar",Loading:"Cargando, por favor espere..."}};
|
|
657
|
+
*/function Cr(e,t){jn(e,t)}const Br={en:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"zh-hk":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"},it:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},fr:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"},tr:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ru:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},hr:{signIn:"Prijava",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započni sada!",breakButton:"Držite gumb 3 sekunde za trenutno zaključavanje na 24 sata"},hu:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pl:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pt:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sl:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sr:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"pt-br":{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Começa agora!",breakButton:"Pressione o botão por 3 segundos para um bloqueio instantâneo de 24 horas"},"es-mx":{signIn:"Ingresar",register:"REGISTRO",deposit:"Depósito",playForFun:"Juega por diversión",playNow:"Comienza ahora!",breakButton:"Presiona el botón por 3 segundos para un bloqueo instantáneo de 24 horas"}};function Nr(e,t){jn(e,t)}const Lr={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{title:"PARA YATIR",loading:"Yükleniyor ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."},hr:{title:"Uplata",loading:"Učitavanje"},"pt-br":{title:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{title:"Depositar",Loading:"Cargando, por favor espere..."}};
|
|
658
658
|
/* ../player-deposit/src/PlayerDeposit.svelte generated by Svelte v3.59.2 */
|
|
659
659
|
// (159:2) {:else}
|
|
660
660
|
function Rr(e){let t,n,r;return{c(){t=p("div"),n=p("iframe"),a(n.src,r=/*iframeUrl*/e[3])||v(n,"src",r),v(n,"title","Deposit Iframe"),v(t,"class","DepositIframeWrapper")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*iframeUrl*/8&t&&!a(n.src,r=/*iframeUrl*/e[3])&&v(n,"src",r)},d(e){e&&f(t)}}}
|
|
@@ -662,7 +662,7 @@ function Rr(e){let t,n,r;return{c(){t=p("div"),n=p("iframe"),a(n.src,r=/*iframeU
|
|
|
662
662
|
function Ir(e){let t,n,r=/*$_*/e[4]("loading")+"";return{c(){t=p("p"),n=y(r)},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/16&t&&r!==(r=/*$_*/e[4]("loading")+"")&&_(n,r)},d(e){e&&f(t)}}}function $r(t){let n,r,i,o,s,a=/*$_*/t[4]("title")+"",l=/*isMobile*/t[5]&&function(e){let t,n,r,i,o,s,a,l,u,c,w,E,S,T=/*$_*/e[4]("title")+"";return{c(){t=p("div"),n=m("svg"),r=m("defs"),i=m("style"),o=y(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=m("g"),a=m("g"),l=m("path"),u=g(),c=p("h2"),w=y(T),v(l,"class","aaa"),v(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),v(l,"transform","translate(15 15) rotate(180)"),v(a,"transform","translate(20 158)"),v(s,"transform","translate(-20 -158)"),v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"width","15"),v(n,"height","15"),v(n,"viewBox","0 0 15 15"),v(c,"class","DepositTitleMobile"),v(t,"class","MenuReturnButton")},m(f,p){d(f,t,p),h(t,n),h(n,r),h(r,i),h(i,o),h(n,s),h(s,a),h(a,l),h(t,u),h(t,c),h(c,w),E||(S=b(t,"click",/*click_handler*/e[17]),E=!0)},p(e,t){/*$_*/16&t&&T!==(T=/*$_*/e[4]("title")+"")&&_(w,T)},d(e){e&&f(t),E=!1,S()}}}(t);function u(e,t){/*isLoading*/
|
|
663
663
|
return e[1]?Ir:Rr}let c=u(t),w=c(t);return{c(){n=p("div"),l&&l.c(),r=g(),i=p("h2"),o=y(a),s=g(),w.c(),this.c=e,v(i,"class","DepositTitle "+(/*isMobile*/t[5]?"DepositTitleNone":"")),v(n,"class","DepositWrapper "+(/*isMobile*/t[5]?"DepositWrapperMobile":"")),E(n,"--dynamic-height",/*dynamicHeight*/t[2])},m(e,a){d(e,n,a),l&&l.m(n,null),h(n,r),h(n,i),h(i,o),h(n,s),w.m(n,null),
|
|
664
664
|
/*div_binding*/t[18](n)},p(e,[t]){/*isMobile*/e[5]&&l.p(e,t),/*$_*/16&t&&a!==(a=/*$_*/e[4]("title")+"")&&_(o,a),c===(c=u(e))&&w?w.p(e,t):(w.d(1),w=c(e),w&&(w.c(),w.m(n,null))),/*dynamicHeight*/4&t&&E(n,"--dynamic-height",/*dynamicHeight*/e[2])},i:e,o:e,d(e){e&&f(n),l&&l.d(),w.d(),
|
|
665
|
-
/*div_binding*/t[18](null)}}}function Yr(e,t,n){let r,i;u(e,
|
|
665
|
+
/*div_binding*/t[18](null)}}}function Yr(e,t,n){let r,i;u(e,Ar,(e=>n(4,i=e)));let o,s,{endpoint:a=""}=t,{session:l=""}=t,{playerid:c=""}=t,{lang:h="en"}=t,{hasdefaultamount:d=""}=t,{clientstyling:f=""}=t,{clientstylingurl:p=""}=t,{translationurl:m=""}=t,{playercurrency:y=""}=t,{shortcashierenabled:g="false"}=t,b=window.navigator.userAgent,v="PC"!==Hr(b),w=!0,_=0,E="";Object.keys(Lr).forEach((e=>{Nr(e,Lr[e])}));const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=e=>{if(e.data){if("ProfileDetailsData"===e.data.type)n(7,y=e.data.profileDetails.currency);switch(e.data["MMFE:setQuickDepositHeight"]&&n(2,s=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),"true"===e.data["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href)}}},M=()=>{var e;e=h,dr.set(e)};x((()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})));return e.$$set=e=>{"endpoint"in e&&n(8,a=e.endpoint),"session"in e&&n(9,l=e.session),"playerid"in e&&n(10,c=e.playerid),"lang"in e&&n(11,h=e.lang),"hasdefaultamount"in e&&n(12,d=e.hasdefaultamount),"clientstyling"in e&&n(13,f=e.clientstyling),"clientstylingurl"in e&&n(14,p=e.clientstylingurl),"translationurl"in e&&n(15,m=e.translationurl),"playercurrency"in e&&n(7,y=e.playercurrency),"shortcashierenabled"in e&&n(16,g=e.shortcashierenabled)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&h&&M(),/*shortcashierenabled*/65536&e.$$.dirty&&(r="true"===g.toLocaleLowerCase()),/*clientstylingurl, customStylingContainer*/16385&e.$$.dirty&&p&&o&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/8193&e.$$.dirty&&f&&o&&(()=>{let e=document.createElement("style");e.innerHTML=f,o.appendChild(e)})(),/*translationurl*/32768&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nr(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/69504&e.$$.dirty&&l&&c&&a&&y&&h&&g&&(()=>{let e=new URL(`${a}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(e.searchParams.append("language",h),r&&e.searchParams.append("isShortCashier",g),d)switch(y){case"USD":_=.4;break;case"CDF":_=1e3}let t={method:"POST",headers:{"X-SessionId":l,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(1,w=!1),n(3,E=e.CashierUrl)}),(e=>{console.error(e)}))})()},[o,w,s,E,i,v,S,y,a,l,c,h,d,f,p,m,g,()=>S(),function(e){O[e?"unshift":"push"]((()=>{o=e,n(0,o)}))}]}!customElements.get("player-deposit")&&customElements.define("player-deposit",class extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Yr,$r,o,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},null),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[8]}set endpoint(e){this.$$set({endpoint:e}),L()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),L()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),L()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),L()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),L()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),L()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),L()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),L()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(e){this.$$set({playercurrency:e}),L()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),L()}});var Ur=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return pe(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
666
666
|
// This is done to register the method called with moment()
|
|
667
667
|
// without creating circular dependencies.
|
|
668
668
|
function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
@@ -678,13 +678,13 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
|
|
|
678
678
|
function E(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
679
679
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
680
680
|
// objects.
|
|
681
|
-
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x
|
|
681
|
+
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,x={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),x[e]||(T(t),x[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
682
682
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
683
683
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
684
684
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
685
685
|
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])&&(
|
|
686
686
|
// make sure changes to properties don't modify parent config
|
|
687
|
-
r[n]=f({},r[n]));return r}function
|
|
687
|
+
r[n]=f({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function B(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 N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};
|
|
688
688
|
// token: 'M'
|
|
689
689
|
// padded: ['MM', 2]
|
|
690
690
|
// ordinal: 'Mo'
|
|
@@ -701,14 +701,14 @@ Ee=/[+-]?\d{6}/,// -999999 - 999999
|
|
|
701
701
|
Se=/\d\d?/,// 0 - 99
|
|
702
702
|
Te=/\d\d\d\d?/,// 999 - 9999
|
|
703
703
|
Me=/\d\d\d\d\d\d?/,// 99999 - 999999
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
ke=/\d{1,3}/,// 0 - 999
|
|
705
|
+
xe=/\d{1,4}/,// 0 - 9999
|
|
706
706
|
De=/[+-]?\d{1,6}/,// -999999 - 999999
|
|
707
707
|
Oe=/\d+/,// 0 - inf
|
|
708
708
|
Pe=/[+-]?\d+/,// -inf - inf
|
|
709
709
|
Fe=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
711
|
+
He=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
712
712
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
713
713
|
// includes scottish gaelic two word and hyphenated months
|
|
714
714
|
Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Be(e,t,n){ge[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ne(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Le(e))}
|
|
@@ -759,7 +759,7 @@ ne("year","y"),
|
|
|
759
759
|
// PRIORITIES
|
|
760
760
|
se("year",1),
|
|
761
761
|
// PARSING
|
|
762
|
-
Be("Y",Pe),Be("YY",Se,ve),Be("YYYY",
|
|
762
|
+
Be("Y",Pe),Be("YY",Se,ve),Be("YYYY",xe,_e),Be("YYYYY",De,Ee),Be("YYYYYY",De,Ee),$e(["YYYYY","YYYYYY"],je),$e("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),$e("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),$e("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};
|
|
763
763
|
// MOMENTS
|
|
764
764
|
var gt=he("FullYear",!0);function bt(){return le(this.year())}function vt(e,t,n,r,i,o,s){
|
|
765
765
|
// can't just apply() to create a date:
|
|
@@ -787,15 +787,15 @@ ne("week","w"),ne("isoWeek","W"),
|
|
|
787
787
|
// PRIORITIES
|
|
788
788
|
se("week",5),se("isoWeek",5),
|
|
789
789
|
// PARSING
|
|
790
|
-
Be("w",Se),Be("ww",Se,ve),Be("W",Se),Be("WW",Se,ve),Ye(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var
|
|
791
|
-
doy:6};function
|
|
790
|
+
Be("w",Se),Be("ww",Se,ve),Be("W",Se),Be("WW",Se,ve),Ye(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var kt={dow:0,// Sunday is the first day of the week.
|
|
791
|
+
doy:6};function xt(){return this._week.dow}function Dt(){return this._week.doy}
|
|
792
792
|
// MOMENTS
|
|
793
793
|
function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
|
|
794
794
|
// FORMATTING
|
|
795
795
|
// HELPERS
|
|
796
|
-
function Ft(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function
|
|
796
|
+
function Ft(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
797
797
|
// LOCALES
|
|
798
|
-
function
|
|
798
|
+
function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),$("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),$("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),
|
|
799
799
|
// ALIASES
|
|
800
800
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
801
801
|
// PRIORITY
|
|
@@ -803,7 +803,7 @@ se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
|
803
803
|
// PARSING
|
|
804
804
|
Be("d",Se),Be("e",Se),Be("E",Se),Be("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Be("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Be("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ye(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
805
805
|
// if we didn't get a weekday name, mark the date as invalid
|
|
806
|
-
null!=i?t.d=i:y(n).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ct="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Ce,Rt=Ce,It=Ce;function $t(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?
|
|
806
|
+
null!=i?t.d=i:y(n).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Ct="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Ce,Rt=Ce,It=Ce;function $t(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ht(n,this._week.dow):e?n[e.day()]:n}function Yt(e){return!0===e?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
807
807
|
// test the regex
|
|
808
808
|
if(
|
|
809
809
|
// make the regex if we don't have it already
|
|
@@ -813,7 +813,7 @@ function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this
|
|
|
813
813
|
// behaves the same as moment#day except
|
|
814
814
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
815
815
|
// as a setter, sunday should belong to the previous week.
|
|
816
|
-
if(null!=e){var t=
|
|
816
|
+
if(null!=e){var t=At(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")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Lt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)
|
|
817
817
|
// make the regex if we don't have it already
|
|
818
818
|
n=p([2e3,1]).day(t),r=Re(this.weekdaysMin(n,"")),i=Re(this.weekdaysShort(n,"")),o=Re(this.weekdays(n,"")),s.push(r),a.push(i),l.push(o),u.push(r),u.push(i),u.push(o);
|
|
819
819
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
@@ -836,7 +836,7 @@ se("hour",13),Be("a",tn),Be("A",tn),Be("H",Se),Be("h",Se),Be("k",Se),Be("HH",Se,
|
|
|
836
836
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
837
837
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
838
838
|
// this rule.
|
|
839
|
-
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:
|
|
839
|
+
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:H,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:K,months:tt,monthsShort:nt,week:kt,weekdays:Ct,weekdaysMin:Nt,weekdaysShort:Bt,meridiemParse:rn},un={},cn={};
|
|
840
840
|
// internal storage for locale config files
|
|
841
841
|
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}
|
|
842
842
|
// pick the locale from the array
|
|
@@ -860,7 +860,7 @@ function yn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?
|
|
|
860
860
|
// moment.duration._locale = moment._locale = data;
|
|
861
861
|
an=n:"undefined"!=typeof console&&console.warn&&
|
|
862
862
|
//warn user if arguments are passed but the locale could not be set
|
|
863
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])D("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=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new
|
|
863
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])D("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=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new A(F(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),
|
|
864
864
|
// backwards compat for now: also set the locale
|
|
865
865
|
// make sure we set the locale AFTER all child locales have been
|
|
866
866
|
// created, so we won't end up with the child locale set.
|
|
@@ -874,7 +874,7 @@ null!=(r=mn(e))&&(i=r._config),t=F(i,t),null==r&&(
|
|
|
874
874
|
// updateLocale is called for creating a new locale
|
|
875
875
|
// Set abbr so it will have a name (getters return
|
|
876
876
|
// undefined otherwise).
|
|
877
|
-
t.abbr=e),(n=new
|
|
877
|
+
t.abbr=e),(n=new A(t)).parentLocale=un[e],un[e]=n),
|
|
878
878
|
// backwards compat for now: also set the locale
|
|
879
879
|
yn(e)}else
|
|
880
880
|
// pass null for config to unupdate, useful for tests
|
|
@@ -882,26 +882,26 @@ null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===yn()&&yn(e)
|
|
|
882
882
|
// returns locale data
|
|
883
883
|
function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(
|
|
884
884
|
//short-circuit everything else
|
|
885
|
-
t=mn(e))return t;e=[e]}return fn(e)}function wn(){return
|
|
885
|
+
t=mn(e))return t;e=[e]}return fn(e)}function wn(){return k(un)}function _n(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>et(n[je],n[We])?Ve:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ze]||0!==n[Xe]||0!==n[qe])?ze:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[qe]<0||n[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<je||t>Ve)&&(t=Ve),y(e)._overflowWeeks&&-1===t&&(t=Je),y(e)._overflowWeekday&&-1===t&&(t=Ke),y(e).overflow=t),e}
|
|
886
886
|
// iso 8601 regex
|
|
887
887
|
// 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)
|
|
888
888
|
var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
|
|
889
889
|
// iso time formats and regexes
|
|
890
|
-
|
|
890
|
+
kn=[["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/]],xn=/^\/?Date\((-?\d+)/i,
|
|
891
891
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
892
892
|
Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
893
893
|
// date from iso format
|
|
894
|
-
function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=
|
|
894
|
+
function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=kn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(Mn[t][1].exec(l[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(kn[t][1].exec(l[3])){
|
|
895
895
|
// match[2] should be 'T' or space
|
|
896
|
-
o=(l[2]||" ")+
|
|
896
|
+
o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Un(e)}else e._isValid=!1}function Fn(e,t,n,r,i,o){var s=[An(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Hn(e){
|
|
897
897
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
898
898
|
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Cn(e,t,n){return!e||Bt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Bn(e,t,n){if(e)return On[e];if(t)
|
|
899
899
|
// the only allowed military tz is Z
|
|
900
900
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
901
901
|
// date and time from ref 2822 format
|
|
902
|
-
function Nn(e){var t,n=Dn.exec(
|
|
902
|
+
function Nn(e){var t,n=Dn.exec(Hn(e._i));if(n){if(t=Fn(n[4],n[3],n[2],n[5],n[6],n[7]),!Cn(n[1],t,e))return;e._a=t,e._tzm=Bn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
|
|
903
903
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
904
|
-
function Ln(e){var t=
|
|
904
|
+
function Ln(e){var t=xn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
905
905
|
// Final attempt, use Input Fallback
|
|
906
906
|
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
|
|
907
907
|
// Pick the first defined of two or three arguments.
|
|
@@ -1004,7 +1004,7 @@ function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.len
|
|
|
1004
1004
|
// FORMATTING
|
|
1005
1005
|
function hr(e,t){$(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
|
|
1006
1006
|
// PARSING
|
|
1007
|
-
Be("Z",
|
|
1007
|
+
Be("Z",Ae),Be("ZZ",Ae),$e(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Ae,e)}));
|
|
1008
1008
|
// HELPERS
|
|
1009
1009
|
// timezone chunker
|
|
1010
1010
|
// '+10:00' > ['10', '00']
|
|
@@ -1030,27 +1030,27 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1030
1030
|
// a second time. In case it wants us to change the offset again
|
|
1031
1031
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1032
1032
|
// there is no such time in the given timezone.
|
|
1033
|
-
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(
|
|
1033
|
+
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(Ae,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?Cr(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function 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 wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1034
1034
|
// ASP.NET json date format regex
|
|
1035
|
-
r.updateOffset=function(){};var
|
|
1035
|
+
r.updateOffset=function(){};var xr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1036
1036
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
1037
1037
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
1038
1038
|
// and further modified to allow for strings containing both week and day
|
|
1039
1039
|
Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,i,o=e,
|
|
1040
1040
|
// matching against regexp is expensive, do it on demand
|
|
1041
|
-
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=
|
|
1041
|
+
s=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=xr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:ce(s[Ve])*n,h:ce(s[ze])*n,m:ce(s[Ze])*n,s:ce(s[Xe])*n,ms:ce(ur(1e3*s[qe]))*n}):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:Pr(s[2],n),M:Pr(s[3],n),w:Pr(s[4],n),d:Pr(s[5],n),h:Pr(s[6],n),m:Pr(s[7],n),s:Pr(s[8],n)}):null==o?
|
|
1042
1042
|
// checks for null or undefined
|
|
1043
|
-
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=
|
|
1043
|
+
o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(qn(o.from),qn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(e)&&a(e,"_locale")&&(r._locale=e._locale),lr(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){
|
|
1044
1044
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
1045
1045
|
// converts floats to ints.
|
|
1046
1046
|
// inp may be undefined, so careful calling replace on it.
|
|
1047
1047
|
var n=e&&parseFloat(e.replace(",","."));
|
|
1048
1048
|
// apply sign while we're at it
|
|
1049
|
-
return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function
|
|
1049
|
+
return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Fr(e,t):((n=Fr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
|
1050
1050
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1051
|
-
function
|
|
1051
|
+
function Hr(e,t){return function(n,r){var i;
|
|
1052
1052
|
//invert the arguments, but complain about it
|
|
1053
|
-
return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Cr(this,Or(n,r),e),this}}function Cr(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Br=
|
|
1053
|
+
return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Cr(this,Or(n,r),e),this}}function Cr(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Br=Hr(1,"add"),Nr=Hr(-1,"subtract");function Lr(e){return"string"==typeof e||e instanceof String}
|
|
1054
1054
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1055
1055
|
function Rr(e){return S(e)||h(e)||Lr(e)||c(e)||$r(e)||Ir(e)||null==e}function Ir(e){var t,n,r=s(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||a(e,n);return r&&i}function $r(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Lr(e)})).length),t&&n}function Yr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){
|
|
1056
1056
|
// Support for single parameter, formats only overload to the calendar function
|
|
@@ -1091,13 +1091,13 @@ return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function yi(
|
|
|
1091
1091
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1092
1092
|
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,hi);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yi:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-pi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-pi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function Ei(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){
|
|
1093
1093
|
// new Date(NaN).toJSON() === null
|
|
1094
|
-
return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function
|
|
1094
|
+
return this.isValid()?this.toISOString():null}function Mi(){return g(this)}function ki(){return f({},y(this))}function xi(){return y(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,s=this._eras||vn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
|
|
1095
1095
|
// truncate time
|
|
1096
1096
|
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":
|
|
1097
1097
|
// truncate time
|
|
1098
|
-
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Pi(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([o,s,a].indexOf(e)>=0)return l[r]}function Fi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function
|
|
1098
|
+
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Pi(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([o,s,a].indexOf(e)>=0)return l[r]}function Fi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1099
1099
|
// truncate time
|
|
1100
|
-
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function
|
|
1100
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1101
1101
|
// truncate time
|
|
1102
1102
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ci(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1103
1103
|
// truncate time
|
|
@@ -1118,7 +1118,7 @@ ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
|
1118
1118
|
// PRIORITY
|
|
1119
1119
|
se("weekYear",1),se("isoWeekYear",1),
|
|
1120
1120
|
// PARSING
|
|
1121
|
-
Be("G",Pe),Be("g",Pe),Be("GG",Se,ve),Be("gg",Se,ve),Be("GGGG",
|
|
1121
|
+
Be("G",Pe),Be("g",Pe),Be("GG",Se,ve),Be("gg",Se,ve),Be("GGGG",xe,_e),Be("gggg",xe,_e),Be("GGGGG",De,Ee),Be("ggggg",De,Ee),Ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Ye(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),$("Q",0,"Qo","quarter"),
|
|
1122
1122
|
// ALIASES
|
|
1123
1123
|
ne("quarter","Q"),
|
|
1124
1124
|
// PRIORITY
|
|
@@ -1146,7 +1146,7 @@ ne("dayOfYear","DDD"),
|
|
|
1146
1146
|
// PRIORITY
|
|
1147
1147
|
se("dayOfYear",4),
|
|
1148
1148
|
// PARSING
|
|
1149
|
-
Be("DDD",
|
|
1149
|
+
Be("DDD",ke),Be("DDDD",we),$e(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),$("m",["mm",2],0,"minute"),
|
|
1150
1150
|
// ALIASES
|
|
1151
1151
|
ne("minute","m"),
|
|
1152
1152
|
// PRIORITY
|
|
@@ -1172,11 +1172,11 @@ ne("millisecond","ms"),
|
|
|
1172
1172
|
// PRIORITY
|
|
1173
1173
|
se("millisecond",16),
|
|
1174
1174
|
// PARSING
|
|
1175
|
-
Be("S",
|
|
1175
|
+
Be("S",ke,be),Be("SS",ke,ve),Be("SSS",ke,we),ro="SSSS";ro.length<=9;ro+="S")Be(ro,Oe);function so(e,t){t[qe]=ce(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")$e(ro,so);
|
|
1176
1176
|
// MOMENTS
|
|
1177
1177
|
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=he("Milliseconds",!1),
|
|
1178
1178
|
// FORMATTING
|
|
1179
|
-
$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Br,uo.calendar=Gr,uo.clone=jr,uo.diff=Jr,uo.endOf=bi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=me,uo.invalidAt=
|
|
1179
|
+
$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Br,uo.calendar=Gr,uo.clone=jr,uo.diff=Jr,uo.endOf=bi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=me,uo.invalidAt=xi,uo.isAfter=Wr,uo.isBefore=Vr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=qr,uo.isValid=Mi,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Kn,uo.min=Jn,uo.parsingFlags=ki,uo.set=ye,uo.startOf=gi,uo.subtract=Nr,uo.toArray=Ei,uo.toObject=Si,uo.toDate=_i,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=wi,uo.valueOf=vi,uo.creationData=Di,uo.eraName=Ai,uo.eraNarrow=Hi,uo.eraAbbr=Ci,uo.eraYear=Bi,uo.year=gt,uo.isLeapYear=bt,uo.weekYear=Wi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Ot,uo.isoWeek=uo.isoWeeks=Pt,uo.weeksInYear=Xi,uo.weeksInWeekYear=qi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=Zi,uo.date=eo,uo.day=uo.days=Wt,uo.weekday=Vt,uo.isoWeekday=zt,uo.dayOfYear=to,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=yr,uo.utc=br,uo.local=vr,uo.parseZone=wr,uo.hasAlignedHourOffset=_r,uo.isDST=Er,uo.isLocal=Tr,uo.isUtcOffset=Mr,uo.isUtc=kr,uo.isUTC=kr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=M("dates accessor is deprecated. Use date instead.",eo),uo.months=M("months accessor is deprecated. Use month instead",ht),uo.years=M("years accessor is deprecated. Use year instead",gt),uo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),uo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=A.prototype;function mo(e,t,n,r){var i=vn(),o=p().set(r,t);return i[n](o,e)}function yo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
|
|
1180
1180
|
// ()
|
|
1181
1181
|
// (5)
|
|
1182
1182
|
// (fmt, 5)
|
|
@@ -1185,13 +1185,13 @@ $("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var uo=E.prototype;function co(e){r
|
|
|
1185
1185
|
// (true, 5)
|
|
1186
1186
|
// (true, fmt, 5)
|
|
1187
1187
|
// (true, fmt)
|
|
1188
|
-
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=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 yo(e,t,"months")}function vo(e,t){return yo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=C,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=J,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=P,po.eras=Oi,po.erasParse=Pi,po.erasConvertYear=Fi,po.erasAbbrRegex=Li,po.erasNameRegex=Ni,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=
|
|
1188
|
+
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=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 yo(e,t,"months")}function vo(e,t){return yo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=C,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=J,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=P,po.eras=Oi,po.erasParse=Pi,po.erasConvertYear=Fi,po.erasAbbrRegex=Li,po.erasNameRegex=Ni,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=xt,po.weekdays=$t,po.weekdaysMin=Ut,po.weekdaysShort=Yt,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1189
1189
|
// Side effect imports
|
|
1190
1190
|
r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",vn);var So=Math.abs;function To(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Mo(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1191
1191
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1192
|
-
function
|
|
1192
|
+
function ko(e,t){return Mo(this,e,t,1)}
|
|
1193
1193
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1194
|
-
function
|
|
1194
|
+
function xo(e,t){return Mo(this,e,t,-1)}function Do(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;
|
|
1195
1195
|
// if we have a mix of positive and negative values, bubble down first
|
|
1196
1196
|
// check: https://github.com/moment/moment/issues/2166
|
|
1197
1197
|
return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Do(Fo(a)+s),s=0,a=0),
|
|
@@ -1206,13 +1206,13 @@ r=ue(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function Po(e){
|
|
|
1206
1206
|
// 400 years have 12 months === 4800
|
|
1207
1207
|
return 4800*e/146097}function Fo(e){
|
|
1208
1208
|
// the reverse of daysToMonths
|
|
1209
|
-
return 146097*e/4800}function
|
|
1209
|
+
return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Po(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
|
|
1210
1210
|
// handle milliseconds separately because of floating point math errors (issue #1867)
|
|
1211
1211
|
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;
|
|
1212
1212
|
// Math.floor prevents floating point math errors here
|
|
1213
1213
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1214
1214
|
// TODO: Use this.as('ms')?
|
|
1215
|
-
function
|
|
1215
|
+
function Ho(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Co(e){return function(){return this.as(e)}}var Bo=Co("ms"),No=Co("s"),Lo=Co("m"),Ro=Co("h"),Io=Co("d"),$o=Co("w"),Yo=Co("M"),Uo=Co("Q"),Go=Co("y");function jo(){return Or(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Vo("milliseconds"),Zo=Vo("seconds"),Xo=Vo("minutes"),qo=Vo("hours"),Jo=Vo("days"),Ko=Vo("months"),Qo=Vo("years");function es(){return ue(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
|
1216
1216
|
s:45,// seconds to minute
|
|
1217
1217
|
m:45,// minutes to hour
|
|
1218
1218
|
h:22,// hours to day
|
|
@@ -1238,11 +1238,11 @@ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
|
|
|
1238
1238
|
// 12 months -> 1 year
|
|
1239
1239
|
n=ue(c/12),c%=12,
|
|
1240
1240
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1241
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=
|
|
1241
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=ko,hs.subtract=xo,hs.as=Ao,hs.asMilliseconds=Bo,hs.asSeconds=No,hs.asMinutes=Lo,hs.asHours=Ro,hs.asDays=Io,hs.asWeeks=$o,hs.asMonths=Yo,hs.asQuarters=Uo,hs.asYears=Go,hs.valueOf=Ho,hs._bubble=Oo,hs.clone=jo,hs.get=Wo,hs.milliseconds=zo,hs.seconds=Zo,hs.minutes=Xo,hs.hours=qo,hs.days=Jo,hs.weeks=es,hs.months=Ko,hs.years=Qo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ai,hs.localeData=ui,hs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=li,
|
|
1242
1242
|
// FORMATTING
|
|
1243
1243
|
$("X",0,0,"unix"),$("x",0,0,"valueOf"),
|
|
1244
1244
|
// PARSING
|
|
1245
|
-
Be("x",Pe),Be("X",
|
|
1245
|
+
Be("x",Pe),Be("X",He),$e("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),$e("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
1246
1246
|
//! moment.js
|
|
1247
1247
|
r.version="2.29.4",i(qn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=bo,r.isDate=h,r.locale=yn,r.invalid=b,r.duration=Or,r.isMoment=S,r.weekdays=wo,r.parseZone=ho,r.localeData=vn,r.isDuration=lr,r.monthsShort=vo,r.weekdaysMin=Eo,r.defineLocale=gn,r.updateLocale=bn,r.locales=wn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Ur,r.prototype=uo,
|
|
1248
1248
|
// currently HTML5 input type only supports 24-hour formats
|
|
@@ -1262,26 +1262,26 @@ function Wr(t){let n;return{c(){n=p("p"),n.textContent="500 Error - Internal Ser
|
|
|
1262
1262
|
// (385:2) {#if isLoading}
|
|
1263
1263
|
function Vr(t){let n;return{c(){n=p("p"),n.textContent="Loading, please wait ...",v(n,"class","SearchLoading")},m(e,t){d(e,n,t)},p:e,d(e){e&&f(n)}}}
|
|
1264
1264
|
// (472:10) {#if funMode}
|
|
1265
|
-
function zr(e){let t,n,i,o,s,l,u,c,m,w,T,M,x,
|
|
1266
|
-
return e[36]?qr:Xr}let U=Y(e),G=U(e),j=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&Jr();return{c(){t=p("div"),n=p("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',i=g(),o=p("p"),s=p("span"),l=y(/*time*/e[23]),u=g(),c=p("div"),m=g(),w=p("div"),T=p("div"),M=p("iframe"),
|
|
1265
|
+
function zr(e){let t,n,i,o,s,l,u,c,m,w,T,M,k,x,D,O,P,F,A,H,C,B,N,L,R,I=/*$_*/e[43]("signIn")+"",$=/*$_*/e[43]("register")+"";function Y(e,t){/*isFullscreen*/
|
|
1266
|
+
return e[36]?qr:Xr}let U=Y(e),G=U(e),j=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&Jr();return{c(){t=p("div"),n=p("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',i=g(),o=p("p"),s=p("span"),l=y(/*time*/e[23]),u=g(),c=p("div"),m=g(),w=p("div"),T=p("div"),M=p("iframe"),x=g(),D=p("div"),O=p("div"),P=p("button"),F=y(I),A=g(),H=p("button"),C=y($),B=g(),G.c(),N=g(),j&&j.c(),v(n,"class","backButton"),v(o,"class","Time"),v(t,"class","GamePageIntegratedTopSection"),v(M,"title","Games"),v(M,"class","GamesContainer"),v(M,"aria-hidden","false"),a(M.src,k=/*game*/e[29].launchUrl)||v(M,"src",k),v(P,"class","LoginButton"),v(H,"class","RegisterButton"),v(O,"class","ButtonsContainer ButtonsContainerFunMode"),v(D,"class","BottomGame"),v(T,"id","IframeGame"),E(T,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),E(T,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),E(T,"max-width",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].width?Math.floor(/*game*/e[29].width)+"px":"1280px"),E(T,"max-height",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),v(w,"id","IframeContainer"),S(w,"FullsScreenLayout",/*isFullscreen*/e[36])},m(r,a){d(r,t,a),h(t,n),h(t,i),h(t,o),h(o,s),h(s,l),
|
|
1267
1267
|
/*p_binding_1*/e[74](o),h(t,u),h(t,c),d(r,m,a),d(r,w,a),h(w,T),h(T,M),
|
|
1268
|
-
/*iframe_1_binding_1*/e[75](M),h(T,
|
|
1268
|
+
/*iframe_1_binding_1*/e[75](M),h(T,x),h(T,D),h(D,O),h(O,P),h(P,F),h(O,A),h(O,H),h(H,C),h(D,B),G.m(D,null),
|
|
1269
1269
|
/*div3_binding_1*/e[80](D),
|
|
1270
1270
|
/*div4_binding_1*/e[81](T),h(w,N),j&&j.m(w,null)
|
|
1271
|
-
/*div5_binding*/,e[82](w),L||(R=[b(n,"click",/*click_handler_6*/e[73]),b(P,"click",/*click_handler_7*/e[76]),b(
|
|
1271
|
+
/*div5_binding*/,e[82](w),L||(R=[b(n,"click",/*click_handler_6*/e[73]),b(P,"click",/*click_handler_7*/e[76]),b(H,"click",/*click_handler_8*/e[77])],L=!0)},p(e,t){/*time*/8388608&t[0]&&_(l,/*time*/e[23]),/*game*/536870912&t[0]&&!a(M.src,k=/*game*/e[29].launchUrl)&&v(M,"src",k),/*$_*/4096&t[1]&&I!==(I=/*$_*/e[43]("signIn")+"")&&_(F,I),/*$_*/4096&t[1]&&$!==($=/*$_*/e[43]("register")+"")&&_(C,$),U===(U=Y(e))&&G?G.p(e,t):(G.d(1),G=U(e),G&&(G.c(),G.m(D,null))),/*isFullscreen, definitiveIframeWidth*/96&t[1]&&E(T,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),/*isFullscreen, definitiveIframeHeight*/160&t[1]&&E(T,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),/*game*/536870912&t[0]|/*isFullscreen, isModal*/33&t[1]&&E(T,"max-width",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].width?Math.floor(/*game*/e[29].width)+"px":"1280px"),/*game*/536870912&t[0]|/*isFullscreen, isModal*/33&t[1]&&E(T,"max-height",/*isFullscreen*/e[36]||!/*isModal*/e[31]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[12]||/*isFullscreen*/e[36]?j&&(j.d(1),j=null):j||(j=Jr(),j.c(),j.m(w,null)),/*isFullscreen*/32&t[1]&&S(w,"FullsScreenLayout",/*isFullscreen*/e[36])},d(n){n&&f(t)
|
|
1272
1272
|
/*p_binding_1*/,e[74](null),n&&f(m),n&&f(w)
|
|
1273
1273
|
/*iframe_1_binding_1*/,e[75](null),G.d(),
|
|
1274
1274
|
/*div3_binding_1*/e[80](null),
|
|
1275
1275
|
/*div4_binding_1*/e[81](null),j&&j.d()
|
|
1276
1276
|
/*div5_binding*/,e[82](null),L=!1,r(R)}}}
|
|
1277
1277
|
// (392:8) {#if isLoggedIn}
|
|
1278
|
-
function Zr(e){let t,n,i,o,s,l,u,c,m,w,T,M,x,
|
|
1279
|
-
return e[36]?ri:ni}let Y=$(e),U=Y(e),G=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&ii();return{c(){t=p("div"),n=p("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',i=g(),o=p("p"),s=p("span"),l=y(/*time*/e[23]),u=g(),c=p("div"),m=y(L),w=g(),R&&R.c(),T=g(),M=p("div"),
|
|
1280
|
-
/*p_binding*/e[62](o),h(t,u),h(t,c),h(c,m),h(t,w),R&&R.m(t,null),d(r,T,a),d(r,M,a),h(M,
|
|
1281
|
-
/*iframe_1_binding*/e[66](
|
|
1282
|
-
/*div2_binding*/e[70](
|
|
1283
|
-
/*div3_binding*/e[71](
|
|
1284
|
-
/*div4_binding*/,e[72](M),B||(N=[b(n,"click",/*click_handler*/e[61]),b(c,"click",/*click_handler_1*/e[63])],B=!0)},p(e,n){/*time*/8388608&n[0]&&_(l,/*time*/e[23]),/*$_*/4096&n[1]&&L!==(L=/*$_*/e[43]("deposit")+"")&&_(m,L),/*shortCashierActivated*/e[42]?R?R.p(e,n):(R=Kr(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/536870912&n[0]&&!a(
|
|
1278
|
+
function Zr(e){let t,n,i,o,s,l,u,c,m,w,T,M,k,x,D,O,P,F,A,H,C,B,N,L=/*$_*/e[43]("deposit")+"",R=/*shortCashierActivated*/e[42]&&Kr(e),I=/*haspanicbutton*/"true"===e[11]&&ti(e);function $(e,t){/*isFullscreen*/
|
|
1279
|
+
return e[36]?ri:ni}let Y=$(e),U=Y(e),G=/*gamebanneractive*/"true"==e[12]&&!/*isFullscreen*/e[36]&&ii();return{c(){t=p("div"),n=p("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',i=g(),o=p("p"),s=p("span"),l=y(/*time*/e[23]),u=g(),c=p("div"),m=y(L),w=g(),R&&R.c(),T=g(),M=p("div"),k=p("div"),x=p("iframe"),F=g(),A=p("div"),I&&I.c(),H=g(),U.c(),C=g(),G&&G.c(),v(n,"class","backButton"),v(o,"class","Time"),v(c,"class","DepositButton"),v(t,"class","GamePageIntegratedTopSection"),v(x,"title","Games"),v(x,"id","IframeGame"),v(x,"class","GamesContainer"),v(x,"aria-hidden","false"),a(x.src,D=/*game*/e[29].launchUrl)||v(x,"src",D),v(x,"width",O=/*gameContainerWidth*/e[33]+"px"),v(x,"height",P=/*gameContainerHeight*/e[34]+"px"),v(A,"class","BottomGame BottomGameLoggedin"),v(k,"id","IframeGame"),E(k,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),E(k,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),E(k,"max-width",/*isFullscreen*/e[36]?"none":/*game*/e[29].width?/*game*/e[29].width+"px":"1280px"),E(k,"max-height",/*isFullscreen*/e[36]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),v(M,"id","IframeContainer"),S(M,"FullsScreenLayout",/*isFullscreen*/e[36])},m(r,a){d(r,t,a),h(t,n),h(t,i),h(t,o),h(o,s),h(s,l),
|
|
1280
|
+
/*p_binding*/e[62](o),h(t,u),h(t,c),h(c,m),h(t,w),R&&R.m(t,null),d(r,T,a),d(r,M,a),h(M,k),h(k,x),
|
|
1281
|
+
/*iframe_1_binding*/e[66](x),h(k,F),h(k,A),I&&I.m(A,null),h(A,H),U.m(A,null),
|
|
1282
|
+
/*div2_binding*/e[70](A),
|
|
1283
|
+
/*div3_binding*/e[71](k),h(M,C),G&&G.m(M,null)
|
|
1284
|
+
/*div4_binding*/,e[72](M),B||(N=[b(n,"click",/*click_handler*/e[61]),b(c,"click",/*click_handler_1*/e[63])],B=!0)},p(e,n){/*time*/8388608&n[0]&&_(l,/*time*/e[23]),/*$_*/4096&n[1]&&L!==(L=/*$_*/e[43]("deposit")+"")&&_(m,L),/*shortCashierActivated*/e[42]?R?R.p(e,n):(R=Kr(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/536870912&n[0]&&!a(x.src,D=/*game*/e[29].launchUrl)&&v(x,"src",D),/*gameContainerWidth*/4&n[1]&&O!==(O=/*gameContainerWidth*/e[33]+"px")&&v(x,"width",O),/*gameContainerHeight*/8&n[1]&&P!==(P=/*gameContainerHeight*/e[34]+"px")&&v(x,"height",P),/*haspanicbutton*/"true"===e[11]?I?I.p(e,n):(I=ti(e),I.c(),I.m(A,H)):I&&(I.d(1),I=null),Y===(Y=$(e))&&U?U.p(e,n):(U.d(1),U=Y(e),U&&(U.c(),U.m(A,null))),/*isFullscreen, definitiveIframeWidth*/96&n[1]&&E(k,"width",/*isFullscreen*/e[36]?"100%":/*definitiveIframeWidth*/e[37]),/*isFullscreen, definitiveIframeHeight*/160&n[1]&&E(k,"height",/*isFullscreen*/e[36]?"100%":/*definitiveIframeHeight*/e[38]),/*game*/536870912&n[0]|/*isFullscreen*/32&n[1]&&E(k,"max-width",/*isFullscreen*/e[36]?"none":/*game*/e[29].width?/*game*/e[29].width+"px":"1280px"),/*game*/536870912&n[0]|/*isFullscreen*/32&n[1]&&E(k,"max-height",/*isFullscreen*/e[36]?"none":/*game*/e[29].height?Math.floor(/*game*/e[29].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[12]||/*isFullscreen*/e[36]?G&&(G.d(1),G=null):G||(G=ii(),G.c(),G.m(M,null)),/*isFullscreen*/32&n[1]&&S(M,"FullsScreenLayout",/*isFullscreen*/e[36])},d(n){n&&f(t)
|
|
1285
1285
|
/*p_binding*/,e[62](null),R&&R.d(),n&&f(T),n&&f(M)
|
|
1286
1286
|
/*iframe_1_binding*/,e[66](null),I&&I.d(),U.d(),
|
|
1287
1287
|
/*div2_binding*/e[70](null),
|
|
@@ -1301,7 +1301,7 @@ function Qr(e){let t,n,r,i,o,s,a,l,u,c;return{c(){t=p("user-deposit-withdrawal")
|
|
|
1301
1301
|
// (409:18) {#if gmversion === 'gmcore'}
|
|
1302
1302
|
function ei(e){let t;return{c(){t=p("player-deposit"),w(t,"endpoint",/*endpoint*/e[0]),w(t,"session",/*session*/e[2]),w(t,"playerid",/*userid*/e[3]),w(t,"lang",/*lang*/e[1]),w(t,"hasdefaultamount",/*hasdefaultamount*/e[9]),w(t,"playercurrency",/*playercurrency*/e[10]),w(t,"shortcashierenabled",/*shortcashierenabled*/e[8]),w(t,"clientstyling",/*clientstyling*/e[4]),w(t,"clientstylingurl",/*clientstylingurl*/e[5])},m(e,n){d(e,t,n)},p(e,n){/*endpoint*/1&n[0]&&w(t,"endpoint",/*endpoint*/e[0]),/*session*/4&n[0]&&w(t,"session",/*session*/e[2]),/*userid*/8&n[0]&&w(t,"playerid",/*userid*/e[3]),/*lang*/2&n[0]&&w(t,"lang",/*lang*/e[1]),/*hasdefaultamount*/512&n[0]&&w(t,"hasdefaultamount",/*hasdefaultamount*/e[9]),/*playercurrency*/1024&n[0]&&w(t,"playercurrency",/*playercurrency*/e[10]),/*shortcashierenabled*/256&n[0]&&w(t,"shortcashierenabled",/*shortcashierenabled*/e[8]),/*clientstyling*/16&n[0]&&w(t,"clientstyling",/*clientstyling*/e[4]),/*clientstylingurl*/32&n[0]&&w(t,"clientstylingurl",/*clientstylingurl*/e[5])},d(e){e&&f(t)}}}
|
|
1303
1303
|
// (449:16) {#if haspanicbutton === "true"}
|
|
1304
|
-
function ti(e){let t,n,r,i=/*$_*/e[43]("breakButton")+"";return{c(){t=p("div"),n=p("button"),r=y(i),v(n,"class","PanicButton "+("PC"!==
|
|
1304
|
+
function ti(e){let t,n,r,i=/*$_*/e[43]("breakButton")+"";return{c(){t=p("div"),n=p("button"),r=y(i),v(n,"class","PanicButton "+("PC"!==Hr(/*userAgent*/e[44])?"PanicButtonMobile":"")),v(n,"part","PanicButton "+("PC"!==Hr(/*userAgent*/e[44])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[28]),v(t,"class","PanicSection")},m(i,o){d(i,t,o),h(t,n),h(n,r),
|
|
1305
1305
|
/*button_binding*/e[67](n)},p(e,t){/*$_*/4096&t[1]&&i!==(i=/*$_*/e[43]("breakButton")+"")&&_(r,i),/*panicLoading*/268435456&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[28])},d(n){n&&f(t)
|
|
1306
1306
|
/*button_binding*/,e[67](null)}}}
|
|
1307
1307
|
// (458:16) {:else}
|
|
@@ -1312,7 +1312,7 @@ function ri(t){let n,r,i;return{c(){n=p("button"),n.innerHTML='<svg xmlns="http:
|
|
|
1312
1312
|
function ii(e){let t;return{c(){t=p("div"),t.innerHTML="<h3>Your banner here</h3>",v(t,"class","BannerSection")},m(e,n){d(e,t,n)},d(e){e&&f(t)}}}function oi(t){let n,r,i,o;function s(e,t){/*isLoading*/
|
|
1313
1313
|
return e[27]?Vr:/*hasErrors*/e[26]?Wr:jr}let l=s(t),u=l(t);return{c(){n=p("script"),i=g(),o=p("div"),u.c(),this.c=e,v(n,"type","module"),a(n.src,r="https://unpkg.com/@everymatrix/user-deposit-withdrawal")||v(n,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal")},m(e,r){h(Gr.head,n),d(e,i,r),d(e,o,r),u.m(o,null),
|
|
1314
1314
|
/*div_binding*/t[83](o)},p(e,t){l===(l=s(e))&&u?u.p(e,t):(u.d(1),u=l(e),u&&(u.c(),u.m(o,null)))},i:e,o:e,d(e){f(n),e&&f(i),e&&f(o),u.d(),
|
|
1315
|
-
/*div_binding*/t[83](null)}}}function si(e,t,n){let r,i;u(e,
|
|
1315
|
+
/*div_binding*/t[83](null)}}}function si(e,t,n){let r,i;u(e,Ar,(e=>n(43,i=e)));let o,s,a,l,c,h,d,f,p,m,y,g,b,v,w,_,E,{endpoint:S=""}=t,{lang:T=""}=t,{session:M=""}=t,{userid:k=""}=t,{clientstyling:D=""}=t,{clientstylingurl:P=""}=t,{translationurl:F=""}=t,{gmversion:A=""}=t,{loginurl:H=""}=t,{registerurl:C=""}=t,{depositurl:B=""}=t,{loginevent:N=""}=t,{registerevent:L=""}=t,{depositevent:R=""}=t,{shortcashierenabled:I="false"}=t,{hasdefaultamount:$=""}=t,{playercurrency:Y=""}=t,{clockformat:U=""}=t,{haspanicbutton:G="false"}=t,{playforfun:j="true"}=t,{checksession:W="true"}=t,{gamebanneractive:V="false"}=t,{gameid:z=""}=t,Z=!1,X=!1,q=!0,J=!1,K=0,Q=!1,ee=!1,te=!0,ne=!1,re=window.navigator.userAgent,ie=!1,oe=!1,{producttype:se=""}=t,{successurl:ae=""}=t,{failurl:le=""}=t,{cancelurl:ue=""}=t,{sportsurl:ce=""}=t,{casinourl:he=""}=t,{contacturl:de=""}=t,{homeurl:fe=""}=t;!function({withLocale:e,translations:t}){dr.subscribe((n=>{null==n&&(Yn.set(t),dr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1316
1316
|
/*dictionary.set(translations);
|
|
1317
1317
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Br).forEach((e=>{Cr(e,Br[e])}));
|
|
1318
1318
|
// @TODO game typescript model type
|
|
@@ -1325,9 +1325,9 @@ f/r>p-_.clientHeight-E.clientHeight?(g=p-_.clientHeight-E.clientHeight,y=p*r):(y
|
|
|
1325
1325
|
// sent to modal component a flag (detailsObtained) by witch to determine if a game is open
|
|
1326
1326
|
window.postMessage({type:"GameStateOnResize",detailsObtained:Q},window.location.href),
|
|
1327
1327
|
// make sure that a game is open before trying to get the element properties
|
|
1328
|
-
Q&&d&&"PC"==
|
|
1328
|
+
Q&&d&&"PC"==Hr(re)&&ge()},ve=()=>{N&&(window.postMessage({type:N,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),H&&(
|
|
1329
1329
|
// @ts-ignore
|
|
1330
|
-
window.location=
|
|
1330
|
+
window.location=H),
|
|
1331
1331
|
//Analytics event
|
|
1332
1332
|
"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"GeneralPlayerRegisterForm"})},we=()=>{L&&(window.postMessage({type:L,transition:"Register"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),C&&(
|
|
1333
1333
|
// @ts-ignore
|
|
@@ -1337,9 +1337,9 @@ window.location=C),
|
|
|
1337
1337
|
//Analytics event
|
|
1338
1338
|
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),B&&!r&&(
|
|
1339
1339
|
// @ts-ignore
|
|
1340
|
-
window.location=B)},Ee=e=>{n(42,oe=!1),window.postMessage({type:"EnableScroll"},window.location.href),null==e||e.stopPropagation()},Se=e=>{if(e.data&&"CloseShortCashier"===e.data.type)Ee()};function Te(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!ne||Me()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",Te,!1),document.addEventListener("mozfullscreenchange",Te,!1),document.addEventListener("fullscreenchange",Te,!1),document.addEventListener("MSFullscreenChange",Te,!1));const Me=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(ne?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen()),n(36,ne=!ne)},
|
|
1340
|
+
window.location=B)},Ee=e=>{n(42,oe=!1),window.postMessage({type:"EnableScroll"},window.location.href),null==e||e.stopPropagation()},Se=e=>{if(e.data&&"CloseShortCashier"===e.data.type)Ee()};function Te(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!ne||Me()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",Te,!1),document.addEventListener("mozfullscreenchange",Te,!1),document.addEventListener("fullscreenchange",Te,!1),document.addEventListener("MSFullscreenChange",Te,!1));const Me=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(ne?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen()),n(36,ne=!ne)},ke=setInterval((()=>{n(23,o=U?Ur().format(U):Ur().format("LTS"))}),100),xe=()=>{var e;e=T,dr.set(e),n(39,ie=(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)))(re)),n(27,q=!1)},De=()=>{"true"==W?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),me(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(S,M).then((e=>{a=e.Guid,e.UserID,n(25,Z=!0)}),(e=>{n(25,Z=!1),console.error("err on session",e)})):a=M},Oe=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},Pe=e=>{K=0,c=setInterval((()=>{K+=1,n(28,J=!0),K>=3&&clearInterval(c)}),1e3)},Fe=e=>{K<3&&n(28,J=!1),clearInterval(c)};x((()=>(window.addEventListener("message",Se,!1),window.addEventListener("resize",be,!1),()=>{n(28,J=!1),null==l||l.removeEventListener("mousedown",Pe),null==l||l.removeEventListener("touchstart",Pe),
|
|
1341
1341
|
// on mouseup stop interval count
|
|
1342
|
-
null==l||l.removeEventListener("mouseup",Fe),null==l||l.removeEventListener("touchend",Fe),window.removeEventListener("message",Se),window.removeEventListener("resize",be),clearInterval(
|
|
1342
|
+
null==l||l.removeEventListener("mouseup",Fe),null==l||l.removeEventListener("touchend",Fe),window.removeEventListener("message",Se),window.removeEventListener("resize",be),clearInterval(ke)})));return e.$$set=e=>{"endpoint"in e&&n(0,S=e.endpoint),"lang"in e&&n(1,T=e.lang),"session"in e&&n(2,M=e.session),"userid"in e&&n(3,k=e.userid),"clientstyling"in e&&n(4,D=e.clientstyling),"clientstylingurl"in e&&n(5,P=e.clientstylingurl),"translationurl"in e&&n(51,F=e.translationurl),"gmversion"in e&&n(6,A=e.gmversion),"loginurl"in e&&n(52,H=e.loginurl),"registerurl"in e&&n(53,C=e.registerurl),"depositurl"in e&&n(7,B=e.depositurl),"loginevent"in e&&n(54,N=e.loginevent),"registerevent"in e&&n(55,L=e.registerevent),"depositevent"in e&&n(56,R=e.depositevent),"shortcashierenabled"in e&&n(8,I=e.shortcashierenabled),"hasdefaultamount"in e&&n(9,$=e.hasdefaultamount),"playercurrency"in e&&n(10,Y=e.playercurrency),"clockformat"in e&&n(57,U=e.clockformat),"haspanicbutton"in e&&n(11,G=e.haspanicbutton),"playforfun"in e&&n(58,j=e.playforfun),"checksession"in e&&n(59,W=e.checksession),"gamebanneractive"in e&&n(12,V=e.gamebanneractive),"gameid"in e&&n(60,z=e.gameid),"producttype"in e&&n(13,se=e.producttype),"successurl"in e&&n(14,ae=e.successurl),"failurl"in e&&n(15,le=e.failurl),"cancelurl"in e&&n(16,ue=e.cancelurl),"sportsurl"in e&&n(17,ce=e.sportsurl),"casinourl"in e&&n(18,he=e.casinourl),"contacturl"in e&&n(19,de=e.contacturl),"homeurl"in e&&n(20,fe=e.homeurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&T&&xe(),/*shortcashierenabled*/256&e.$$.dirty[0]&&(r="true"===I.toLocaleLowerCase()),/*endpoint, lang*/3&e.$$.dirty[0]|/*gameid*/536870912&e.$$.dirty[1]&&S&&z&&T&&pe(z),/*session, userid, endpoint*/13&e.$$.dirty[0]&&M&&k&&S&&De(),/*clientstyling, customStylingContainer*/4194320&e.$$.dirty[0]&&D&&w&&(()=>{let e=document.createElement("style");e.innerHTML=D,w.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4194336&e.$$.dirty[0]&&P&&w&&(()=>{let e=document.createElement("style");if(P){let t=new URL(P);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/2097152&e.$$.dirty[0]&&l&&(null==l||l.addEventListener("mousedown",Pe,!1),null==l||l.addEventListener("touchstart",Pe,!1),
|
|
1343
1343
|
// on mouseup stop interval count
|
|
1344
|
-
null==l||l.addEventListener("mouseup",Fe,!1),null==l||l.addEventListener("touchend",Fe,!1)),/*translationurl*/1048576&e.$$.dirty[1]&&F&&fetch(F).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)}))},[S,T,M,x,D,P,H,B,I,$,Y,G,V,se,ae,le,ue,ce,he,de,fe,l,w,o,s,Z,X,q,J,h,ee,te,d,f,p,m,ne,b,v,ie,_,E,oe,i,re,ve,we,_e,Ee,Me,Oe,F,A,C,N,L,R,U,j,W,z,()=>Oe(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(41,E)}))},()=>_e(),e=>Ee(e),e=>Ee(e),function(e){O[e?"unshift":"push"]((()=>{s=e,n(24,s)}))},function(e){O[e?"unshift":"push"]((()=>{l=e,n(21,l)}))},()=>Me(),()=>Me(),function(e){O[e?"unshift":"push"]((()=>{_=e,n(40,_)}))},function(e){O[e?"unshift":"push"]((()=>{m=e,n(35,m)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(32,d)}))},()=>Oe(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(41,E)}))},function(e){O[e?"unshift":"push"]((()=>{s=e,n(24,s)}))},()=>ve(),()=>we(),()=>Me(),()=>Me(),function(e){O[e?"unshift":"push"]((()=>{_=e,n(40,_)}))},function(e){O[e?"unshift":"push"]((()=>{m=e,n(35,m)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(32,d)}))},function(e){O[e?"unshift":"push"]((()=>{w=e,n(22,w)}))}]}class ai extends G{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},si,oi,o,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:51,gmversion:6,loginurl:52,registerurl:53,depositurl:7,loginevent:54,registerevent:55,depositevent:56,shortcashierenabled:8,hasdefaultamount:9,playercurrency:10,clockformat:57,haspanicbutton:11,playforfun:58,checksession:59,gamebanneractive:12,gameid:60,producttype:13,successurl:14,failurl:15,cancelurl:16,sportsurl:17,casinourl:18,contacturl:19,homeurl:20},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","gmversion","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),L()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),L()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),L()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),L()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),L()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),L()}get translationurl(){return this.$$.ctx[51]}set translationurl(e){this.$$set({translationurl:e}),L()}get gmversion(){return this.$$.ctx[6]}set gmversion(e){this.$$set({gmversion:e}),L()}get loginurl(){return this.$$.ctx[52]}set loginurl(e){this.$$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[53]}set registerurl(e){this.$$set({registerurl:e}),L()}get depositurl(){return this.$$.ctx[7]}set depositurl(e){this.$$set({depositurl:e}),L()}get loginevent(){return this.$$.ctx[54]}set loginevent(e){this.$$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[55]}set registerevent(e){this.$$set({registerevent:e}),L()}get depositevent(){return this.$$.ctx[56]}set depositevent(e){this.$$set({depositevent:e}),L()}get shortcashierenabled(){return this.$$.ctx[8]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),L()}get hasdefaultamount(){return this.$$.ctx[9]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),L()}get playercurrency(){return this.$$.ctx[10]}set playercurrency(e){this.$$set({playercurrency:e}),L()}get clockformat(){return this.$$.ctx[57]}set clockformat(e){this.$$set({clockformat:e}),L()}get haspanicbutton(){return this.$$.ctx[11]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),L()}get playforfun(){return this.$$.ctx[58]}set playforfun(e){this.$$set({playforfun:e}),L()}get checksession(){return this.$$.ctx[59]}set checksession(e){this.$$set({checksession:e}),L()}get gamebanneractive(){return this.$$.ctx[12]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),L()}get gameid(){return this.$$.ctx[60]}set gameid(e){this.$$set({gameid:e}),L()}get producttype(){return this.$$.ctx[13]}set producttype(e){this.$$set({producttype:e}),L()}get successurl(){return this.$$.ctx[14]}set successurl(e){this.$$set({successurl:e}),L()}get failurl(){return this.$$.ctx[15]}set failurl(e){this.$$set({failurl:e}),L()}get cancelurl(){return this.$$.ctx[16]}set cancelurl(e){this.$$set({cancelurl:e}),L()}get sportsurl(){return this.$$.ctx[17]}set sportsurl(e){this.$$set({sportsurl:e}),L()}get casinourl(){return this.$$.ctx[18]}set casinourl(e){this.$$set({casinourl:e}),L()}get contacturl(){return this.$$.ctx[19]}set contacturl(e){this.$$set({contacturl:e}),L()}get homeurl(){return this.$$.ctx[20]}set homeurl(e){this.$$set({homeurl:e}),L()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",ai),ai}));
|
|
1344
|
+
null==l||l.addEventListener("mouseup",Fe,!1),null==l||l.addEventListener("touchend",Fe,!1)),/*translationurl*/1048576&e.$$.dirty[1]&&F&&fetch(F).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)}))},[S,T,M,k,D,P,A,B,I,$,Y,G,V,se,ae,le,ue,ce,he,de,fe,l,w,o,s,Z,X,q,J,h,ee,te,d,f,p,m,ne,b,v,ie,_,E,oe,i,re,ve,we,_e,Ee,Me,Oe,F,H,C,N,L,R,U,j,W,z,()=>Oe(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(41,E)}))},()=>_e(),e=>Ee(e),e=>Ee(e),function(e){O[e?"unshift":"push"]((()=>{s=e,n(24,s)}))},function(e){O[e?"unshift":"push"]((()=>{l=e,n(21,l)}))},()=>Me(),()=>Me(),function(e){O[e?"unshift":"push"]((()=>{_=e,n(40,_)}))},function(e){O[e?"unshift":"push"]((()=>{m=e,n(35,m)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(32,d)}))},()=>Oe(),function(e){O[e?"unshift":"push"]((()=>{E=e,n(41,E)}))},function(e){O[e?"unshift":"push"]((()=>{s=e,n(24,s)}))},()=>ve(),()=>we(),()=>Me(),()=>Me(),function(e){O[e?"unshift":"push"]((()=>{_=e,n(40,_)}))},function(e){O[e?"unshift":"push"]((()=>{m=e,n(35,m)}))},function(e){O[e?"unshift":"push"]((()=>{d=e,n(32,d)}))},function(e){O[e?"unshift":"push"]((()=>{w=e,n(22,w)}))}]}class ai extends G{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},si,oi,o,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:51,gmversion:6,loginurl:52,registerurl:53,depositurl:7,loginevent:54,registerevent:55,depositevent:56,shortcashierenabled:8,hasdefaultamount:9,playercurrency:10,clockformat:57,haspanicbutton:11,playforfun:58,checksession:59,gamebanneractive:12,gameid:60,producttype:13,successurl:14,failurl:15,cancelurl:16,sportsurl:17,casinourl:18,contacturl:19,homeurl:20},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","gmversion","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),L()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),L()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),L()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),L()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),L()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),L()}get translationurl(){return this.$$.ctx[51]}set translationurl(e){this.$$set({translationurl:e}),L()}get gmversion(){return this.$$.ctx[6]}set gmversion(e){this.$$set({gmversion:e}),L()}get loginurl(){return this.$$.ctx[52]}set loginurl(e){this.$$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[53]}set registerurl(e){this.$$set({registerurl:e}),L()}get depositurl(){return this.$$.ctx[7]}set depositurl(e){this.$$set({depositurl:e}),L()}get loginevent(){return this.$$.ctx[54]}set loginevent(e){this.$$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[55]}set registerevent(e){this.$$set({registerevent:e}),L()}get depositevent(){return this.$$.ctx[56]}set depositevent(e){this.$$set({depositevent:e}),L()}get shortcashierenabled(){return this.$$.ctx[8]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),L()}get hasdefaultamount(){return this.$$.ctx[9]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),L()}get playercurrency(){return this.$$.ctx[10]}set playercurrency(e){this.$$set({playercurrency:e}),L()}get clockformat(){return this.$$.ctx[57]}set clockformat(e){this.$$set({clockformat:e}),L()}get haspanicbutton(){return this.$$.ctx[11]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),L()}get playforfun(){return this.$$.ctx[58]}set playforfun(e){this.$$set({playforfun:e}),L()}get checksession(){return this.$$.ctx[59]}set checksession(e){this.$$set({checksession:e}),L()}get gamebanneractive(){return this.$$.ctx[12]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),L()}get gameid(){return this.$$.ctx[60]}set gameid(e){this.$$set({gameid:e}),L()}get producttype(){return this.$$.ctx[13]}set producttype(e){this.$$set({producttype:e}),L()}get successurl(){return this.$$.ctx[14]}set successurl(e){this.$$set({successurl:e}),L()}get failurl(){return this.$$.ctx[15]}set failurl(e){this.$$set({failurl:e}),L()}get cancelurl(){return this.$$.ctx[16]}set cancelurl(e){this.$$set({cancelurl:e}),L()}get sportsurl(){return this.$$.ctx[17]}set sportsurl(e){this.$$set({sportsurl:e}),L()}get casinourl(){return this.$$.ctx[18]}set casinourl(e){this.$$set({casinourl:e}),L()}get contacturl(){return this.$$.ctx[19]}set contacturl(e){this.$$set({contacturl:e}),L()}get homeurl(){return this.$$.ctx[20]}set homeurl(e){this.$$set({homeurl:e}),L()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",ai),ai}));
|
|
1345
1345
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|