@everymatrix/player-account-gaming-limits-page-2-gmcore 0.0.376 → 0.0.378
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
|
-
|
|
1
|
+
"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function u(t,e,r){t.insertBefore(e,r||null)}function l(t){t.parentNode.removeChild(t)}function c(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function h(t){return document.createElement(t)}function p(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function d(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function g(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t){return""===t?null:+t}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function v(t,e){t.value=null==e?"":e}function E(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function T(t,e){for(let r=0;r<t.options.length;r+=1){const n=t.options[r];if(n.__value===e)return void(n.selected=!0)}t.selectedIndex=-1}function _(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function L(t){const e={};for(const r of t)e[r.name]=r.value;return e}let w;function A(t){w=t}const B=[],S=[],H=[],P=[],O=Promise.resolve();let I=!1;function x(t){H.push(t)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -55,17 +55,17 @@ r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
|
|
|
55
55
|
// TODO should this delegate to addEventListener?
|
|
56
56
|
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)}});const G={deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",periods:["Daily","Weekly","Monthly"]},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",periods:["Daily","Weekly","Monthly"]},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",periods:["Monthly"]},stake:{title:"Stake Limit",value:"stake",callValue:"stakeLimit",periods:["Monthly"]}},F=[];
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
59
|
+
* @param {*=}value initial value
|
|
60
|
+
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
61
|
+
*/
|
|
62
62
|
function j(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
|
|
63
63
|
const t=!F.length;for(const t of i)t[1](),F.push(t,e);if(t){for(let t=0;t<F.length;t+=2)F[t][0](F[t+1]);F.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const u=[o,a];return i.add(u),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(u),0===i.size&&(n(),n=null)}}}}function V(e,r,o){const a=!Array.isArray(e),u=a?[e]:e,l=r.length<2;return c=e=>{let o=!1;const c=[];let h=0,p=t;const f=()=>{if(h)return;p();const n=r(a?c[0]:c,e);l?e(n):p=i(n)?n:t},m=u.map(((t,e)=>s(t,(t=>{c[e]=t,h&=~(1<<e),o&&f()}),(()=>{h|=1<<e}))));return o=!0,f(),function(){n(m),p()}},{subscribe:j(o,c).subscribe};
|
|
64
64
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
* Creates a `Readable` store that allows reading by subscription.
|
|
66
|
+
* @param value initial value
|
|
67
|
+
* @param {StartStopNotifier}start start and stop notifications for subscriptions
|
|
68
|
+
*/
|
|
69
69
|
var c}var W=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===X}(t)}
|
|
70
70
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
71
71
|
(t)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(t,e){return!1!==e.clone&&e.isMergeableObject(t)?J((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function K(t,e,r){return t.concat(e).map((function(t){return z(t,r)}))}function Y(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}
|
|
@@ -76,8 +76,8 @@ function q(t,e,r){var n={};return r.isMergeableObject(t)&&Y(t).forEach((function
|
|
|
76
76
|
// implementations can use it. The caller may not replace it.
|
|
77
77
|
r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):q(t,e,r):z(e,r)}J.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return J(t,r,e)}),{})};var Q=J,tt=function(t,e){return tt=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])},tt(t,e)};function et(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}tt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var rt,nt,it,ot=function(){return ot=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ot.apply(this,arguments)};function st(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
* Type Guards
|
|
80
|
+
*/
|
|
81
81
|
function at(t){return t.type===nt.literal}function ut(t){return t.type===nt.argument}function lt(t){return t.type===nt.number}function ct(t){return t.type===nt.date}function ht(t){return t.type===nt.time}function pt(t){return t.type===nt.select}function ft(t){return t.type===nt.plural}function mt(t){return t.type===nt.pound}function dt(t){return t.type===nt.tag}function gt(t){return!(!t||"object"!=typeof t||t.type!==it.number)}function yt(t){return!(!t||"object"!=typeof t||t.type!==it.dateTime)}
|
|
82
82
|
// @generated from regex-gen.ts
|
|
83
83
|
!function(t){
|
|
@@ -116,20 +116,20 @@ t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
|
|
|
116
116
|
/** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
|
|
117
117
|
t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
|
|
118
118
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
* Expecting a message fragment after the `plural` or `selectordinal` selector
|
|
120
|
+
* (e.g. `{foo, plural, one}`)
|
|
121
|
+
*/
|
|
122
122
|
t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
|
|
123
123
|
/** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
|
|
124
124
|
t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
|
|
125
125
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
* Duplicate selectors in `plural` or `selectordinal` argument.
|
|
127
|
+
* (e.g. {foo, plural, one {#} one {#}})
|
|
128
|
+
*/
|
|
129
129
|
t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
|
|
130
130
|
/** Duplicate selectors in `select` argument.
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
* (e.g. {foo, select, apple {apple} apple {apple}})
|
|
132
|
+
*/
|
|
133
133
|
t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
|
|
134
134
|
/** Plural or select argument option must have `other` clause. */
|
|
135
135
|
t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
|
|
@@ -142,53 +142,53 @@ t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
|
|
|
142
142
|
/** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
|
|
143
143
|
t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(rt||(rt={})),function(t){
|
|
144
144
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
* Raw text
|
|
146
|
+
*/
|
|
147
147
|
t[t.literal=0]="literal",
|
|
148
148
|
/**
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
* Variable w/o any format, e.g `var` in `this is a {var}`
|
|
150
|
+
*/
|
|
151
151
|
t[t.argument=1]="argument",
|
|
152
152
|
/**
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
* Variable w/ number format
|
|
154
|
+
*/
|
|
155
155
|
t[t.number=2]="number",
|
|
156
156
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
* Variable w/ date format
|
|
158
|
+
*/
|
|
159
159
|
t[t.date=3]="date",
|
|
160
160
|
/**
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
* Variable w/ time format
|
|
162
|
+
*/
|
|
163
163
|
t[t.time=4]="time",
|
|
164
164
|
/**
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
* Variable w/ select format
|
|
166
|
+
*/
|
|
167
167
|
t[t.select=5]="select",
|
|
168
168
|
/**
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
* Variable w/ plural format
|
|
170
|
+
*/
|
|
171
171
|
t[t.plural=6]="plural",
|
|
172
172
|
/**
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
* Only possible within plural argument.
|
|
174
|
+
* This is the `#` symbol that will be substituted with the count.
|
|
175
|
+
*/
|
|
176
176
|
t[t.pound=7]="pound",
|
|
177
177
|
/**
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
* XML-like tag
|
|
179
|
+
*/
|
|
180
180
|
t[t.tag=8]="tag"}(nt||(nt={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(it||(it={}));var bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
181
181
|
/**
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
* https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
183
|
+
* Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
|
|
184
|
+
* with some tweaks
|
|
185
|
+
*/
|
|
186
186
|
/**
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
187
|
+
* Parse Date time skeleton into Intl.DateTimeFormatOptions
|
|
188
|
+
* Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
189
|
+
* @public
|
|
190
|
+
* @param skeleton skeleton string
|
|
191
|
+
*/
|
|
192
192
|
function Et(t){var e={};return t.replace(vt,(function(t){var r=t.length;switch(t[0]){
|
|
193
193
|
// Era
|
|
194
194
|
case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
|
|
@@ -229,8 +229,8 @@ return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignifica
|
|
|
229
229
|
// Engineering
|
|
230
230
|
var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!At.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Pt(t){var e=St(t);return e||{}}
|
|
231
231
|
/**
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
233
|
+
*/function Ot(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=ot(ot(ot({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return ot(ot({},t),Pt(e))}),{}));continue;case"engineering":e=ot(ot(ot({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return ot(ot({},t),Pt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
|
|
234
234
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
235
235
|
case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;
|
|
236
236
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
@@ -251,17 +251,17 @@ else if(Lt.test(i.stem))e=ot(ot({},e),Bt(i.stem));else{var s=St(i.stem);s&&(e=ot
|
|
|
251
251
|
// prettier-ignore
|
|
252
252
|
var It,xt={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"]};
|
|
253
253
|
/**
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
254
|
+
* Returns the best matching date time pattern if a date time skeleton
|
|
255
|
+
* pattern is provided with a locale. Follows the Unicode specification:
|
|
256
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
|
|
257
|
+
* @param skeleton date time skeleton pattern that possibly includes j, J or C
|
|
258
|
+
* @param locale
|
|
259
|
+
*/
|
|
260
|
+
/**
|
|
261
|
+
* Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
|
|
262
|
+
* of the given `locale` to the corresponding time pattern.
|
|
263
|
+
* @param locale
|
|
264
|
+
*/
|
|
265
265
|
function Ct(t){var e=t.hourCycle;if(void 0===e&&
|
|
266
266
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
267
267
|
t.hourCycles&&
|
|
@@ -275,11 +275,11 @@ var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(xt[r||""]||xt[n||"
|
|
|
275
275
|
// Consolidate these variables up top for easier toggling during debugging
|
|
276
276
|
var Dt=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,$t=!!Object.fromEntries,kt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,jt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Vt=!0;try{
|
|
277
277
|
/**
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
278
|
+
* legacy Edge or Xbox One browser
|
|
279
|
+
* Unicode flag support: supported
|
|
280
|
+
* Pattern_Syntax support: not supported
|
|
281
|
+
* See https://github.com/formatjs/formatjs/issues/2822
|
|
282
|
+
*/
|
|
283
283
|
Vt="a"===(null===(It=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===It?void 0:It[0])}catch(t){Vt=!1}var Wt,Xt=Dt?// Native
|
|
284
284
|
function(t,e,r){return t.startsWith(e,r)}:// For IE11
|
|
285
285
|
function(t,e,r){return t.slice(r,r+e.length)===e},zt=Ut?String.fromCodePoint:// IE11
|
|
@@ -302,23 +302,23 @@ var Qt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wt=function(t,e){var
|
|
|
302
302
|
// IE11
|
|
303
303
|
Wt=function(t,e){for(var r=[];;){var n=Yt(t,e);if(void 0===n||ne(n)||ie(n))break;r.push(n),e+=n>=65536?2:1}return zt.apply(void 0,r)};var te=/** @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.locale=e.locale,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 i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(rt.UNMATCHED_CLOSING_TAG,Mt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&ee(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:nt.pound,location:Mt(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
304
304
|
/**
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
305
|
+
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
306
|
+
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
307
|
+
* are accepted:
|
|
308
|
+
*
|
|
309
|
+
* ```
|
|
310
|
+
* tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
|
|
311
|
+
* tagName ::= [a-z] (PENChar)*
|
|
312
|
+
* PENChar ::=
|
|
313
|
+
* "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
|
|
314
|
+
* [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
|
|
315
|
+
* [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
|
|
319
|
+
* NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
|
|
320
|
+
* since other tag-based engines like React allow it
|
|
321
|
+
*/
|
|
322
322
|
t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
|
|
323
323
|
var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
324
324
|
// Self closing tag
|
|
@@ -326,16 +326,16 @@ return{val:{type:nt.literal,value:"<".concat(n,"/>"),location:Mt(r,this.clonePos
|
|
|
326
326
|
// Expecting a close tag
|
|
327
327
|
if(this.bumpIf("</")){if(this.isEOF()||!ee(this.char()))return this.error(rt.INVALID_TAG,Mt(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(rt.UNMATCHED_CLOSING_TAG,Mt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:n,children:o,location:Mt(r,this.clonePosition())},err:null}:this.error(rt.INVALID_TAG,Mt(s,this.clonePosition())))}return this.error(rt.UNCLOSED_TAG,Mt(r,this.clonePosition()))}return this.error(rt.INVALID_TAG,Mt(r,this.clonePosition()))},
|
|
328
328
|
/**
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
330
|
+
*/
|
|
331
331
|
t.prototype.parseTagName=function(){var t=this.offset();// the first tag name character
|
|
332
332
|
for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Mt(r,this.clonePosition());return{val:{type:nt.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(ee(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
|
|
333
333
|
/** See `parseTag` function docs. */},
|
|
334
334
|
/**
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
336
|
+
* a character that requires quoting (that is, "only where needed"), and works the same in
|
|
337
|
+
* nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
|
|
338
|
+
*/
|
|
339
339
|
t.prototype.tryParseQuote=function(t){if(this.isEOF()||39/* `'` */!==this.char())return null;
|
|
340
340
|
// Parse escaped char following the apostrophe, or early return if there is no escaped char.
|
|
341
341
|
// Check if is valid escaped character
|
|
@@ -364,9 +364,9 @@ value:n,location:Mt(r,this.clonePosition())},err:null};
|
|
|
364
364
|
case 44/* `,` */:return this.bump(),// `,`
|
|
365
365
|
this.bumpSpace(),this.isEOF()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(rt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()))}},
|
|
366
366
|
/**
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
* Advance the parser until the end of the identifier, if it is currently on
|
|
368
|
+
* an identifier character. Return an empty string otherwise.
|
|
369
|
+
*/
|
|
370
370
|
t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Wt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Mt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
|
371
371
|
// Parse this range:
|
|
372
372
|
// {name, type, style}
|
|
@@ -404,8 +404,8 @@ this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryPars
|
|
|
404
404
|
// Parse: {value, number, ::currency/GBP }
|
|
405
405
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
406
406
|
/**
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
* See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
|
|
408
|
+
*/
|
|
409
409
|
t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
|
|
410
410
|
// Treat apostrophe as quoting but include it in the style part.
|
|
411
411
|
// Find the end of the quoted literal text.
|
|
@@ -413,15 +413,15 @@ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error
|
|
|
413
413
|
// Parse the skeleton
|
|
414
414
|
for(var e=t.split(Tt).filter((function(t){return t.length>0})),r=[],n=0,i=e;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(t)}catch(t){return this.error(rt.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ot(r):{}},err:null}},
|
|
415
415
|
/**
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
416
|
+
* @param nesting_level The current nesting level of messages.
|
|
417
|
+
* This can be positive when parsing message fragment in select or plural argument options.
|
|
418
|
+
* @param parent_arg_type The parent argument's type.
|
|
419
|
+
* @param parsed_first_identifier If provided, this is the first identifier-like selector of
|
|
420
|
+
* the argument. It is a by-product of a previous parsing attempt.
|
|
421
|
+
* @param expecting_close_tag If true, this message is directly or indirectly nested inside
|
|
422
|
+
* between a pair of opening and closing tags. The nested message will not parse beyond
|
|
423
|
+
* the closing tag boundary.
|
|
424
|
+
*/
|
|
425
425
|
t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
|
|
426
426
|
// Parse:
|
|
427
427
|
// one {one apple}
|
|
@@ -442,51 +442,51 @@ this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}retur
|
|
|
442
442
|
// This is much faster than `Object.assign` or spread.
|
|
443
443
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
444
444
|
/**
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
* Return the code point at the current position of the parser.
|
|
446
|
+
* Throws if the index is out of bound.
|
|
447
|
+
*/
|
|
448
448
|
t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Yt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
|
|
449
449
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
450
450
|
t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
451
451
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
452
452
|
this.position.offset+=t<65536?1:2)}},
|
|
453
453
|
/**
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
454
|
+
* If the substring starting at the current position of the parser has
|
|
455
|
+
* the given prefix, then bump the parser to the character immediately
|
|
456
|
+
* following the prefix and return true. Otherwise, don't bump the parser
|
|
457
|
+
* and return false.
|
|
458
|
+
*/
|
|
459
459
|
t.prototype.bumpIf=function(t){if(Xt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
|
|
460
460
|
/**
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
* Bump the parser until the pattern character is found and return `true`.
|
|
462
|
+
* Otherwise bump to the end of the file and return `false`.
|
|
463
|
+
*/
|
|
464
464
|
t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
|
|
465
465
|
/**
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
* Bump the parser to the target offset.
|
|
467
|
+
* If target offset is beyond the end of the input, bump the parser to the end of the input.
|
|
468
|
+
*/
|
|
469
469
|
t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
|
|
470
470
|
/** advance the parser through all whitespace to the next non-whitespace code unit. */
|
|
471
471
|
t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},
|
|
472
472
|
/**
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
473
|
+
* Peek at the *next* Unicode codepoint in the input without advancing the parser.
|
|
474
|
+
* If the input has been exhausted, then this returns null.
|
|
475
|
+
*/
|
|
476
476
|
t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
|
|
477
477
|
/**
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
* This check if codepoint is alphabet (lower & uppercase)
|
|
479
|
+
* @param codepoint
|
|
480
|
+
* @returns
|
|
481
|
+
*/function ee(t){return t>=97&&t<=122||t>=65&&t<=90}function re(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}
|
|
482
482
|
/**
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
* Code point equivalent of regex `\p{White_Space}`.
|
|
484
|
+
* From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
485
|
+
*/function ne(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
|
|
486
486
|
/**
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
488
|
+
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
489
|
+
*/function ie(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function oe(t){t.forEach((function(t){if(delete t.location,pt(t)||ft(t))for(var e in t.options)delete t.options[e].location,oe(t.options[e].value);else lt(t)&>(t.style)||(ct(t)||ht(t))&&yt(t.style)?delete t.style.location:dt(t)&&oe(t.children)}))}function se(t,e){void 0===e&&(e={}),e=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new te(t,e).parse();if(r.err){var n=SyntaxError(rt[r.err.kind]);
|
|
490
490
|
// @ts-expect-error Assign to error object
|
|
491
491
|
throw n.location=r.err.location,
|
|
492
492
|
// @ts-expect-error Assign to error object
|
|
@@ -531,10 +531,10 @@ if(!i||!(h in i))throw new Te(h,s);var p=i[h];if(ut(c))p&&"string"!=typeof p&&"n
|
|
|
531
531
|
// abstracted-by and delegated-to the part helper object.
|
|
532
532
|
if(ct(c)){var f="string"==typeof c.style?n.date[c.style]:yt(c.style)?c.style.parsedOptions:void 0;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(ht(c)){f="string"==typeof c.style?n.time[c.style]:yt(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(lt(c)){(f="string"==typeof c.style?n.number[c.style]:gt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:ye.literal,value:r.getNumberFormat(e,f).format(p)})}else{if(dt(c)){var m=c.children,d=c.value,g=i[d];if(!_e(g))throw new Ee(d,"function",s);var y=g(Le(m,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?ye.literal:ye.object,value:t}})))}if(pt(c)){if(!(b=c.options[p]||c.options.other))throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i))}else if(ft(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new be('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',me.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i,p-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===ye.literal&&e.type===ye.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
|
|
533
533
|
/*
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
534
|
+
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
535
|
+
Copyrights licensed under the New BSD License.
|
|
536
|
+
See the accompanying LICENSE file for terms.
|
|
537
|
+
*/
|
|
538
538
|
// -- MessageFormat --------------------------------------------------------
|
|
539
539
|
function we(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?ot(ot(ot({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=ot(ot({},i[e]),o[e]||{}),t}),{})):i),r}),ot({},t)):t}function Ae(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(ye||(ye={}));var Be=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
|
|
540
540
|
// Hot path for straight simple msg translations
|
|
@@ -551,36 +551,36 @@ this.formats=we(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
551
551
|
// and Intl.DateTimeFormat instances.
|
|
552
552
|
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}(),Se=Be;
|
|
553
553
|
/*
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
554
|
+
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
555
|
+
Copyrights licensed under the New BSD License.
|
|
556
|
+
See the accompanying LICENSE file for terms.
|
|
557
|
+
*/const He={},Pe=(t,e,r)=>r?(e in He||(He[e]={}),t in He[e]||(He[e][t]=r),r):r,Oe=(t,e)=>{if(null==e)return;if(e in He&&t in He[e])return He[e][t];const r=Ke(e);for(let n=0;n<r.length;n++){const i=Ne(r[n],t);if(i)return Pe(t,e,i)}};let Ie;const xe=j({});function Ce(t){return t in Ie}function Ne(t,e){if(!Ce(t))return null;const r=function(t){return Ie[t]||null}(t);return function(t,e){if(null==e)return;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}(r,e)}function Re(t,...e){delete He[t],xe.update((r=>(r[t]=Q.all([r[t]||{},...e]),r)))}V([xe],(([t])=>Object.keys(t))),xe.subscribe((t=>Ie=t));const Me={};function De(t){return Me[t]}function Ue(t){return null!=t&&Ke(t).some((t=>{var e;return null===(e=De(t))||void 0===e?void 0:e.size}))}const $e={};function ke(t){if(!Ue(t))return t in $e?$e[t]:Promise.resolve();const e=function(t){return Ke(t).map((t=>{const e=De(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return $e[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Me[t].delete(e),0===Me[t].size&&delete Me[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Re(t,...e)))}(t,e)))).then((()=>{if(Ue(t))return ke(t);delete $e[t]})),$e[t]}
|
|
558
558
|
/*! *****************************************************************************
|
|
559
|
-
|
|
559
|
+
Copyright (c) Microsoft Corporation.
|
|
560
560
|
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
562
|
+
purpose with or without fee is hereby granted.
|
|
563
563
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
564
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
565
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
566
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
567
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
568
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
569
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
570
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
571
|
+
***************************************************************************** */function Ge(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 i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}const Fe={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 je(){return Fe}const Ve=j(!1);let We;const Xe=j(null);function ze(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ke(t,e=je().fallbackLocale){const r=ze(t);return e?[...new Set([...r,...ze(e)])]:r}function Ye(){return null!=We?We:void 0}Xe.subscribe((t=>{We=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ze=Object.assign(Object.assign({},Xe),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(Ce(r))return r}}(t)&&Ue(t)){const{loadingDelay:e}=je();let r;return"undefined"!=typeof window&&null!=Ye()&&e?r=window.setTimeout((()=>Ve.set(!0)),e):Ve.set(!0),ke(t).then((()=>{Xe.set(t)})).finally((()=>{clearTimeout(r),Ve.set(!1)}))}return Xe.set(t)}}),qe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Je=(t,e)=>{const{formats:r}=je();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Qe=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Je("number",r)),new Intl.NumberFormat(e,n)})),tr=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Je("date",r):0===Object.keys(n).length&&(n=Je("date","short")),new Intl.DateTimeFormat(e,n)})),er=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Je("time",r):0===Object.keys(n).length&&(n=Je("time","short")),new Intl.DateTimeFormat(e,n)})),rr=qe(((t,e=Ye())=>new Se(t,e,je().formats,{ignoreTag:je().ignoreTag}))),nr=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=Ye(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Oe(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" 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===(n=(r=je()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:t,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:t;if(!a)return c;let h=c;try{h=rr(c,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},ir=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return er(Object.assign({locale:e},r))})(e).format(t),or=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return tr(Object.assign({locale:e},r))})(e).format(t),sr=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return Qe(Object.assign({locale:e},r))})(e).format(t),ar=(t,e=Ye())=>Oe(t,e),ur=V([Ze,xe],(()=>nr));V([Ze],(()=>ir)),V([Ze],(()=>or)),V([Ze],(()=>sr)),V([Ze,xe],(()=>ar));const lr={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"month",Weekly:"week",Daily:"day",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Succesful"}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando por favor espere..."}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}},de:{gamingLimits:{loadingText:"Laden, bitte warten..."}}};var cr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==cr&&cr,hr="URLSearchParams"in cr,pr="Symbol"in cr&&"iterator"in Symbol,fr="FileReader"in cr&&"Blob"in cr&&function(){try{return new Blob,!0}catch(t){return!1}}(),mr="FormData"in cr,dr="ArrayBuffer"in cr;if(dr)var gr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],yr=ArrayBuffer.isView||function(t){return t&&gr.indexOf(Object.prototype.toString.call(t))>-1};function br(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 vr(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
572
572
|
// Build a destructive iterator for the value list
|
|
573
573
|
function Er(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return pr&&(e[Symbol.iterator]=function(){return e}),e}function Tr(t){this.map={},t instanceof Tr?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 _r(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Lr(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function wr(t){var e=new FileReader,r=Lr(e);return e.readAsArrayBuffer(t),r}function Ar(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Br(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
574
574
|
/*
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
575
|
+
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
576
|
+
provide useful test harness features such as flush. However, on
|
|
577
|
+
ES5 browsers without fetch or Proxy support pollyfills must be used;
|
|
578
|
+
the proxy-pollyfill is unable to proxy an attribute unless it exists
|
|
579
|
+
on the object before the Proxy is created. This change ensures
|
|
580
|
+
Response.bodyUsed exists on the instance, while maintaining the
|
|
581
|
+
semantic of setting Request.bodyUsed in the constructor before
|
|
582
|
+
_initBody is called.
|
|
583
|
+
*/
|
|
584
584
|
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:fr&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:mr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:hr&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():dr&&fr&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Ar(t.buffer),
|
|
585
585
|
// IE 10-11 can't handle a DataView body.
|
|
586
586
|
this._bodyInit=new Blob([this._bodyArrayBuffer])):dr&&(ArrayBuffer.prototype.isPrototypeOf(t)||yr(t))?this._bodyArrayBuffer=Ar(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):hr&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fr&&(this.blob=function(){var t=_r(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=_r(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(wr)}),this.text=function(){var t,e,r,n=_r(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Lr(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)},mr&&(this.formData=function(){return this.text().then(Pr)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
@@ -601,19 +601,19 @@ t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf(
|
|
|
601
601
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
602
602
|
self.fetch.bind(self);
|
|
603
603
|
/******************************************************************************
|
|
604
|
-
|
|
604
|
+
Copyright (c) Microsoft Corporation.
|
|
605
605
|
|
|
606
|
-
|
|
607
|
-
|
|
606
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
607
|
+
purpose with or without fee is hereby granted.
|
|
608
608
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
609
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
610
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
611
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
612
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
613
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
614
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
615
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
616
|
+
***************************************************************************** */
|
|
617
617
|
/* global Reflect, Promise */
|
|
618
618
|
var Nr=function(t,e){return Nr=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])},Nr(t,e)};function Rr(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}Nr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Mr(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 Dr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ur(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function $r(t){return"function"==typeof t}function kr(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 Gr=kr((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 Fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var jr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Mr(o),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 o.remove(this);var u=this.initialTeardown;if($r(u))try{u()}catch(t){i=t instanceof Gr?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=Mr(l),h=c.next();!h.done;h=c.next()){var p=h.value;try{Xr(p)}catch(t){i=null!=i?i:[],t instanceof Gr?i=Ur(Ur([],Dr(i)),Dr(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new Gr(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Xr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&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)&&Fr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Vr=jr.EMPTY;function Wr(t){return t instanceof jr||t&&"closed"in t&&$r(t.remove)&&$r(t.add)&&$r(t.unsubscribe)}function Xr(t){$r(t)?t():t.unsubscribe()}var zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Kr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ur([t,e],Dr(r))):setTimeout.apply(void 0,Ur([t,e],Dr(r)))},clearTimeout:function(t){var e=Kr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yr(){}var Zr=null;function qr(t){if(zr.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var r=Zr,n=r.errorThrown,i=r.error;if(Zr=null,n)throw i}}else t()}var Jr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Wr(e)&&e.add(r)):r.destination=on,r}return Rr(e,t),e.create=function(t,e,r){return new rn(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}(jr),Qr=Function.prototype.bind;function tn(t,e){return Qr.call(t,e)}var en=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){nn(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){nn(t)}else nn(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){nn(t)}},t}(),rn=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;$r(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&zr.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&tn(e.next,o),error:e.error&&tn(e.error,o),complete:e.complete&&tn(e.complete,o)}):i=e;return s.destination=new en(i),s}return Rr(e,t),e}(Jr);function nn(t){var e;e=t,Kr.setTimeout((function(){throw e}))}var on={closed:!0,next:Yr,error:function(t){throw t},complete:Yr},sn="function"==typeof Symbol&&Symbol.observable||"@@observable";function an(t){return t}function un(t){return 0===t.length?an:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ln=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,i=this,o=(n=t)&&n instanceof Jr||function(t){return t&&$r(t.next)&&$r(t.error)&&$r(t.complete)}(n)&&Wr(n)?t:new rn(t,e,r);return qr((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},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=cn(e))((function(e,n){var i=new rn({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[sn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return un(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=cn(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 cn(t){var e;return null!==(e=null!=t?t:zr.Promise)&&void 0!==e?e:Promise}var hn=kr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),pn=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Rr(e,t),e.prototype.lift=function(t){var e=new fn(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new hn},e.prototype.next=function(t){var e=this;qr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Mr(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;qr((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;qr((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=this.currentObservers=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=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Vr:(this.currentObservers=null,o.push(t),new jr((function(){e.currentObservers=null,Fr(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new ln;return t.source=this,t},e.create=function(t,e){return new fn(t,e)},e}(ln),fn=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Rr(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:Vr},e}(pn),mn={now:function(){return(mn.delegate||Date).now()},delegate:void 0},dn=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=mn);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return Rr(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.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(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(pn);let gn=[],yn={};window.emWidgets={topic:(t,e=0)=>{if(-1==gn.indexOf(t)){let r=new dn(e);yn[t]=r,gn.push(t)}return yn[t]}};
|
|
619
619
|
/* src/PlayerAccountGamingLimitsPage_2Gmcore.svelte generated by Svelte v3.48.0 */
|
|
@@ -668,5 +668,5 @@ null===(r=t[G[e.value].callValue])||void 0===r||r.forEach(((r,n)=>{var i;const o
|
|
|
668
668
|
e.currentLimits[n].limitType=e.value,e.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),e.currentLimits[n].currency=null!==(i=C[o.currency])&&void 0!==i?i:o.currency,e.currentLimits[n].period=o.period,e.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),e.currentLimits[n].isModified=o.isModified,e.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),e.currentLimits=M(e.currentLimits)}))},M=t=>{const e={Daily:0,Weekly:1,Monthly:2};return t.sort(((t,r)=>e[t.period]-e[r.period])),t},D=()=>{if(c){const t=c[G[L].callValue].filter((t=>t.period===w))[0],e=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.amount);let i=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}",e).replace("{currency}",C[t.currency]||t.currency).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());r(11,x=t.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)}r(10,I=!0)},U=t=>{r(9,O=!0),r(7,H=!0);let e=new URL(`v2/player/${d}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[t.limitType]}?periods=${t.period}`,g),n={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then((t=>t.json())).then((t=>{N()})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},$=()=>{var t;t=h,Ze.set(t)};return t.$$set=t=>{"lang"in t&&r(20,h=t.lang),"currency"in t&&r(21,p=t.currency),"limits"in t&&r(22,f=t.limits),"session"in t&&r(23,m=t.session),"userid"in t&&r(24,d=t.userid),"endpoint"in t&&r(25,g=t.endpoint),"clientstyling"in t&&r(26,b=t.clientstyling),"clientstylingurl"in t&&r(27,v=t.clientstylingurl)},t.$$.update=()=>{/*limits*/4194304&t.$$.dirty[0]&&f&&(f.split(" ").forEach((t=>{G[t]?T.push(G[t]):console.error(`Unknown limit: ${t}`)})),
|
|
669
669
|
//set default selected limit
|
|
670
670
|
r(1,L=T[0].value),r(2,w=G[L].periods[0]),r(5,A=T.length>1),r(6,B=G[L].periods.length>1)),/*lang*/1048576&t.$$.dirty[0]&&h&&$(),/*userid, session, endpoint*/58720256&t.$$.dirty[0]&&d&&m&&g&&N(),/*clientstylingurl*/134217728&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&(setTimeout((()=>{a.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling*/67108864&t.$$.dirty[0]&&b&&(()=>{let t=document.createElement("style");t.innerHTML=b,a.appendChild(t)})()},[a,L,w,u,l,A,B,H,P,O,I,x,n,E,T,()=>{r(2,w=G[L].periods[0]),// select the first period by default until the user selects a different period
|
|
671
|
-
r(6,B=G[L].periods.length>1)},()=>{if(!(u>0))return;r(9,O=!0),r(7,H=!0);let t=new URL(`v2/player/${d}/limits`,g);const e={};e[G[L].callValue]=[{period:w,amount:u,currency:p}];let n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t.href,n).then((t=>t.json())).then((t=>{N()})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},()=>{const t=999999999999999;u>t&&r(3,u=t);const e=u-Math.floor(u)==0;u>0&&e?l.removeAttribute("disabled"):l.setAttribute("disabled","true")},U,()=>{r(10,I=r(9,O=!1))},h,p,f,m,d,g,b,v,t=>U(t),function(){L=_(this),r(1,L),r(14,T)},function(){w=_(this),r(2,w),r(1,L)},function(){u=y(this.value),r(3,u)},function(t){S[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class Gn extends k{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",$(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},kn,$n,o,{lang:20,currency:21,limits:22,session:23,userid:24,endpoint:25,clientstyling:26,clientstylingurl:27},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),R()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),R()}get limits(){return this.$$.ctx[22]}set limits(t){this.$$set({limits:t}),R()}get session(){return this.$$.ctx[23]}set session(t){this.$$set({session:t}),R()}get userid(){return this.$$.ctx[24]}set userid(t){this.$$set({userid:t}),R()}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),R()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}
|
|
671
|
+
r(6,B=G[L].periods.length>1)},()=>{if(!(u>0))return;r(9,O=!0),r(7,H=!0);let t=new URL(`v2/player/${d}/limits`,g);const e={};e[G[L].callValue]=[{period:w,amount:u,currency:p}];let n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t.href,n).then((t=>t.json())).then((t=>{N()})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},()=>{const t=999999999999999;u>t&&r(3,u=t);const e=u-Math.floor(u)==0;u>0&&e?l.removeAttribute("disabled"):l.setAttribute("disabled","true")},U,()=>{r(10,I=r(9,O=!1))},h,p,f,m,d,g,b,v,t=>U(t),function(){L=_(this),r(1,L),r(14,T)},function(){w=_(this),r(2,w),r(1,L)},function(){u=y(this.value),r(3,u)},function(t){S[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class Gn extends k{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",$(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},kn,$n,o,{lang:20,currency:21,limits:22,session:23,userid:24,endpoint:25,clientstyling:26,clientstylingurl:27},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),R()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),R()}get limits(){return this.$$.ctx[22]}set limits(t){this.$$set({limits:t}),R()}get session(){return this.$$.ctx[23]}set session(t){this.$$set({session:t}),R()}get userid(){return this.$$.ctx[24]}set userid(t){this.$$set({userid:t}),R()}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),R()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",Gn),module.exports=Gn;
|
|
672
672
|
//# sourceMappingURL=player-account-gaming-limits-page-2-gmcore.js.map
|