@everymatrix/casino-random-game 0.0.281 → 0.0.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-random-game.js +20 -20
- package/dist/casino-random-game.js.map +1 -1
- package/package.json +2 -2
- package/src/translations.js +22 -1
|
@@ -33,7 +33,7 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
|
|
|
33
33
|
// preserve final state?)
|
|
34
34
|
r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
|
|
35
35
|
// TODO should this delegate to addEventListener?
|
|
36
|
-
const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var
|
|
36
|
+
const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var G="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==G&&G,U="URLSearchParams"in G,D="Symbol"in G&&"iterator"in Symbol,F="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(t){return!1}}(),k="FormData"in G,j="ArrayBuffer"in G;if(j)var $=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],B=ArrayBuffer.isView||function(t){return t&&$.indexOf(Object.prototype.toString.call(t))>-1};function V(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function z(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
37
37
|
// Build a destructive iterator for the value list
|
|
38
38
|
function X(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return D&&(e[Symbol.iterator]=function(){return e}),e}function W(t){this.map={},t instanceof W?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function H(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Y(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function q(t){var e=new FileReader,r=Y(e);return e.readAsArrayBuffer(t),r}function K(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
39
39
|
/*
|
|
@@ -46,21 +46,21 @@ function X(t){var e={next:function(){var e=t.shift();return{done:void 0===e,valu
|
|
|
46
46
|
semantic of setting Request.bodyUsed in the constructor before
|
|
47
47
|
_initBody is called.
|
|
48
48
|
*/
|
|
49
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:F&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:k&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:
|
|
49
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:F&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:k&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:U&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():j&&F&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=K(t.buffer),
|
|
50
50
|
// IE 10-11 can't handle a DataView body.
|
|
51
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):j&&(ArrayBuffer.prototype.isPrototypeOf(t)||B(t))?this._bodyArrayBuffer=K(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):
|
|
51
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):j&&(ArrayBuffer.prototype.isPrototypeOf(t)||B(t))?this._bodyArrayBuffer=K(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):U&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F&&(this.blob=function(){var t=H(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=H(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(q)}),this.text=function(){var t,e,r,n=H(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Y(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},k&&(this.formData=function(){return this.text().then(tt)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
52
52
|
// HTTP methods whose capitalization should be normalized
|
|
53
|
-
W.prototype.append=function(t,e){t=V(t),e=z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},W.prototype.delete=function(t){delete this.map[V(t)]},W.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},W.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},W.prototype.set=function(t,e){this.map[V(t)]=z(e)},W.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},W.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),X(t)},W.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),X(t)},W.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),X(t)},D&&(W.prototype[Symbol.iterator]=W.prototype.entries);var
|
|
53
|
+
W.prototype.append=function(t,e){t=V(t),e=z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},W.prototype.delete=function(t){delete this.map[V(t)]},W.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},W.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},W.prototype.set=function(t,e){this.map[V(t)]=z(e)},W.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},W.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),X(t)},W.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),X(t)},W.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),X(t)},D&&(W.prototype[Symbol.iterator]=W.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Q(t,e){if(!(this instanceof Q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof Q){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new W(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new W(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),J.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
|
|
54
54
|
// Search for a '_' parameter in the query string
|
|
55
55
|
var i=/([?&])_=[^&]*/;if(i.test(this.url))
|
|
56
56
|
// If it already exists then set the value with the current time
|
|
57
|
-
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function tt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function et(t,e){if(!(this instanceof et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new W(e.headers),this.url=e.url||"",this._initBody(t)}
|
|
57
|
+
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function tt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function et(t,e){if(!(this instanceof et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new W(e.headers),this.url=e.url||"",this._initBody(t)}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})},Z.call(Q.prototype),Z.call(et.prototype),et.prototype.clone=function(){return new et(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},et.error=function(){var t=new et(null,{status:0,statusText:""});return t.type="error",t};var rt=[301,302,303,307,308];et.redirect=function(t,e){if(-1===rt.indexOf(e))throw new RangeError("Invalid status code");return new et(null,{status:e,headers:{location:t}})};var nt=G.DOMException;try{new nt}catch(t){(nt=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),nt.prototype.constructor=nt}function ot(t,e){return new Promise((function(r,n){var o=new Q(t,e);if(o.signal&&o.signal.aborted)return n(new nt("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new W,
|
|
58
58
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
59
59
|
// https://github.com/github/fetch/issues/748
|
|
60
60
|
// https://github.com/zloirock/core-js/issues/751
|
|
61
|
-
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new et(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new nt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&
|
|
61
|
+
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new et(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new nt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&G.location.href?G.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(F?i.responseType="blob":j&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof W?o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){i.setRequestHeader(t,z(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
|
|
62
62
|
// DONE (success or failure)
|
|
63
|
-
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ot.polyfill=!0,
|
|
63
|
+
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ot.polyfill=!0,G.fetch||(G.fetch=ot,G.Headers=W,G.Request=Q,G.Response=et),
|
|
64
64
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
65
65
|
// on the global object (window or self)
|
|
66
66
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
@@ -80,7 +80,7 @@ self.fetch.bind(self);
|
|
|
80
80
|
PERFORMANCE OF THIS SOFTWARE.
|
|
81
81
|
***************************************************************************** */
|
|
82
82
|
/* global Reflect, Promise */
|
|
83
|
-
var it=function(t,e){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function st(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}it(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function at(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function ut(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function lt(t){return"function"==typeof t}function ft(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var pt=ft((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function ht(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var dt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=at(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(lt(c))try{c()}catch(t){o=t instanceof pt?t.errors:[t]}var u=this._teardowns;if(u){this._teardowns=null;try{for(var l=at(u),f=l.next();!f.done;f=l.next()){var p=f.value;try{gt(p)}catch(t){o=null!=o?o:[],t instanceof pt?o=ut(ut([],ct(o)),ct(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new pt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ht(e,t)},t.prototype.remove=function(e){var r=this._teardowns;r&&ht(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),mt=dt.EMPTY;function yt(t){return t instanceof dt||t&&"closed"in t&<(t.remove)&<(t.add)&<(t.unsubscribe)}function gt(t){lt(t)?t():t.unsubscribe()}var bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,ut([],ct(t)))};function Et(t){vt((function(){throw t}))}function _t(){}function wt(t){t()}var Tt=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,yt(e)&&e.add(r)):r.destination=Lt,r}return st(e,t),e.create=function(t,e,r){return new At(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(dt),At=function(t){function e(e,r,n){var o,i=t.call(this)||this;if(lt(e))o=e;else if(e){var s;o=e.next,r=e.error,n=e.complete,i&&bt.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:s=e,o=null==o?void 0:o.bind(s),r=null==r?void 0:r.bind(s),n=null==n?void 0:n.bind(s)}return i.destination={next:o?Pt(o):_t,error:Pt(null!=r?r:St),complete:n?Pt(n):_t},i}return st(e,t),e}(Tt);function Pt(t,e){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{t.apply(void 0,ut([],ct(e)))}catch(t){Et(t)}}}function St(t){throw t}var Lt={closed:!0,next:_t,error:St,complete:_t},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ot(t){return t}function xt(t){return 0===t.length?Ot:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Ct=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Tt||function(t){return t&<(t.next)&<(t.error)&<(t.complete)}(n)&&yt(n)?t:new At(t,e,r);return wt((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=It(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(t){n(t),null==o||o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Rt]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xt(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=It(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function It(t){var e;return null!==(e=null!=t?t:bt.Promise)&&void 0!==e?e:Promise}var Mt=ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Nt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return st(e,t),e.prototype.lift=function(t){var e=new Ut(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Mt},e.prototype.next=function(t){var e=this;wt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){var o=e.observers.slice();try{for(var i=at(o),s=i.next();!s.done;s=i.next()){s.value.next(t)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;wt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;wt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=e.hasError,n=e.isStopped,o=e.observers;return r||n?mt:(o.push(t),new dt((function(){return ht(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ct;return t.source=this,t},e.create=function(t,e){return new Ut(t,e)},e}(Ct),Ut=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return st(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:mt},e}(Nt),Gt={now:function(){return(Gt.delegate||Date).now()},delegate:void 0},Dt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Gt);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return st(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},e}(Nt);let Ft=[],kt={};
|
|
83
|
+
var it=function(t,e){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function st(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}it(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function at(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function ut(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function lt(t){return"function"==typeof t}function ft(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var pt=ft((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function ht(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var dt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=at(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(lt(c))try{c()}catch(t){o=t instanceof pt?t.errors:[t]}var u=this._teardowns;if(u){this._teardowns=null;try{for(var l=at(u),f=l.next();!f.done;f=l.next()){var p=f.value;try{gt(p)}catch(t){o=null!=o?o:[],t instanceof pt?o=ut(ut([],ct(o)),ct(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new pt(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ht(e,t)},t.prototype.remove=function(e){var r=this._teardowns;r&&ht(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),mt=dt.EMPTY;function yt(t){return t instanceof dt||t&&"closed"in t&<(t.remove)&<(t.add)&<(t.unsubscribe)}function gt(t){lt(t)?t():t.unsubscribe()}var bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,ut([],ct(t)))};function Et(t){vt((function(){throw t}))}function _t(){}function wt(t){t()}var Tt=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,yt(e)&&e.add(r)):r.destination=Lt,r}return st(e,t),e.create=function(t,e,r){return new At(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(dt),At=function(t){function e(e,r,n){var o,i=t.call(this)||this;if(lt(e))o=e;else if(e){var s;o=e.next,r=e.error,n=e.complete,i&&bt.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:s=e,o=null==o?void 0:o.bind(s),r=null==r?void 0:r.bind(s),n=null==n?void 0:n.bind(s)}return i.destination={next:o?Pt(o):_t,error:Pt(null!=r?r:St),complete:n?Pt(n):_t},i}return st(e,t),e}(Tt);function Pt(t,e){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{t.apply(void 0,ut([],ct(e)))}catch(t){Et(t)}}}function St(t){throw t}var Lt={closed:!0,next:_t,error:St,complete:_t},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ot(t){return t}function xt(t){return 0===t.length?Ot:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Ct=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Tt||function(t){return t&<(t.next)&<(t.error)&<(t.complete)}(n)&&yt(n)?t:new At(t,e,r);return wt((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=It(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(t){n(t),null==o||o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Rt]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xt(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=It(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function It(t){var e;return null!==(e=null!=t?t:bt.Promise)&&void 0!==e?e:Promise}var Mt=ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Nt=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return st(e,t),e.prototype.lift=function(t){var e=new Gt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Mt},e.prototype.next=function(t){var e=this;wt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){var o=e.observers.slice();try{for(var i=at(o),s=i.next();!s.done;s=i.next()){s.value.next(t)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;wt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;wt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=e.hasError,n=e.isStopped,o=e.observers;return r||n?mt:(o.push(t),new dt((function(){return ht(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ct;return t.source=this,t},e.create=function(t,e){return new Gt(t,e)},e}(Ct),Gt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return st(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:mt},e}(Nt),Ut={now:function(){return(Ut.delegate||Date).now()},delegate:void 0},Dt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Ut);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return st(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},e}(Nt);let Ft=[],kt={};
|
|
84
84
|
/**
|
|
85
85
|
* @name topic
|
|
86
86
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -103,7 +103,7 @@ function qt(t,e,r){var n={};return r.isMergeableObject(t)&&Ht(t).forEach((functi
|
|
|
103
103
|
})(t,o)||(Yt(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return Kt;var r=e.customMerge(t);return"function"==typeof r?r:Kt}(o,r)(t[o],e[o],r):n[o]=Xt(e[o],r))})),n}function Kt(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Wt,r.isMergeableObject=r.isMergeableObject||Vt,
|
|
104
104
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
105
105
|
// implementations can use it. The caller may not replace it.
|
|
106
|
-
r.cloneUnlessOtherwiseSpecified=Xt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):qt(t,e,r):Xt(e,r)}Kt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Kt(t,r,e)}),{})};var Zt=Kt,
|
|
106
|
+
r.cloneUnlessOtherwiseSpecified=Xt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):qt(t,e,r):Xt(e,r)}Kt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Kt(t,r,e)}),{})};var Zt=Kt,Jt=function(t,e){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Qt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Jt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var te,ee,re,ne=function(){return(ne=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function oe(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}
|
|
107
107
|
/**
|
|
108
108
|
* Type Guards
|
|
109
109
|
*/
|
|
@@ -276,7 +276,7 @@ return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDi
|
|
|
276
276
|
else if(we.test(o.stem))e=ne(ne({},e),Pe(o.stem));else{var i=Se(o.stem);i&&(e=ne(ne({},e),i));var s=Le(o.stem);s&&(e=ne(ne({},e),s))}}return e}var xe=new RegExp("^"+ye.source+"*"),Ce=new RegExp(ye.source+"*$");function Ie(t,e){return{start:t,end:e}}
|
|
277
277
|
// #region Ponyfills
|
|
278
278
|
// Consolidate these variables up top for easier toggling during debugging
|
|
279
|
-
var Me=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,
|
|
279
|
+
var Me=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Ge=!!Object.fromEntries,Ue=!!String.prototype.codePointAt,De=!!String.prototype.trimStart,Fe=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},je=!0;try{
|
|
280
280
|
/**
|
|
281
281
|
* legacy Edge or Xbox One browser
|
|
282
282
|
* Unicode flag support: supported
|
|
@@ -288,8 +288,8 @@ function(t,e,r){return t.startsWith(e,r)}:// For IE11
|
|
|
288
288
|
function(t,e,r){return t.slice(r,r+e.length)===e},Ve=Ne?String.fromCodePoint:// IE11
|
|
289
289
|
function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},ze=
|
|
290
290
|
// native
|
|
291
|
-
|
|
292
|
-
function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Xe=
|
|
291
|
+
Ge?Object.fromEntries:// Ponyfill
|
|
292
|
+
function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Xe=Ue?// Native
|
|
293
293
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
294
294
|
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},We=De?// Native
|
|
295
295
|
function(t){return t.trimStart()}:// Ponyfill
|
|
@@ -303,7 +303,7 @@ if(je){
|
|
|
303
303
|
// Native
|
|
304
304
|
var qe=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(t,e){var r;return qe.lastIndex=e,null!==(r=qe.exec(t)[1])&&void 0!==r?r:""}}else
|
|
305
305
|
// IE11
|
|
306
|
-
$e=function(t,e){for(var r=[];;){var n=Xe(t,e);if(void 0===n||
|
|
306
|
+
$e=function(t,e){for(var r=[];;){var n=Xe(t,e);if(void 0===n||Qe(n)||tr(n))break;r.push(n),e+=n>=65536?2:1}return Ve.apply(void 0,r)};var Ke=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(te.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Ze(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ee.pound,location:Ie(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
307
307
|
/**
|
|
308
308
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
309
309
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -332,7 +332,7 @@ if(this.bumpIf("</")){if(this.isEOF()||!Ze(this.char()))return this.error(te.INV
|
|
|
332
332
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
333
333
|
*/
|
|
334
334
|
t.prototype.parseTagName=function(){var t=this.offset();// the first tag name character
|
|
335
|
-
for(this.bump();!this.isEOF()&&
|
|
335
|
+
for(this.bump();!this.isEOF()&&Je(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ie(r,this.clonePosition());return{val:{type:ee.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Ze(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
|
|
336
336
|
/** See `parseTag` function docs. */},
|
|
337
337
|
/**
|
|
338
338
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -467,7 +467,7 @@ t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e
|
|
|
467
467
|
*/
|
|
468
468
|
t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},
|
|
469
469
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
470
|
-
t.prototype.bumpSpace=function(){for(;!this.isEOF()&&
|
|
470
|
+
t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qe(this.char());)this.bump()},
|
|
471
471
|
/**
|
|
472
472
|
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
473
473
|
* If the input has been exhausted, then this returns null.
|
|
@@ -477,11 +477,11 @@ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this
|
|
|
477
477
|
* This check if codepoint is alphabet (lower & uppercase)
|
|
478
478
|
* @param codepoint
|
|
479
479
|
* @returns
|
|
480
|
-
*/function Ze(t){return t>=97&&t<=122||t>=65&&t<=90}function
|
|
480
|
+
*/function Ze(t){return t>=97&&t<=122||t>=65&&t<=90}function Je(t){return 45/* '-' */===t||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}
|
|
481
481
|
/**
|
|
482
482
|
* Code point equivalent of regex `\p{White_Space}`.
|
|
483
483
|
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
484
|
-
*/function
|
|
484
|
+
*/function Qe(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
|
|
485
485
|
/**
|
|
486
486
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
487
487
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
@@ -511,7 +511,7 @@ t.MISSING_VALUE="MISSING_VALUE",
|
|
|
511
511
|
// When value supplied is invalid
|
|
512
512
|
t.INVALID_VALUE="INVALID_VALUE",
|
|
513
513
|
// When we need specific Intl API but it's not available
|
|
514
|
-
t.MISSING_INTL_API="MISSING_INTL_API"}(lr||(lr={}));var hr,dr=/** @class */function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return
|
|
514
|
+
t.MISSING_INTL_API="MISSING_INTL_API"}(lr||(lr={}));var hr,dr=/** @class */function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return Qt(e,t),e.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},e}(Error),mr=/** @class */function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'+e+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',lr.INVALID_VALUE,o)||this}return Qt(e,t),e}(dr),yr=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'+e+'" must be of type '+r,lr.INVALID_VALUE,n)||this}return Qt(e,t),e}(dr),gr=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+r+'"',lr.MISSING_VALUE,r)||this}return Qt(e,t),e}(dr);function br(t){return"function"==typeof t}
|
|
515
515
|
// TODO(skeleton): add skeleton support
|
|
516
516
|
function vr(t,e,r,n,o,i,
|
|
517
517
|
// For debugging
|
|
@@ -548,7 +548,7 @@ this.locales=r,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache
|
|
|
548
548
|
// Default format options used as the prototype of the `formats` provided to the
|
|
549
549
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
550
550
|
// and Intl.DateTimeFormat instances.
|
|
551
|
-
t.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"}}},t}();const Tr={},Ar=(t,e,r)=>r?(e in Tr||(Tr[e]={}),t in Tr[e]||(Tr[e][t]=r),r):r,Pr=(t,e)=>{if(null==e)return;if(e in Tr&&t in Tr[e])return Tr[e][t];const r=Vr(e);for(let n=0;n<r.length;n++){const o=Or(r[n],t);if(o)return Ar(t,e,o)}};let Sr;const Lr=$t({});function Rr(t){return t in Sr}function Or(t,e){return Rr(t)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return Sr[t]||null}(t),e):null}function xr(t,...e){delete Tr[t],Lr.update((r=>(r[t]=Zt.all([r[t]||{},...e]),r)))}Bt([Lr],(([t])=>Object.keys(t))),Lr.subscribe((t=>Sr=t));const Cr={};function Ir(t){return Cr[t]}function Mr(t){return Vr(t).some((t=>{var e;return null===(e=Ir(t))||void 0===e?void 0:e.size}))}const Nr={};function
|
|
551
|
+
t.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"}}},t}();const Tr={},Ar=(t,e,r)=>r?(e in Tr||(Tr[e]={}),t in Tr[e]||(Tr[e][t]=r),r):r,Pr=(t,e)=>{if(null==e)return;if(e in Tr&&t in Tr[e])return Tr[e][t];const r=Vr(e);for(let n=0;n<r.length;n++){const o=Or(r[n],t);if(o)return Ar(t,e,o)}};let Sr;const Lr=$t({});function Rr(t){return t in Sr}function Or(t,e){return Rr(t)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return Sr[t]||null}(t),e):null}function xr(t,...e){delete Tr[t],Lr.update((r=>(r[t]=Zt.all([r[t]||{},...e]),r)))}Bt([Lr],(([t])=>Object.keys(t))),Lr.subscribe((t=>Sr=t));const Cr={};function Ir(t){return Cr[t]}function Mr(t){return Vr(t).some((t=>{var e;return null===(e=Ir(t))||void 0===e?void 0:e.size}))}const Nr={};function Gr(t){if(!Mr(t))return t in Nr?Nr[t]:void 0;const e=function(t){return Vr(t).map((t=>{const e=Ir(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Nr[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){Cr[t].delete(e),0===Cr[t].size&&delete Cr[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>xr(t,...e)))}(t,e)))).then((()=>{if(Mr(t))return Gr(t);delete Nr[t]})),Nr[t]}
|
|
552
552
|
/*! *****************************************************************************
|
|
553
553
|
Copyright (c) Microsoft Corporation.
|
|
554
554
|
|
|
@@ -562,7 +562,7 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
562
562
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
563
563
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
564
564
|
PERFORMANCE OF THIS SOFTWARE.
|
|
565
|
-
***************************************************************************** */function
|
|
565
|
+
***************************************************************************** */function Ur(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}const Dr={fallbackLocale:null,initialLocale: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,ignoreTag:!0};function Fr(){return Dr}const kr=$t(!1);let jr;const $r=$t(null);function Br(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Vr(t,e=Fr().fallbackLocale){const r=Br(t);return e?[...new Set([...r,...Br(e)])]:r}function zr(){return jr}$r.subscribe((t=>{jr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)}));const Xr=$r.set;$r.set=t=>{if(function(t){if(null==t)return;const e=Vr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Rr(r))return r}}(t)&&Mr(t)){const{loadingDelay:e}=Fr();let r;return"undefined"!=typeof window&&null!=zr()&&e?r=window.setTimeout((()=>kr.set(!0)),e):kr.set(!0),Gr(t).then((()=>{Xr(t)})).finally((()=>{clearTimeout(r),kr.set(!1)}))}return Xr(t)},$r.update=t=>Xr(t(jr));const Wr=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Hr=(t,e)=>{const{formats:r}=Fr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Yr=Wr((t=>{var{locale:e,format:r}=t,n=Ur(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Hr("number",r)),new Intl.NumberFormat(e,n)})),qr=Wr((t=>{var{locale:e,format:r}=t,n=Ur(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Hr("date",r):0===Object.keys(n).length&&(n=Hr("date","short")),new Intl.DateTimeFormat(e,n)})),Kr=Wr((t=>{var{locale:e,format:r}=t,n=Ur(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Hr("time",r):0===Object.keys(n).length&&(n=Hr("time","short")),new Intl.DateTimeFormat(e,n)})),Zr=Wr(((t,e=zr())=>new wr(t,e,Fr().formats,{ignoreTag:Fr().ignoreTag}))),Jr=(t,e={})=>{"object"==typeof t&&(t=(e=t).id);const{values:r,locale:n=zr(),default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Pr(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Fr().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Vr(n).join('", "')}".${Mr(zr())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=Zr(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s},Qr=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Ur(t,["locale"]);return Kr(Object.assign({locale:e},r))})(e).format(t),tn=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Ur(t,["locale"]);return qr(Object.assign({locale:e},r))})(e).format(t),en=(t,e)=>((t={})=>{var{locale:e=zr()}=t,r=Ur(t,["locale"]);return Yr(Object.assign({locale:e},r))})(e).format(t),rn=(t,e=zr())=>Pr(t,e),nn=Bt([$r,Lr],(()=>Jr));Bt([$r],(()=>Qr)),Bt([$r],(()=>tn)),Bt([$r],(()=>en)),Bt([$r,Lr],(()=>rn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Ft.indexOf(t)){let r=new Dt(e);kt[t]=r,Ft.push(t)}return kt[t]}};const on={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}},tr:{randomGame:{playRandomGame:"Rasgele bir oyun oyna",randomGameLoading:"Seleccionando ...",playNowRandomGame:"Reproducir ahora"}},es:{randomGame:{playRandomGame:"Juega un juego aleatorio",randomGameLoading:"Lütfen bekleyin ...",playNowRandomGame:"Şimdi Oyna"}},pt:{randomGame:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}}};
|
|
566
566
|
/* src/CasinoRandomGame.svelte generated by Svelte v3.37.0 */function sn(t,e,r){const n=t.slice();return n[22]=e[r],n[24]=r,n}
|
|
567
567
|
// (77:4) {#if show}
|
|
568
568
|
function an(t){let e,r,n,o,i,s,f,m=!/*slotDone*/t[4]&&cn(t),y=/*slotDone*/t[4]&&ln(t);return{c(){e=l("div"),r=l("div"),n=l("span"),n.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',o=p(),m&&m.c(),i=p(),y&&y.c(),d(n,"class","ModalCloseBtn"),d(n,"part","ModalCloseBtn"),d(n,"role","button"),d(r,"class","ModalContainer"),d(r,"part","ModalContainer"),d(e,"class","ModalWindow"),d(e,"part","ModalWindow")},m(u,l){c(u,e,l),a(e,r),a(r,n),a(r,o),m&&m.m(r,null),a(r,i),y&&y.m(r,null),s||(f=h(n,"click",/*closeModal*/t[8]),s=!0)},p(t,e){/*slotDone*/t[4]?m&&(m.d(1),m=null):m?m.p(t,e):(m=cn(t),m.c(),m.m(r,i)),/*slotDone*/t[4]?y?y.p(t,e):(y=ln(t),y.c(),y.m(r,null)):y&&(y.d(1),y=null)},d(t){t&&u(e),m&&m.d(),y&&y.d(),s=!1,f()}}}
|