@betorigami/games 0.7.2 → 0.7.4
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/index.mjs +188 -189
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ function yi({ context: e, subscribe: t }) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
const co = globalThis, Zo = co.ShadowRoot && (co.ShadyCSS === void 0 || co.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ko = Symbol(), es = /* @__PURE__ */ new WeakMap();
|
|
93
|
-
let
|
|
93
|
+
let Os = class {
|
|
94
94
|
constructor(e, t, i) {
|
|
95
95
|
if (this._$cssResult$ = !0, i !== Ko) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
96
96
|
this.cssText = e, this.t = t;
|
|
@@ -114,11 +114,11 @@ const H = (e, ...t) => {
|
|
|
114
114
|
if (typeof a == "number") return a;
|
|
115
115
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
116
116
|
})(r) + e[s + 1], e[0]);
|
|
117
|
-
return new
|
|
117
|
+
return new Os(i, e, Ko);
|
|
118
118
|
}, is = Zo ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
119
119
|
let i = "";
|
|
120
120
|
for (const o of t.cssRules) i += o.cssText;
|
|
121
|
-
return ((o) => new
|
|
121
|
+
return ((o) => new Os(typeof o == "string" ? o : o + "", void 0, Ko))(i);
|
|
122
122
|
})(e) : e, { is: Qs, defineProperty: Js, getOwnPropertyDescriptor: tr, getOwnPropertyNames: er, getOwnPropertySymbols: ir, getPrototypeOf: or } = Object, Ye = globalThis, os = Ye.trustedTypes, sr = os ? os.emptyScript : "", Eo = Ye.reactiveElementPolyfillSupport, Gi = (e, t) => e, po = { toAttribute(e, t) {
|
|
123
123
|
switch (t) {
|
|
124
124
|
case Boolean:
|
|
@@ -357,7 +357,7 @@ let Ei = class extends HTMLElement {
|
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
359
|
Ei.elementStyles = [], Ei.shadowRootOptions = { mode: "open" }, Ei[Gi("elementProperties")] = /* @__PURE__ */ new Map(), Ei[Gi("finalized")] = /* @__PURE__ */ new Map(), Eo == null || Eo({ ReactiveElement: Ei }), (Ye.reactiveElementVersions ?? (Ye.reactiveElementVersions = [])).push("2.1.0");
|
|
360
|
-
const Zi = globalThis, go = Zi.trustedTypes, rs = go ? go.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, as = "$lit$", Ke = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
360
|
+
const Zi = globalThis, go = Zi.trustedTypes, rs = go ? go.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, as = "$lit$", Ke = `lit$${Math.random().toFixed(9).slice(2)}$`, Is = "?" + Ke, rr = `<${Is}>`, fi = document, Xi = () => fi.createComment(""), Qi = (e) => e === null || typeof e != "object" && typeof e != "function", Uo = Array.isArray, Do = `[
|
|
361
361
|
\f\r]`, Bi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ns = /-->/g, ls = />/g, Qe = RegExp(`>|${Do}(?:([^\\s"'>=/]+)(${Do}*=${Do}*(?:[^
|
|
362
362
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), cs = /'/g, ds = /"/g, us = /^(?:script|style|textarea|title)$/i, Bs = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), x = Bs(1), St = Bs(2), Ut = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), hs = /* @__PURE__ */ new WeakMap(), mi = fi.createTreeWalker(fi, 129);
|
|
363
363
|
function Ps(e, t) {
|
|
@@ -371,11 +371,11 @@ class Ji {
|
|
|
371
371
|
let s = 0, a = 0;
|
|
372
372
|
const g = t.length - 1, w = this.parts, [L, V] = ((k, C) => {
|
|
373
373
|
const D = k.length - 1, A = [];
|
|
374
|
-
let
|
|
374
|
+
let O, it = C === 2 ? "<svg>" : C === 3 ? "<math>" : "", W = Bi;
|
|
375
375
|
for (let dt = 0; dt < D; dt++) {
|
|
376
376
|
const tt = k[dt];
|
|
377
377
|
let Yt, ot, ut = -1, Xe = 0;
|
|
378
|
-
for (; Xe < tt.length && (W.lastIndex = Xe, ot = W.exec(tt), ot !== null); ) Xe = W.lastIndex, W === Bi ? ot[1] === "!--" ? W = ns : ot[1] !== void 0 ? W = ls : ot[2] !== void 0 ? (us.test(ot[2]) && (
|
|
378
|
+
for (; Xe < tt.length && (W.lastIndex = Xe, ot = W.exec(tt), ot !== null); ) Xe = W.lastIndex, W === Bi ? ot[1] === "!--" ? W = ns : ot[1] !== void 0 ? W = ls : ot[2] !== void 0 ? (us.test(ot[2]) && (O = RegExp("</" + ot[2], "g")), W = Qe) : ot[3] !== void 0 && (W = Qe) : W === Qe ? ot[0] === ">" ? (W = O ?? Bi, ut = -1) : ot[1] === void 0 ? ut = -2 : (ut = W.lastIndex - ot[2].length, Yt = ot[1], W = ot[3] === void 0 ? Qe : ot[3] === '"' ? ds : cs) : W === ds || W === cs ? W = Qe : W === ns || W === ls ? W = Bi : (W = Qe, O = void 0);
|
|
379
379
|
const Xt = W === Qe && k[dt + 1].startsWith("/>") ? " " : "";
|
|
380
380
|
it += W === Bi ? tt + rr : ut >= 0 ? (A.push(Yt), tt.slice(0, ut) + as + tt.slice(ut) + Ke + Xt) : tt + Ke + (ut === -2 ? dt : Xt);
|
|
381
381
|
}
|
|
@@ -399,7 +399,7 @@ class Ji {
|
|
|
399
399
|
r.append(k[C], Xi());
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
402
|
+
} else if (r.nodeType === 8) if (r.data === Is) w.push({ type: 2, index: s });
|
|
403
403
|
else {
|
|
404
404
|
let k = -1;
|
|
405
405
|
for (; (k = r.data.indexOf(Ke, k + 1)) !== -1; ) w.push({ type: 7, index: s }), k += Ke.length - 1;
|
|
@@ -436,7 +436,7 @@ let ar = class {
|
|
|
436
436
|
for (; g !== void 0; ) {
|
|
437
437
|
if (s === g.index) {
|
|
438
438
|
let w;
|
|
439
|
-
g.type === 2 ? w = new
|
|
439
|
+
g.type === 2 ? w = new Oi(r, r.nextSibling, this, e) : g.type === 1 ? w = new g.ctor(r, g.name, g.strings, this, e) : g.type === 6 && (w = new dr(r, this, e)), this._$AV.push(w), g = i[++a];
|
|
440
440
|
}
|
|
441
441
|
s !== (g == null ? void 0 : g.index) && (r = mi.nextNode(), s++);
|
|
442
442
|
}
|
|
@@ -447,7 +447,7 @@ let ar = class {
|
|
|
447
447
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
|
-
class
|
|
450
|
+
class Oi {
|
|
451
451
|
get _$AU() {
|
|
452
452
|
var t;
|
|
453
453
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -495,7 +495,7 @@ class Ii {
|
|
|
495
495
|
Uo(this._$AH) || (this._$AH = [], this._$AR());
|
|
496
496
|
const i = this._$AH;
|
|
497
497
|
let o, r = 0;
|
|
498
|
-
for (const s of t) r === i.length ? i.push(o = new
|
|
498
|
+
for (const s of t) r === i.length ? i.push(o = new Oi(this.O(Xi()), this.O(Xi()), this, this.options)) : o = i[r], o._$AI(s), r++;
|
|
499
499
|
r < i.length && (this._$AR(o && o._$AB.nextSibling, r), i.length = r);
|
|
500
500
|
}
|
|
501
501
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -576,8 +576,8 @@ class dr {
|
|
|
576
576
|
_i(this, t);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
const ur = { I:
|
|
580
|
-
Ao == null || Ao(Ji,
|
|
579
|
+
const ur = { I: Oi }, Ao = Zi.litHtmlPolyfillSupport;
|
|
580
|
+
Ao == null || Ao(Ji, Oi), (Zi.litHtmlVersions ?? (Zi.litHtmlVersions = [])).push("3.3.0");
|
|
581
581
|
const bi = globalThis;
|
|
582
582
|
let qt = class extends Ei {
|
|
583
583
|
constructor() {
|
|
@@ -595,7 +595,7 @@ let qt = class extends Ei {
|
|
|
595
595
|
let a = s._$litPart$;
|
|
596
596
|
if (a === void 0) {
|
|
597
597
|
const g = (r == null ? void 0 : r.renderBefore) ?? null;
|
|
598
|
-
s._$litPart$ = a = new
|
|
598
|
+
s._$litPart$ = a = new Oi(o.insertBefore(Xi(), g), g, void 0, r ?? {});
|
|
599
599
|
}
|
|
600
600
|
return a._$AI(i), a;
|
|
601
601
|
})(t, this.renderRoot, this.renderOptions);
|
|
@@ -647,10 +647,10 @@ function l(e) {
|
|
|
647
647
|
return r.constructor.createProperty(s, o), a ? Object.getOwnPropertyDescriptor(r, s) : void 0;
|
|
648
648
|
})(e, t, i);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function T(e) {
|
|
651
651
|
return l({ ...e, state: !0, attribute: !1 });
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Me(e, t) {
|
|
654
654
|
return (i, o, r) => ((s, a, g) => (g.configurable = !0, g.enumerable = !0, Reflect.decorate && typeof a != "object" && Object.defineProperty(s, a, g), g))(i, o, { get() {
|
|
655
655
|
return ((s) => {
|
|
656
656
|
var a;
|
|
@@ -698,7 +698,7 @@ let _t = class extends R {
|
|
|
698
698
|
return x`<slot></slot>`;
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
Ht([l({ type: String })], _t.prototype, "currency", 2), Ht([l({ type: Boolean })], _t.prototype, "isTheatreMode", 2), Ht([l({ type: Boolean })], _t.prototype, "showFavorites", 2), Ht([l({ type: Number })], _t.prototype, "balance", 2), Ht([l({ type: String })], _t.prototype, "baseUrl", 2), Ht([l({ type: String })], _t.prototype, "authToken", 2), Ht([l({ type: Boolean })], _t.prototype, "isCryptoMode", 2), Ht([l({ type: Boolean })], _t.prototype, "gameStatsOpen", 2), Ht([
|
|
701
|
+
Ht([l({ type: String })], _t.prototype, "currency", 2), Ht([l({ type: Boolean })], _t.prototype, "isTheatreMode", 2), Ht([l({ type: Boolean })], _t.prototype, "showFavorites", 2), Ht([l({ type: Number })], _t.prototype, "balance", 2), Ht([l({ type: String })], _t.prototype, "baseUrl", 2), Ht([l({ type: String })], _t.prototype, "authToken", 2), Ht([l({ type: Boolean })], _t.prototype, "isCryptoMode", 2), Ht([l({ type: Boolean })], _t.prototype, "gameStatsOpen", 2), Ht([T()], _t.prototype, "betAmount", 2), Ht([T()], _t.prototype, "autobetNumberOfBets", 2), _t = Ht([B("origami-game-provider-wrapper")], _t);
|
|
702
702
|
const Ho = 1, Ns = 2, ps = 3, gs = 4, xo = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
703
703
|
class $o {
|
|
704
704
|
constructor(t) {
|
|
@@ -895,7 +895,7 @@ const G = xo(class extends $o {
|
|
|
895
895
|
outline-color: rgba(55, 55, 55, 0.8);
|
|
896
896
|
}
|
|
897
897
|
`;
|
|
898
|
-
var fr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor,
|
|
898
|
+
var fr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, Te = (e, t, i, o) => {
|
|
899
899
|
for (var r, s = o > 1 ? void 0 : o ? yr(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
900
900
|
return o && s && fr(t, i, s), s;
|
|
901
901
|
};
|
|
@@ -939,7 +939,7 @@ let Jt = class extends R {
|
|
|
939
939
|
`;
|
|
940
940
|
}
|
|
941
941
|
};
|
|
942
|
-
Jt.styles = [U, br],
|
|
942
|
+
Jt.styles = [U, br], Te([l({ type: String })], Jt.prototype, "option1", 2), Te([l({ type: String })], Jt.prototype, "option2", 2), Te([l({ type: String, reflect: !0 })], Jt.prototype, "value", 2), Te([l({ type: Boolean, reflect: !0 })], Jt.prototype, "disabled", 2), Te([l({ type: String })], Jt.prototype, "name", 2), Te([l({ type: String })], Jt.prototype, "class", 2), Te([l({ type: Boolean })], Jt.prototype, "noRightBorderRadius", 2), Jt = Te([B("origami-toggle")], Jt);
|
|
943
943
|
const { I: vr } = ur, Rs = (e) => e.strings === void 0, ms = () => document.createComment(""), Pi = (e, t, i) => {
|
|
944
944
|
var s;
|
|
945
945
|
const o = e._$AA.parentNode, r = t === void 0 ? e._$AB : t._$AA;
|
|
@@ -961,7 +961,7 @@ const { I: vr } = ur, Rs = (e) => e.strings === void 0, ms = () => document.crea
|
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
return i;
|
|
964
|
-
}, Je = (e, t, i = e) => (e._$AI(t, i), e), wr = {}, Vs = (e, t = wr) => e._$AH = t,
|
|
964
|
+
}, Je = (e, t, i = e) => (e._$AI(t, i), e), wr = {}, Vs = (e, t = wr) => e._$AH = t, Oo = (e) => {
|
|
965
965
|
var o;
|
|
966
966
|
(o = e._$AP) == null || o.call(e, !1, !0);
|
|
967
967
|
let t = e._$AA;
|
|
@@ -1028,7 +1028,7 @@ class Sr extends $o {
|
|
|
1028
1028
|
const bo = () => new kr();
|
|
1029
1029
|
class kr {
|
|
1030
1030
|
}
|
|
1031
|
-
const
|
|
1031
|
+
const Io = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
|
|
1032
1032
|
render(e) {
|
|
1033
1033
|
return _;
|
|
1034
1034
|
}
|
|
@@ -1040,13 +1040,13 @@ const Oo = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
|
|
|
1040
1040
|
rt(e) {
|
|
1041
1041
|
if (this.isConnected || (e = void 0), typeof this.G == "function") {
|
|
1042
1042
|
const t = this.ht ?? globalThis;
|
|
1043
|
-
let i =
|
|
1044
|
-
i === void 0 && (i = /* @__PURE__ */ new WeakMap(),
|
|
1043
|
+
let i = Io.get(t);
|
|
1044
|
+
i === void 0 && (i = /* @__PURE__ */ new WeakMap(), Io.set(t, i)), i.get(this.G) !== void 0 && this.G.call(this.ht, void 0), i.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
|
|
1045
1045
|
} else this.G.value = e;
|
|
1046
1046
|
}
|
|
1047
1047
|
get lt() {
|
|
1048
1048
|
var e, t;
|
|
1049
|
-
return typeof this.G == "function" ? (e =
|
|
1049
|
+
return typeof this.G == "function" ? (e = Io.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
1050
1050
|
}
|
|
1051
1051
|
disconnected() {
|
|
1052
1052
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1261,12 +1261,12 @@ const Oo = /* @__PURE__ */ new WeakMap(), fo = xo(class extends Sr {
|
|
|
1261
1261
|
clip-path: inset(50%);
|
|
1262
1262
|
}
|
|
1263
1263
|
`;
|
|
1264
|
-
var
|
|
1265
|
-
for (var r, s = o > 1 ? void 0 : o ?
|
|
1266
|
-
return o && s &&
|
|
1264
|
+
var Mr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, be = (e, t, i, o) => {
|
|
1265
|
+
for (var r, s = o > 1 ? void 0 : o ? Tr(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
1266
|
+
return o && s && Mr(t, i, s), s;
|
|
1267
1267
|
};
|
|
1268
1268
|
const Er = St`<svg class="spinner" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2.25"></circle><path d="M1.72559 4.97461L6.90836 10.1576L10.9407 6.236" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="15" stroke-dashoffset="45"></path><g style="transform-origin: 8px 8px;" transform="rotate(360deg)"><circle cx="8" cy="8" r="7" stroke-dasharray="45" stroke-linecap="round" stroke="currentColor" stroke-width="2.25" stroke-dashoffset="30" style="transform-origin: 8px 8px;" transform="rotate(180deg)"></circle></g></svg>`;
|
|
1269
|
-
let
|
|
1269
|
+
let Ot = class extends R {
|
|
1270
1270
|
constructor() {
|
|
1271
1271
|
super(...arguments), this.variant = "primary", this.disabled = !1, this.ariaLabel = null, this.ariaDescribedby = null, this.type = "button", this.isLoading = !1, this.fullWidth = !1, this.enableHaptics = !1;
|
|
1272
1272
|
}
|
|
@@ -1304,7 +1304,7 @@ let It = class extends R {
|
|
|
1304
1304
|
`;
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
|
-
|
|
1307
|
+
Ot.styles = [U, Lr], Ot.shadowRootOptions = { ...qt.shadowRootOptions, delegatesFocus: !0 }, be([l({ type: String, reflect: !0 })], Ot.prototype, "variant", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "disabled", 2), be([l({ type: String, attribute: "aria-label" })], Ot.prototype, "ariaLabel", 2), be([l({ type: String, attribute: "aria-describedby" })], Ot.prototype, "ariaDescribedby", 2), be([l({ type: String })], Ot.prototype, "type", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "isLoading", 2), be([l({ type: Boolean, reflect: !0 })], Ot.prototype, "fullWidth", 2), be([l({ type: Boolean, attribute: "enable-haptics" })], Ot.prototype, "enableHaptics", 2), Ot = be([B("origami-button")], Ot);
|
|
1308
1308
|
const Dr = H`
|
|
1309
1309
|
:host {
|
|
1310
1310
|
display: inline-flex;
|
|
@@ -1370,7 +1370,7 @@ let io = class extends R {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
1372
|
io.styles = [U, Dr], bs([l({ type: String, reflect: !0 })], io.prototype, "position", 2), io = bs([B("origami-button-group")], io);
|
|
1373
|
-
const
|
|
1373
|
+
const Or = xo(class extends $o {
|
|
1374
1374
|
constructor(e) {
|
|
1375
1375
|
if (super(e), e.type !== ps && e.type !== Ho && e.type !== gs) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
1376
1376
|
if (!Rs(e)) throw Error("`live` bindings can only contain a single expression");
|
|
@@ -1388,7 +1388,7 @@ const Ir = xo(class extends $o {
|
|
|
1388
1388
|
} else if (e.type === Ho && i.getAttribute(o) === t + "") return Ut;
|
|
1389
1389
|
return Vs(e), t;
|
|
1390
1390
|
}
|
|
1391
|
-
}),
|
|
1391
|
+
}), Ir = H`
|
|
1392
1392
|
/* ===== HOST STYLES ===== */
|
|
1393
1393
|
:host {
|
|
1394
1394
|
--input-text-color: white;
|
|
@@ -1978,8 +1978,8 @@ let nt = class extends qt {
|
|
|
1978
1978
|
if (!this.tooltipRef.value || !this.triggerRef.value || !this.open) return;
|
|
1979
1979
|
const e = this.tooltipRef.value, t = this.triggerRef.value, i = this.triggerSlot.assignedElements()[0] || t, o = this.position, r = this.offset, s = i.getBoundingClientRect(), a = e.getBoundingClientRect(), g = window.innerWidth, w = window.innerHeight, L = s.top, V = w - s.bottom, k = s.left, C = g - s.right;
|
|
1980
1980
|
let D = o;
|
|
1981
|
-
const A = (
|
|
1982
|
-
switch (
|
|
1981
|
+
const A = (O) => {
|
|
1982
|
+
switch (O) {
|
|
1983
1983
|
case "top":
|
|
1984
1984
|
case "top-start":
|
|
1985
1985
|
case "top-end":
|
|
@@ -2001,11 +2001,11 @@ let nt = class extends qt {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
2003
|
if (A(o)) {
|
|
2004
|
-
const
|
|
2005
|
-
if (A(
|
|
2004
|
+
const O = Rr[o];
|
|
2005
|
+
if (A(O)) {
|
|
2006
2006
|
const it = ["top", "right", "bottom", "left"].find((W) => !A(W));
|
|
2007
2007
|
it && (D = it);
|
|
2008
|
-
} else D =
|
|
2008
|
+
} else D = O;
|
|
2009
2009
|
}
|
|
2010
2010
|
e.setAttribute("data-position", D);
|
|
2011
2011
|
}
|
|
@@ -2040,7 +2040,7 @@ let nt = class extends qt {
|
|
|
2040
2040
|
`;
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
nt.styles = [U, Br], pt([l({ type: String })], nt.prototype, "content", 2), pt([l({ type: String, reflect: !0 })], nt.prototype, "position", 2), pt([l({ type: Array, converter: (e) => typeof e == "string" ? e.split(/[\s,]+/).filter(Boolean) : e })], nt.prototype, "trigger", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "arrow", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "open", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "disabled", 2), pt([l({ type: Number })], nt.prototype, "offset", 2), pt([l({ type: String, reflect: !0 })], nt.prototype, "theme", 2), pt([l({ type: Number })], nt.prototype, "delay", 2), pt([l({ type: Number })], nt.prototype, "hideDelay", 2), pt([l({ type: Boolean })], nt.prototype, "fullWidth", 2), pt([
|
|
2043
|
+
nt.styles = [U, Br], pt([l({ type: String })], nt.prototype, "content", 2), pt([l({ type: String, reflect: !0 })], nt.prototype, "position", 2), pt([l({ type: Array, converter: (e) => typeof e == "string" ? e.split(/[\s,]+/).filter(Boolean) : e })], nt.prototype, "trigger", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "arrow", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "open", 2), pt([l({ type: Boolean, reflect: !0 })], nt.prototype, "disabled", 2), pt([l({ type: Number })], nt.prototype, "offset", 2), pt([l({ type: String, reflect: !0 })], nt.prototype, "theme", 2), pt([l({ type: Number })], nt.prototype, "delay", 2), pt([l({ type: Number })], nt.prototype, "hideDelay", 2), pt([l({ type: Boolean })], nt.prototype, "fullWidth", 2), pt([Me("#trigger-slot")], nt.prototype, "triggerSlot", 2), pt([pe("open")], nt.prototype, "onOpenChange", 1), pt([pe("disabled")], nt.prototype, "onDisabledChange", 1), pt([pe(["position", "offset", "content"])], nt.prototype, "onPositionChange", 1), nt = pt([B("origami-tooltip")], nt);
|
|
2044
2044
|
var Vr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, K = (e, t, i, o) => {
|
|
2045
2045
|
for (var r, s = o > 1 ? void 0 : o ? Fr(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
2046
2046
|
return o && s && Vr(t, i, s), s;
|
|
@@ -2113,7 +2113,7 @@ let j = class extends R {
|
|
|
2113
2113
|
${fo(this.inputRef)}
|
|
2114
2114
|
id=${this.inputId}
|
|
2115
2115
|
type=${this.type}
|
|
2116
|
-
.value=${
|
|
2116
|
+
.value=${Or(this.value)}
|
|
2117
2117
|
@input=${this.handleInput}
|
|
2118
2118
|
@paste=${this.handlePaste}
|
|
2119
2119
|
@beforeinput=${this.handleBeforeInput}
|
|
@@ -2174,7 +2174,7 @@ let j = class extends R {
|
|
|
2174
2174
|
return !!this.querySelector('[slot="right-addon"]');
|
|
2175
2175
|
}
|
|
2176
2176
|
};
|
|
2177
|
-
j.styles = [U,
|
|
2177
|
+
j.styles = [U, Ir], K([l({ type: String })], j.prototype, "value", 2), K([l({ type: String })], j.prototype, "label", 2), K([l({ type: String })], j.prototype, "placeholder", 2), K([l({ type: String, reflect: !0 })], j.prototype, "type", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "disabled", 2), K([l({ type: String })], j.prototype, "rightText", 2), K([l({ type: Number })], j.prototype, "min", 2), K([l({ type: Number })], j.prototype, "max", 2), K([l({ type: Number })], j.prototype, "step", 2), K([l({ type: String })], j.prototype, "addonButtonsPosition", 2), K([l({ type: String })], j.prototype, "name", 2), K([l({ type: String })], j.prototype, "autocomplete", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "required", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "readonly", 2), K([l({ type: String })], j.prototype, "pattern", 2), K([l({ type: Boolean })], j.prototype, "validateOnInput", 2), K([l({ type: Boolean })], j.prototype, "tooltipFullWidth", 2), K([l({ type: String })], j.prototype, "validationPattern", 2), K([l({ type: String })], j.prototype, "validationMessage", 2), K([l({ type: String })], j.prototype, "inputMode", 2), K([l({ type: Boolean })], j.prototype, "hideRightLabel", 2), K([l({ type: Boolean })], j.prototype, "clickable", 2), K([l({ type: Boolean, reflect: !0 })], j.prototype, "forceActiveBorder", 2), K([l({ type: Function, attribute: !1 })], j.prototype, "handleBeforeInput", 2), K([l({ type: Number })], j.prototype, "tooltipOffset", 2), K([T()], j.prototype, "errorMessage", 2), K([T()], j.prototype, "_isIconRotating", 2), K([l({ type: String })], j.prototype, "errorTooltipMessage", 2), K([T()], j.prototype, "_iconRotationState", 2), j = K([B("origami-input")], j);
|
|
2178
2178
|
const Ur = H`
|
|
2179
2179
|
:host {
|
|
2180
2180
|
display: block;
|
|
@@ -2474,7 +2474,7 @@ let lt = class extends R {
|
|
|
2474
2474
|
`;
|
|
2475
2475
|
}
|
|
2476
2476
|
};
|
|
2477
|
-
lt.styles = [U, Ur], gt([l({ type: String, reflect: !0 })], lt.prototype, "dir", 2), gt([l({ type: String })], lt.prototype, "label", 2), gt([l({ type: Array })], lt.prototype, "options", 2), gt([l({ type: String })], lt.prototype, "placeholder", 2), gt([l({ type: String })], lt.prototype, "helperText", 2), gt([l({ type: Boolean, reflect: !0 })], lt.prototype, "disabled", 2), gt([l({ type: Boolean, reflect: !0 })], lt.prototype, "required", 2), gt([l({ type: String })], lt.prototype, "defaultValue", 2), gt([l({ type: String })], lt.prototype, "id", 2), gt([l({ type: String })], lt.prototype, "name", 2), gt([l({ type: String })], lt.prototype, "error", 2), gt([l({ type: Number })], lt.prototype, "size", 2), gt([l({ type: Boolean })], lt.prototype, "autoFocus", 2), gt([
|
|
2477
|
+
lt.styles = [U, Ur], gt([l({ type: String, reflect: !0 })], lt.prototype, "dir", 2), gt([l({ type: String })], lt.prototype, "label", 2), gt([l({ type: Array })], lt.prototype, "options", 2), gt([l({ type: String })], lt.prototype, "placeholder", 2), gt([l({ type: String })], lt.prototype, "helperText", 2), gt([l({ type: Boolean, reflect: !0 })], lt.prototype, "disabled", 2), gt([l({ type: Boolean, reflect: !0 })], lt.prototype, "required", 2), gt([l({ type: String })], lt.prototype, "defaultValue", 2), gt([l({ type: String })], lt.prototype, "id", 2), gt([l({ type: String })], lt.prototype, "name", 2), gt([l({ type: String })], lt.prototype, "error", 2), gt([l({ type: Number })], lt.prototype, "size", 2), gt([l({ type: Boolean })], lt.prototype, "autoFocus", 2), gt([T()], lt.prototype, "_errorMessage", 2), gt([l({ type: String })], lt.prototype, "value", 2), lt = gt([B("origami-select")], lt);
|
|
2478
2478
|
const zr = St`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><circle cx="16" cy="16" r="16" fill="#F7931A"/><path fill="#FFF" fill-rule="nonzero" d="M23.189 14.02c.314-2.096-1.283-3.223-3.465-3.975l.708-2.84-1.728-.43-.69 2.765c-.454-.114-.92-.22-1.385-.326l.695-2.783L15.596 6l-.708 2.839c-.376-.086-.746-.17-1.104-.26l.002-.009-2.384-.595-.46 1.846s1.283.294 1.256.312c.7.175.826.638.805 1.006l-.806 3.235c.048.012.11.03.18.057l-.183-.045-1.13 4.532c-.086.212-.303.531-.793.41.018.025-1.256-.313-1.256-.313l-.858 1.978 2.25.561c.418.105.828.215 1.231.318l-.715 2.872 1.727.43.708-2.84c.472.127.93.245 1.378.357l-.706 2.828 1.728.43.715-2.866c2.948.558 5.164.333 6.097-2.333.752-2.146-.037-3.385-1.588-4.192 1.13-.26 1.98-1.003 2.207-2.538zm-3.95 5.538c-.533 2.147-4.148.986-5.32.695l.95-3.805c1.172.293 4.929.872 4.37 3.11zm.535-5.569c-.487 1.953-3.495.96-4.47.717l.86-3.45c.975.243 4.118.696 3.61 2.733z"/></g></svg>
|
|
2479
2479
|
`, jr = St`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><circle cx="16" cy="16" r="16" fill="#627EEA"/><g fill="#FFF" fill-rule="nonzero"><path fill-opacity=".602" d="M16.498 4v8.87l7.497 3.35z"/><path d="M16.498 4L9 16.22l7.498-3.35z"/><path fill-opacity=".602" d="M16.498 21.968v6.027L24 17.616z"/><path d="M16.498 27.995v-6.028L9 17.616z"/><path fill-opacity=".2" d="M16.498 20.573l7.497-4.353-7.497-3.348z"/><path fill-opacity=".602" d="M9 16.22l7.498 4.353v-7.701z"/></g></g></svg>
|
|
2480
2480
|
`, Gr = St`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
@@ -2557,13 +2557,13 @@ let Y = class extends R {
|
|
|
2557
2557
|
`;
|
|
2558
2558
|
}
|
|
2559
2559
|
};
|
|
2560
|
-
X([l({ type: String })], Y.prototype, "label", 2), X([l({ type: String })], Y.prototype, "currency", 2), X([l({ type: String })], Y.prototype, "errorMessage", 2), X([l({ type: String })], Y.prototype, "fiatCurrency", 2), X([l({ type: String })], Y.prototype, "value", 2), X([l({ type: String })], Y.prototype, "rightLabel", 2), X([l({ type: String })], Y.prototype, "suffix", 2), X([l({ type: String })], Y.prototype, "placeholder", 2), X([l({ type: Boolean })], Y.prototype, "disabled", 2), X([l({ type: Boolean })], Y.prototype, "readonly", 2), X([l({ type: Boolean })], Y.prototype, "disableInput", 2), X([l({ type: Boolean })], Y.prototype, "cursorNotAllowed", 2), X([l({ type: String })], Y.prototype, "bgColor", 2), X([l({ type: String })], Y.prototype, "testId", 2), X([l({ type: String })], Y.prototype, "tooltip", 2), X([l({ type: Boolean })], Y.prototype, "maxBetEnabled", 2), X([l({ type: Boolean })], Y.prototype, "dimmed", 2), X([l({ type: Number })], Y.prototype, "maxPayoutUSD", 2), X([l({ type: String })], Y.prototype, "variant", 2), X([l({ type: Boolean })], Y.prototype, "required", 2), X([l({ type: Boolean })], Y.prototype, "displayInFiat", 2), X([
|
|
2560
|
+
X([l({ type: String })], Y.prototype, "label", 2), X([l({ type: String })], Y.prototype, "currency", 2), X([l({ type: String })], Y.prototype, "errorMessage", 2), X([l({ type: String })], Y.prototype, "fiatCurrency", 2), X([l({ type: String })], Y.prototype, "value", 2), X([l({ type: String })], Y.prototype, "rightLabel", 2), X([l({ type: String })], Y.prototype, "suffix", 2), X([l({ type: String })], Y.prototype, "placeholder", 2), X([l({ type: Boolean })], Y.prototype, "disabled", 2), X([l({ type: Boolean })], Y.prototype, "readonly", 2), X([l({ type: Boolean })], Y.prototype, "disableInput", 2), X([l({ type: Boolean })], Y.prototype, "cursorNotAllowed", 2), X([l({ type: String })], Y.prototype, "bgColor", 2), X([l({ type: String })], Y.prototype, "testId", 2), X([l({ type: String })], Y.prototype, "tooltip", 2), X([l({ type: Boolean })], Y.prototype, "maxBetEnabled", 2), X([l({ type: Boolean })], Y.prototype, "dimmed", 2), X([l({ type: Number })], Y.prototype, "maxPayoutUSD", 2), X([l({ type: String })], Y.prototype, "variant", 2), X([l({ type: Boolean })], Y.prototype, "required", 2), X([l({ type: Boolean })], Y.prototype, "displayInFiat", 2), X([Me("origami-input")], Y.prototype, "input", 2), Y = X([B("origami-raw-currency-input")], Y);
|
|
2561
2561
|
var qr = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Bo = Math.ceil, Vt = Math.floor, Ct = "[BigNumber Error] ", fs = Ct + "Number primitive has more than 15 significant digits: ", Wt = 1e14, N = 14, ys = 9007199254740991, Po = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ee = 1e7, kt = 1e9;
|
|
2562
2562
|
function Ft(e) {
|
|
2563
2563
|
var t = 0 | e;
|
|
2564
2564
|
return e > 0 || e === t ? t : t - 1;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function It(e) {
|
|
2567
2567
|
for (var t, i, o = 1, r = e.length, s = e[0] + ""; o < r; ) {
|
|
2568
2568
|
for (t = e[o++] + "", i = N - t.length; i--; t = "0" + t) ;
|
|
2569
2569
|
s += t;
|
|
@@ -2603,7 +2603,7 @@ function fe(e, t, i) {
|
|
|
2603
2603
|
return e;
|
|
2604
2604
|
}
|
|
2605
2605
|
var $ = function e(t) {
|
|
2606
|
-
var i, o, r, s, a, g, w, L, V, k, C = S.prototype = { constructor: S, toString: null, valueOf: null }, D = new S(1), A = 20,
|
|
2606
|
+
var i, o, r, s, a, g, w, L, V, k, C = S.prototype = { constructor: S, toString: null, valueOf: null }, D = new S(1), A = 20, O = 4, it = -7, W = 21, dt = -1e7, tt = 1e7, Yt = !1, ot = 1, ut = 0, Xe = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, Xt = "0123456789abcdefghijklmnopqrstuvwxyz", So = !0;
|
|
2607
2607
|
function S(n, c) {
|
|
2608
2608
|
var d, f, u, h, m, p, y, v, b = this;
|
|
2609
2609
|
if (!(b instanceof S)) return new S(n, c);
|
|
@@ -2621,7 +2621,7 @@ var $ = function e(t) {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
(h = v.indexOf(".")) > -1 && (v = v.replace(".", "")), (m = v.search(/e/i)) > 0 ? (h < 0 && (h = m), h += +v.slice(m + 1), v = v.substring(0, m)) : h < 0 && (h = v.length);
|
|
2623
2623
|
} else {
|
|
2624
|
-
if (Q(c, 2, Xt.length, "Base"), c == 10 && So) return Dt(b = new S(n), A + b.e + 1,
|
|
2624
|
+
if (Q(c, 2, Xt.length, "Base"), c == 10 && So) return Dt(b = new S(n), A + b.e + 1, O);
|
|
2625
2625
|
if (v = String(n), p = typeof n == "number") {
|
|
2626
2626
|
if (0 * n != 0) return r(b, v, p, c);
|
|
2627
2627
|
if (b.s = 1 / n < 0 ? (v = v.slice(1), -1) : 1, S.DEBUG && v.replace(/^0\.0*|\./, "").length > 15) throw Error(fs + n);
|
|
@@ -2658,9 +2658,9 @@ var $ = function e(t) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
function ko(n, c, d, f) {
|
|
2660
2660
|
var u, h, m, p, y;
|
|
2661
|
-
if (d == null ? d =
|
|
2662
|
-
if (u = n.c[0], m = n.e, c == null) y =
|
|
2663
|
-
else if (h = (n = Dt(new S(n), c, d)).e, p = (y =
|
|
2661
|
+
if (d == null ? d = O : Q(d, 0, 8), !n.c) return n.toString();
|
|
2662
|
+
if (u = n.c[0], m = n.e, c == null) y = It(n.c), y = f == 1 || f == 2 && (m <= it || m >= W) ? so(y, m) : fe(y, m, "0");
|
|
2663
|
+
else if (h = (n = Dt(new S(n), c, d)).e, p = (y = It(n.c)).length, f == 1 || f == 2 && (c <= h || h <= it)) {
|
|
2664
2664
|
for (; p < c; y += "0", p++) ;
|
|
2665
2665
|
y = so(y, h);
|
|
2666
2666
|
} else if (c -= m, y = fe(y, h, "0"), h + 1 > p) {
|
|
@@ -2678,31 +2678,31 @@ var $ = function e(t) {
|
|
|
2678
2678
|
return (d = f + d * N - 1) > tt ? n.c = n.e = null : d < dt ? n.c = [n.e = 0] : (n.e = d, n.c = c), n;
|
|
2679
2679
|
}
|
|
2680
2680
|
function Dt(n, c, d, f) {
|
|
2681
|
-
var u, h, m, p, y, v, b,
|
|
2682
|
-
if (
|
|
2681
|
+
var u, h, m, p, y, v, b, M = n.c, I = Po;
|
|
2682
|
+
if (M) {
|
|
2683
2683
|
t: {
|
|
2684
|
-
for (u = 1, p =
|
|
2685
|
-
if ((h = c - u) < 0) h += N, m = c, y =
|
|
2686
|
-
else if ((v = Bo((h + 1) / N)) >=
|
|
2684
|
+
for (u = 1, p = M[0]; p >= 10; p /= 10, u++) ;
|
|
2685
|
+
if ((h = c - u) < 0) h += N, m = c, y = M[v = 0], b = Vt(y / I[u - m - 1] % 10);
|
|
2686
|
+
else if ((v = Bo((h + 1) / N)) >= M.length) {
|
|
2687
2687
|
if (!f) break t;
|
|
2688
|
-
for (;
|
|
2688
|
+
for (; M.length <= v; M.push(0)) ;
|
|
2689
2689
|
y = b = 0, u = 1, m = (h %= N) - N + 1;
|
|
2690
2690
|
} else {
|
|
2691
|
-
for (y = p =
|
|
2692
|
-
b = (m = (h %= N) - N + u) < 0 ? 0 : Vt(y /
|
|
2691
|
+
for (y = p = M[v], u = 1; p >= 10; p /= 10, u++) ;
|
|
2692
|
+
b = (m = (h %= N) - N + u) < 0 ? 0 : Vt(y / I[u - m - 1] % 10);
|
|
2693
2693
|
}
|
|
2694
|
-
if (f = f || c < 0 ||
|
|
2695
|
-
if (h == 0 ? (
|
|
2694
|
+
if (f = f || c < 0 || M[v + 1] != null || (m < 0 ? y : y % I[u - m - 1]), f = d < 4 ? (b || f) && (d == 0 || d == (n.s < 0 ? 3 : 2)) : b > 5 || b == 5 && (d == 4 || f || d == 6 && (h > 0 ? m > 0 ? y / I[u - m] : 0 : M[v - 1]) % 10 & 1 || d == (n.s < 0 ? 8 : 7)), c < 1 || !M[0]) return M.length = 0, f ? (c -= n.e + 1, M[0] = I[(N - c % N) % N], n.e = -c || 0) : M[0] = n.e = 0, n;
|
|
2695
|
+
if (h == 0 ? (M.length = v, p = 1, v--) : (M.length = v + 1, p = I[N - h], M[v] = m > 0 ? Vt(y / I[u - m] % I[m]) * p : 0), f) for (; ; ) {
|
|
2696
2696
|
if (v == 0) {
|
|
2697
|
-
for (h = 1, m =
|
|
2698
|
-
for (m =
|
|
2699
|
-
h != p && (n.e++,
|
|
2697
|
+
for (h = 1, m = M[0]; m >= 10; m /= 10, h++) ;
|
|
2698
|
+
for (m = M[0] += p, p = 1; m >= 10; m /= 10, p++) ;
|
|
2699
|
+
h != p && (n.e++, M[0] == Wt && (M[0] = 1));
|
|
2700
2700
|
break;
|
|
2701
2701
|
}
|
|
2702
|
-
if (
|
|
2703
|
-
|
|
2702
|
+
if (M[v] += p, M[v] != Wt) break;
|
|
2703
|
+
M[v--] = 0, p = 1;
|
|
2704
2704
|
}
|
|
2705
|
-
for (h =
|
|
2705
|
+
for (h = M.length; M[--h] === 0; M.pop()) ;
|
|
2706
2706
|
}
|
|
2707
2707
|
n.e > tt ? n.c = n.e = null : n.e < dt && (n.c = [n.e = 0]);
|
|
2708
2708
|
}
|
|
@@ -2710,13 +2710,13 @@ var $ = function e(t) {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
function me(n) {
|
|
2712
2712
|
var c, d = n.e;
|
|
2713
|
-
return d === null ? n.toString() : (c =
|
|
2713
|
+
return d === null ? n.toString() : (c = It(n.c), c = d <= it || d >= W ? so(c, d) : fe(c, d, "0"), n.s < 0 ? "-" + c : c);
|
|
2714
2714
|
}
|
|
2715
2715
|
return S.clone = e, S.ROUND_UP = 0, S.ROUND_DOWN = 1, S.ROUND_CEIL = 2, S.ROUND_FLOOR = 3, S.ROUND_HALF_UP = 4, S.ROUND_HALF_DOWN = 5, S.ROUND_HALF_EVEN = 6, S.ROUND_HALF_CEIL = 7, S.ROUND_HALF_FLOOR = 8, S.EUCLID = 9, S.config = S.set = function(n) {
|
|
2716
2716
|
var c, d;
|
|
2717
2717
|
if (n != null) {
|
|
2718
2718
|
if (typeof n != "object") throw Error(Ct + "Object expected: " + n);
|
|
2719
|
-
if (n.hasOwnProperty(c = "DECIMAL_PLACES") && (Q(d = n[c], 0, kt, c), A = d), n.hasOwnProperty(c = "ROUNDING_MODE") && (Q(d = n[c], 0, 8, c),
|
|
2719
|
+
if (n.hasOwnProperty(c = "DECIMAL_PLACES") && (Q(d = n[c], 0, kt, c), A = d), n.hasOwnProperty(c = "ROUNDING_MODE") && (Q(d = n[c], 0, 8, c), O = d), n.hasOwnProperty(c = "EXPONENTIAL_AT") && ((d = n[c]) && d.pop ? (Q(d[0], -1e9, 0, c), Q(d[1], 0, kt, c), it = d[0], W = d[1]) : (Q(d, -1e9, kt, c), it = -(W = d < 0 ? -d : d))), n.hasOwnProperty(c = "RANGE")) if ((d = n[c]) && d.pop) Q(d[0], -1e9, -1, c), Q(d[1], 1, kt, c), dt = d[0], tt = d[1];
|
|
2720
2720
|
else {
|
|
2721
2721
|
if (Q(d, -1e9, kt, c), !d) throw Error(Ct + c + " cannot be zero: " + d);
|
|
2722
2722
|
dt = -(tt = d < 0 ? -d : d);
|
|
@@ -2737,7 +2737,7 @@ var $ = function e(t) {
|
|
|
2737
2737
|
So = d.slice(0, 10) == "0123456789", Xt = d;
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
|
-
return { DECIMAL_PLACES: A, ROUNDING_MODE:
|
|
2740
|
+
return { DECIMAL_PLACES: A, ROUNDING_MODE: O, EXPONENTIAL_AT: [it, W], RANGE: [dt, tt], CRYPTO: Yt, MODULO_MODE: ot, POW_PRECISION: ut, FORMAT: Xe, ALPHABET: Xt };
|
|
2741
2741
|
}, S.isBigNumber = function(n) {
|
|
2742
2742
|
if (!n || n._isBigNumber !== !0) return !1;
|
|
2743
2743
|
if (!S.DEBUG) return !0;
|
|
@@ -2795,12 +2795,12 @@ var $ = function e(t) {
|
|
|
2795
2795
|
return y.reverse();
|
|
2796
2796
|
}
|
|
2797
2797
|
return function(d, f, u, h, m) {
|
|
2798
|
-
var p, y, v, b,
|
|
2799
|
-
for (et >= 0 && (b = ut, ut = 0, d = d.replace(".", ""),
|
|
2798
|
+
var p, y, v, b, M, I, P, Z, et = d.indexOf("."), at = A, z = O;
|
|
2799
|
+
for (et >= 0 && (b = ut, ut = 0, d = d.replace(".", ""), I = (Z = new S(f)).pow(d.length - et), ut = b, Z.c = c(fe(It(I.c), I.e, "0"), 10, u, n), Z.e = Z.c.length), v = b = (P = c(d, f, u, m ? (p = Xt, n) : (p = n, Xt))).length; P[--b] == 0; P.pop()) ;
|
|
2800
2800
|
if (!P[0]) return p.charAt(0);
|
|
2801
|
-
if (et < 0 ? --v : (
|
|
2801
|
+
if (et < 0 ? --v : (I.c = P, I.e = v, I.s = h, P = (I = i(I, Z, at, z, u)).c, M = I.r, v = I.e), et = P[y = v + at + 1], b = u / 2, M = M || y < 0 || P[y + 1] != null, M = z < 4 ? (et != null || M) && (z == 0 || z == (I.s < 0 ? 3 : 2)) : et > b || et == b && (z == 4 || M || z == 6 && 1 & P[y - 1] || z == (I.s < 0 ? 8 : 7)), y < 1 || !P[0]) d = M ? fe(p.charAt(1), -at, p.charAt(0)) : p.charAt(0);
|
|
2802
2802
|
else {
|
|
2803
|
-
if (P.length = y,
|
|
2803
|
+
if (P.length = y, M) for (--u; ++P[--y] > u; ) P[y] = 0, y || (++v, P = [1].concat(P));
|
|
2804
2804
|
for (b = P.length; !P[--b]; ) ;
|
|
2805
2805
|
for (et = 0, d = ""; et <= b; d += p.charAt(P[et++])) ;
|
|
2806
2806
|
d = fe(d, v, p.charAt(0));
|
|
@@ -2809,8 +2809,8 @@ var $ = function e(t) {
|
|
|
2809
2809
|
};
|
|
2810
2810
|
}(), i = /* @__PURE__ */ function() {
|
|
2811
2811
|
function n(f, u, h) {
|
|
2812
|
-
var m, p, y, v, b = 0,
|
|
2813
|
-
for (f = f.slice();
|
|
2812
|
+
var m, p, y, v, b = 0, M = f.length, I = u % Ee, P = u / Ee | 0;
|
|
2813
|
+
for (f = f.slice(); M--; ) b = ((p = I * (y = f[M] % Ee) + (m = P * y + (v = f[M] / Ee | 0) * I) % Ee * Ee + b) / h | 0) + (m / Ee | 0) + P * v, f[M] = p % h;
|
|
2814
2814
|
return b && (f = [b].concat(f)), f;
|
|
2815
2815
|
}
|
|
2816
2816
|
function c(f, u, h, m) {
|
|
@@ -2827,27 +2827,27 @@ var $ = function e(t) {
|
|
|
2827
2827
|
for (; !f[0] && f.length > 1; f.splice(0, 1)) ;
|
|
2828
2828
|
}
|
|
2829
2829
|
return function(f, u, h, m, p) {
|
|
2830
|
-
var y, v, b,
|
|
2830
|
+
var y, v, b, M, I, P, Z, et, at, z, q, ht, to, Mo, To, Qt, Ii, At = f.s == u.s ? 1 : -1, ft = f.c, J = u.c;
|
|
2831
2831
|
if (!(ft && ft[0] && J && J[0])) return new S(f.s && u.s && (ft ? !J || ft[0] != J[0] : J) ? ft && ft[0] == 0 || !J ? 0 * At : At / 0 : NaN);
|
|
2832
2832
|
for (at = (et = new S(At)).c = [], At = h + (v = f.e - u.e) + 1, p || (p = Wt, v = Ft(f.e / N) - Ft(u.e / N), At = At / N | 0), b = 0; J[b] == (ft[b] || 0); b++) ;
|
|
2833
|
-
if (J[b] > (ft[b] || 0) && v--, At < 0) at.push(1),
|
|
2833
|
+
if (J[b] > (ft[b] || 0) && v--, At < 0) at.push(1), M = !0;
|
|
2834
2834
|
else {
|
|
2835
|
-
for (
|
|
2836
|
-
|
|
2835
|
+
for (Mo = ft.length, Qt = J.length, b = 0, At += 2, (I = Vt(p / (J[0] + 1))) > 1 && (J = n(J, I, p), ft = n(ft, I, p), Qt = J.length, Mo = ft.length), to = Qt, q = (z = ft.slice(0, Qt)).length; q < Qt; z[q++] = 0) ;
|
|
2836
|
+
Ii = J.slice(), Ii = [0].concat(Ii), To = J[0], J[1] >= p / 2 && To++;
|
|
2837
2837
|
do {
|
|
2838
|
-
if (
|
|
2839
|
-
if (ht = z[0], Qt != q && (ht = ht * p + (z[1] || 0)), (
|
|
2840
|
-
else
|
|
2841
|
-
if (Z < q && (P = [0].concat(P)), d(z, P, q, p), q = z.length, y == -1) for (; c(J, z, Qt, q) < 1; )
|
|
2842
|
-
} else y === 0 && (
|
|
2843
|
-
at[b++] =
|
|
2844
|
-
} while ((to++ <
|
|
2845
|
-
|
|
2838
|
+
if (I = 0, (y = c(J, z, Qt, q)) < 0) {
|
|
2839
|
+
if (ht = z[0], Qt != q && (ht = ht * p + (z[1] || 0)), (I = Vt(ht / To)) > 1) for (I >= p && (I = p - 1), Z = (P = n(J, I, p)).length, q = z.length; c(P, z, Z, q) == 1; ) I--, d(P, Qt < Z ? Ii : J, Z, p), Z = P.length, y = 1;
|
|
2840
|
+
else I == 0 && (y = I = 1), Z = (P = J.slice()).length;
|
|
2841
|
+
if (Z < q && (P = [0].concat(P)), d(z, P, q, p), q = z.length, y == -1) for (; c(J, z, Qt, q) < 1; ) I++, d(z, Qt < q ? Ii : J, q, p), q = z.length;
|
|
2842
|
+
} else y === 0 && (I++, z = [0]);
|
|
2843
|
+
at[b++] = I, z[0] ? z[q++] = ft[to] || 0 : (z = [ft[to]], q = 1);
|
|
2844
|
+
} while ((to++ < Mo || z[0] != null) && At--);
|
|
2845
|
+
M = z[0] != null, at[0] || at.splice(0, 1);
|
|
2846
2846
|
}
|
|
2847
2847
|
if (p == Wt) {
|
|
2848
2848
|
for (b = 1, At = at[0]; At >= 10; At /= 10, b++) ;
|
|
2849
|
-
Dt(et, h + (et.e = b + v * N - 1) + 1, m,
|
|
2850
|
-
} else et.e = v, et.r = +
|
|
2849
|
+
Dt(et, h + (et.e = b + v * N - 1) + 1, m, M);
|
|
2850
|
+
} else et.e = v, et.r = +M;
|
|
2851
2851
|
return et;
|
|
2852
2852
|
};
|
|
2853
2853
|
}(), g = /^(-?)0([xbo])(?=\w[\w.]*$)/i, w = /^([^.]+)\.$/, L = /^\.([^.]+)$/, V = /^-?(Infinity|NaN)$/, k = /^\s*\+(?=[\w.])|^\s+|\s+$/g, r = function(n, c, d, f) {
|
|
@@ -2868,12 +2868,12 @@ var $ = function e(t) {
|
|
|
2868
2868
|
return ti(this, new S(n, c));
|
|
2869
2869
|
}, C.decimalPlaces = C.dp = function(n, c) {
|
|
2870
2870
|
var d, f, u, h = this;
|
|
2871
|
-
if (n != null) return Q(n, 0, kt), c == null ? c =
|
|
2871
|
+
if (n != null) return Q(n, 0, kt), c == null ? c = O : Q(c, 0, 8), Dt(new S(h), n + h.e + 1, c);
|
|
2872
2872
|
if (!(d = h.c)) return null;
|
|
2873
2873
|
if (f = ((u = d.length - 1) - Ft(this.e / N)) * N, u = d[u]) for (; u % 10 == 0; u /= 10, f--) ;
|
|
2874
2874
|
return f < 0 && (f = 0), f;
|
|
2875
2875
|
}, C.dividedBy = C.div = function(n, c) {
|
|
2876
|
-
return i(this, new S(n, c), A,
|
|
2876
|
+
return i(this, new S(n, c), A, O);
|
|
2877
2877
|
}, C.dividedToIntegerBy = C.idiv = function(n, c) {
|
|
2878
2878
|
return i(this, new S(n, c), 0, 1);
|
|
2879
2879
|
}, C.exponentiatedBy = C.pow = function(n, c) {
|
|
@@ -2902,10 +2902,10 @@ var $ = function e(t) {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
b = b.times(b), h ? b.c && b.c.length > h && (b.c.length = h) : f && (b = b.mod(c));
|
|
2904
2904
|
}
|
|
2905
|
-
return f ? v : (p && (v = D.div(v)), c ? v.mod(c) : h ? Dt(v, ut,
|
|
2905
|
+
return f ? v : (p && (v = D.div(v)), c ? v.mod(c) : h ? Dt(v, ut, O, void 0) : v);
|
|
2906
2906
|
}, C.integerValue = function(n) {
|
|
2907
2907
|
var c = new S(this);
|
|
2908
|
-
return n == null ? n =
|
|
2908
|
+
return n == null ? n = O : Q(n, 0, 8), Dt(c, c.e + 1, n);
|
|
2909
2909
|
}, C.isEqualTo = C.eq = function(n, c) {
|
|
2910
2910
|
return ti(this, new S(n, c)) === 0;
|
|
2911
2911
|
}, C.isFinite = function() {
|
|
@@ -2932,37 +2932,37 @@ var $ = function e(t) {
|
|
|
2932
2932
|
var d, f, u, h, m = this, p = m.s;
|
|
2933
2933
|
if (c = (n = new S(n, c)).s, !p || !c) return new S(NaN);
|
|
2934
2934
|
if (p != c) return n.s = -c, m.plus(n);
|
|
2935
|
-
var y = m.e / N, v = n.e / N, b = m.c,
|
|
2935
|
+
var y = m.e / N, v = n.e / N, b = m.c, M = n.c;
|
|
2936
2936
|
if (!y || !v) {
|
|
2937
|
-
if (!b || !
|
|
2938
|
-
if (!b[0] || !
|
|
2937
|
+
if (!b || !M) return b ? (n.s = -c, n) : new S(M ? m : NaN);
|
|
2938
|
+
if (!b[0] || !M[0]) return M[0] ? (n.s = -c, n) : new S(b[0] ? m : O == 3 ? -0 : 0);
|
|
2939
2939
|
}
|
|
2940
2940
|
if (y = Ft(y), v = Ft(v), b = b.slice(), p = y - v) {
|
|
2941
|
-
for ((h = p < 0) ? (p = -p, u = b) : (v = y, u =
|
|
2941
|
+
for ((h = p < 0) ? (p = -p, u = b) : (v = y, u = M), u.reverse(), c = p; c--; u.push(0)) ;
|
|
2942
2942
|
u.reverse();
|
|
2943
|
-
} else for (f = (h = (p = b.length) < (c =
|
|
2944
|
-
h = b[c] <
|
|
2943
|
+
} else for (f = (h = (p = b.length) < (c = M.length)) ? p : c, p = c = 0; c < f; c++) if (b[c] != M[c]) {
|
|
2944
|
+
h = b[c] < M[c];
|
|
2945
2945
|
break;
|
|
2946
2946
|
}
|
|
2947
|
-
if (h && (u = b, b =
|
|
2947
|
+
if (h && (u = b, b = M, M = u, n.s = -n.s), (c = (f = M.length) - (d = b.length)) > 0) for (; c--; b[d++] = 0) ;
|
|
2948
2948
|
for (c = Wt - 1; f > p; ) {
|
|
2949
|
-
if (b[--f] <
|
|
2949
|
+
if (b[--f] < M[f]) {
|
|
2950
2950
|
for (d = f; d && !b[--d]; b[d] = c) ;
|
|
2951
2951
|
--b[d], b[f] += Wt;
|
|
2952
2952
|
}
|
|
2953
|
-
b[f] -=
|
|
2953
|
+
b[f] -= M[f];
|
|
2954
2954
|
}
|
|
2955
2955
|
for (; b[0] == 0; b.splice(0, 1), --v) ;
|
|
2956
|
-
return b[0] ? Lo(n, b, v) : (n.s =
|
|
2956
|
+
return b[0] ? Lo(n, b, v) : (n.s = O == 3 ? -1 : 1, n.c = [n.e = 0], n);
|
|
2957
2957
|
}, C.modulo = C.mod = function(n, c) {
|
|
2958
2958
|
var d, f, u = this;
|
|
2959
2959
|
return n = new S(n, c), !u.c || !n.s || n.c && !n.c[0] ? new S(NaN) : !n.c || u.c && !u.c[0] ? new S(u) : (ot == 9 ? (f = n.s, n.s = 1, d = i(u, n, 0, 3), n.s = f, d.s *= f) : d = i(u, n, 0, ot), (n = u.minus(d.times(n))).c[0] || ot != 1 || (n.s = u.s), n);
|
|
2960
2960
|
}, C.multipliedBy = C.times = function(n, c) {
|
|
2961
|
-
var d, f, u, h, m, p, y, v, b,
|
|
2961
|
+
var d, f, u, h, m, p, y, v, b, M, I, P, Z, et, at, z = this, q = z.c, ht = (n = new S(n, c)).c;
|
|
2962
2962
|
if (!(q && ht && q[0] && ht[0])) return !z.s || !n.s || q && !q[0] && !ht || ht && !ht[0] && !q ? n.c = n.e = n.s = null : (n.s *= z.s, q && ht ? (n.c = [0], n.e = 0) : n.c = n.e = null), n;
|
|
2963
|
-
for (f = Ft(z.e / N) + Ft(n.e / N), n.s *= z.s, (y = q.length) < (
|
|
2964
|
-
for (et = Wt, at = Ee, u =
|
|
2965
|
-
for (d = 0,
|
|
2963
|
+
for (f = Ft(z.e / N) + Ft(n.e / N), n.s *= z.s, (y = q.length) < (M = ht.length) && (Z = q, q = ht, ht = Z, u = y, y = M, M = u), u = y + M, Z = []; u--; Z.push(0)) ;
|
|
2964
|
+
for (et = Wt, at = Ee, u = M; --u >= 0; ) {
|
|
2965
|
+
for (d = 0, I = ht[u] % at, P = ht[u] / at | 0, h = u + (m = y); h > u; ) d = ((v = I * (v = q[--m] % at) + (p = P * v + (b = q[m] / at | 0) * I) % at * at + Z[h] + d) / et | 0) + (p / at | 0) + P * b, Z[h--] = v % et;
|
|
2966
2966
|
Z[h] = d;
|
|
2967
2967
|
}
|
|
2968
2968
|
return d ? ++f : Z.splice(0, 1), Lo(n, Z, f);
|
|
@@ -2986,7 +2986,7 @@ var $ = function e(t) {
|
|
|
2986
2986
|
return u && (p = [u].concat(p), ++m), Lo(n, p, m);
|
|
2987
2987
|
}, C.precision = C.sd = function(n, c) {
|
|
2988
2988
|
var d, f, u, h = this;
|
|
2989
|
-
if (n != null && n !== !!n) return Q(n, 1, kt), c == null ? c =
|
|
2989
|
+
if (n != null && n !== !!n) return Q(n, 1, kt), c == null ? c = O : Q(c, 0, 8), Dt(new S(h), n, c);
|
|
2990
2990
|
if (!(d = h.c)) return null;
|
|
2991
2991
|
if (f = (u = d.length - 1) * N + 1, u = d[u]) {
|
|
2992
2992
|
for (; u % 10 == 0; u /= 10, f--) ;
|
|
@@ -2998,8 +2998,8 @@ var $ = function e(t) {
|
|
|
2998
2998
|
}, C.squareRoot = C.sqrt = function() {
|
|
2999
2999
|
var n, c, d, f, u, h = this, m = h.c, p = h.s, y = h.e, v = A + 4, b = new S("0.5");
|
|
3000
3000
|
if (p !== 1 || !m || !m[0]) return new S(!p || p < 0 && (!m || m[0]) ? NaN : m ? h : 1 / 0);
|
|
3001
|
-
if ((p = Math.sqrt(+me(h))) == 0 || p == 1 / 0 ? (((c =
|
|
3002
|
-
for ((p = (y = d.e) + v) < 3 && (p = 0); ; ) if (u = d, d = b.times(u.plus(i(h, u, v, 1))),
|
|
3001
|
+
if ((p = Math.sqrt(+me(h))) == 0 || p == 1 / 0 ? (((c = It(m)).length + y) % 2 == 0 && (c += "0"), p = Math.sqrt(+c), y = Ft((y + 1) / 2) - (y < 0 || y % 2), d = new S(c = p == 1 / 0 ? "5e" + y : (c = p.toExponential()).slice(0, c.indexOf("e") + 1) + y)) : d = new S(p + ""), d.c[0]) {
|
|
3002
|
+
for ((p = (y = d.e) + v) < 3 && (p = 0); ; ) if (u = d, d = b.times(u.plus(i(h, u, v, 1))), It(u.c).slice(0, p) === (c = It(d.c)).slice(0, p)) {
|
|
3003
3003
|
if (d.e < y && --p, (c = c.slice(p - 3, p + 1)) != "9999" && (f || c != "4999")) {
|
|
3004
3004
|
+c && (+c.slice(1) || c.charAt(0) != "5") || (Dt(d, d.e + A + 2, 1), n = !d.times(d).eq(h));
|
|
3005
3005
|
break;
|
|
@@ -3011,7 +3011,7 @@ var $ = function e(t) {
|
|
|
3011
3011
|
v += 4, p += 4, f = 1;
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
|
-
return Dt(d, d.e + A + 1,
|
|
3014
|
+
return Dt(d, d.e + A + 1, O, n);
|
|
3015
3015
|
}, C.toExponential = function(n, c) {
|
|
3016
3016
|
return n != null && (Q(n, 0, kt), n++), ko(this, n, c, 1);
|
|
3017
3017
|
}, C.toFixed = function(n, c) {
|
|
@@ -3021,27 +3021,27 @@ var $ = function e(t) {
|
|
|
3021
3021
|
if (d == null) n != null && c && typeof c == "object" ? (d = c, c = null) : n && typeof n == "object" ? (d = n, n = c = null) : d = Xe;
|
|
3022
3022
|
else if (typeof d != "object") throw Error(Ct + "Argument not an object: " + d);
|
|
3023
3023
|
if (f = u.toFixed(n, c), u.c) {
|
|
3024
|
-
var h, m = f.split("."), p = +d.groupSize, y = +d.secondaryGroupSize, v = d.groupSeparator || "", b = m[0],
|
|
3024
|
+
var h, m = f.split("."), p = +d.groupSize, y = +d.secondaryGroupSize, v = d.groupSeparator || "", b = m[0], M = m[1], I = u.s < 0, P = I ? b.slice(1) : b, Z = P.length;
|
|
3025
3025
|
if (y && (h = p, p = y, y = h, Z -= h), p > 0 && Z > 0) {
|
|
3026
3026
|
for (h = Z % p || p, b = P.substr(0, h); h < Z; h += p) b += v + P.substr(h, p);
|
|
3027
|
-
y > 0 && (b += v + P.slice(h)),
|
|
3027
|
+
y > 0 && (b += v + P.slice(h)), I && (b = "-" + b);
|
|
3028
3028
|
}
|
|
3029
|
-
f =
|
|
3029
|
+
f = M ? b + (d.decimalSeparator || "") + ((y = +d.fractionGroupSize) ? M.replace(new RegExp("\\d{" + y + "}\\B", "g"), "$&" + (d.fractionGroupSeparator || "")) : M) : b;
|
|
3030
3030
|
}
|
|
3031
3031
|
return (d.prefix || "") + f + (d.suffix || "");
|
|
3032
3032
|
}, C.toFraction = function(n) {
|
|
3033
|
-
var c, d, f, u, h, m, p, y, v, b,
|
|
3033
|
+
var c, d, f, u, h, m, p, y, v, b, M, I, P = this, Z = P.c;
|
|
3034
3034
|
if (n != null && (!(p = new S(n)).isInteger() && (p.c || p.s !== 1) || p.lt(D))) throw Error(Ct + "Argument " + (p.isInteger() ? "out of range: " : "not an integer: ") + me(p));
|
|
3035
3035
|
if (!Z) return new S(P);
|
|
3036
|
-
for (c = new S(D), v = d = new S(D), f = y = new S(D),
|
|
3037
|
-
return u = i(n.minus(d), f, 0, 1), y = y.plus(u.times(v)), d = d.plus(u.times(f)), y.s = v.s = P.s,
|
|
3036
|
+
for (c = new S(D), v = d = new S(D), f = y = new S(D), I = It(Z), h = c.e = I.length - P.e - 1, c.c[0] = Po[(m = h % N) < 0 ? N + m : m], n = !n || p.comparedTo(c) > 0 ? h > 0 ? c : v : p, m = tt, tt = 1 / 0, p = new S(I), y.c[0] = 0; b = i(p, c, 0, 1), (u = d.plus(b.times(f))).comparedTo(n) != 1; ) d = f, f = u, v = y.plus(b.times(u = v)), y = u, c = p.minus(b.times(u = c)), p = u;
|
|
3037
|
+
return u = i(n.minus(d), f, 0, 1), y = y.plus(u.times(v)), d = d.plus(u.times(f)), y.s = v.s = P.s, M = i(v, f, h *= 2, O).minus(P).abs().comparedTo(i(y, d, h, O).minus(P).abs()) < 1 ? [v, f] : [y, d], tt = m, M;
|
|
3038
3038
|
}, C.toNumber = function() {
|
|
3039
3039
|
return +me(this);
|
|
3040
3040
|
}, C.toPrecision = function(n, c) {
|
|
3041
3041
|
return n != null && Q(n, 1, kt), ko(this, n, c, 2);
|
|
3042
3042
|
}, C.toString = function(n) {
|
|
3043
3043
|
var c, d = this, f = d.s, u = d.e;
|
|
3044
|
-
return u === null ? f ? (c = "Infinity", f < 0 && (c = "-" + c)) : c = "NaN" : (n == null ? c = u <= it || u >= W ? so(
|
|
3044
|
+
return u === null ? f ? (c = "Infinity", f < 0 && (c = "-" + c)) : c = "NaN" : (n == null ? c = u <= it || u >= W ? so(It(d.c), u) : fe(It(d.c), u, "0") : n === 10 && So ? c = fe(It((d = Dt(new S(d), A + u + 1, O)).c), d.e, "0") : (Q(n, 2, Xt.length, "Base"), c = o(fe(It(d.c), u, "0"), 10, n, f, !0)), f < 0 && d.c[0] && (c = "-" + c)), c;
|
|
3045
3045
|
}, C.valueOf = C.toJSON = function() {
|
|
3046
3046
|
return me(this);
|
|
3047
3047
|
}, C._isBigNumber = !0, C[Symbol.toStringTag] = "BigNumber", C[Symbol.for("nodejs.util.inspect.custom")] = C.valueOf, t != null && S.set(t), S;
|
|
@@ -3137,7 +3137,7 @@ ye.styles = [U, H`
|
|
|
3137
3137
|
flex-grow: 1;
|
|
3138
3138
|
display: block;
|
|
3139
3139
|
}
|
|
3140
|
-
`], ei([yi({ context: ge, subscribe: !0 })], ye.prototype, "gameData", 2), ei([
|
|
3140
|
+
`], ei([yi({ context: ge, subscribe: !0 })], ye.prototype, "gameData", 2), ei([T()], ye.prototype, "isFocused", 2), ei([T()], ye.prototype, "value", 2), ei([l({ type: Boolean })], ye.prototype, "disabled", 2), ei([l({ type: String })], ye.prototype, "label", 2), ei([pe("displayInFiat")], ye.prototype, "handleDisplayInFiatChange", 1), ye = ei([B("origami-bet-amount-input")], ye);
|
|
3141
3141
|
var Qr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, Ni = (e, t, i, o) => {
|
|
3142
3142
|
for (var r, s = o > 1 ? void 0 : o ? Jr(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
3143
3143
|
return o && s && Qr(t, i, s), s;
|
|
@@ -3375,7 +3375,7 @@ var ta = new $(256), ro = new $(25), Fo, ea = (Fo = class {
|
|
|
3375
3375
|
static getChance({ correctPicks: e, picked: t }) {
|
|
3376
3376
|
return new $(qi(10, e)).multipliedBy(qi(30, t - e)).dividedBy(new $(qi(40, t)));
|
|
3377
3377
|
}
|
|
3378
|
-
},
|
|
3378
|
+
}, Tt = ((e) => (e.ABOVE = "ABOVE", e.BELOW = "BELOW", e))(Tt || {}), gi = ((e) => (e.WIN = "WIN", e.LOSS = "LOSS", e))(gi || {}), vt = ((e) => (e.NO_GAME_ACTIVE = "NO_GAME_ACTIVE", e.GAME_IN_PROGRESS = "GAME_IN_PROGRESS", e.VIEWING_RESULTS = "VIEWING_RESULTS", e))(vt || {});
|
|
3379
3379
|
const st = class st {
|
|
3380
3380
|
constructor(t, i) {
|
|
3381
3381
|
this.authToken = t, this.baseUrl = i;
|
|
@@ -3408,7 +3408,7 @@ const st = class st {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
async cashout() {
|
|
3410
3410
|
try {
|
|
3411
|
-
const t = await fetch(`${this.baseUrl}/cashout`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${this.authToken}` } }), i = await t.json();
|
|
3411
|
+
const t = await fetch(`${this.baseUrl}/cashout`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${this.authToken}` }, body: JSON.stringify({}) }), i = await t.json();
|
|
3412
3412
|
if (!i.id) throw new Error("Unknown error");
|
|
3413
3413
|
return { success: !0, data: i };
|
|
3414
3414
|
} catch (t) {
|
|
@@ -3927,7 +3927,7 @@ let zt = class extends R {
|
|
|
3927
3927
|
var e, t;
|
|
3928
3928
|
}
|
|
3929
3929
|
};
|
|
3930
|
-
zt.styles = [U, da], ve([l({ type: Boolean })], zt.prototype, "inputsDisabled", 2), ve([l({ type: Object })], zt.prototype, "autobetSettings", 2), ve([l({ type: String })], zt.prototype, "currency", 2), ve([l({ type: Boolean })], zt.prototype, "autobetStopping", 2), ve([l({ type: Boolean })], zt.prototype, "autobetInProgress", 2), ve([l({ type: String })], zt.prototype, "profitOnWin", 2), ve([l({ type: Boolean })], zt.prototype, "betDisabled", 2), ve([
|
|
3930
|
+
zt.styles = [U, da], ve([l({ type: Boolean })], zt.prototype, "inputsDisabled", 2), ve([l({ type: Object })], zt.prototype, "autobetSettings", 2), ve([l({ type: String })], zt.prototype, "currency", 2), ve([l({ type: Boolean })], zt.prototype, "autobetStopping", 2), ve([l({ type: Boolean })], zt.prototype, "autobetInProgress", 2), ve([l({ type: String })], zt.prototype, "profitOnWin", 2), ve([l({ type: Boolean })], zt.prototype, "betDisabled", 2), ve([Me('slot[name="custom-inputs"]')], zt.prototype, "customInputsSlot", 2), zt = ve([B("origami-generic-autobet")], zt);
|
|
3931
3931
|
var ma = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, De = (e, t, i, o) => {
|
|
3932
3932
|
for (var r, s = o > 1 ? void 0 : o ? ba(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
3933
3933
|
return o && s && ma(t, i, s), s;
|
|
@@ -4279,14 +4279,14 @@ let si = class extends R {
|
|
|
4279
4279
|
${this.showLogo ? x` <div class="footer-logo hide-on-mobile" aria-hidden="true">${Sa}</div> ` : _}
|
|
4280
4280
|
|
|
4281
4281
|
<div class="footer-links">
|
|
4282
|
-
<origami-button
|
|
4282
|
+
<!-- <origami-button
|
|
4283
4283
|
variant="ghost"
|
|
4284
4284
|
@button-click=${this.handleProvablyFairClick}
|
|
4285
4285
|
aria-label="View fairness information"
|
|
4286
4286
|
aria-haspopup="dialog"
|
|
4287
4287
|
>
|
|
4288
4288
|
<span>Fairness</span>
|
|
4289
|
-
</origami-button>
|
|
4289
|
+
</origami-button> -->
|
|
4290
4290
|
</div>
|
|
4291
4291
|
</footer>
|
|
4292
4292
|
`;
|
|
@@ -4338,7 +4338,7 @@ function ks(e) {
|
|
|
4338
4338
|
let t = Ss.get(e);
|
|
4339
4339
|
return t || (t = window.getComputedStyle(e, null), Ss.set(e, t)), t;
|
|
4340
4340
|
}
|
|
4341
|
-
function
|
|
4341
|
+
function Ma(e) {
|
|
4342
4342
|
const t = e.tagName.toLowerCase(), i = Number(e.getAttribute("tabindex"));
|
|
4343
4343
|
if (e.hasAttribute("tabindex") && (isNaN(i) || i <= -1) || e.hasAttribute("disabled") || e.closest("[inert]")) return !1;
|
|
4344
4344
|
if (t === "input" && e.getAttribute("type") === "radio") {
|
|
@@ -4359,7 +4359,7 @@ function Ls(e) {
|
|
|
4359
4359
|
return function o(r) {
|
|
4360
4360
|
if (r instanceof Element) {
|
|
4361
4361
|
if (r.hasAttribute("inert") || r.closest("[inert]") || t.has(r)) return;
|
|
4362
|
-
t.set(r, !0), !i.includes(r) &&
|
|
4362
|
+
t.set(r, !0), !i.includes(r) && Ma(r) && i.push(r), r instanceof HTMLSlotElement && function(s, a) {
|
|
4363
4363
|
var g;
|
|
4364
4364
|
return ((g = s.getRootNode({ composed: !0 })) == null ? void 0 : g.host) !== a;
|
|
4365
4365
|
}(r, e) && r.assignedElements({ flatten: !0 }).forEach((s) => {
|
|
@@ -4477,7 +4477,7 @@ class js {
|
|
|
4477
4477
|
this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
4480
|
-
const
|
|
4480
|
+
const Ta = H`
|
|
4481
4481
|
:root,
|
|
4482
4482
|
:host {
|
|
4483
4483
|
/* Spacing variables that are actually used */
|
|
@@ -4760,7 +4760,7 @@ let Bt = class extends R {
|
|
|
4760
4760
|
`;
|
|
4761
4761
|
}
|
|
4762
4762
|
};
|
|
4763
|
-
Bt.styles = [U,
|
|
4763
|
+
Bt.styles = [U, Ta], ee([l({ type: Boolean })], Bt.prototype, "fixedPosition", 2), ee([Me(".dialog")], Bt.prototype, "dialog", 2), ee([Me(".dialog__panel")], Bt.prototype, "panel", 2), ee([Me(".dialog__overlay")], Bt.prototype, "overlay", 2), ee([l({ type: Boolean, reflect: !0 })], Bt.prototype, "open", 2), ee([l({ reflect: !0 })], Bt.prototype, "label", 2), ee([l({ type: Boolean })], Bt.prototype, "lockScrolling", 2), ee([l({ attribute: "no-header", type: Boolean, reflect: !0 })], Bt.prototype, "noHeader", 2), ee([pe("open", { waitUntilFirstUpdate: !0 })], Bt.prototype, "handleOpenChange", 1), Bt = ee([B("origami-modal")], Bt), mt("dialog.show", { keyframes: [{ opacity: 0, scale: 0.8 }, { opacity: 1, scale: 1 }], options: { duration: 250, easing: "ease" } }), mt("dialog.hide", { keyframes: [{ opacity: 1, scale: 1 }, { opacity: 0, scale: 0.8 }], options: { duration: 250, easing: "ease" } }), mt("dialog.denyClose", { keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }], options: { duration: 250 } }), mt("dialog.overlay.show", { keyframes: [{ opacity: 0 }, { opacity: 1 }], options: { duration: 250 } }), mt("dialog.overlay.hide", { keyframes: [{ opacity: 1 }, { opacity: 0 }], options: { duration: 250 } });
|
|
4764
4764
|
const _a = H`
|
|
4765
4765
|
:host {
|
|
4766
4766
|
display: block;
|
|
@@ -4794,7 +4794,7 @@ const _a = H`
|
|
|
4794
4794
|
origami-limbo-multiplier {
|
|
4795
4795
|
pointer-events: none;
|
|
4796
4796
|
}
|
|
4797
|
-
`,
|
|
4797
|
+
`, Oa = H`
|
|
4798
4798
|
:host {
|
|
4799
4799
|
display: block;
|
|
4800
4800
|
--success-color: var(--win-success-color, #4ef382);
|
|
@@ -4896,9 +4896,9 @@ const _a = H`
|
|
|
4896
4896
|
margin: 0;
|
|
4897
4897
|
}
|
|
4898
4898
|
`;
|
|
4899
|
-
var
|
|
4899
|
+
var Ia = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, _e = (e, t, i, o) => {
|
|
4900
4900
|
for (var r, s = o > 1 ? void 0 : o ? Ba(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
4901
|
-
return o && s &&
|
|
4901
|
+
return o && s && Ia(t, i, s), s;
|
|
4902
4902
|
};
|
|
4903
4903
|
const Pa = { Keno: St`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" viewBox="0 0 14 15" fill="none">
|
|
4904
4904
|
<path d="M0 11V4L3.5 0.5H10.5L14 4V11L10.5 14.5H3.5L0 11Z" fill="#D9D9D9"/>
|
|
@@ -4963,7 +4963,7 @@ let ie = class extends qt {
|
|
|
4963
4963
|
`;
|
|
4964
4964
|
}
|
|
4965
4965
|
};
|
|
4966
|
-
ie.styles = [U,
|
|
4966
|
+
ie.styles = [U, Oa], _e([l({ type: Object })], ie.prototype, "payout", 2), _e([l({ type: Number })], ie.prototype, "multiplier", 2), _e([l({ type: String })], ie.prototype, "currencySymbol", 2), _e([l({ type: String })], ie.prototype, "title", 2), _e([l({ type: String })], ie.prototype, "description", 2), _e([l({ type: Number })], ie.prototype, "gemCount", 2), _e([l({ type: String })], ie.prototype, "gameType", 2), ie = _e([B("origami-game-win-popup")], ie);
|
|
4967
4967
|
const Na = St`<svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" viewBox="0 0 65 69" fill="none">
|
|
4968
4968
|
<path d="M7.24675 10.3565C12.1607 5.44252 16.9688 2.2828 17.9855 3.29949L21.6645 6.97856C21.7391 6.9491 21.8139 6.9206 21.8886 6.89173C21.9245 6.87787 21.9598 6.86274 21.9957 6.84901C22.139 6.79423 22.2832 6.74198 22.4271 6.68936C22.4976 6.6636 22.5679 6.63758 22.6386 6.61233C22.7811 6.56135 22.9239 6.51136 23.0671 6.46248C23.1263 6.44226 23.1856 6.42212 23.245 6.40226C23.7408 6.23625 24.2401 6.08371 24.7421 5.9429C24.8028 5.92586 24.8633 5.90776 24.9241 5.89108C25.0925 5.84493 25.2614 5.80067 25.4304 5.75734C25.4582 5.75021 25.4859 5.74268 25.5137 5.73563C25.6933 5.69011 25.8734 5.64701 26.0536 5.60469C26.0816 5.59811 26.1096 5.59158 26.1376 5.58508C36.4359 3.19585 47.6965 6.01242 55.7224 14.0384C68.092 26.4081 68.092 46.4631 55.7224 58.8328C44.8011 69.7541 27.8904 71.0307 15.5662 62.6666C15.5401 62.6489 15.5139 62.6312 15.4878 62.6134C15.0733 62.3303 14.6639 62.0368 14.2603 61.7318C14.2129 61.696 14.1653 61.6607 14.1181 61.6246C13.937 61.4862 13.7577 61.3446 13.5789 61.2017C13.5333 61.1652 13.4872 61.1292 13.4417 61.0925C13.2654 60.9499 13.0904 60.8052 12.9165 60.6583C12.878 60.6258 12.8387 60.5944 12.8003 60.5617C12.6641 60.4455 12.5303 60.3262 12.3956 60.2074C12.3093 60.1313 12.2221 60.0562 12.1365 59.9791C11.7265 59.6095 11.3234 59.2276 10.9286 58.8328C9.3824 57.2866 8.02965 55.6202 6.87002 53.8639C5.71034 52.1075 4.74417 50.2609 3.97106 48.3544C1.65178 42.6349 1.07128 36.3751 2.23098 30.3855C2.6002 28.4786 3.14769 26.5998 3.86953 24.7738L0.190507 21.0947C-0.826159 20.078 2.3329 15.2705 7.24675 10.3565Z" fill="#E11717"/>
|
|
4969
4969
|
<path d="M55.7227 14.0379C68.0923 26.4076 68.0923 46.4629 55.7227 58.8326C43.3531 71.2023 23.2981 71.2023 10.9285 58.8326C-1.44103 46.4629 -1.44103 26.4076 10.9285 14.0379C23.2981 1.66819 43.3531 1.66819 55.7227 14.0379Z" fill="#BD2828"/>
|
|
@@ -5331,7 +5331,7 @@ const Ha = H`
|
|
|
5331
5331
|
margin: 0 auto;
|
|
5332
5332
|
}
|
|
5333
5333
|
`;
|
|
5334
|
-
var Wa = Object.defineProperty, za = Object.getOwnPropertyDescriptor,
|
|
5334
|
+
var Wa = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Oe = (e, t, i, o) => {
|
|
5335
5335
|
for (var r, s = o > 1 ? void 0 : o ? za(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
5336
5336
|
return o && s && Wa(t, i, s), s;
|
|
5337
5337
|
};
|
|
@@ -5383,7 +5383,7 @@ let oe = class extends R {
|
|
|
5383
5383
|
`;
|
|
5384
5384
|
}
|
|
5385
5385
|
};
|
|
5386
|
-
oe.styles = [U, Ha],
|
|
5386
|
+
oe.styles = [U, Ha], Oe([l({ type: Boolean })], oe.prototype, "isAuto", 2), Oe([l({ type: Array })], oe.prototype, "autobetSelectedTiles", 2), Oe([l({ type: Boolean })], oe.prototype, "autobetInProgress", 2), Oe([l({ type: Object })], oe.prototype, "minesState", 2), Oe([l({ type: Boolean })], oe.prototype, "hasWon", 2), Oe([l({ type: Boolean })], oe.prototype, "hitBomb", 2), Oe([yi({ context: ge, subscribe: !0 })], oe.prototype, "gameData", 2), oe = Oe([B("origami-mines-grid")], oe);
|
|
5387
5387
|
const ja = H`
|
|
5388
5388
|
:host {
|
|
5389
5389
|
--multiplier-success-color: #daff01;
|
|
@@ -5432,7 +5432,7 @@ var Ga = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, wi = (e, t
|
|
|
5432
5432
|
for (var r, s = o > 1 ? void 0 : o ? Za(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
5433
5433
|
return o && s && Ga(t, i, s), s;
|
|
5434
5434
|
};
|
|
5435
|
-
let
|
|
5435
|
+
let Ie = class extends R {
|
|
5436
5436
|
constructor() {
|
|
5437
5437
|
super(...arguments), this.resultMultiplier = null, this.isWin = !0, this.betId = "", this.betTargetMultiplier = 2, this.currentValue = 1, this.animationFrame = null, this.startTime = null;
|
|
5438
5438
|
}
|
|
@@ -5464,7 +5464,7 @@ let Oe = class extends R {
|
|
|
5464
5464
|
return x`<div class=${e}>${t}X</div>`;
|
|
5465
5465
|
}
|
|
5466
5466
|
};
|
|
5467
|
-
|
|
5467
|
+
Ie.styles = [U, ja], wi([l({ type: Number })], Ie.prototype, "resultMultiplier", 2), wi([l({ type: Boolean })], Ie.prototype, "isWin", 2), wi([l({ type: String })], Ie.prototype, "betId", 2), wi([l({ type: Number })], Ie.prototype, "betTargetMultiplier", 2), wi([T()], Ie.prototype, "currentValue", 2), Ie = wi([B("origami-limbo-multiplier")], Ie);
|
|
5468
5468
|
const Ka = St`<svg width="46" height="52" viewBox="0 0 46 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5469
5469
|
<path d="M43.28 11.128L25.05 0.608042C24.358 0.209672 23.5735 0 22.775 0C21.9765 0 21.192 0.209672 20.5 0.608042L2.28 11.128C1.58744 11.5267 1.0121 12.1008 0.611853 12.7924C0.211608 13.4841 0.000579365 14.2689 0 15.068L0 36.068C0.000579365 36.8672 0.211608 37.652 0.611853 38.3437C1.0121 39.0353 1.58744 39.6094 2.28 40.008L20.5 50.578C21.192 50.9764 21.9765 51.1861 22.775 51.1861C23.5735 51.1861 24.358 50.9764 25.05 50.578L43.28 40.058C43.97 39.6573 44.5428 39.0826 44.9411 38.3912C45.3395 37.6998 45.5494 36.916 45.55 36.118V15.118C45.5582 14.3117 45.3525 13.5175 44.9537 12.8166C44.5549 12.1156 43.9774 11.533 43.28 11.128Z" fill="white"/>
|
|
5470
5470
|
<path d="M21.13 24.638L1.85 13.508C1.66327 13.399 1.45112 13.3412 1.23491 13.3403C1.01871 13.3395 0.806098 13.3956 0.618505 13.5031C0.430911 13.6106 0.274964 13.7656 0.166378 13.9526C0.0577928 14.1395 0.000405611 14.3518 0 14.568L0 36.568C0.000480311 37.2143 0.170694 37.8491 0.493607 38.409C0.81652 38.9688 1.28081 39.434 1.84 39.758L20.93 50.758C21.4928 51.0812 22.131 51.2502 22.78 51.248C25.6097 43.5601 25.6097 35.1159 22.78 27.428C22.7682 26.8603 22.6102 26.3052 22.3212 25.8165C22.0321 25.3277 21.6218 24.9218 21.13 24.638Z" fill="#F0F0F0"/>
|
|
@@ -6203,7 +6203,7 @@ let re = class extends R {
|
|
|
6203
6203
|
`;
|
|
6204
6204
|
}
|
|
6205
6205
|
};
|
|
6206
|
-
re.styles = [U, on], Be([l({ type: Array })], re.prototype, "selectedTiles", 2), Be([l({ type: Array })], re.prototype, "resultTiles", 2), Be([l({ type: Boolean })], re.prototype, "popupShowing", 2), Be([l({ type: Boolean, reflect: !0 })], re.prototype, "isPlaying", 2), Be([l({ type: Boolean, reflect: !0 })], re.prototype, "gameOver", 2), Be([
|
|
6206
|
+
re.styles = [U, on], Be([l({ type: Array })], re.prototype, "selectedTiles", 2), Be([l({ type: Array })], re.prototype, "resultTiles", 2), Be([l({ type: Boolean })], re.prototype, "popupShowing", 2), Be([l({ type: Boolean, reflect: !0 })], re.prototype, "isPlaying", 2), Be([l({ type: Boolean, reflect: !0 })], re.prototype, "gameOver", 2), Be([T()], re.prototype, "enableSounds", 2), Be([l({ type: String, attribute: "aria-label" })], re.prototype, "ariaLabel", 2), re = Be([B("origami-keno-grid")], re);
|
|
6207
6207
|
var an = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, xi = (e, t, i, o) => {
|
|
6208
6208
|
for (var r, s = o > 1 ? void 0 : o ? nn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
6209
6209
|
return o && s && an(t, i, s), s;
|
|
@@ -6213,7 +6213,7 @@ let Pe = class extends qt {
|
|
|
6213
6213
|
super(...arguments), this.gameType = "keno";
|
|
6214
6214
|
}
|
|
6215
6215
|
render() {
|
|
6216
|
-
var e, t, i, o, r, s, a, g, w, L, V, k, C, D, A,
|
|
6216
|
+
var e, t, i, o, r, s, a, g, w, L, V, k, C, D, A, O, it, W, dt, tt;
|
|
6217
6217
|
switch (this.gameType) {
|
|
6218
6218
|
case "mines":
|
|
6219
6219
|
return x`
|
|
@@ -6245,7 +6245,7 @@ let Pe = class extends qt {
|
|
|
6245
6245
|
case "keno":
|
|
6246
6246
|
return x`
|
|
6247
6247
|
<origami-keno-grid
|
|
6248
|
-
.selectedTiles=${((
|
|
6248
|
+
.selectedTiles=${((O = this.kenoData) == null ? void 0 : O.selectedTiles) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}
|
|
6249
6249
|
.resultTiles=${((it = this.kenoData) == null ? void 0 : it.resultTiles) || [5, 8, 22, 24, 23, 37]}
|
|
6250
6250
|
?isPlaying=${((W = this.kenoData) == null ? void 0 : W.isPlaying) ?? !1}
|
|
6251
6251
|
?gameOver=${((dt = this.kenoData) == null ? void 0 : dt.gameOver) ?? !0}
|
|
@@ -6647,7 +6647,7 @@ let Lt = class extends qt {
|
|
|
6647
6647
|
`;
|
|
6648
6648
|
}
|
|
6649
6649
|
};
|
|
6650
|
-
Lt.styles = [U, ln], jt([
|
|
6650
|
+
Lt.styles = [U, ln], jt([T()], Lt.prototype, "_activeTab", 2), jt([T()], Lt.prototype, "_publicKey", 2), jt([T()], Lt.prototype, "_request", 2), jt([T()], Lt.prototype, "_proof", 2), jt([T()], Lt.prototype, "_randomness", 2), jt([T()], Lt.prototype, "_clientSeed", 2), jt([T()], Lt.prototype, "verifiedStatus", 2), jt([T()], Lt.prototype, "gameType", 2), jt([T()], Lt.prototype, "_historyData", 2), jt([T()], Lt.prototype, "_showAllHistory", 2), Lt = jt([B("origami-fairness-details")], Lt);
|
|
6651
6651
|
class jo extends qt {
|
|
6652
6652
|
constructor() {
|
|
6653
6653
|
super(), this.title = "", this.icon = "";
|
|
@@ -7231,7 +7231,7 @@ var pn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, $i = (e, t
|
|
|
7231
7231
|
for (var r, s = o > 1 ? void 0 : o ? gn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
7232
7232
|
return o && s && pn(t, i, s), s;
|
|
7233
7233
|
};
|
|
7234
|
-
const mn = { mines: { id: "mines-example-123", amount: "10.00", payout: "20.00", multiplier: 2, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { mines: { minesResult: [2, 5, 9, 14, 22], minesCount: 5, winMultiplier: "2.00", selected: [0, 1, 3, 4, 6, 7, 8, 10, 12, 15] } }, type: "END_BET", actionIndex: 0, originalActionId: null, betAmount: "10.00", payoutAmount: "20.00" }] }, dice: { id: "dice-example-123", amount: "5.00", payout: "9.50", multiplier: 1.9, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { dice: { resultValue: 3456, userValue: 5e3, userDiceDirection:
|
|
7234
|
+
const mn = { mines: { id: "mines-example-123", amount: "10.00", payout: "20.00", multiplier: 2, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { mines: { minesResult: [2, 5, 9, 14, 22], minesCount: 5, winMultiplier: "2.00", selected: [0, 1, 3, 4, 6, 7, 8, 10, 12, 15] } }, type: "END_BET", actionIndex: 0, originalActionId: null, betAmount: "10.00", payoutAmount: "20.00" }] }, dice: { id: "dice-example-123", amount: "5.00", payout: "9.50", multiplier: 1.9, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { dice: { resultValue: 3456, userValue: 5e3, userDiceDirection: Tt.BELOW } }, type: "END_BET", actionIndex: 0, originalActionId: null, betAmount: "5.00", payoutAmount: "9.50" }] }, keno: { id: "keno-example-123", amount: "7.50", payout: "15.00", multiplier: 2, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { keno: { selectedTiles: [2, 7, 12, 18, 24, 29, 35], resultTiles: [7, 12, 18, 24, 29, 35, 37, 39], multiplier: 2, riskLevel: E.CLASSIC } }, type: "END_BET", actionIndex: 0, originalActionId: null, betAmount: "7.50", payoutAmount: "15.00" }] }, limbo: { id: "limbo-example-123", amount: "3.00", payout: "9.00", multiplier: 3, completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: "action1", data: { limbo: { targetMultiplier: 2.5, resultMultiplier: 3 } }, type: "END_BET", actionIndex: 0, originalActionId: null, betAmount: "3.00", payoutAmount: "9.00" }] } };
|
|
7235
7235
|
let Ne = class extends R {
|
|
7236
7236
|
constructor() {
|
|
7237
7237
|
super(...arguments), this.gameType = "keno", this.betResult = null, this.currencySymbol = "$", this.visible = !1, this.variant = "success";
|
|
@@ -7248,7 +7248,7 @@ let Ne = class extends R {
|
|
|
7248
7248
|
if (!e.actions || e.actions.length === 0) return { resultValue: 50, userValue: 50, isRollLower: !1, winChance: "50.0000", isDiceWin: !1 };
|
|
7249
7249
|
const t = e.actions[e.actions.length - 1], i = t == null ? void 0 : t.data.dice;
|
|
7250
7250
|
if (!i) return { resultValue: 50, userValue: 50, isRollLower: !1, winChance: "50.0000", isDiceWin: !1 };
|
|
7251
|
-
const o = i.userDiceDirection ===
|
|
7251
|
+
const o = i.userDiceDirection === Tt.BELOW, r = $(e.multiplier).isGreaterThan(0), s = bt.getWinChance(i.userValue, i.userDiceDirection);
|
|
7252
7252
|
return { resultValue: i.resultValue, userValue: i.userValue, isRollLower: o, winChance: s, isDiceWin: r };
|
|
7253
7253
|
}
|
|
7254
7254
|
_getMinesData() {
|
|
@@ -7708,7 +7708,7 @@ var fn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, Nt = (e, t
|
|
|
7708
7708
|
for (var r, s = o > 1 ? void 0 : o ? yn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
7709
7709
|
return o && s && fn(t, i, s), s;
|
|
7710
7710
|
};
|
|
7711
|
-
function
|
|
7711
|
+
function Ms(e) {
|
|
7712
7712
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
7713
7713
|
}
|
|
7714
7714
|
let $t = class extends R {
|
|
@@ -7814,7 +7814,7 @@ let $t = class extends R {
|
|
|
7814
7814
|
e && e.removeAttribute("autofocus"), await Promise.all([qe(this.drawer), qe(this.overlay)]), this.drawer.hidden = !1, requestAnimationFrame(() => {
|
|
7815
7815
|
this.emit("drawer-initial-focus", { cancelable: !0 }).defaultPrevented || (e ? e.focus({ preventScroll: !0 }) : this.panel.focus({ preventScroll: !0 })), e && e.setAttribute("autofocus", "");
|
|
7816
7816
|
});
|
|
7817
|
-
const t = he(this, `drawer.show${
|
|
7817
|
+
const t = he(this, `drawer.show${Ms(this.placement)}`, { dir: "" }), i = he(this, "drawer.overlay.show", { dir: "" });
|
|
7818
7818
|
await Promise.all([ue(this.panel, t.keyframes, t.options), ue(this.overlay, i.keyframes, i.options)]), this.emit("drawer-after-show");
|
|
7819
7819
|
} else {
|
|
7820
7820
|
if (this.isCustomClosing) return;
|
|
@@ -7823,7 +7823,7 @@ let $t = class extends R {
|
|
|
7823
7823
|
const { activeElement: r } = document;
|
|
7824
7824
|
r && o.contains(r) && ((s = document.activeElement) == null || s.blur());
|
|
7825
7825
|
})(this), this.emit("drawer-hide"), this.removeOpenListeners(), this.cleanupDragState(), this.contained || (this.focusTrap.deactivate(), Di(this)), await Promise.all([qe(this.drawer), qe(this.overlay)]);
|
|
7826
|
-
const e = he(this, `drawer.hide${
|
|
7826
|
+
const e = he(this, `drawer.hide${Ms(this.placement)}`, { dir: "" }), t = he(this, "drawer.overlay.hide", { dir: "" });
|
|
7827
7827
|
await Promise.all([ue(this.overlay, t.keyframes, t.options).then(() => {
|
|
7828
7828
|
this.overlay.hidden = !0;
|
|
7829
7829
|
}), ue(this.panel, e.keyframes, e.options).then(() => {
|
|
@@ -7897,7 +7897,7 @@ let $t = class extends R {
|
|
|
7897
7897
|
`;
|
|
7898
7898
|
}
|
|
7899
7899
|
};
|
|
7900
|
-
$t.styles = [U, bn], Nt([
|
|
7900
|
+
$t.styles = [U, bn], Nt([Me(".drawer")], $t.prototype, "drawer", 2), Nt([Me(".drawer__panel")], $t.prototype, "panel", 2), Nt([Me(".drawer__overlay")], $t.prototype, "overlay", 2), Nt([l({ type: Boolean, reflect: !0 })], $t.prototype, "open", 2), Nt([l({ reflect: !0 })], $t.prototype, "label", 2), Nt([l({ reflect: !0 })], $t.prototype, "placement", 2), Nt([l({ type: Boolean, reflect: !0 })], $t.prototype, "contained", 2), Nt([l({ attribute: "no-header", type: Boolean, reflect: !0 })], $t.prototype, "noHeader", 2), Nt([l({ attribute: "no-close-button", type: Boolean, reflect: !0 })], $t.prototype, "noCloseButton", 2), Nt([pe("open", { waitUntilFirstUpdate: !0 })], $t.prototype, "handleOpenChange", 1), Nt([pe("contained", { waitUntilFirstUpdate: !0 })], $t.prototype, "handleNoModalChange", 1), $t = Nt([B("origami-drawer")], $t), mt("drawer.showTop", { keyframes: [{ opacity: 0, translate: "0 -100%" }, { opacity: 1, translate: "0 0" }], options: { duration: 250, easing: "ease" } }), mt("drawer.hideTop", { keyframes: [{ opacity: 1, translate: "0 0" }, { opacity: 0, translate: "0 -100%" }], options: { duration: 250, easing: "ease" } }), mt("drawer.showEnd", { keyframes: [{ opacity: 0, translate: "100%" }, { opacity: 1, translate: "0" }], rtlKeyframes: [{ opacity: 0, translate: "-100%" }, { opacity: 1, translate: "0" }], options: { duration: 250, easing: "ease" } }), mt("drawer.hideEnd", { keyframes: [{ opacity: 1, translate: "0" }, { opacity: 0, translate: "100%" }], rtlKeyframes: [{ opacity: 1, translate: "0" }, { opacity: 0, translate: "-100%" }], options: { duration: 250, easing: "ease" } }), mt("drawer.showBottom", { keyframes: [{ opacity: 0, translate: "0 100%" }, { opacity: 1, translate: "0 0" }], options: { duration: 250, easing: "ease" } }), mt("drawer.hideBottom", { keyframes: [{ opacity: 1, translate: "0 0" }, { opacity: 0, translate: "0 100%" }], options: { duration: 250, easing: "ease" } }), mt("drawer.showStart", { keyframes: [{ opacity: 0, translate: "-100%" }, { opacity: 1, translate: "0" }], rtlKeyframes: [{ opacity: 0, translate: "100%" }, { opacity: 1, translate: "0" }], options: { duration: 250, easing: "ease" } }), mt("drawer.hideStart", { keyframes: [{ opacity: 1, translate: "0" }, { opacity: 0, translate: "-100%" }], rtlKeyframes: [{ opacity: 1, translate: "0" }, { opacity: 0, translate: "100%" }], options: { duration: 250, easing: "ease" } }), mt("drawer.denyClose", { keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }], options: { duration: 250 } }), mt("drawer.overlay.show", { keyframes: [{ opacity: 0 }, { opacity: 1 }], options: { duration: 250 } }), mt("drawer.overlay.hide", { keyframes: [{ opacity: 1 }, { opacity: 0 }], options: { duration: 250 } });
|
|
7901
7901
|
var vn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, yt = (e, t, i, o) => {
|
|
7902
7902
|
for (var r, s = o > 1 ? void 0 : o ? wn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
7903
7903
|
return o && s && vn(t, i, s), s;
|
|
@@ -7991,7 +7991,7 @@ let ct = class extends R {
|
|
|
7991
7991
|
`;
|
|
7992
7992
|
}
|
|
7993
7993
|
};
|
|
7994
|
-
ct.styles = [U, un], yt([yi({ context: ge, subscribe: !0 })], ct.prototype, "gameData", 2), yt([l({ type: String })], ct.prototype, "className", 2), yt([l({ type: String })], ct.prototype, "containerId", 2), yt([l({ type: Boolean })], ct.prototype, "showFooter", 2), yt([l({ type: Boolean })], ct.prototype, "showLogo", 2), yt([l({ type: String })], ct.prototype, "logoUrl", 2), yt([l({ type: String })], ct.prototype, "logoAlt", 2), yt([
|
|
7994
|
+
ct.styles = [U, un], yt([yi({ context: ge, subscribe: !0 })], ct.prototype, "gameData", 2), yt([l({ type: String })], ct.prototype, "className", 2), yt([l({ type: String })], ct.prototype, "containerId", 2), yt([l({ type: Boolean })], ct.prototype, "showFooter", 2), yt([l({ type: Boolean })], ct.prototype, "showLogo", 2), yt([l({ type: String })], ct.prototype, "logoUrl", 2), yt([l({ type: String })], ct.prototype, "logoAlt", 2), yt([T()], ct.prototype, "showSettings", 2), yt([T()], ct.prototype, "showTheatre", 2), yt([T()], ct.prototype, "showStats", 2), yt([T()], ct.prototype, "showFavorites", 2), yt([T()], ct.prototype, "showFairness", 2), yt([T()], ct.prototype, "showFairnessModal", 2), yt([l({ type: String })], ct.prototype, "betResultModalGameType", 2), ct = yt([B("origami-game-layout")], ct);
|
|
7995
7995
|
const xn = H`
|
|
7996
7996
|
:host {
|
|
7997
7997
|
display: none;
|
|
@@ -8113,7 +8113,7 @@ var $n = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, ni = (e, t
|
|
|
8113
8113
|
};
|
|
8114
8114
|
let xe = class extends R {
|
|
8115
8115
|
constructor() {
|
|
8116
|
-
super(...arguments), this.selectedValue = 50, this.diceDirection =
|
|
8116
|
+
super(...arguments), this.selectedValue = 50, this.diceDirection = Tt.ABOVE, this.winChanceInputFocused = !1, this.multiplierInputFocused = !1, this.winChanceInputValue = "50.0000", this.multiplierInputValue = "1.9800";
|
|
8117
8117
|
}
|
|
8118
8118
|
handleMultiplierBlur() {
|
|
8119
8119
|
this.multiplierInputValue = bt.getMultiplier(this.selectedValue, this.diceDirection);
|
|
@@ -8153,7 +8153,7 @@ let xe = class extends R {
|
|
|
8153
8153
|
|
|
8154
8154
|
<div class="roll-direction" @click=${() => this.emit("dice-roll-over-toggle")}>
|
|
8155
8155
|
<div class="input-label">
|
|
8156
|
-
<span>${this.diceDirection ===
|
|
8156
|
+
<span>${this.diceDirection === Tt.ABOVE ? "Roll Over" : "Roll Under"}</span>
|
|
8157
8157
|
</div>
|
|
8158
8158
|
|
|
8159
8159
|
<button class="roll-button" >
|
|
@@ -8186,7 +8186,7 @@ let xe = class extends R {
|
|
|
8186
8186
|
`;
|
|
8187
8187
|
}
|
|
8188
8188
|
};
|
|
8189
|
-
xe.styles = [U, xn], ni([l({ type: Number })], xe.prototype, "selectedValue", 2), ni([l({ type: String })], xe.prototype, "diceDirection", 2), ni([
|
|
8189
|
+
xe.styles = [U, xn], ni([l({ type: Number })], xe.prototype, "selectedValue", 2), ni([l({ type: String })], xe.prototype, "diceDirection", 2), ni([T()], xe.prototype, "winChanceInputFocused", 2), ni([T()], xe.prototype, "multiplierInputFocused", 2), ni([T()], xe.prototype, "winChanceInputValue", 2), ni([T()], xe.prototype, "multiplierInputValue", 2), xe = ni([B("origami-dice-content-bottom")], xe);
|
|
8190
8190
|
const Sn = H`
|
|
8191
8191
|
:host {
|
|
8192
8192
|
display: flex;
|
|
@@ -8263,9 +8263,9 @@ let li = class extends R {
|
|
|
8263
8263
|
}
|
|
8264
8264
|
};
|
|
8265
8265
|
li.styles = [U, Sn], zi([l({ type: Boolean })], li.prototype, "isPlaying", 2), zi([l({ type: String })], li.prototype, "profitOnWin", 2), zi([l({ type: Boolean })], li.prototype, "betDisabled", 2), zi([l({ type: String })], li.prototype, "currency", 2), li = zi([B("origami-dice-manual")], li);
|
|
8266
|
-
var
|
|
8267
|
-
for (var r, s = o > 1 ? void 0 : o ?
|
|
8268
|
-
return o && s &&
|
|
8266
|
+
var Mn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, Ci = (e, t, i, o) => {
|
|
8267
|
+
for (var r, s = o > 1 ? void 0 : o ? Tn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
8268
|
+
return o && s && Mn(t, i, s), s;
|
|
8269
8269
|
};
|
|
8270
8270
|
let ci = class extends R {
|
|
8271
8271
|
constructor() {
|
|
@@ -8305,7 +8305,7 @@ const En = H`
|
|
|
8305
8305
|
grid-template-rows: auto 1fr;
|
|
8306
8306
|
}
|
|
8307
8307
|
}
|
|
8308
|
-
`,
|
|
8308
|
+
`, Ts = (e, t, i) => {
|
|
8309
8309
|
const o = /* @__PURE__ */ new Map();
|
|
8310
8310
|
for (let r = t; r <= i; r++) o.set(e[r], r);
|
|
8311
8311
|
return o;
|
|
@@ -8325,7 +8325,7 @@ const En = H`
|
|
|
8325
8325
|
return this.dt(e, t, i).values;
|
|
8326
8326
|
}
|
|
8327
8327
|
update(e, [t, i, o]) {
|
|
8328
|
-
const r = ((
|
|
8328
|
+
const r = ((O) => O._$AH)(e), { values: s, keys: a } = this.dt(t, i, o);
|
|
8329
8329
|
if (!Array.isArray(r)) return this.ut = a, s;
|
|
8330
8330
|
const g = this.ut ?? (this.ut = []), w = [];
|
|
8331
8331
|
let L, V, k = 0, C = r.length - 1, D = 0, A = s.length - 1;
|
|
@@ -8335,22 +8335,22 @@ const En = H`
|
|
|
8335
8335
|
else if (g[C] === a[A]) w[A] = Je(r[C], s[A]), C--, A--;
|
|
8336
8336
|
else if (g[k] === a[A]) w[A] = Je(r[k], s[A]), Pi(e, w[A + 1], r[k]), k++, A--;
|
|
8337
8337
|
else if (g[C] === a[D]) w[D] = Je(r[C], s[D]), Pi(e, r[k], r[C]), C--, D++;
|
|
8338
|
-
else if (L === void 0 && (L =
|
|
8339
|
-
const
|
|
8338
|
+
else if (L === void 0 && (L = Ts(a, D, A), V = Ts(g, k, C)), L.has(g[k])) if (L.has(g[C])) {
|
|
8339
|
+
const O = V.get(a[D]), it = O !== void 0 ? r[O] : null;
|
|
8340
8340
|
if (it === null) {
|
|
8341
8341
|
const W = Pi(e, r[k]);
|
|
8342
8342
|
Je(W, s[D]), w[D] = W;
|
|
8343
|
-
} else w[D] = Je(it, s[D]), Pi(e, r[k], it), r[
|
|
8343
|
+
} else w[D] = Je(it, s[D]), Pi(e, r[k], it), r[O] = null;
|
|
8344
8344
|
D++;
|
|
8345
|
-
} else
|
|
8346
|
-
else
|
|
8345
|
+
} else Oo(r[C]), C--;
|
|
8346
|
+
else Oo(r[k]), k++;
|
|
8347
8347
|
for (; D <= A; ) {
|
|
8348
|
-
const
|
|
8349
|
-
Je(
|
|
8348
|
+
const O = Pi(e, w[A + 1]);
|
|
8349
|
+
Je(O, s[D]), w[D++] = O;
|
|
8350
8350
|
}
|
|
8351
8351
|
for (; k <= C; ) {
|
|
8352
|
-
const
|
|
8353
|
-
|
|
8352
|
+
const O = r[k++];
|
|
8353
|
+
O !== null && Oo(O);
|
|
8354
8354
|
}
|
|
8355
8355
|
return this.ut = a, Vs(e, w), Ut;
|
|
8356
8356
|
}
|
|
@@ -8467,8 +8467,8 @@ const En = H`
|
|
|
8467
8467
|
visibility: hidden;
|
|
8468
8468
|
}
|
|
8469
8469
|
`;
|
|
8470
|
-
var _n = Object.defineProperty,
|
|
8471
|
-
for (var r, s = o > 1 ? void 0 : o ?
|
|
8470
|
+
var _n = Object.defineProperty, On = Object.getOwnPropertyDescriptor, lo = (e, t, i, o) => {
|
|
8471
|
+
for (var r, s = o > 1 ? void 0 : o ? On(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
8472
8472
|
return o && s && _n(t, i, s), s;
|
|
8473
8473
|
};
|
|
8474
8474
|
let Si = class extends R {
|
|
@@ -8501,7 +8501,6 @@ let Si = class extends R {
|
|
|
8501
8501
|
`;
|
|
8502
8502
|
}
|
|
8503
8503
|
handleHistoryPillClick(e) {
|
|
8504
|
-
this.emit("open-bet-result-modal", { detail: { gameType: this.gameType, betId: e.id } });
|
|
8505
8504
|
}
|
|
8506
8505
|
render() {
|
|
8507
8506
|
return x`
|
|
@@ -8509,14 +8508,14 @@ let Si = class extends R {
|
|
|
8509
8508
|
`;
|
|
8510
8509
|
}
|
|
8511
8510
|
};
|
|
8512
|
-
Si.styles = [U, An], lo([l({ type: Array })], Si.prototype, "history", 2), lo([l({ type: String })], Si.prototype, "gameType", 2), lo([
|
|
8513
|
-
var
|
|
8511
|
+
Si.styles = [U, An], lo([l({ type: Array })], Si.prototype, "history", 2), lo([l({ type: String })], Si.prototype, "gameType", 2), lo([T()], Si.prototype, "animatingInIds", 2), Si = lo([B("origami-history-pills")], Si);
|
|
8512
|
+
var In = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, Re = (e, t, i, o) => {
|
|
8514
8513
|
for (var r, s = o > 1 ? void 0 : o ? Bn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
8515
|
-
return o && s &&
|
|
8514
|
+
return o && s && In(t, i, s), s;
|
|
8516
8515
|
};
|
|
8517
8516
|
let ae = class extends R {
|
|
8518
8517
|
constructor() {
|
|
8519
|
-
super(...arguments), this.selectedValue = 50, this.diceDirection =
|
|
8518
|
+
super(...arguments), this.selectedValue = 50, this.diceDirection = Tt.ABOVE, this.isPlaying = !1, this.showDice = !0, this.isWin = !0, this.resultValue = null, this.history = [];
|
|
8520
8519
|
}
|
|
8521
8520
|
render() {
|
|
8522
8521
|
return x`
|
|
@@ -8534,7 +8533,7 @@ let ae = class extends R {
|
|
|
8534
8533
|
?disabled=${this.isPlaying}
|
|
8535
8534
|
.resultValue=${this.resultValue ? this.resultValue / 100 : null}
|
|
8536
8535
|
.isWin=${this.isWin}
|
|
8537
|
-
.isRollLower=${this.diceDirection ===
|
|
8536
|
+
.isRollLower=${this.diceDirection === Tt.BELOW}
|
|
8538
8537
|
></origami-dice-slider>
|
|
8539
8538
|
|
|
8540
8539
|
<origami-dice-content-bottom
|
|
@@ -8572,12 +8571,12 @@ const Jo = class Jo extends R {
|
|
|
8572
8571
|
this.hasPendingBet = !0;
|
|
8573
8572
|
let A = !0;
|
|
8574
8573
|
for (; A && !this.autobetStopping; ) {
|
|
8575
|
-
const [
|
|
8576
|
-
if (
|
|
8577
|
-
|
|
8574
|
+
const [O] = await Promise.all([this.executeAutobet(i, s), xt(this.betDelay)]);
|
|
8575
|
+
if (O.hasError) {
|
|
8576
|
+
O.errorMessage ? alert(O.errorMessage) : alert("An error occurred during autobet"), A = !1;
|
|
8578
8577
|
continue;
|
|
8579
8578
|
}
|
|
8580
|
-
r = r.plus(
|
|
8579
|
+
r = r.plus(O.pnl), s = this.adjustBetAmount(i, O.gameOutcome, o, s), (g = this.gameData) == null || g.updateBalance($(s)), this.isPnLWithinLimits(i, r) ? ((w = this.gameData) == null ? void 0 : w.autobetNumberOfBets) !== 0 ? ((V = this.gameData) == null || V.updateAutobetNumberOfBets(((L = this.gameData) == null ? void 0 : L.autobetNumberOfBets) - 1), A = !Number.isNaN((k = this.gameData) == null ? void 0 : k.autobetNumberOfBets) && !!((C = this.gameData) != null && C.autobetNumberOfBets) && ((D = this.gameData) == null ? void 0 : D.autobetNumberOfBets) > 0, A && await xt(500)) : A = !0 : A = !1;
|
|
8581
8580
|
}
|
|
8582
8581
|
} catch (A) {
|
|
8583
8582
|
console.error("Error occurred in toggle autobet", A), alert("An unexpected error occurred");
|
|
@@ -8598,7 +8597,7 @@ const Jo = class Jo extends R {
|
|
|
8598
8597
|
};
|
|
8599
8598
|
Jo.styles = [U];
|
|
8600
8599
|
let Kt = Jo;
|
|
8601
|
-
ji([
|
|
8600
|
+
ji([T()], Kt.prototype, "manualOrAuto"), ji([T()], Kt.prototype, "hasPendingBet"), ji([T()], Kt.prototype, "autobetInProgress"), ji([T()], Kt.prototype, "autobetStopping"), ji([T()], Kt.prototype, "betDelay");
|
|
8602
8601
|
var Le = ((e) => (e.START_BET = "START_BET", e.END_BET = "END_BET", e.ROLLBACK = "ROLLBACK", e.INTERMEDIATE_BET_ACTION = "INTERMEDIATE_BET_ACTION", e.INTERMEDIATE_NON_BET_ACTION = "INTERMEDIATE_NON_BET_ACTION", e))(Le || {});
|
|
8603
8602
|
class Yo extends bt {
|
|
8604
8603
|
static getRandomValueInRange(t, i) {
|
|
@@ -8607,7 +8606,7 @@ class Yo extends bt {
|
|
|
8607
8606
|
async startBet(t) {
|
|
8608
8607
|
const { amount: i, direction: o, selectedValue: r } = t, s = Yo.getRandomValueInRange(0, 1e4);
|
|
8609
8608
|
let a = 0;
|
|
8610
|
-
a = s > r ? o ===
|
|
8609
|
+
a = s > r ? o === Tt.ABOVE ? $(bt.getMultiplier(r, o)).toNumber() : 0 : o === Tt.BELOW ? $(bt.getMultiplier(r, o)).toNumber() : 0;
|
|
8611
8610
|
const g = $(i).multipliedBy(a).toString(), w = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "dice", currency: Et.USDC, edge: 0.01, amount: i, payout: g, afterBalance: "1000", maxPayoutReached: !1, multiplier: a, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { dice: { resultValue: s, userValue: r, userDiceDirection: o } }, type: Le.END_BET, actionIndex: 0, originalActionId: null, betAmount: i, payoutAmount: g }] };
|
|
8612
8611
|
return await xt(250), { success: !0, data: w };
|
|
8613
8612
|
}
|
|
@@ -8618,7 +8617,7 @@ var Nn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor, Ve = (e, t
|
|
|
8618
8617
|
};
|
|
8619
8618
|
let $e = class extends Kt {
|
|
8620
8619
|
constructor() {
|
|
8621
|
-
super(...arguments), this.diceDirection =
|
|
8620
|
+
super(...arguments), this.diceDirection = Tt.ABOVE, this.selectedValue = 5e3, this.isManualPlaying = !1, this.showDice = !1, this.isWin = !0, this.resultValue = null, this.history = [], this.sliderInputChange = (e) => {
|
|
8622
8621
|
this.selectedValue = 100 * e.detail.value;
|
|
8623
8622
|
}, this.diceMultiplierChange = (e) => {
|
|
8624
8623
|
const t = +e.detail.multiplier;
|
|
@@ -8627,7 +8626,7 @@ let $e = class extends Kt {
|
|
|
8627
8626
|
const t = +e.detail.winChance;
|
|
8628
8627
|
!Number.isNaN(t) && t > 0 && t < 100 ? this.selectedValue = bt.getSelectedValueFromWinChance(t, this.diceDirection) : this.selectedValue = 0;
|
|
8629
8628
|
}, this.diceRollOverToggle = () => {
|
|
8630
|
-
this.diceDirection = this.diceDirection ===
|
|
8629
|
+
this.diceDirection = this.diceDirection === Tt.ABOVE ? Tt.BELOW : Tt.ABOVE, this.selectedValue = bt.getSelectedValueFromRollOver(this.selectedValue);
|
|
8631
8630
|
};
|
|
8632
8631
|
}
|
|
8633
8632
|
get diceApi() {
|
|
@@ -8730,7 +8729,7 @@ let $e = class extends Kt {
|
|
|
8730
8729
|
`;
|
|
8731
8730
|
}
|
|
8732
8731
|
};
|
|
8733
|
-
Ve([
|
|
8732
|
+
Ve([T()], $e.prototype, "diceDirection", 2), Ve([T()], $e.prototype, "selectedValue", 2), Ve([T()], $e.prototype, "isManualPlaying", 2), Ve([T()], $e.prototype, "showDice", 2), Ve([T()], $e.prototype, "isWin", 2), Ve([T()], $e.prototype, "resultValue", 2), Ve([T()], $e.prototype, "history", 2), $e = Ve([B("origami-dice-game")], $e);
|
|
8734
8733
|
const Gs = H`
|
|
8735
8734
|
:host {
|
|
8736
8735
|
display: flex;
|
|
@@ -9189,7 +9188,7 @@ let ne = class extends R {
|
|
|
9189
9188
|
`;
|
|
9190
9189
|
}
|
|
9191
9190
|
};
|
|
9192
|
-
ne.styles = [U, Wn], He([l({ type: Array })], ne.prototype, "selectedTiles", 2), He([l({ type: String })], ne.prototype, "risk", 2), He([l({ type: String })], ne.prototype, "betAmount", 2), He([l({ type: Number })], ne.prototype, "hitCount", 2), He([l({ type: Number })], ne.prototype, "multipliersForSelectedTiles", 2), He([l({ type: Array })], ne.prototype, "resultTiles", 2), He([
|
|
9191
|
+
ne.styles = [U, Wn], He([l({ type: Array })], ne.prototype, "selectedTiles", 2), He([l({ type: String })], ne.prototype, "risk", 2), He([l({ type: String })], ne.prototype, "betAmount", 2), He([l({ type: Number })], ne.prototype, "hitCount", 2), He([l({ type: Number })], ne.prototype, "multipliersForSelectedTiles", 2), He([l({ type: Array })], ne.prototype, "resultTiles", 2), He([T()], ne.prototype, "hoverItemIndex", 2), ne = He([B("origami-keno-content-bottom")], ne);
|
|
9193
9192
|
const Kn = H`
|
|
9194
9193
|
:host {
|
|
9195
9194
|
height: 100%;
|
|
@@ -9228,7 +9227,7 @@ var qn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, Gt = (e, t
|
|
|
9228
9227
|
for (var r, s = o > 1 ? void 0 : o ? Yn(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
9229
9228
|
return o && s && qn(t, i, s), s;
|
|
9230
9229
|
};
|
|
9231
|
-
let
|
|
9230
|
+
let Mt = class extends R {
|
|
9232
9231
|
constructor() {
|
|
9233
9232
|
super(...arguments), this.selectedTiles = [], this.resultTiles = [], this.isPlaying = !1, this.gameOver = !1, this.multipliersForSelectedTiles = 0, this.payout = null, this.gameWinPopupShowing = !1, this.multiplier = 0, this.risk = E.CLASSIC, this.betAmount = "0";
|
|
9234
9233
|
}
|
|
@@ -9272,7 +9271,7 @@ let Tt = class extends R {
|
|
|
9272
9271
|
`;
|
|
9273
9272
|
}
|
|
9274
9273
|
};
|
|
9275
|
-
|
|
9274
|
+
Mt.styles = [U, Kn], Gt([l({ type: Array })], Mt.prototype, "selectedTiles", 2), Gt([l({ type: Array })], Mt.prototype, "resultTiles", 2), Gt([l({ type: Boolean })], Mt.prototype, "isPlaying", 2), Gt([l({ type: Boolean })], Mt.prototype, "gameOver", 2), Gt([l({ type: Number })], Mt.prototype, "multipliersForSelectedTiles", 2), Gt([l({ type: Object })], Mt.prototype, "payout", 2), Gt([l({ type: Boolean })], Mt.prototype, "gameWinPopupShowing", 2), Gt([l({ type: Number })], Mt.prototype, "multiplier", 2), Gt([l({ type: String })], Mt.prototype, "risk", 2), Gt([l({ type: String })], Mt.prototype, "betAmount", 2), Mt = Gt([B("origami-keno-content")], Mt);
|
|
9276
9275
|
class Zs {
|
|
9277
9276
|
constructor(t, i) {
|
|
9278
9277
|
this.authToken = t, this.baseUrl = i;
|
|
@@ -9452,7 +9451,7 @@ let Rt = class extends Kt {
|
|
|
9452
9451
|
`;
|
|
9453
9452
|
}
|
|
9454
9453
|
};
|
|
9455
|
-
Zt([
|
|
9454
|
+
Zt([T()], Rt.prototype, "isManualPlaying", 2), Zt([T()], Rt.prototype, "history", 2), Zt([T()], Rt.prototype, "selectedTiles", 2), Zt([T()], Rt.prototype, "resultTiles", 2), Zt([l({ type: Boolean })], Rt.prototype, "gameWinPopupShowing", 2), Zt([T()], Rt.prototype, "gameOver", 2), Zt([T()], Rt.prototype, "payout", 2), Zt([T()], Rt.prototype, "kenoRisk", 2), Zt([T()], Rt.prototype, "autoselectRunning", 2), Zt([T()], Rt.prototype, "multiplier", 2), Rt = Zt([B("origami-keno-game")], Rt);
|
|
9456
9455
|
const el = H`
|
|
9457
9456
|
:host {
|
|
9458
9457
|
display: flex;
|
|
@@ -9484,7 +9483,7 @@ const el = H`
|
|
|
9484
9483
|
pointer-events: none;
|
|
9485
9484
|
}
|
|
9486
9485
|
`;
|
|
9487
|
-
var il = Object.defineProperty, ol = Object.getOwnPropertyDescriptor,
|
|
9486
|
+
var il = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, Mi = (e, t, i, o) => {
|
|
9488
9487
|
for (var r, s = o > 1 ? void 0 : o ? ol(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
9489
9488
|
return o && s && il(t, i, s), s;
|
|
9490
9489
|
};
|
|
@@ -9527,8 +9526,8 @@ let We = class extends R {
|
|
|
9527
9526
|
`;
|
|
9528
9527
|
}
|
|
9529
9528
|
};
|
|
9530
|
-
We.styles = [U, el],
|
|
9531
|
-
var sl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor,
|
|
9529
|
+
We.styles = [U, el], Mi([l({ type: Boolean })], We.prototype, "inputsDisabled", 2), Mi([l({ type: Boolean })], We.prototype, "isPlaying", 2), Mi([l({ type: String })], We.prototype, "profitOnWin", 2), Mi([l({ type: Boolean })], We.prototype, "betDisabled", 2), Mi([yi({ context: ge, subscribe: !0 })], We.prototype, "gameData", 2), We = Mi([B("origami-limbo-manual")], We);
|
|
9530
|
+
var sl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, Ti = (e, t, i, o) => {
|
|
9532
9531
|
for (var r, s = o > 1 ? void 0 : o ? rl(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
9533
9532
|
return o && s && sl(t, i, s), s;
|
|
9534
9533
|
};
|
|
@@ -9549,7 +9548,7 @@ let di = class extends R {
|
|
|
9549
9548
|
`;
|
|
9550
9549
|
}
|
|
9551
9550
|
};
|
|
9552
|
-
|
|
9551
|
+
Ti([l({ type: Boolean })], di.prototype, "inputsDisabled", 2), Ti([l({ type: Boolean })], di.prototype, "autobetStopping", 2), Ti([l({ type: Boolean })], di.prototype, "autobetInProgress", 2), Ti([l({ type: String })], di.prototype, "profitOnWin", 2), Ti([l({ type: Boolean })], di.prototype, "betDisabled", 2), di = Ti([B("origami-limbo-auto")], di);
|
|
9553
9552
|
const al = H`
|
|
9554
9553
|
:host {
|
|
9555
9554
|
width: 100%;
|
|
@@ -9739,7 +9738,7 @@ let le = class extends R {
|
|
|
9739
9738
|
`;
|
|
9740
9739
|
}
|
|
9741
9740
|
};
|
|
9742
|
-
le.styles = [U, nl], ze([l({ type: Number })], le.prototype, "targetMultiplier", 2), ze([l({ type: Boolean })], le.prototype, "disabled", 2), ze([
|
|
9741
|
+
le.styles = [U, nl], ze([l({ type: Number })], le.prototype, "targetMultiplier", 2), ze([l({ type: Boolean })], le.prototype, "disabled", 2), ze([T()], le.prototype, "winChanceInputFocused", 2), ze([T()], le.prototype, "multiplierInputFocused", 2), ze([T()], le.prototype, "winChanceInputValue", 2), ze([T()], le.prototype, "multiplierInputValue", 2), ze([pe("targetMultiplier")], le.prototype, "targetMultiplierChanged", 1), le = ze([B("origami-limbo-content-bottom")], le);
|
|
9743
9742
|
var dl = Object.defineProperty, ul = Object.getOwnPropertyDescriptor, je = (e, t, i, o) => {
|
|
9744
9743
|
for (var r, s = o > 1 ? void 0 : o ? ul(t, i) : t, a = e.length - 1; a >= 0; a--) (r = e[a]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
9745
9744
|
return o && s && dl(t, i, s), s;
|
|
@@ -9902,7 +9901,7 @@ let Ce = class extends Kt {
|
|
|
9902
9901
|
`;
|
|
9903
9902
|
}
|
|
9904
9903
|
};
|
|
9905
|
-
Ge([
|
|
9904
|
+
Ge([T()], Ce.prototype, "targetMultiplier", 2), Ge([T()], Ce.prototype, "resultMultiplier", 2), Ge([T()], Ce.prototype, "isManualPlaying", 2), Ge([T()], Ce.prototype, "isWin", 2), Ge([T()], Ce.prototype, "history", 2), Ge([T()], Ce.prototype, "betTargetMultiplier", 2), Ge([T()], Ce.prototype, "betId", 2), Ce = Ge([B("origami-limbo-game")], Ce);
|
|
9906
9905
|
const F = class F extends wt {
|
|
9907
9906
|
static setMockSettings(t) {
|
|
9908
9907
|
F.mockSettings = { ...F.mockSettings, ...t }, t.minePositions && (F.minePositions = t.minePositions);
|
|
@@ -9924,7 +9923,7 @@ const F = class F extends wt {
|
|
|
9924
9923
|
return [...t, { id: crypto.randomUUID(), data: { mines: { ...L, minesResult: g ? F.minePositions ?? [] : [] } }, type: r, actionIndex: w, originalActionId: null, betAmount: s, payoutAmount: a }];
|
|
9925
9924
|
}
|
|
9926
9925
|
static updateBetResult(t) {
|
|
9927
|
-
const { prevResult: i = null, amount: o, minesCount: r, selectedTiles: s, isComplete: a = !1, actionType: g = Le.INTERMEDIATE_NON_BET_ACTION } = t, w = !s.some((
|
|
9926
|
+
const { prevResult: i = null, amount: o, minesCount: r, selectedTiles: s, isComplete: a = !1, actionType: g = Le.INTERMEDIATE_NON_BET_ACTION } = t, w = !s.some((O) => F.minePositions.includes(O)) && (!a || s.length > 0), L = s.filter((O) => !F.minePositions.includes(O)).length, V = w ? wt.calculateMinesMultiplier(L, r) : $(0), k = w ? $(o).multipliedBy(V).toString() : "0";
|
|
9928
9927
|
let C = (i == null ? void 0 : i.actions) || [];
|
|
9929
9928
|
i || (C = F.addAction([], [], r, Le.START_BET, o, "0"));
|
|
9930
9929
|
const D = a ? Le.END_BET : g, A = D === Le.END_BET;
|
|
@@ -10142,7 +10141,7 @@ let Ze = class extends Kt {
|
|
|
10142
10141
|
`;
|
|
10143
10142
|
}
|
|
10144
10143
|
};
|
|
10145
|
-
hi([
|
|
10144
|
+
hi([T()], Ze.prototype, "minesCount", 2), hi([T()], Ze.prototype, "autobetSelectedTiles", 2), hi([T()], Ze.prototype, "minesData", 2), hi([T()], Ze.prototype, "isLoading", 2), hi([pe("manualOrAuto")], Ze.prototype, "onManualOrAutoChange", 1), hi([pe("minesCount")], Ze.prototype, "onMinesCountChange", 1), Ze = hi([B("origami-mines-game")], Ze);
|
|
10146
10145
|
export {
|
|
10147
10146
|
$e as DiceGame,
|
|
10148
10147
|
_t as GameProviderWrapper,
|