@betorigami/games 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -76,7 +76,7 @@ let vi = class extends Event {
76
76
  this.host.dispatchEvent(new Ji(this.context, this.host));
77
77
  }
78
78
  };
79
- function Nt({ context: V, subscribe: t }) {
79
+ function Qt({ context: V, subscribe: t }) {
80
80
  return (e, q) => {
81
81
  typeof q == "object" ? q.addInitializer(function() {
82
82
  new xq(this, { context: V, callback: (o) => {
@@ -89,16 +89,16 @@ function Nt({ context: V, subscribe: t }) {
89
89
  });
90
90
  };
91
91
  }
92
- const eq = globalThis, Nq = eq.ShadowRoot && (eq.ShadyCSS === void 0 || eq.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Oq = Symbol(), zq = /* @__PURE__ */ new WeakMap();
92
+ const eq = globalThis, Oq = eq.ShadowRoot && (eq.ShadyCSS === void 0 || eq.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Nq = Symbol(), zq = /* @__PURE__ */ new WeakMap();
93
93
  let Ei = class {
94
94
  constructor(V, t, e) {
95
- if (this._$cssResult$ = !0, e !== Oq) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
95
+ if (this._$cssResult$ = !0, e !== Nq) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
96
96
  this.cssText = V, this.t = t;
97
97
  }
98
98
  get styleSheet() {
99
99
  let V = this.o;
100
100
  const t = this.t;
101
- if (Nq && V === void 0) {
101
+ if (Oq && V === void 0) {
102
102
  const e = t !== void 0 && t.length === 1;
103
103
  e && (V = zq.get(t)), V === void 0 && ((this.o = V = new CSSStyleSheet()).replaceSync(this.cssText), e && zq.set(t, V));
104
104
  }
@@ -114,12 +114,12 @@ const F = (V, ...t) => {
114
114
  if (typeof r == "number") return r;
115
115
  throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
116
116
  })(o) + V[i + 1], V[0]);
117
- return new Ei(e, V, Oq);
118
- }, Pq = Nq ? (V) => V : (V) => V instanceof CSSStyleSheet ? ((t) => {
117
+ return new Ei(e, V, Nq);
118
+ }, Pq = Oq ? (V) => V : (V) => V instanceof CSSStyleSheet ? ((t) => {
119
119
  let e = "";
120
120
  for (const q of t.cssRules) e += q.cssText;
121
- return ((q) => new Ei(typeof q == "string" ? q : q + "", void 0, Oq))(e);
122
- })(V) : V, { is: ji, defineProperty: zi, getOwnPropertyDescriptor: Pi, getOwnPropertyNames: Hi, getOwnPropertySymbols: Xi, getPrototypeOf: $i } = Object, Yt = globalThis, Hq = Yt.trustedTypes, _i = Hq ? Hq.emptyScript : "", yq = Yt.reactiveElementPolyfillSupport, Qe = (V, t) => V, iq = { toAttribute(V, t) {
121
+ return ((q) => new Ei(typeof q == "string" ? q : q + "", void 0, Nq))(e);
122
+ })(V) : V, { is: ji, defineProperty: zi, getOwnPropertyDescriptor: Pi, getOwnPropertyNames: Hi, getOwnPropertySymbols: Xi, getPrototypeOf: $i } = Object, Gt = globalThis, Hq = Gt.trustedTypes, _i = Hq ? Hq.emptyScript : "", yq = Gt.reactiveElementPolyfillSupport, Qe = (V, t) => V, iq = { toAttribute(V, t) {
123
123
  switch (t) {
124
124
  case Boolean:
125
125
  V = V ? _i : null;
@@ -148,8 +148,8 @@ const F = (V, ...t) => {
148
148
  }
149
149
  return e;
150
150
  } }, Rq = (V, t) => !ji(V, t), Xq = { attribute: !0, type: String, converter: iq, reflect: !1, useDefault: !1, hasChanged: Rq };
151
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Yt.litPropertyMetadata ?? (Yt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
152
- let me = class extends HTMLElement {
151
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Gt.litPropertyMetadata ?? (Gt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
152
+ let Ae = class extends HTMLElement {
153
153
  static addInitializer(V) {
154
154
  this._$Ei(), (this.l ?? (this.l = [])).push(V);
155
155
  }
@@ -234,7 +234,7 @@ let me = class extends HTMLElement {
234
234
  createRenderRoot() {
235
235
  const V = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
236
236
  return ((t, e) => {
237
- if (Nq) t.adoptedStyleSheets = e.map((q) => q instanceof CSSStyleSheet ? q : q.styleSheet);
237
+ if (Oq) t.adoptedStyleSheets = e.map((q) => q instanceof CSSStyleSheet ? q : q.styleSheet);
238
238
  else for (const q of e) {
239
239
  const o = document.createElement("style"), i = eq.litNonce;
240
240
  i !== void 0 && o.setAttribute("nonce", i), o.textContent = q.cssText, t.appendChild(o);
@@ -356,10 +356,10 @@ let me = class extends HTMLElement {
356
356
  firstUpdated(V) {
357
357
  }
358
358
  };
359
- me.elementStyles = [], me.shadowRootOptions = { mode: "open" }, me[Qe("elementProperties")] = /* @__PURE__ */ new Map(), me[Qe("finalized")] = /* @__PURE__ */ new Map(), yq == null || yq({ ReactiveElement: me }), (Yt.reactiveElementVersions ?? (Yt.reactiveElementVersions = [])).push("2.1.0");
360
- const Ne = globalThis, oq = Ne.trustedTypes, $q = oq ? oq.createPolicy("lit-html", { createHTML: (V) => V }) : void 0, _q = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, Si = "?" + Gt, Vo = `<${Si}>`, re = document, Fe = () => re.createComment(""), We = (V) => V === null || typeof V != "object" && typeof V != "function", kq = Array.isArray, bq = `[
361
- \f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vi = /-->/g, ti = />/g, Rt = RegExp(`>|${bq}(?:([^\\s"'>=/]+)(${bq}*=${bq}*(?:[^
362
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ei = /'/g, qi = /"/g, ii = /^(?:script|style|textarea|title)$/i, xi = (V) => (t, ...e) => ({ _$litType$: V, strings: t, values: e }), w = xi(1), tV = xi(2), GV = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), ie = re.createTreeWalker(re, 129);
359
+ Ae.elementStyles = [], Ae.shadowRootOptions = { mode: "open" }, Ae[Qe("elementProperties")] = /* @__PURE__ */ new Map(), Ae[Qe("finalized")] = /* @__PURE__ */ new Map(), yq == null || yq({ ReactiveElement: Ae }), (Gt.reactiveElementVersions ?? (Gt.reactiveElementVersions = [])).push("2.1.0");
360
+ const Oe = globalThis, oq = Oe.trustedTypes, $q = oq ? oq.createPolicy("lit-html", { createHTML: (V) => V }) : void 0, _q = "$lit$", Ut = `lit$${Math.random().toFixed(9).slice(2)}$`, Si = "?" + Ut, Vo = `<${Si}>`, re = document, Fe = () => re.createComment(""), We = (V) => V === null || typeof V != "object" && typeof V != "function", kq = Array.isArray, bq = `[
361
+ \f\r]`, Ce = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vi = /-->/g, ti = />/g, Nt = RegExp(`>|${bq}(?:([^\\s"'>=/]+)(${bq}*=${bq}*(?:[^
362
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ei = /'/g, qi = /"/g, ii = /^(?:script|style|textarea|title)$/i, xi = (V) => (t, ...e) => ({ _$litType$: V, strings: t, values: e }), w = xi(1), tV = xi(2), GV = Symbol.for("lit-noChange"), D = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), ie = re.createTreeWalker(re, 129);
363
363
  function ki(V, t) {
364
364
  if (!kq(V) || !V.hasOwnProperty("raw")) throw Error("invalid template strings array");
365
365
  return $q !== void 0 ? $q.createHTML(t) : t;
@@ -369,17 +369,17 @@ class Ke {
369
369
  let o;
370
370
  this.parts = [];
371
371
  let i = 0, r = 0;
372
- const h = t.length - 1, y = this.parts, [B, L] = ((I, C) => {
373
- const T = I.length - 1, Q = [];
374
- let Y, aV = C === 2 ? "<svg>" : C === 3 ? "<math>" : "", W = Me;
375
- for (let fV = 0; fV < T; fV++) {
372
+ const h = t.length - 1, y = this.parts, [B, T] = ((I, C) => {
373
+ const x = I.length - 1, Q = [];
374
+ let Y, aV = C === 2 ? "<svg>" : C === 3 ? "<math>" : "", W = Ce;
375
+ for (let fV = 0; fV < x; fV++) {
376
376
  const oV = I[fV];
377
- let KV, eV, cV = -1, Ot = 0;
378
- for (; Ot < oV.length && (W.lastIndex = Ot, eV = W.exec(oV), eV !== null); ) Ot = W.lastIndex, W === Me ? eV[1] === "!--" ? W = Vi : eV[1] !== void 0 ? W = ti : eV[2] !== void 0 ? (ii.test(eV[2]) && (Y = RegExp("</" + eV[2], "g")), W = Rt) : eV[3] !== void 0 && (W = Rt) : W === Rt ? eV[0] === ">" ? (W = Y ?? Me, cV = -1) : eV[1] === void 0 ? cV = -2 : (cV = W.lastIndex - eV[2].length, KV = eV[1], W = eV[3] === void 0 ? Rt : eV[3] === '"' ? qi : ei) : W === qi || W === ei ? W = Rt : W === Vi || W === ti ? W = Me : (W = Rt, Y = void 0);
379
- const ZV = W === Rt && I[fV + 1].startsWith("/>") ? " " : "";
380
- aV += W === Me ? oV + Vo : cV >= 0 ? (Q.push(KV), oV.slice(0, cV) + _q + oV.slice(cV) + Gt + ZV) : oV + Gt + (cV === -2 ? fV : ZV);
377
+ let ZV, eV, cV = -1, Ot = 0;
378
+ for (; Ot < oV.length && (W.lastIndex = Ot, eV = W.exec(oV), eV !== null); ) Ot = W.lastIndex, W === Ce ? eV[1] === "!--" ? W = Vi : eV[1] !== void 0 ? W = ti : eV[2] !== void 0 ? (ii.test(eV[2]) && (Y = RegExp("</" + eV[2], "g")), W = Nt) : eV[3] !== void 0 && (W = Nt) : W === Nt ? eV[0] === ">" ? (W = Y ?? Ce, cV = -1) : eV[1] === void 0 ? cV = -2 : (cV = W.lastIndex - eV[2].length, ZV = eV[1], W = eV[3] === void 0 ? Nt : eV[3] === '"' ? qi : ei) : W === qi || W === ei ? W = Nt : W === Vi || W === ti ? W = Ce : (W = Nt, Y = void 0);
379
+ const JV = W === Nt && I[fV + 1].startsWith("/>") ? " " : "";
380
+ aV += W === Ce ? oV + Vo : cV >= 0 ? (Q.push(ZV), oV.slice(0, cV) + _q + oV.slice(cV) + Ut + JV) : oV + Ut + (cV === -2 ? fV : JV);
381
381
  }
382
- return [ki(I, aV + (I[T] || "<?>") + (C === 2 ? "</svg>" : C === 3 ? "</math>" : "")), Q];
382
+ return [ki(I, aV + (I[x] || "<?>") + (C === 2 ? "</svg>" : C === 3 ? "</math>" : "")), Q];
383
383
  })(t, e);
384
384
  if (this.el = Ke.createElement(B, q), ie.currentNode = this.el.content, e === 2 || e === 3) {
385
385
  const I = this.el.content.firstChild;
@@ -388,21 +388,21 @@ class Ke {
388
388
  for (; (o = ie.nextNode()) !== null && y.length < h; ) {
389
389
  if (o.nodeType === 1) {
390
390
  if (o.hasAttributes()) for (const I of o.getAttributeNames()) if (I.endsWith(_q)) {
391
- const C = L[r++], T = o.getAttribute(I).split(Gt), Q = /([.?@])?(.*)/.exec(C);
392
- y.push({ type: 1, index: i, name: Q[2], strings: T, ctor: Q[1] === "." ? eo : Q[1] === "?" ? qo : Q[1] === "@" ? io : aq }), o.removeAttribute(I);
393
- } else I.startsWith(Gt) && (y.push({ type: 6, index: i }), o.removeAttribute(I));
391
+ const C = T[r++], x = o.getAttribute(I).split(Ut), Q = /([.?@])?(.*)/.exec(C);
392
+ y.push({ type: 1, index: i, name: Q[2], strings: x, ctor: Q[1] === "." ? eo : Q[1] === "?" ? qo : Q[1] === "@" ? io : aq }), o.removeAttribute(I);
393
+ } else I.startsWith(Ut) && (y.push({ type: 6, index: i }), o.removeAttribute(I));
394
394
  if (ii.test(o.tagName)) {
395
- const I = o.textContent.split(Gt), C = I.length - 1;
395
+ const I = o.textContent.split(Ut), C = I.length - 1;
396
396
  if (C > 0) {
397
397
  o.textContent = oq ? oq.emptyScript : "";
398
- for (let T = 0; T < C; T++) o.append(I[T], Fe()), ie.nextNode(), y.push({ type: 2, index: ++i });
398
+ for (let x = 0; x < C; x++) o.append(I[x], Fe()), ie.nextNode(), y.push({ type: 2, index: ++i });
399
399
  o.append(I[C], Fe());
400
400
  }
401
401
  }
402
402
  } else if (o.nodeType === 8) if (o.data === Si) y.push({ type: 2, index: i });
403
403
  else {
404
404
  let I = -1;
405
- for (; (I = o.data.indexOf(Gt, I + 1)) !== -1; ) y.push({ type: 7, index: i }), I += Gt.length - 1;
405
+ for (; (I = o.data.indexOf(Ut, I + 1)) !== -1; ) y.push({ type: 7, index: i }), I += Ut.length - 1;
406
406
  }
407
407
  i++;
408
408
  }
@@ -412,12 +412,12 @@ class Ke {
412
412
  return q.innerHTML = t, q;
413
413
  }
414
414
  }
415
- function we(V, t, e = V, q) {
415
+ function be(V, t, e = V, q) {
416
416
  var r, h;
417
417
  if (t === GV) return t;
418
418
  let o = q !== void 0 ? (r = e._$Co) == null ? void 0 : r[q] : e._$Cl;
419
419
  const i = We(t) ? void 0 : t._$litDirective$;
420
- return (o == null ? void 0 : o.constructor) !== i && ((h = o == null ? void 0 : o._$AO) == null || h.call(o, !1), i === void 0 ? o = void 0 : (o = new i(V), o._$AT(V, e, q)), q !== void 0 ? (e._$Co ?? (e._$Co = []))[q] = o : e._$Cl = o), o !== void 0 && (t = we(V, o._$AS(V, t.values), o, q)), t;
420
+ return (o == null ? void 0 : o.constructor) !== i && ((h = o == null ? void 0 : o._$AO) == null || h.call(o, !1), i === void 0 ? o = void 0 : (o = new i(V), o._$AT(V, e, q)), q !== void 0 ? (e._$Co ?? (e._$Co = []))[q] = o : e._$Cl = o), o !== void 0 && (t = be(V, o._$AS(V, t.values), o, q)), t;
421
421
  }
422
422
  let to = class {
423
423
  constructor(V, t) {
@@ -436,7 +436,7 @@ let to = class {
436
436
  for (; h !== void 0; ) {
437
437
  if (i === h.index) {
438
438
  let y;
439
- h.type === 2 ? y = new fe(o, o.nextSibling, this, V) : h.type === 1 ? y = new h.ctor(o, h.name, h.strings, this, V) : h.type === 6 && (y = new oo(o, this, V)), this._$AV.push(y), h = e[++r];
439
+ h.type === 2 ? y = new we(o, o.nextSibling, this, V) : h.type === 1 ? y = new h.ctor(o, h.name, h.strings, this, V) : h.type === 6 && (y = new oo(o, this, V)), this._$AV.push(y), h = e[++r];
440
440
  }
441
441
  i !== (h == null ? void 0 : h.index) && (o = ie.nextNode(), i++);
442
442
  }
@@ -447,13 +447,13 @@ let to = class {
447
447
  for (const e of this._$AV) e !== void 0 && (e.strings !== void 0 ? (e._$AI(V, e, t), t += e.strings.length - 2) : e._$AI(V[t])), t++;
448
448
  }
449
449
  };
450
- class fe {
450
+ class we {
451
451
  get _$AU() {
452
452
  var t;
453
453
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
454
454
  }
455
455
  constructor(t, e, q, o) {
456
- this.type = 2, this._$AH = k, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = q, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
456
+ this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = q, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
457
457
  }
458
458
  get parentNode() {
459
459
  let t = this._$AA.parentNode;
@@ -467,7 +467,7 @@ class fe {
467
467
  return this._$AB;
468
468
  }
469
469
  _$AI(t, e = this) {
470
- t = we(this, t, e), We(t) ? t === k || t == null || t === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : t !== this._$AH && t !== GV && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ((q) => kq(q) || typeof (q == null ? void 0 : q[Symbol.iterator]) == "function")(t) ? this.k(t) : this._(t);
470
+ t = be(this, t, e), We(t) ? t === D || t == null || t === "" ? (this._$AH !== D && this._$AR(), this._$AH = D) : t !== this._$AH && t !== GV && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ((q) => kq(q) || typeof (q == null ? void 0 : q[Symbol.iterator]) == "function")(t) ? this.k(t) : this._(t);
471
471
  }
472
472
  O(t) {
473
473
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -476,7 +476,7 @@ class fe {
476
476
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
477
477
  }
478
478
  _(t) {
479
- this._$AH !== k && We(this._$AH) ? this._$AA.nextSibling.data = t : this.T(re.createTextNode(t)), this._$AH = t;
479
+ this._$AH !== D && We(this._$AH) ? this._$AA.nextSibling.data = t : this.T(re.createTextNode(t)), this._$AH = t;
480
480
  }
481
481
  $(t) {
482
482
  var i;
@@ -495,7 +495,7 @@ class fe {
495
495
  kq(this._$AH) || (this._$AH = [], this._$AR());
496
496
  const e = this._$AH;
497
497
  let q, o = 0;
498
- for (const i of t) o === e.length ? e.push(q = new fe(this.O(Fe()), this.O(Fe()), this, this.options)) : q = e[o], q._$AI(i), o++;
498
+ for (const i of t) o === e.length ? e.push(q = new we(this.O(Fe()), this.O(Fe()), this, this.options)) : q = e[o], q._$AI(i), o++;
499
499
  o < e.length && (this._$AR(q && q._$AB.nextSibling, o), e.length = o);
500
500
  }
501
501
  _$AR(t = this._$AA.nextSibling, e) {
@@ -518,21 +518,21 @@ class aq {
518
518
  return this._$AM._$AU;
519
519
  }
520
520
  constructor(t, e, q, o, i) {
521
- this.type = 1, this._$AH = k, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = i, q.length > 2 || q[0] !== "" || q[1] !== "" ? (this._$AH = Array(q.length - 1).fill(new String()), this.strings = q) : this._$AH = k;
521
+ this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = i, q.length > 2 || q[0] !== "" || q[1] !== "" ? (this._$AH = Array(q.length - 1).fill(new String()), this.strings = q) : this._$AH = D;
522
522
  }
523
523
  _$AI(t, e = this, q, o) {
524
524
  const i = this.strings;
525
525
  let r = !1;
526
- if (i === void 0) t = we(this, t, e, 0), r = !We(t) || t !== this._$AH && t !== GV, r && (this._$AH = t);
526
+ if (i === void 0) t = be(this, t, e, 0), r = !We(t) || t !== this._$AH && t !== GV, r && (this._$AH = t);
527
527
  else {
528
528
  const h = t;
529
529
  let y, B;
530
- for (t = i[0], y = 0; y < i.length - 1; y++) B = we(this, h[q + y], e, y), B === GV && (B = this._$AH[y]), r || (r = !We(B) || B !== this._$AH[y]), B === k ? t = k : t !== k && (t += (B ?? "") + i[y + 1]), this._$AH[y] = B;
530
+ for (t = i[0], y = 0; y < i.length - 1; y++) B = be(this, h[q + y], e, y), B === GV && (B = this._$AH[y]), r || (r = !We(B) || B !== this._$AH[y]), B === D ? t = D : t !== D && (t += (B ?? "") + i[y + 1]), this._$AH[y] = B;
531
531
  }
532
532
  r && !o && this.j(t);
533
533
  }
534
534
  j(t) {
535
- t === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
535
+ t === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
536
536
  }
537
537
  }
538
538
  class eo extends aq {
@@ -540,7 +540,7 @@ class eo extends aq {
540
540
  super(...arguments), this.type = 3;
541
541
  }
542
542
  j(t) {
543
- this.element[this.name] = t === k ? void 0 : t;
543
+ this.element[this.name] = t === D ? void 0 : t;
544
544
  }
545
545
  }
546
546
  class qo extends aq {
@@ -548,7 +548,7 @@ class qo extends aq {
548
548
  super(...arguments), this.type = 4;
549
549
  }
550
550
  j(t) {
551
- this.element.toggleAttribute(this.name, !!t && t !== k);
551
+ this.element.toggleAttribute(this.name, !!t && t !== D);
552
552
  }
553
553
  }
554
554
  class io extends aq {
@@ -556,8 +556,8 @@ class io extends aq {
556
556
  super(t, e, q, o, i), this.type = 5;
557
557
  }
558
558
  _$AI(t, e = this) {
559
- if ((t = we(this, t, e, 0) ?? k) === GV) return;
560
- const q = this._$AH, o = t === k && q !== k || t.capture !== q.capture || t.once !== q.once || t.passive !== q.passive, i = t !== k && (q === k || o);
559
+ if ((t = be(this, t, e, 0) ?? D) === GV) return;
560
+ const q = this._$AH, o = t === D && q !== D || t.capture !== q.capture || t.once !== q.once || t.passive !== q.passive, i = t !== D && (q === D || o);
561
561
  o && this.element.removeEventListener(this.name, this, q), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
562
562
  }
563
563
  handleEvent(t) {
@@ -573,21 +573,21 @@ class oo {
573
573
  return this._$AM._$AU;
574
574
  }
575
575
  _$AI(t) {
576
- we(this, t);
576
+ be(this, t);
577
577
  }
578
578
  }
579
- const ro = { I: fe }, wq = Ne.litHtmlPolyfillSupport;
580
- wq == null || wq(Ke, fe), (Ne.litHtmlVersions ?? (Ne.litHtmlVersions = [])).push("3.3.0");
579
+ const ro = { I: we }, wq = Oe.litHtmlPolyfillSupport;
580
+ wq == null || wq(Ke, we), (Oe.litHtmlVersions ?? (Oe.litHtmlVersions = [])).push("3.3.0");
581
581
  const Di = (V, t, e) => {
582
582
  const q = (e == null ? void 0 : e.renderBefore) ?? t;
583
583
  let o = q._$litPart$;
584
584
  if (o === void 0) {
585
585
  const i = (e == null ? void 0 : e.renderBefore) ?? null;
586
- q._$litPart$ = o = new fe(t.insertBefore(Fe(), i), i, void 0, e ?? {});
586
+ q._$litPart$ = o = new we(t.insertBefore(Fe(), i), i, void 0, e ?? {});
587
587
  }
588
588
  return o._$AI(V), o;
589
589
  }, oe = globalThis;
590
- let WV = class extends me {
590
+ let KV = class extends Ae {
591
591
  constructor() {
592
592
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
593
593
  }
@@ -613,9 +613,9 @@ let WV = class extends me {
613
613
  }
614
614
  };
615
615
  var Mi;
616
- WV._$litElement$ = !0, WV.finalized = !0, (Mi = oe.litElementHydrateSupport) == null || Mi.call(oe, { LitElement: WV });
616
+ KV._$litElement$ = !0, KV.finalized = !0, (Mi = oe.litElementHydrateSupport) == null || Mi.call(oe, { LitElement: KV });
617
617
  const fq = oe.litElementPolyfillSupport;
618
- fq == null || fq({ LitElement: WV }), (oe.litElementVersions ?? (oe.litElementVersions = [])).push("4.2.0");
618
+ fq == null || fq({ LitElement: KV }), (oe.litElementVersions ?? (oe.litElementVersions = [])).push("4.2.0");
619
619
  const U = (V) => (t, e) => {
620
620
  e !== void 0 ? e.addInitializer(() => {
621
621
  customElements.define(V, t);
@@ -650,7 +650,7 @@ function n(V) {
650
650
  function E(V) {
651
651
  return n({ ...V, state: !0, attribute: !1 });
652
652
  }
653
- function ye(V, t) {
653
+ function me(V, t) {
654
654
  return (e, q, o) => ((i, r, h) => (h.configurable = !0, h.enumerable = !0, Reflect.decorate && typeof r != "object" && Object.defineProperty(i, r, h), h))(e, q, { get() {
655
655
  return ((i) => {
656
656
  var r;
@@ -659,31 +659,31 @@ function ye(V, t) {
659
659
  } });
660
660
  }
661
661
  var IV = ((V) => (V.BTC = "BTC", V.ETH = "ETH", V.USDC = "USDC", V))(IV || {});
662
- const Zq = class Zq extends WV {
662
+ const Zq = class Zq extends KV {
663
663
  emit(t, e) {
664
664
  const q = new CustomEvent(t, { bubbles: !0, cancelable: !1, composed: !0, detail: {}, ...e });
665
665
  return this.dispatchEvent(q), q;
666
666
  }
667
667
  };
668
668
  Zq.componentStyles = [];
669
- let O = Zq;
670
- const yt = Symbol("game");
671
- var no = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, bt = (V, t, e, q) => {
669
+ let N = Zq;
670
+ const bt = Symbol("game");
671
+ var no = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, zV = (V, t, e, q) => {
672
672
  for (var o, i = q > 1 ? void 0 : q ? lo(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
673
673
  return q && i && no(t, e, i), i;
674
674
  };
675
- let rt = class extends O {
675
+ let YV = class extends N {
676
676
  constructor() {
677
- super(...arguments), this.currency = IV.USDC, this.isTheatreMode = !1, this.showFavorites = !1, this.balance = 1e3, this.baseUrl = "https://us-api.dev.betorigami.com/provider/v1/games", this.authToken = "", this.betAmount = "10.00", this._gameProvider = new Ii(this, { context: yt, initialValue: { amount: "10", updateBalance: this.updateBalance.bind(this), currency: this.currency, isCryptoMode: !0, isTheatreMode: this.isTheatreMode, showFavorites: this.showFavorites, balance: this.balance, baseUrl: this.baseUrl, authToken: this.authToken } });
677
+ super(...arguments), this.currency = IV.USDC, this.isTheatreMode = !1, this.showFavorites = !1, this.balance = 1e3, this.baseUrl = "https://us-api.dev.betorigami.com/provider/v1/games", this.authToken = "", this.isCryptoMode = !0, this.gameStatsOpen = !1, this.betAmount = "10.00", this._gameProvider = new Ii(this, { context: bt, initialValue: { amount: "10", updateBalance: this.updateBalance.bind(this), currency: this.currency, isCryptoMode: this.isCryptoMode, isTheatreMode: this.isTheatreMode, showFavorites: this.showFavorites, balance: this.balance, baseUrl: this.baseUrl, authToken: this.authToken, gameStatsOpen: this.gameStatsOpen } });
678
678
  }
679
679
  connectedCallback() {
680
680
  super.connectedCallback(), this.updateProviderValue();
681
681
  }
682
682
  updated(V) {
683
- super.updated(V), (V.has("currency") || V.has("isTheatreMode") || V.has("showFavorites") || V.has("balance") || V.has("baseUrl")) && this.updateProviderValue();
683
+ super.updated(V), (V.has("currency") || V.has("isTheatreMode") || V.has("showFavorites") || V.has("balance") || V.has("baseUrl") || V.has("isCryptoMode") || V.has("authToken") || V.has("gameStatsOpen")) && this.updateProviderValue();
684
684
  }
685
685
  updateProviderValue() {
686
- this._gameProvider.setValue({ amount: this.betAmount, currency: this.currency, updateBalance: this.updateBalance.bind(this), isCryptoMode: !0, isTheatreMode: this.isTheatreMode, showFavorites: this.showFavorites, balance: this.balance, baseUrl: this.baseUrl, authToken: this.authToken });
686
+ this._gameProvider.setValue({ amount: this.betAmount, currency: this.currency, updateBalance: this.updateBalance.bind(this), isCryptoMode: this.isCryptoMode, isTheatreMode: this.isTheatreMode, showFavorites: this.showFavorites, balance: this.balance, baseUrl: this.baseUrl, authToken: this.authToken, gameStatsOpen: this.gameStatsOpen });
687
687
  }
688
688
  updateBalance(V) {
689
689
  if (V.isNaN()) return;
@@ -694,7 +694,7 @@ let rt = class extends O {
694
694
  return w`<slot></slot>`;
695
695
  }
696
696
  };
697
- bt([n({ type: String })], rt.prototype, "currency", 2), bt([n({ type: Boolean })], rt.prototype, "isTheatreMode", 2), bt([n({ type: Boolean })], rt.prototype, "showFavorites", 2), bt([n({ type: Number })], rt.prototype, "balance", 2), bt([n({ type: String })], rt.prototype, "baseUrl", 2), bt([n({ type: String })], rt.prototype, "authToken", 2), bt([E()], rt.prototype, "betAmount", 2), rt = bt([U("origami-game-provider-wrapper")], rt);
697
+ zV([n({ type: String })], YV.prototype, "currency", 2), zV([n({ type: Boolean })], YV.prototype, "isTheatreMode", 2), zV([n({ type: Boolean })], YV.prototype, "showFavorites", 2), zV([n({ type: Number })], YV.prototype, "balance", 2), zV([n({ type: String })], YV.prototype, "baseUrl", 2), zV([n({ type: String })], YV.prototype, "authToken", 2), zV([n({ type: Boolean })], YV.prototype, "isCryptoMode", 2), zV([n({ type: Boolean })], YV.prototype, "gameStatsOpen", 2), zV([E()], YV.prototype, "betAmount", 2), YV = zV([U("origami-game-provider-wrapper")], YV);
698
698
  const Dq = 1, Li = 2, ri = 3, si = 4, nq = (V) => (...t) => ({ _$litDirective$: V, values: t });
699
699
  class lq {
700
700
  constructor(t) {
@@ -735,7 +735,7 @@ const P = nq(class extends lq {
735
735
  }
736
736
  return GV;
737
737
  }
738
- }), sV = (V) => V ?? k, R = F`
738
+ }), sV = (V) => V ?? D, R = F`
739
739
  :host {
740
740
  box-sizing: border-box;
741
741
  font-family:
@@ -836,7 +836,7 @@ var uo = Object.defineProperty, po = Object.getOwnPropertyDescriptor, wt = (V, t
836
836
  for (var o, i = q > 1 ? void 0 : q ? po(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
837
837
  return q && i && uo(t, e, i), i;
838
838
  };
839
- let jV = class extends O {
839
+ let PV = class extends N {
840
840
  constructor() {
841
841
  super(...arguments), this.option1 = "Manual", this.option2 = "Autobet", this.value = "Manual", this.disabled = !1, this.name = "Toggle", this.class = "", this.noRightBorderRadius = !1;
842
842
  }
@@ -876,8 +876,8 @@ let jV = class extends O {
876
876
  `;
877
877
  }
878
878
  };
879
- jV.styles = [R, co], wt([n({ type: String })], jV.prototype, "option1", 2), wt([n({ type: String })], jV.prototype, "option2", 2), wt([n({ type: String, reflect: !0 })], jV.prototype, "value", 2), wt([n({ type: Boolean, reflect: !0 })], jV.prototype, "disabled", 2), wt([n({ type: String })], jV.prototype, "name", 2), wt([n({ type: String })], jV.prototype, "class", 2), wt([n({ type: Boolean })], jV.prototype, "noRightBorderRadius", 2), jV = wt([U("origami-toggle")], jV);
880
- const { I: ho } = ro, Ti = (V) => V.strings === void 0, ai = () => document.createComment(""), Be = (V, t, e) => {
879
+ PV.styles = [R, co], wt([n({ type: String })], PV.prototype, "option1", 2), wt([n({ type: String })], PV.prototype, "option2", 2), wt([n({ type: String, reflect: !0 })], PV.prototype, "value", 2), wt([n({ type: Boolean, reflect: !0 })], PV.prototype, "disabled", 2), wt([n({ type: String })], PV.prototype, "name", 2), wt([n({ type: String })], PV.prototype, "class", 2), wt([n({ type: Boolean })], PV.prototype, "noRightBorderRadius", 2), PV = wt([U("origami-toggle")], PV);
880
+ const { I: ho } = ro, Ti = (V) => V.strings === void 0, ai = () => document.createComment(""), Me = (V, t, e) => {
881
881
  var i;
882
882
  const q = V._$AA.parentNode, o = t === void 0 ? V._$AB : t._$AA;
883
883
  if (e === void 0) {
@@ -892,13 +892,13 @@ const { I: ho } = ro, Ti = (V) => V.strings === void 0, ai = () => document.crea
892
892
  if (r !== o || y) {
893
893
  let B = e._$AA;
894
894
  for (; B !== r; ) {
895
- const L = B.nextSibling;
896
- q.insertBefore(B, o), B = L;
895
+ const T = B.nextSibling;
896
+ q.insertBefore(B, o), B = T;
897
897
  }
898
898
  }
899
899
  }
900
900
  return e;
901
- }, Ft = (V, t, e = V) => (V._$AI(t, e), V), go = {}, Ui = (V, t = go) => V._$AH = t, Cq = (V) => {
901
+ }, Rt = (V, t, e = V) => (V._$AI(t, e), V), go = {}, Ui = (V, t = go) => V._$AH = t, Cq = (V) => {
902
902
  var q;
903
903
  (q = V._$AP) == null || q.call(V, !1, !0);
904
904
  let t = V._$AA;
@@ -907,11 +907,11 @@ const { I: ho } = ro, Ti = (V) => V.strings === void 0, ai = () => document.crea
907
907
  const o = t.nextSibling;
908
908
  t.remove(), t = o;
909
909
  }
910
- }, Oe = (V, t) => {
910
+ }, Ne = (V, t) => {
911
911
  var q;
912
912
  const e = V._$AN;
913
913
  if (e === void 0) return !1;
914
- for (const o of e) (q = o._$AO) == null || q.call(o, t, !1), Oe(o, t);
914
+ for (const o of e) (q = o._$AO) == null || q.call(o, t, !1), Ne(o, t);
915
915
  return !0;
916
916
  }, rq = (V) => {
917
917
  let t, e;
@@ -932,9 +932,9 @@ function Ao(V) {
932
932
  }
933
933
  function mo(V, t = !1, e = 0) {
934
934
  const q = this._$AH, o = this._$AN;
935
- if (o !== void 0 && o.size !== 0) if (t) if (Array.isArray(q)) for (let i = e; i < q.length; i++) Oe(q[i], !1), rq(q[i]);
936
- else q != null && (Oe(q, !1), rq(q));
937
- else Oe(this, V);
935
+ if (o !== void 0 && o.size !== 0) if (t) if (Array.isArray(q)) for (let i = e; i < q.length; i++) Ne(q[i], !1), rq(q[i]);
936
+ else q != null && (Ne(q, !1), rq(q));
937
+ else Ne(this, V);
938
938
  }
939
939
  const yo = (V) => {
940
940
  V.type == Li && (V._$AP ?? (V._$AP = mo), V._$AQ ?? (V._$AQ = Ao));
@@ -948,7 +948,7 @@ class bo extends lq {
948
948
  }
949
949
  _$AO(t, e = !0) {
950
950
  var q, o;
951
- t !== this.isConnected && (this.isConnected = t, t ? (q = this.reconnected) == null || q.call(this) : (o = this.disconnected) == null || o.call(this)), e && (Oe(this, t), rq(this));
951
+ t !== this.isConnected && (this.isConnected = t, t ? (q = this.reconnected) == null || q.call(this) : (o = this.disconnected) == null || o.call(this)), e && (Ne(this, t), rq(this));
952
952
  }
953
953
  setValue(t) {
954
954
  if (Ti(this._$Ct)) this._$Ct._$AI(t, this);
@@ -967,12 +967,12 @@ class wo {
967
967
  }
968
968
  const Mq = /* @__PURE__ */ new WeakMap(), Tq = nq(class extends bo {
969
969
  render(V) {
970
- return k;
970
+ return D;
971
971
  }
972
972
  update(V, [t]) {
973
973
  var q;
974
974
  const e = t !== this.G;
975
- return e && this.G !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.G = t, this.ht = (q = V.options) == null ? void 0 : q.host, this.rt(this.ct = V.element)), k;
975
+ return e && this.G !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.G = t, this.ht = (q = V.options) == null ? void 0 : q.host, this.rt(this.ct = V.element)), D;
976
976
  }
977
977
  rt(V) {
978
978
  if (this.isConnected || (V = void 0), typeof this.G == "function") {
@@ -1192,12 +1192,12 @@ const Mq = /* @__PURE__ */ new WeakMap(), Tq = nq(class extends bo {
1192
1192
  clip-path: inset(50%);
1193
1193
  }
1194
1194
  `;
1195
- var Co = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, st = (V, t, e, q) => {
1195
+ var Co = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, at = (V, t, e, q) => {
1196
1196
  for (var o, i = q > 1 ? void 0 : q ? Mo(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
1197
1197
  return q && i && Co(t, e, i), i;
1198
1198
  };
1199
1199
  const Bo = tV`<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>`;
1200
- let xV = class extends O {
1200
+ let xV = class extends N {
1201
1201
  constructor() {
1202
1202
  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;
1203
1203
  }
@@ -1235,7 +1235,7 @@ let xV = class extends O {
1235
1235
  `;
1236
1236
  }
1237
1237
  };
1238
- xV.styles = [R, fo], xV.shadowRootOptions = { ...WV.shadowRootOptions, delegatesFocus: !0 }, st([n({ type: String, reflect: !0 })], xV.prototype, "variant", 2), st([n({ type: Boolean, reflect: !0 })], xV.prototype, "disabled", 2), st([n({ type: String, attribute: "aria-label" })], xV.prototype, "ariaLabel", 2), st([n({ type: String, attribute: "aria-describedby" })], xV.prototype, "ariaDescribedby", 2), st([n({ type: String })], xV.prototype, "type", 2), st([n({ type: Boolean, reflect: !0 })], xV.prototype, "isLoading", 2), st([n({ type: Boolean, reflect: !0 })], xV.prototype, "fullWidth", 2), st([n({ type: Boolean, attribute: "enable-haptics" })], xV.prototype, "enableHaptics", 2), xV = st([U("origami-button")], xV);
1238
+ xV.styles = [R, fo], xV.shadowRootOptions = { ...KV.shadowRootOptions, delegatesFocus: !0 }, at([n({ type: String, reflect: !0 })], xV.prototype, "variant", 2), at([n({ type: Boolean, reflect: !0 })], xV.prototype, "disabled", 2), at([n({ type: String, attribute: "aria-label" })], xV.prototype, "ariaLabel", 2), at([n({ type: String, attribute: "aria-describedby" })], xV.prototype, "ariaDescribedby", 2), at([n({ type: String })], xV.prototype, "type", 2), at([n({ type: Boolean, reflect: !0 })], xV.prototype, "isLoading", 2), at([n({ type: Boolean, reflect: !0 })], xV.prototype, "fullWidth", 2), at([n({ type: Boolean, attribute: "enable-haptics" })], xV.prototype, "enableHaptics", 2), xV = at([U("origami-button")], xV);
1239
1239
  const vo = F`
1240
1240
  :host {
1241
1241
  display: inline-flex;
@@ -1292,7 +1292,7 @@ var Io = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, ni = (V, t
1292
1292
  for (var o, i = q > 1 ? void 0 : q ? Eo(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
1293
1293
  return q && i && Io(t, e, i), i;
1294
1294
  };
1295
- let je = class extends O {
1295
+ let je = class extends N {
1296
1296
  constructor() {
1297
1297
  super(...arguments), this.position = "right";
1298
1298
  }
@@ -1310,7 +1310,7 @@ const So = nq(class extends lq {
1310
1310
  return V;
1311
1311
  }
1312
1312
  update(V, [t]) {
1313
- if (t === GV || t === k) return t;
1313
+ if (t === GV || t === D) return t;
1314
1314
  const e = V.element, q = V.name;
1315
1315
  if (V.type === ri) {
1316
1316
  if (t === e[q]) return GV;
@@ -1591,7 +1591,7 @@ const So = nq(class extends lq {
1591
1591
  -webkit-user-select: none;
1592
1592
  }
1593
1593
  `;
1594
- function Qt(V, t) {
1594
+ function Yt(V, t) {
1595
1595
  const e = { waitUntilFirstUpdate: !1, ...t };
1596
1596
  return (q, o) => {
1597
1597
  const { update: i } = q, r = Array.isArray(V) ? V : [V];
@@ -1599,8 +1599,8 @@ function Qt(V, t) {
1599
1599
  r.forEach((y) => {
1600
1600
  const B = y;
1601
1601
  if (h.has(B)) {
1602
- const L = h.get(B), I = this[B];
1603
- L !== I && (e.waitUntilFirstUpdate && !this.hasUpdated || this[o](L, I));
1602
+ const T = h.get(B), I = this[B];
1603
+ T !== I && (e.waitUntilFirstUpdate && !this.hasUpdated || this[o](T, I));
1604
1604
  }
1605
1605
  }), i.call(this, h);
1606
1606
  };
@@ -1825,7 +1825,7 @@ var Do = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, gV = (V, t
1825
1825
  return q && i && Do(t, e, i), i;
1826
1826
  };
1827
1827
  const To = { top: "bottom", "top-start": "bottom-start", "top-end": "bottom-end", bottom: "top", "bottom-start": "top-start", "bottom-end": "top-end", left: "right", "left-start": "right-start", "left-end": "right-end", right: "left", "right-start": "left-start", "right-end": "left-end" };
1828
- let nV = class extends WV {
1828
+ let nV = class extends KV {
1829
1829
  constructor() {
1830
1830
  super(...arguments), this.content = "", this.position = "top", this.trigger = ["hover", "focus"], this.arrow = !0, this.open = !1, this.disabled = !1, this.offset = 4, this.theme = "light", this.delay = 0, this.hideDelay = 0, this.tooltipRef = Lq(), this.triggerRef = Lq(), this.showTimeout = null, this.hideTimeout = null, this.scrollTimeout = null, this.clickOutsideHandler = null, this.keydownHandler = null, this.scrollHandler = null, this.debounceTime = 50, this.handleScroll = () => {
1831
1831
  this.scrollTimeout !== null && window.clearTimeout(this.scrollTimeout), this.scrollTimeout = window.setTimeout(() => {
@@ -1903,8 +1903,8 @@ let nV = class extends WV {
1903
1903
  }
1904
1904
  updatePosition() {
1905
1905
  if (!this.tooltipRef.value || !this.triggerRef.value || !this.open) return;
1906
- const V = this.tooltipRef.value, t = this.triggerRef.value, e = this.triggerSlot.assignedElements()[0] || t, q = this.position, o = this.offset, i = e.getBoundingClientRect(), r = V.getBoundingClientRect(), h = window.innerWidth, y = window.innerHeight, B = i.top, L = y - i.bottom, I = i.left, C = h - i.right;
1907
- let T = q;
1906
+ const V = this.tooltipRef.value, t = this.triggerRef.value, e = this.triggerSlot.assignedElements()[0] || t, q = this.position, o = this.offset, i = e.getBoundingClientRect(), r = V.getBoundingClientRect(), h = window.innerWidth, y = window.innerHeight, B = i.top, T = y - i.bottom, I = i.left, C = h - i.right;
1907
+ let x = q;
1908
1908
  const Q = (Y) => {
1909
1909
  switch (Y) {
1910
1910
  case "top":
@@ -1914,7 +1914,7 @@ let nV = class extends WV {
1914
1914
  case "bottom":
1915
1915
  case "bottom-start":
1916
1916
  case "bottom-end":
1917
- return L < r.height + o + 6;
1917
+ return T < r.height + o + 6;
1918
1918
  case "left":
1919
1919
  case "left-start":
1920
1920
  case "left-end":
@@ -1931,10 +1931,10 @@ let nV = class extends WV {
1931
1931
  const Y = To[q];
1932
1932
  if (Q(Y)) {
1933
1933
  const aV = ["top", "right", "bottom", "left"].find((W) => !Q(W));
1934
- aV && (T = aV);
1935
- } else T = Y;
1934
+ aV && (x = aV);
1935
+ } else x = Y;
1936
1936
  }
1937
- V.setAttribute("data-position", T);
1937
+ V.setAttribute("data-position", x);
1938
1938
  }
1939
1939
  render() {
1940
1940
  const V = `tooltip-${Math.random().toString(36).substring(2, 15)}`, t = { tooltip: !0, "light-theme": this.theme === "light", visible: this.open };
@@ -1943,7 +1943,7 @@ let nV = class extends WV {
1943
1943
  style=${`--tooltip-offset: ${this.offset}px`}
1944
1944
  ${Tq(this.triggerRef)}
1945
1945
  class="tooltip-trigger"
1946
- aria-describedby=${this.open && this.content ? V : k}
1946
+ aria-describedby=${this.open && this.content ? V : D}
1947
1947
  @mouseenter=${this.handleMouseEnter}
1948
1948
  @mouseleave=${this.handleMouseLeave}
1949
1949
  @focusin=${this.handleFocus}
@@ -1961,18 +1961,18 @@ let nV = class extends WV {
1961
1961
  >
1962
1962
  ${this.content}
1963
1963
  <slot name="content"></slot>
1964
- ${this.arrow ? w`<div class="tooltip-arrow"></div>` : k}
1964
+ ${this.arrow ? w`<div class="tooltip-arrow"></div>` : D}
1965
1965
  </div>
1966
1966
  </div>
1967
1967
  `;
1968
1968
  }
1969
1969
  };
1970
- nV.styles = [R, ko], gV([n({ type: String })], nV.prototype, "content", 2), gV([n({ type: String, reflect: !0 })], nV.prototype, "position", 2), gV([n({ type: Array, converter: (V) => typeof V == "string" ? V.split(/[\s,]+/).filter(Boolean) : V })], nV.prototype, "trigger", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "arrow", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "open", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "disabled", 2), gV([n({ type: Number })], nV.prototype, "offset", 2), gV([n({ type: String, reflect: !0 })], nV.prototype, "theme", 2), gV([n({ type: Number })], nV.prototype, "delay", 2), gV([n({ type: Number })], nV.prototype, "hideDelay", 2), gV([ye("#trigger-slot")], nV.prototype, "triggerSlot", 2), gV([Qt("open")], nV.prototype, "onOpenChange", 1), gV([Qt("disabled")], nV.prototype, "onDisabledChange", 1), gV([Qt(["position", "offset", "content"])], nV.prototype, "onPositionChange", 1), nV = gV([U("origami-tooltip")], nV);
1970
+ nV.styles = [R, ko], gV([n({ type: String })], nV.prototype, "content", 2), gV([n({ type: String, reflect: !0 })], nV.prototype, "position", 2), gV([n({ type: Array, converter: (V) => typeof V == "string" ? V.split(/[\s,]+/).filter(Boolean) : V })], nV.prototype, "trigger", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "arrow", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "open", 2), gV([n({ type: Boolean, reflect: !0 })], nV.prototype, "disabled", 2), gV([n({ type: Number })], nV.prototype, "offset", 2), gV([n({ type: String, reflect: !0 })], nV.prototype, "theme", 2), gV([n({ type: Number })], nV.prototype, "delay", 2), gV([n({ type: Number })], nV.prototype, "hideDelay", 2), gV([me("#trigger-slot")], nV.prototype, "triggerSlot", 2), gV([Yt("open")], nV.prototype, "onOpenChange", 1), gV([Yt("disabled")], nV.prototype, "onDisabledChange", 1), gV([Yt(["position", "offset", "content"])], nV.prototype, "onPositionChange", 1), nV = gV([U("origami-tooltip")], nV);
1971
1971
  var Uo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, z = (V, t, e, q) => {
1972
1972
  for (var o, i = q > 1 ? void 0 : q ? Go(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
1973
1973
  return q && i && Uo(t, e, i), i;
1974
1974
  };
1975
- let J = class extends O {
1975
+ let J = class extends N {
1976
1976
  constructor() {
1977
1977
  super(...arguments), this.value = "", this.label = "", this.placeholder = "", this.type = "text", this.disabled = !1, this.rightText = null, this.min = null, this.max = null, this.step = null, this.addonButtonsPosition = "right", this.name = null, this.autocomplete = null, this.required = !1, this.readonly = !1, this.pattern = null, this.validateOnInput = !1, this.validationPattern = null, this.validationMessage = null, this.inputMode = "text", this.hideRightLabel = !1, this.clickable = !1, this.forceActiveBorder = !1, this.handleBeforeInput = null, this._errorMessage = null, this._isIconRotating = !1, this.errorTooltipMessage = "", this._iconRotationState = !1, this.inputRef = Lq(), this.inputId = `input-${Math.random().toString(36).substring(2, 11)}`, this.errorId = `${this.inputId}-error`;
1978
1978
  }
@@ -2015,11 +2015,11 @@ let J = class extends O {
2015
2015
  ${this.label ? w`
2016
2016
  <div class="input-label-text">
2017
2017
  <span>${this.label}</span>
2018
- ${this.required ? w`<span aria-hidden="true">*</span>` : k}
2018
+ ${this.required ? w`<span aria-hidden="true">*</span>` : D}
2019
2019
  </div>
2020
- ` : k}
2020
+ ` : D}
2021
2021
  </div>
2022
- ` : k}
2022
+ ` : D}
2023
2023
  </label>
2024
2024
 
2025
2025
  <origami-tooltip
@@ -2030,10 +2030,10 @@ let J = class extends O {
2030
2030
  style="--origami-tooltip-light-text-color: var(--error-color)"
2031
2031
  >
2032
2032
  <div class="input-wrapper">
2033
- ${this.leftAddon ? w` <slot name="left-addon" class="input-addon-buttons left"></slot> ` : k}
2033
+ ${this.leftAddon ? w` <slot name="left-addon" class="input-addon-buttons left"></slot> ` : D}
2034
2034
 
2035
2035
  <div class="input-inner" @click=${this.clickable ? this.handleClick : void 0}>
2036
- ${this.leftIcon ? w` <slot name="left-icon" class="input-left-icon"></slot> ` : k}
2036
+ ${this.leftIcon ? w` <slot name="left-icon" class="input-left-icon"></slot> ` : D}
2037
2037
  <input
2038
2038
  ${Tq(this.inputRef)}
2039
2039
  id=${this.inputId}
@@ -2071,10 +2071,10 @@ let J = class extends O {
2071
2071
  >
2072
2072
  <slot name="right-icon"></slot>
2073
2073
  </div>
2074
- ` : k}
2074
+ ` : D}
2075
2075
  </div>
2076
2076
 
2077
- ${this.rightAddon ? w` <slot name="right-addon" class="input-addon-buttons right"></slot> ` : k}
2077
+ ${this.rightAddon ? w` <slot name="right-addon" class="input-addon-buttons right"></slot> ` : D}
2078
2078
  </div>
2079
2079
  </origami-tooltip>
2080
2080
 
@@ -2082,7 +2082,7 @@ let J = class extends O {
2082
2082
  <span id="${this.errorId}" class="input-error" role="alert" aria-live="polite">
2083
2083
  ${this._errorMessage}
2084
2084
  </span>
2085
- ` : k}
2085
+ ` : D}
2086
2086
  </div>
2087
2087
  `;
2088
2088
  }
@@ -2288,11 +2288,11 @@ const Yo = F`
2288
2288
  color: #b3b3b3;
2289
2289
  }
2290
2290
  `;
2291
- var Qo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, dV = (V, t, e, q) => {
2292
- for (var o, i = q > 1 ? void 0 : q ? No(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
2291
+ var Qo = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, dV = (V, t, e, q) => {
2292
+ for (var o, i = q > 1 ? void 0 : q ? Oo(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
2293
2293
  return q && i && Qo(t, e, i), i;
2294
2294
  };
2295
- let rV = class extends O {
2295
+ let rV = class extends N {
2296
2296
  constructor() {
2297
2297
  super(...arguments), this.dir = "ltr", this.label = "", this.options = [], this.placeholder = "", this.helperText = null, this.disabled = !1, this.required = !1, this.defaultValue = null, this.id = "", this.name = "", this.error = "", this.size = null, this.autoFocus = !1, this._errorMessage = null, this.value = "", this._generatedId = `select-${Math.random().toString(36).substring(2, 11)}`;
2298
2298
  }
@@ -2317,12 +2317,12 @@ let rV = class extends O {
2317
2317
  <option value="" ?disabled=${!this.value} ?selected=${!this.value}>
2318
2318
  ${this.placeholder}
2319
2319
  </option>
2320
- ` : k}
2320
+ ` : D}
2321
2321
  ${t ? Object.entries(V).map(([q, o]) => w`
2322
2322
  <optgroup label=${q}>
2323
2323
  ${o.map((i) => this.renderOption(i))}
2324
2324
  </optgroup>
2325
- `) : k}
2325
+ `) : D}
2326
2326
  ${e.map((q) => this.renderOption(q))}
2327
2327
  `;
2328
2328
  }
@@ -2346,11 +2346,11 @@ let rV = class extends O {
2346
2346
  <div class="select-header">
2347
2347
  <div class="select-label-text">
2348
2348
  <label for=${this._effectiveId}>
2349
- ${this.label}${this.required ? w`<span aria-hidden="true"> *</span>` : k}
2349
+ ${this.label}${this.required ? w`<span aria-hidden="true"> *</span>` : D}
2350
2350
  </label>
2351
2351
  </div>
2352
2352
  </div>
2353
- ` : k}
2353
+ ` : D}
2354
2354
 
2355
2355
  <div class="select-wrapper">
2356
2356
  <div class="select-inner">
@@ -2393,18 +2393,18 @@ let rV = class extends O {
2393
2393
  <div id=${t} class="select-error" role="alert">
2394
2394
  ${this.error || this._errorMessage}
2395
2395
  </div>
2396
- ` : k}
2397
- ${this.helperText ? w` <div id=${e} class="select-helper">${this.helperText}</div> ` : k}
2396
+ ` : D}
2397
+ ${this.helperText ? w` <div id=${e} class="select-helper">${this.helperText}</div> ` : D}
2398
2398
  </div>
2399
2399
  `;
2400
2400
  }
2401
2401
  };
2402
2402
  rV.styles = [R, Yo], dV([n({ type: String, reflect: !0 })], rV.prototype, "dir", 2), dV([n({ type: String })], rV.prototype, "label", 2), dV([n({ type: Array })], rV.prototype, "options", 2), dV([n({ type: String })], rV.prototype, "placeholder", 2), dV([n({ type: String })], rV.prototype, "helperText", 2), dV([n({ type: Boolean, reflect: !0 })], rV.prototype, "disabled", 2), dV([n({ type: Boolean, reflect: !0 })], rV.prototype, "required", 2), dV([n({ type: String })], rV.prototype, "defaultValue", 2), dV([n({ type: String })], rV.prototype, "id", 2), dV([n({ type: String })], rV.prototype, "name", 2), dV([n({ type: String })], rV.prototype, "error", 2), dV([n({ type: Number })], rV.prototype, "size", 2), dV([n({ type: Boolean })], rV.prototype, "autoFocus", 2), dV([E()], rV.prototype, "_errorMessage", 2), dV([n({ type: String })], rV.prototype, "value", 2), rV = dV([U("origami-select")], rV);
2403
- var Oo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, X = (V, t, e, q) => {
2403
+ var No = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, X = (V, t, e, q) => {
2404
2404
  for (var o, i = q > 1 ? void 0 : q ? Ro(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
2405
- return q && i && Oo(t, e, i), i;
2405
+ return q && i && No(t, e, i), i;
2406
2406
  };
2407
- let H = class extends O {
2407
+ let H = class extends N {
2408
2408
  constructor() {
2409
2409
  super(...arguments), this.label = "", this.currency = "USDT", this.fiatCurrency = "USD", this.value = "", this.rightLabel = "", this.suffix = "", this.error = "", this.placeholder = "0.0000", this.disabled = !1, this.readonly = !1, this.disableInput = !1, this.cursorNotAllowed = !1, this.bgColor = "", this.testId = "", this.tooltip = "", this.maxBetEnabled = !1, this.dimmed = !1, this.maxPayoutUSD = 0, this.variant = "primary", this.required = !1, this.displayInFiat = !1;
2410
2410
  }
@@ -2462,15 +2462,15 @@ let H = class extends O {
2462
2462
  @focus=${this.handleFocus}
2463
2463
  ._errorMessage=${this.error ? this.error : null}
2464
2464
  >
2465
- ${this.tooltip ? w` <origami-tooltip slot="tooltip" .content=${this.tooltip}></origami-tooltip> ` : k}
2466
- ${this.rightAddon ? w` <slot slot="right-addon" name="right-addon"></slot> ` : k}
2467
- ${this.leftAddon ? w` <slot slot="left-addon" name="left-addon"></slot> ` : k}
2465
+ ${this.tooltip ? w` <origami-tooltip slot="tooltip" .content=${this.tooltip}></origami-tooltip> ` : D}
2466
+ ${this.rightAddon ? w` <slot slot="right-addon" name="right-addon"></slot> ` : D}
2467
+ ${this.leftAddon ? w` <slot slot="left-addon" name="left-addon"></slot> ` : D}
2468
2468
  </origami-input>
2469
2469
  `;
2470
2470
  }
2471
2471
  };
2472
- X([n({ type: String })], H.prototype, "label", 2), X([n({ type: String })], H.prototype, "currency", 2), X([n({ type: String })], H.prototype, "fiatCurrency", 2), X([n({ type: String })], H.prototype, "value", 2), X([n({ type: String })], H.prototype, "rightLabel", 2), X([n({ type: String })], H.prototype, "suffix", 2), X([n({ type: String })], H.prototype, "error", 2), X([n({ type: String })], H.prototype, "placeholder", 2), X([n({ type: Boolean })], H.prototype, "disabled", 2), X([n({ type: Boolean })], H.prototype, "readonly", 2), X([n({ type: Boolean })], H.prototype, "disableInput", 2), X([n({ type: Boolean })], H.prototype, "cursorNotAllowed", 2), X([n({ type: String })], H.prototype, "bgColor", 2), X([n({ type: String })], H.prototype, "testId", 2), X([n({ type: String })], H.prototype, "tooltip", 2), X([n({ type: Boolean })], H.prototype, "maxBetEnabled", 2), X([n({ type: Boolean })], H.prototype, "dimmed", 2), X([n({ type: Number })], H.prototype, "maxPayoutUSD", 2), X([n({ type: String })], H.prototype, "variant", 2), X([n({ type: Boolean })], H.prototype, "required", 2), X([n({ type: Boolean })], H.prototype, "displayInFiat", 2), X([ye("origami-input")], H.prototype, "input", 2), H = X([U("origami-raw-currency-input")], H);
2473
- var Fo = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Bq = Math.ceil, TV = Math.floor, wV = "[BigNumber Error] ", li = wV + "Number primitive has more than 15 significant digits: ", YV = 1e14, G = 14, ci = 9007199254740991, vq = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ft = 1e7, CV = 1e9;
2472
+ X([n({ type: String })], H.prototype, "label", 2), X([n({ type: String })], H.prototype, "currency", 2), X([n({ type: String })], H.prototype, "fiatCurrency", 2), X([n({ type: String })], H.prototype, "value", 2), X([n({ type: String })], H.prototype, "rightLabel", 2), X([n({ type: String })], H.prototype, "suffix", 2), X([n({ type: String })], H.prototype, "error", 2), X([n({ type: String })], H.prototype, "placeholder", 2), X([n({ type: Boolean })], H.prototype, "disabled", 2), X([n({ type: Boolean })], H.prototype, "readonly", 2), X([n({ type: Boolean })], H.prototype, "disableInput", 2), X([n({ type: Boolean })], H.prototype, "cursorNotAllowed", 2), X([n({ type: String })], H.prototype, "bgColor", 2), X([n({ type: String })], H.prototype, "testId", 2), X([n({ type: String })], H.prototype, "tooltip", 2), X([n({ type: Boolean })], H.prototype, "maxBetEnabled", 2), X([n({ type: Boolean })], H.prototype, "dimmed", 2), X([n({ type: Number })], H.prototype, "maxPayoutUSD", 2), X([n({ type: String })], H.prototype, "variant", 2), X([n({ type: Boolean })], H.prototype, "required", 2), X([n({ type: Boolean })], H.prototype, "displayInFiat", 2), X([me("origami-input")], H.prototype, "input", 2), H = X([U("origami-raw-currency-input")], H);
2473
+ var Fo = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Bq = Math.ceil, TV = Math.floor, wV = "[BigNumber Error] ", li = wV + "Number primitive has more than 15 significant digits: ", QV = 1e14, G = 14, ci = 9007199254740991, vq = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ft = 1e7, CV = 1e9;
2474
2474
  function UV(V) {
2475
2475
  var t = 0 | V;
2476
2476
  return V > 0 || V === t ? t : t - 1;
@@ -2483,7 +2483,7 @@ function kV(V) {
2483
2483
  for (o = i.length; i.charCodeAt(--o) === 48; ) ;
2484
2484
  return i.slice(0, o + 1 || 1);
2485
2485
  }
2486
- function Wt(V, t) {
2486
+ function Ft(V, t) {
2487
2487
  var e, q, o = V.c, i = t.c, r = V.s, h = t.s, y = V.e, B = t.e;
2488
2488
  if (!r || !h) return null;
2489
2489
  if (e = o && !o[0], q = i && !i[0], e || q) return e ? q ? 0 : -h : r;
@@ -2503,7 +2503,7 @@ function ze(V) {
2503
2503
  function Pe(V, t) {
2504
2504
  return (V.length > 1 ? V.charAt(0) + "." + V.slice(1) : V) + (t < 0 ? "e" : "e+") + t;
2505
2505
  }
2506
- function at(V, t, e) {
2506
+ function nt(V, t, e) {
2507
2507
  var q, o;
2508
2508
  if (t < 0) {
2509
2509
  for (o = e + "."; ++t; o += e) ;
@@ -2515,7 +2515,7 @@ function at(V, t, e) {
2515
2515
  return V;
2516
2516
  }
2517
2517
  var f = function V(t) {
2518
- var e, q, o, i, r, h, y, B, L, I, C = M.prototype = { constructor: M, toString: null, valueOf: null }, T = new M(1), Q = 20, Y = 4, aV = -7, W = 21, fV = -1e7, oV = 1e7, KV = !1, eV = 1, cV = 0, Ot = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, ZV = "0123456789abcdefghijklmnopqrstuvwxyz", pq = !0;
2518
+ var e, q, o, i, r, h, y, B, T, I, C = M.prototype = { constructor: M, toString: null, valueOf: null }, x = new M(1), Q = 20, Y = 4, aV = -7, W = 21, fV = -1e7, oV = 1e7, ZV = !1, eV = 1, cV = 0, Ot = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, JV = "0123456789abcdefghijklmnopqrstuvwxyz", pq = !0;
2519
2519
  function M(s, a) {
2520
2520
  var l, A, c, u, p, d, m, b, g = this;
2521
2521
  if (!(g instanceof M)) return new M(s, a);
@@ -2533,12 +2533,12 @@ var f = function V(t) {
2533
2533
  }
2534
2534
  (u = b.indexOf(".")) > -1 && (b = b.replace(".", "")), (p = b.search(/e/i)) > 0 ? (u < 0 && (u = p), u += +b.slice(p + 1), b = b.substring(0, p)) : u < 0 && (u = b.length);
2535
2535
  } else {
2536
- if ($(a, 2, ZV.length, "Base"), a == 10 && pq) return EV(g = new M(s), Q + g.e + 1, Y);
2536
+ if ($(a, 2, JV.length, "Base"), a == 10 && pq) return EV(g = new M(s), Q + g.e + 1, Y);
2537
2537
  if (b = String(s), d = typeof s == "number") {
2538
2538
  if (0 * s != 0) return o(g, b, d, a);
2539
2539
  if (g.s = 1 / s < 0 ? (b = b.slice(1), -1) : 1, M.DEBUG && b.replace(/^0\.0*|\./, "").length > 15) throw Error(li + s);
2540
2540
  } else g.s = b.charCodeAt(0) === 45 ? (b = b.slice(1), -1) : 1;
2541
- for (l = ZV.slice(0, a), u = p = 0, m = b.length; p < m; p++) if (l.indexOf(A = b.charAt(p)) < 0) {
2541
+ for (l = JV.slice(0, a), u = p = 0, m = b.length; p < m; p++) if (l.indexOf(A = b.charAt(p)) < 0) {
2542
2542
  if (A == ".") {
2543
2543
  if (p > u) {
2544
2544
  u = m;
@@ -2571,17 +2571,17 @@ var f = function V(t) {
2571
2571
  function hq(s, a, l, A) {
2572
2572
  var c, u, p, d, m;
2573
2573
  if (l == null ? l = Y : $(l, 0, 8), !s.c) return s.toString();
2574
- if (c = s.c[0], p = s.e, a == null) m = kV(s.c), m = A == 1 || A == 2 && (p <= aV || p >= W) ? Pe(m, p) : at(m, p, "0");
2574
+ if (c = s.c[0], p = s.e, a == null) m = kV(s.c), m = A == 1 || A == 2 && (p <= aV || p >= W) ? Pe(m, p) : nt(m, p, "0");
2575
2575
  else if (u = (s = EV(new M(s), a, l)).e, d = (m = kV(s.c)).length, A == 1 || A == 2 && (a <= u || u <= aV)) {
2576
2576
  for (; d < a; m += "0", d++) ;
2577
2577
  m = Pe(m, u);
2578
- } else if (a -= p, m = at(m, u, "0"), u + 1 > d) {
2578
+ } else if (a -= p, m = nt(m, u, "0"), u + 1 > d) {
2579
2579
  if (--a > 0) for (m += "."; a--; m += "0") ;
2580
2580
  } else if ((a += u - d) > 0) for (u + 1 == d && (m += "."); a--; m += "0") ;
2581
2581
  return s.s < 0 && c ? "-" + m : m;
2582
2582
  }
2583
2583
  function jq(s, a) {
2584
- for (var l, A, c = 1, u = new M(s[0]); c < s.length; c++) (!(A = new M(s[c])).s || (l = Wt(u, A)) === a || l === 0 && u.s === a) && (u = A);
2584
+ for (var l, A, c = 1, u = new M(s[0]); c < s.length; c++) (!(A = new M(s[c])).s || (l = Ft(u, A)) === a || l === 0 && u.s === a) && (u = A);
2585
2585
  return u;
2586
2586
  }
2587
2587
  function gq(s, a, l) {
@@ -2590,28 +2590,28 @@ var f = function V(t) {
2590
2590
  return (l = A + l * G - 1) > oV ? s.c = s.e = null : l < fV ? s.c = [s.e = 0] : (s.e = l, s.c = a), s;
2591
2591
  }
2592
2592
  function EV(s, a, l, A) {
2593
- var c, u, p, d, m, b, g, v = s.c, x = vq;
2593
+ var c, u, p, d, m, b, g, v = s.c, k = vq;
2594
2594
  if (v) {
2595
2595
  V: {
2596
2596
  for (c = 1, d = v[0]; d >= 10; d /= 10, c++) ;
2597
- if ((u = a - c) < 0) u += G, p = a, m = v[b = 0], g = TV(m / x[c - p - 1] % 10);
2597
+ if ((u = a - c) < 0) u += G, p = a, m = v[b = 0], g = TV(m / k[c - p - 1] % 10);
2598
2598
  else if ((b = Bq((u + 1) / G)) >= v.length) {
2599
2599
  if (!A) break V;
2600
2600
  for (; v.length <= b; v.push(0)) ;
2601
2601
  m = g = 0, c = 1, p = (u %= G) - G + 1;
2602
2602
  } else {
2603
2603
  for (m = d = v[b], c = 1; d >= 10; d /= 10, c++) ;
2604
- g = (p = (u %= G) - G + c) < 0 ? 0 : TV(m / x[c - p - 1] % 10);
2604
+ g = (p = (u %= G) - G + c) < 0 ? 0 : TV(m / k[c - p - 1] % 10);
2605
2605
  }
2606
- if (A = A || a < 0 || v[b + 1] != null || (p < 0 ? m : m % x[c - p - 1]), A = l < 4 ? (g || A) && (l == 0 || l == (s.s < 0 ? 3 : 2)) : g > 5 || g == 5 && (l == 4 || A || l == 6 && (u > 0 ? p > 0 ? m / x[c - p] : 0 : v[b - 1]) % 10 & 1 || l == (s.s < 0 ? 8 : 7)), a < 1 || !v[0]) return v.length = 0, A ? (a -= s.e + 1, v[0] = x[(G - a % G) % G], s.e = -a || 0) : v[0] = s.e = 0, s;
2607
- if (u == 0 ? (v.length = b, d = 1, b--) : (v.length = b + 1, d = x[G - u], v[b] = p > 0 ? TV(m / x[c - p] % x[p]) * d : 0), A) for (; ; ) {
2606
+ if (A = A || a < 0 || v[b + 1] != null || (p < 0 ? m : m % k[c - p - 1]), A = l < 4 ? (g || A) && (l == 0 || l == (s.s < 0 ? 3 : 2)) : g > 5 || g == 5 && (l == 4 || A || l == 6 && (u > 0 ? p > 0 ? m / k[c - p] : 0 : v[b - 1]) % 10 & 1 || l == (s.s < 0 ? 8 : 7)), a < 1 || !v[0]) return v.length = 0, A ? (a -= s.e + 1, v[0] = k[(G - a % G) % G], s.e = -a || 0) : v[0] = s.e = 0, s;
2607
+ if (u == 0 ? (v.length = b, d = 1, b--) : (v.length = b + 1, d = k[G - u], v[b] = p > 0 ? TV(m / k[c - p] % k[p]) * d : 0), A) for (; ; ) {
2608
2608
  if (b == 0) {
2609
2609
  for (u = 1, p = v[0]; p >= 10; p /= 10, u++) ;
2610
2610
  for (p = v[0] += d, d = 1; p >= 10; p /= 10, d++) ;
2611
- u != d && (s.e++, v[0] == YV && (v[0] = 1));
2611
+ u != d && (s.e++, v[0] == QV && (v[0] = 1));
2612
2612
  break;
2613
2613
  }
2614
- if (v[b] += d, v[b] != YV) break;
2614
+ if (v[b] += d, v[b] != QV) break;
2615
2615
  v[b--] = 0, d = 1;
2616
2616
  }
2617
2617
  for (u = v.length; v[--u] === 0; v.pop()) ;
@@ -2620,9 +2620,9 @@ var f = function V(t) {
2620
2620
  }
2621
2621
  return s;
2622
2622
  }
2623
- function ot(s) {
2623
+ function st(s) {
2624
2624
  var a, l = s.e;
2625
- return l === null ? s.toString() : (a = kV(s.c), a = l <= aV || l >= W ? Pe(a, l) : at(a, l, "0"), s.s < 0 ? "-" + a : a);
2625
+ return l === null ? s.toString() : (a = kV(s.c), a = l <= aV || l >= W ? Pe(a, l) : nt(a, l, "0"), s.s < 0 ? "-" + a : a);
2626
2626
  }
2627
2627
  return M.clone = V, M.ROUND_UP = 0, M.ROUND_DOWN = 1, M.ROUND_CEIL = 2, M.ROUND_FLOOR = 3, M.ROUND_HALF_UP = 4, M.ROUND_HALF_DOWN = 5, M.ROUND_HALF_EVEN = 6, M.ROUND_HALF_CEIL = 7, M.ROUND_HALF_FLOOR = 8, M.EUCLID = 9, M.config = M.set = function(s) {
2628
2628
  var a, l;
@@ -2636,9 +2636,9 @@ var f = function V(t) {
2636
2636
  if (s.hasOwnProperty(a = "CRYPTO")) {
2637
2637
  if ((l = s[a]) !== !!l) throw Error(wV + a + " not true or false: " + l);
2638
2638
  if (l) {
2639
- if (typeof crypto > "u" || !crypto || !crypto.getRandomValues && !crypto.randomBytes) throw KV = !l, Error(wV + "crypto unavailable");
2640
- KV = l;
2641
- } else KV = l;
2639
+ if (typeof crypto > "u" || !crypto || !crypto.getRandomValues && !crypto.randomBytes) throw ZV = !l, Error(wV + "crypto unavailable");
2640
+ ZV = l;
2641
+ } else ZV = l;
2642
2642
  }
2643
2643
  if (s.hasOwnProperty(a = "MODULO_MODE") && ($(l = s[a], 0, 9, a), eV = l), s.hasOwnProperty(a = "POW_PRECISION") && ($(l = s[a], 0, CV, a), cV = l), s.hasOwnProperty(a = "FORMAT")) {
2644
2644
  if (typeof (l = s[a]) != "object") throw Error(wV + a + " not an object: " + l);
@@ -2646,10 +2646,10 @@ var f = function V(t) {
2646
2646
  }
2647
2647
  if (s.hasOwnProperty(a = "ALPHABET")) {
2648
2648
  if (typeof (l = s[a]) != "string" || /^.?$|[+\-.\s]|(.).*\1/.test(l)) throw Error(wV + a + " invalid: " + l);
2649
- pq = l.slice(0, 10) == "0123456789", ZV = l;
2649
+ pq = l.slice(0, 10) == "0123456789", JV = l;
2650
2650
  }
2651
2651
  }
2652
- return { DECIMAL_PLACES: Q, ROUNDING_MODE: Y, EXPONENTIAL_AT: [aV, W], RANGE: [fV, oV], CRYPTO: KV, MODULO_MODE: eV, POW_PRECISION: cV, FORMAT: Ot, ALPHABET: ZV };
2652
+ return { DECIMAL_PLACES: Q, ROUNDING_MODE: Y, EXPONENTIAL_AT: [aV, W], RANGE: [fV, oV], CRYPTO: ZV, MODULO_MODE: eV, POW_PRECISION: cV, FORMAT: Ot, ALPHABET: JV };
2653
2653
  }, M.isBigNumber = function(s) {
2654
2654
  if (!s || s._isBigNumber !== !0) return !1;
2655
2655
  if (!M.DEBUG) return !0;
@@ -2661,7 +2661,7 @@ var f = function V(t) {
2661
2661
  break V;
2662
2662
  }
2663
2663
  if ((a = (c + 1) % G) < 1 && (a += G), String(A[0]).length == a) {
2664
- for (a = 0; a < A.length; a++) if ((l = A[a]) < 0 || l >= YV || l !== TV(l)) break V;
2664
+ for (a = 0; a < A.length; a++) if ((l = A[a]) < 0 || l >= QV || l !== TV(l)) break V;
2665
2665
  if (l !== 0) return !0;
2666
2666
  }
2667
2667
  }
@@ -2676,16 +2676,16 @@ var f = function V(t) {
2676
2676
  } : function() {
2677
2677
  return 8388608 * (1073741824 * Math.random() | 0) + (8388608 * Math.random() | 0);
2678
2678
  }, function(s) {
2679
- var a, l, A, c, u, p = 0, d = [], m = new M(T);
2680
- if (s == null ? s = Q : $(s, 0, CV), c = Bq(s / G), KV) if (crypto.getRandomValues) {
2679
+ var a, l, A, c, u, p = 0, d = [], m = new M(x);
2680
+ if (s == null ? s = Q : $(s, 0, CV), c = Bq(s / G), ZV) if (crypto.getRandomValues) {
2681
2681
  for (a = crypto.getRandomValues(new Uint32Array(c *= 2)); p < c; ) (u = 131072 * a[p] + (a[p + 1] >>> 11)) >= 9e15 ? (l = crypto.getRandomValues(new Uint32Array(2)), a[p] = l[0], a[p + 1] = l[1]) : (d.push(u % 1e14), p += 2);
2682
2682
  p = c / 2;
2683
2683
  } else {
2684
- if (!crypto.randomBytes) throw KV = !1, Error(wV + "crypto unavailable");
2684
+ if (!crypto.randomBytes) throw ZV = !1, Error(wV + "crypto unavailable");
2685
2685
  for (a = crypto.randomBytes(c *= 7); p < c; ) (u = 281474976710656 * (31 & a[p]) + 1099511627776 * a[p + 1] + 4294967296 * a[p + 2] + 16777216 * a[p + 3] + (a[p + 4] << 16) + (a[p + 5] << 8) + a[p + 6]) >= 9e15 ? crypto.randomBytes(7).copy(a, p) : (d.push(u % 1e14), p += 7);
2686
2686
  p = c / 7;
2687
2687
  }
2688
- if (!KV) for (; p < c; ) (u = r()) < 9e15 && (d[p++] = u % 1e14);
2688
+ if (!ZV) for (; p < c; ) (u = r()) < 9e15 && (d[p++] = u % 1e14);
2689
2689
  for (c = d[--p], s %= G, c && s && (u = vq[G - s], d[p] = TV(c / u) * u); d[p] === 0; d.pop(), p--) ;
2690
2690
  if (p < 0) d = [A = 0];
2691
2691
  else {
@@ -2707,22 +2707,22 @@ var f = function V(t) {
2707
2707
  return m.reverse();
2708
2708
  }
2709
2709
  return function(l, A, c, u, p) {
2710
- var d, m, b, g, v, x, D, Z, VV = l.indexOf("."), iV = Q, K = Y;
2711
- for (VV >= 0 && (g = cV, cV = 0, l = l.replace(".", ""), x = (Z = new M(A)).pow(l.length - VV), cV = g, Z.c = a(at(kV(x.c), x.e, "0"), 10, c, s), Z.e = Z.c.length), b = g = (D = a(l, A, c, p ? (d = ZV, s) : (d = s, ZV))).length; D[--g] == 0; D.pop()) ;
2712
- if (!D[0]) return d.charAt(0);
2713
- if (VV < 0 ? --b : (x.c = D, x.e = b, x.s = u, D = (x = e(x, Z, iV, K, c)).c, v = x.r, b = x.e), VV = D[m = b + iV + 1], g = c / 2, v = v || m < 0 || D[m + 1] != null, v = K < 4 ? (VV != null || v) && (K == 0 || K == (x.s < 0 ? 3 : 2)) : VV > g || VV == g && (K == 4 || v || K == 6 && 1 & D[m - 1] || K == (x.s < 0 ? 8 : 7)), m < 1 || !D[0]) l = v ? at(d.charAt(1), -iV, d.charAt(0)) : d.charAt(0);
2710
+ var d, m, b, g, v, k, L, Z, VV = l.indexOf("."), iV = Q, K = Y;
2711
+ for (VV >= 0 && (g = cV, cV = 0, l = l.replace(".", ""), k = (Z = new M(A)).pow(l.length - VV), cV = g, Z.c = a(nt(kV(k.c), k.e, "0"), 10, c, s), Z.e = Z.c.length), b = g = (L = a(l, A, c, p ? (d = JV, s) : (d = s, JV))).length; L[--g] == 0; L.pop()) ;
2712
+ if (!L[0]) return d.charAt(0);
2713
+ if (VV < 0 ? --b : (k.c = L, k.e = b, k.s = u, L = (k = e(k, Z, iV, K, c)).c, v = k.r, b = k.e), VV = L[m = b + iV + 1], g = c / 2, v = v || m < 0 || L[m + 1] != null, v = K < 4 ? (VV != null || v) && (K == 0 || K == (k.s < 0 ? 3 : 2)) : VV > g || VV == g && (K == 4 || v || K == 6 && 1 & L[m - 1] || K == (k.s < 0 ? 8 : 7)), m < 1 || !L[0]) l = v ? nt(d.charAt(1), -iV, d.charAt(0)) : d.charAt(0);
2714
2714
  else {
2715
- if (D.length = m, v) for (--c; ++D[--m] > c; ) D[m] = 0, m || (++b, D = [1].concat(D));
2716
- for (g = D.length; !D[--g]; ) ;
2717
- for (VV = 0, l = ""; VV <= g; l += d.charAt(D[VV++])) ;
2718
- l = at(l, b, d.charAt(0));
2715
+ if (L.length = m, v) for (--c; ++L[--m] > c; ) L[m] = 0, m || (++b, L = [1].concat(L));
2716
+ for (g = L.length; !L[--g]; ) ;
2717
+ for (VV = 0, l = ""; VV <= g; l += d.charAt(L[VV++])) ;
2718
+ l = nt(l, b, d.charAt(0));
2719
2719
  }
2720
2720
  return l;
2721
2721
  };
2722
2722
  }(), e = /* @__PURE__ */ function() {
2723
2723
  function s(A, c, u) {
2724
- var p, d, m, b, g = 0, v = A.length, x = c % ft, D = c / ft | 0;
2725
- for (A = A.slice(); v--; ) g = ((d = x * (m = A[v] % ft) + (p = D * m + (b = A[v] / ft | 0) * x) % ft * ft + g) / u | 0) + (p / ft | 0) + D * b, A[v] = d % u;
2724
+ var p, d, m, b, g = 0, v = A.length, k = c % ft, L = c / ft | 0;
2725
+ for (A = A.slice(); v--; ) g = ((d = k * (m = A[v] % ft) + (p = L * m + (b = A[v] / ft | 0) * k) % ft * ft + g) / u | 0) + (p / ft | 0) + L * b, A[v] = d % u;
2726
2726
  return g && (A = [g].concat(A)), A;
2727
2727
  }
2728
2728
  function a(A, c, u, p) {
@@ -2739,32 +2739,32 @@ var f = function V(t) {
2739
2739
  for (; !A[0] && A.length > 1; A.splice(0, 1)) ;
2740
2740
  }
2741
2741
  return function(A, c, u, p, d) {
2742
- var m, b, g, v, x, D, Z, VV, iV, K, j, uV, Ze, Aq, mq, JV, Ce, SV = A.s == c.s ? 1 : -1, hV = A.c, _ = c.c;
2742
+ var m, b, g, v, k, L, Z, VV, iV, K, j, uV, Ze, Aq, mq, jV, fe, SV = A.s == c.s ? 1 : -1, hV = A.c, _ = c.c;
2743
2743
  if (!(hV && hV[0] && _ && _[0])) return new M(A.s && c.s && (hV ? !_ || hV[0] != _[0] : _) ? hV && hV[0] == 0 || !_ ? 0 * SV : SV / 0 : NaN);
2744
- for (iV = (VV = new M(SV)).c = [], SV = u + (b = A.e - c.e) + 1, d || (d = YV, b = UV(A.e / G) - UV(c.e / G), SV = SV / G | 0), g = 0; _[g] == (hV[g] || 0); g++) ;
2744
+ for (iV = (VV = new M(SV)).c = [], SV = u + (b = A.e - c.e) + 1, d || (d = QV, b = UV(A.e / G) - UV(c.e / G), SV = SV / G | 0), g = 0; _[g] == (hV[g] || 0); g++) ;
2745
2745
  if (_[g] > (hV[g] || 0) && b--, SV < 0) iV.push(1), v = !0;
2746
2746
  else {
2747
- for (Aq = hV.length, JV = _.length, g = 0, SV += 2, (x = TV(d / (_[0] + 1))) > 1 && (_ = s(_, x, d), hV = s(hV, x, d), JV = _.length, Aq = hV.length), Ze = JV, j = (K = hV.slice(0, JV)).length; j < JV; K[j++] = 0) ;
2748
- Ce = _.slice(), Ce = [0].concat(Ce), mq = _[0], _[1] >= d / 2 && mq++;
2747
+ for (Aq = hV.length, jV = _.length, g = 0, SV += 2, (k = TV(d / (_[0] + 1))) > 1 && (_ = s(_, k, d), hV = s(hV, k, d), jV = _.length, Aq = hV.length), Ze = jV, j = (K = hV.slice(0, jV)).length; j < jV; K[j++] = 0) ;
2748
+ fe = _.slice(), fe = [0].concat(fe), mq = _[0], _[1] >= d / 2 && mq++;
2749
2749
  do {
2750
- if (x = 0, (m = a(_, K, JV, j)) < 0) {
2751
- if (uV = K[0], JV != j && (uV = uV * d + (K[1] || 0)), (x = TV(uV / mq)) > 1) for (x >= d && (x = d - 1), Z = (D = s(_, x, d)).length, j = K.length; a(D, K, Z, j) == 1; ) x--, l(D, JV < Z ? Ce : _, Z, d), Z = D.length, m = 1;
2752
- else x == 0 && (m = x = 1), Z = (D = _.slice()).length;
2753
- if (Z < j && (D = [0].concat(D)), l(K, D, j, d), j = K.length, m == -1) for (; a(_, K, JV, j) < 1; ) x++, l(K, JV < j ? Ce : _, j, d), j = K.length;
2754
- } else m === 0 && (x++, K = [0]);
2755
- iV[g++] = x, K[0] ? K[j++] = hV[Ze] || 0 : (K = [hV[Ze]], j = 1);
2750
+ if (k = 0, (m = a(_, K, jV, j)) < 0) {
2751
+ if (uV = K[0], jV != j && (uV = uV * d + (K[1] || 0)), (k = TV(uV / mq)) > 1) for (k >= d && (k = d - 1), Z = (L = s(_, k, d)).length, j = K.length; a(L, K, Z, j) == 1; ) k--, l(L, jV < Z ? fe : _, Z, d), Z = L.length, m = 1;
2752
+ else k == 0 && (m = k = 1), Z = (L = _.slice()).length;
2753
+ if (Z < j && (L = [0].concat(L)), l(K, L, j, d), j = K.length, m == -1) for (; a(_, K, jV, j) < 1; ) k++, l(K, jV < j ? fe : _, j, d), j = K.length;
2754
+ } else m === 0 && (k++, K = [0]);
2755
+ iV[g++] = k, K[0] ? K[j++] = hV[Ze] || 0 : (K = [hV[Ze]], j = 1);
2756
2756
  } while ((Ze++ < Aq || K[0] != null) && SV--);
2757
2757
  v = K[0] != null, iV[0] || iV.splice(0, 1);
2758
2758
  }
2759
- if (d == YV) {
2759
+ if (d == QV) {
2760
2760
  for (g = 1, SV = iV[0]; SV >= 10; SV /= 10, g++) ;
2761
2761
  EV(VV, u + (VV.e = g + b * G - 1) + 1, p, v);
2762
2762
  } else VV.e = b, VV.r = +v;
2763
2763
  return VV;
2764
2764
  };
2765
- }(), h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, y = /^([^.]+)\.$/, B = /^\.([^.]+)$/, L = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g, o = function(s, a, l, A) {
2765
+ }(), h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, y = /^([^.]+)\.$/, B = /^\.([^.]+)$/, T = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g, o = function(s, a, l, A) {
2766
2766
  var c, u = l ? a : a.replace(I, "");
2767
- if (L.test(u)) s.s = isNaN(u) ? null : u < 0 ? -1 : 1;
2767
+ if (T.test(u)) s.s = isNaN(u) ? null : u < 0 ? -1 : 1;
2768
2768
  else {
2769
2769
  if (!l && (u = u.replace(h, function(p, d, m) {
2770
2770
  return c = (m = m.toLowerCase()) == "x" ? 16 : m == "b" ? 2 : 8, A && A != c ? p : d;
@@ -2777,7 +2777,7 @@ var f = function V(t) {
2777
2777
  var s = new M(this);
2778
2778
  return s.s < 0 && (s.s = 1), s;
2779
2779
  }, C.comparedTo = function(s, a) {
2780
- return Wt(this, new M(s, a));
2780
+ return Ft(this, new M(s, a));
2781
2781
  }, C.decimalPlaces = C.dp = function(s, a) {
2782
2782
  var l, A, c, u = this;
2783
2783
  if (s != null) return $(s, 0, CV), a == null ? a = Y : $(a, 0, 8), EV(new M(u), s + u.e + 1, a);
@@ -2790,8 +2790,8 @@ var f = function V(t) {
2790
2790
  return e(this, new M(s, a), 0, 1);
2791
2791
  }, C.exponentiatedBy = C.pow = function(s, a) {
2792
2792
  var l, A, c, u, p, d, m, b, g = this;
2793
- if ((s = new M(s)).c && !s.isInteger()) throw Error(wV + "Exponent not an integer: " + ot(s));
2794
- if (a != null && (a = new M(a)), p = s.e > 14, !g.c || !g.c[0] || g.c[0] == 1 && !g.e && g.c.length == 1 || !s.c || !s.c[0]) return b = new M(Math.pow(+ot(g), p ? s.s * (2 - ze(s)) : +ot(s))), a ? b.mod(a) : b;
2793
+ if ((s = new M(s)).c && !s.isInteger()) throw Error(wV + "Exponent not an integer: " + st(s));
2794
+ if (a != null && (a = new M(a)), p = s.e > 14, !g.c || !g.c[0] || g.c[0] == 1 && !g.e && g.c.length == 1 || !s.c || !s.c[0]) return b = new M(Math.pow(+st(g), p ? s.s * (2 - ze(s)) : +st(s))), a ? b.mod(a) : b;
2795
2795
  if (d = s.s < 0, a) {
2796
2796
  if (a.c ? !a.c[0] : !a.s) return new M(NaN);
2797
2797
  (A = !d && g.isInteger() && a.isInteger()) && (g = g.mod(a));
@@ -2799,7 +2799,7 @@ var f = function V(t) {
2799
2799
  if (s.e > 9 && (g.e > 0 || g.e < -1 || (g.e == 0 ? g.c[0] > 1 || p && g.c[1] >= 24e7 : g.c[0] < 8e13 || p && g.c[0] <= 9999975e7))) return u = g.s < 0 && ze(s) ? -0 : 0, g.e > -1 && (u = 1 / u), new M(d ? 1 / u : u);
2800
2800
  cV && (u = Bq(cV / G + 2));
2801
2801
  }
2802
- for (p ? (l = new M(0.5), d && (s.s = 1), m = ze(s)) : m = (c = Math.abs(+ot(s))) % 2, b = new M(T); ; ) {
2802
+ for (p ? (l = new M(0.5), d && (s.s = 1), m = ze(s)) : m = (c = Math.abs(+st(s))) % 2, b = new M(x); ; ) {
2803
2803
  if (m) {
2804
2804
  if (!(b = b.times(g)).c) break;
2805
2805
  u ? b.c.length > u && (b.c.length = u) : A && (b = b.mod(a));
@@ -2809,29 +2809,29 @@ var f = function V(t) {
2809
2809
  m = c % 2;
2810
2810
  } else if (EV(s = s.times(l), s.e + 1, 1), s.e > 14) m = ze(s);
2811
2811
  else {
2812
- if ((c = +ot(s)) == 0) break;
2812
+ if ((c = +st(s)) == 0) break;
2813
2813
  m = c % 2;
2814
2814
  }
2815
2815
  g = g.times(g), u ? g.c && g.c.length > u && (g.c.length = u) : A && (g = g.mod(a));
2816
2816
  }
2817
- return A ? b : (d && (b = T.div(b)), a ? b.mod(a) : u ? EV(b, cV, Y, void 0) : b);
2817
+ return A ? b : (d && (b = x.div(b)), a ? b.mod(a) : u ? EV(b, cV, Y, void 0) : b);
2818
2818
  }, C.integerValue = function(s) {
2819
2819
  var a = new M(this);
2820
2820
  return s == null ? s = Y : $(s, 0, 8), EV(a, a.e + 1, s);
2821
2821
  }, C.isEqualTo = C.eq = function(s, a) {
2822
- return Wt(this, new M(s, a)) === 0;
2822
+ return Ft(this, new M(s, a)) === 0;
2823
2823
  }, C.isFinite = function() {
2824
2824
  return !!this.c;
2825
2825
  }, C.isGreaterThan = C.gt = function(s, a) {
2826
- return Wt(this, new M(s, a)) > 0;
2826
+ return Ft(this, new M(s, a)) > 0;
2827
2827
  }, C.isGreaterThanOrEqualTo = C.gte = function(s, a) {
2828
- return (a = Wt(this, new M(s, a))) === 1 || a === 0;
2828
+ return (a = Ft(this, new M(s, a))) === 1 || a === 0;
2829
2829
  }, C.isInteger = function() {
2830
2830
  return !!this.c && UV(this.e / G) > this.c.length - 2;
2831
2831
  }, C.isLessThan = C.lt = function(s, a) {
2832
- return Wt(this, new M(s, a)) < 0;
2832
+ return Ft(this, new M(s, a)) < 0;
2833
2833
  }, C.isLessThanOrEqualTo = C.lte = function(s, a) {
2834
- return (a = Wt(this, new M(s, a))) === -1 || a === 0;
2834
+ return (a = Ft(this, new M(s, a))) === -1 || a === 0;
2835
2835
  }, C.isNaN = function() {
2836
2836
  return !this.s;
2837
2837
  }, C.isNegative = function() {
@@ -2857,10 +2857,10 @@ var f = function V(t) {
2857
2857
  break;
2858
2858
  }
2859
2859
  if (u && (c = g, g = v, v = c, s.s = -s.s), (a = (A = v.length) - (l = g.length)) > 0) for (; a--; g[l++] = 0) ;
2860
- for (a = YV - 1; A > d; ) {
2860
+ for (a = QV - 1; A > d; ) {
2861
2861
  if (g[--A] < v[A]) {
2862
2862
  for (l = A; l && !g[--l]; g[l] = a) ;
2863
- --g[l], g[A] += YV;
2863
+ --g[l], g[A] += QV;
2864
2864
  }
2865
2865
  g[A] -= v[A];
2866
2866
  }
@@ -2870,11 +2870,11 @@ var f = function V(t) {
2870
2870
  var l, A, c = this;
2871
2871
  return s = new M(s, a), !c.c || !s.s || s.c && !s.c[0] ? new M(NaN) : !s.c || c.c && !c.c[0] ? new M(c) : (eV == 9 ? (A = s.s, s.s = 1, l = e(c, s, 0, 3), s.s = A, l.s *= A) : l = e(c, s, 0, eV), (s = c.minus(l.times(s))).c[0] || eV != 1 || (s.s = c.s), s);
2872
2872
  }, C.multipliedBy = C.times = function(s, a) {
2873
- var l, A, c, u, p, d, m, b, g, v, x, D, Z, VV, iV, K = this, j = K.c, uV = (s = new M(s, a)).c;
2873
+ var l, A, c, u, p, d, m, b, g, v, k, L, Z, VV, iV, K = this, j = K.c, uV = (s = new M(s, a)).c;
2874
2874
  if (!(j && uV && j[0] && uV[0])) return !K.s || !s.s || j && !j[0] && !uV || uV && !uV[0] && !j ? s.c = s.e = s.s = null : (s.s *= K.s, j && uV ? (s.c = [0], s.e = 0) : s.c = s.e = null), s;
2875
2875
  for (A = UV(K.e / G) + UV(s.e / G), s.s *= K.s, (m = j.length) < (v = uV.length) && (Z = j, j = uV, uV = Z, c = m, m = v, v = c), c = m + v, Z = []; c--; Z.push(0)) ;
2876
- for (VV = YV, iV = ft, c = v; --c >= 0; ) {
2877
- for (l = 0, x = uV[c] % iV, D = uV[c] / iV | 0, u = c + (p = m); u > c; ) l = ((b = x * (b = j[--p] % iV) + (d = D * b + (g = j[p] / iV | 0) * x) % iV * iV + Z[u] + l) / VV | 0) + (d / iV | 0) + D * g, Z[u--] = b % VV;
2876
+ for (VV = QV, iV = ft, c = v; --c >= 0; ) {
2877
+ for (l = 0, k = uV[c] % iV, L = uV[c] / iV | 0, u = c + (p = m); u > c; ) l = ((b = k * (b = j[--p] % iV) + (d = L * b + (g = j[p] / iV | 0) * k) % iV * iV + Z[u] + l) / VV | 0) + (d / iV | 0) + L * g, Z[u--] = b % VV;
2878
2878
  Z[u] = l;
2879
2879
  }
2880
2880
  return l ? ++A : Z.splice(0, 1), gq(s, Z, A);
@@ -2894,7 +2894,7 @@ var f = function V(t) {
2894
2894
  for (c > 0 ? (p = u, l = m) : (c = -c, l = d), l.reverse(); c--; l.push(0)) ;
2895
2895
  l.reverse();
2896
2896
  }
2897
- for ((c = d.length) - (a = m.length) < 0 && (l = m, m = d, d = l, a = c), c = 0; a; ) c = (d[--a] = d[a] + m[a] + c) / YV | 0, d[a] = YV === d[a] ? 0 : d[a] % YV;
2897
+ for ((c = d.length) - (a = m.length) < 0 && (l = m, m = d, d = l, a = c), c = 0; a; ) c = (d[--a] = d[a] + m[a] + c) / QV | 0, d[a] = QV === d[a] ? 0 : d[a] % QV;
2898
2898
  return c && (d = [c].concat(d), ++p), gq(s, d, p);
2899
2899
  }, C.precision = C.sd = function(s, a) {
2900
2900
  var l, A, c, u = this;
@@ -2910,7 +2910,7 @@ var f = function V(t) {
2910
2910
  }, C.squareRoot = C.sqrt = function() {
2911
2911
  var s, a, l, A, c, u = this, p = u.c, d = u.s, m = u.e, b = Q + 4, g = new M("0.5");
2912
2912
  if (d !== 1 || !p || !p[0]) return new M(!d || d < 0 && (!p || p[0]) ? NaN : p ? u : 1 / 0);
2913
- if ((d = Math.sqrt(+ot(u))) == 0 || d == 1 / 0 ? (((a = kV(p)).length + m) % 2 == 0 && (a += "0"), d = Math.sqrt(+a), m = UV((m + 1) / 2) - (m < 0 || m % 2), l = new M(a = d == 1 / 0 ? "5e" + m : (a = d.toExponential()).slice(0, a.indexOf("e") + 1) + m)) : l = new M(d + ""), l.c[0]) {
2913
+ if ((d = Math.sqrt(+st(u))) == 0 || d == 1 / 0 ? (((a = kV(p)).length + m) % 2 == 0 && (a += "0"), d = Math.sqrt(+a), m = UV((m + 1) / 2) - (m < 0 || m % 2), l = new M(a = d == 1 / 0 ? "5e" + m : (a = d.toExponential()).slice(0, a.indexOf("e") + 1) + m)) : l = new M(d + ""), l.c[0]) {
2914
2914
  for ((d = (m = l.e) + b) < 3 && (d = 0); ; ) if (c = l, l = g.times(c.plus(e(u, c, b, 1))), kV(c.c).slice(0, d) === (a = kV(l.c)).slice(0, d)) {
2915
2915
  if (l.e < m && --d, (a = a.slice(d - 3, d + 1)) != "9999" && (A || a != "4999")) {
2916
2916
  +a && (+a.slice(1) || a.charAt(0) != "5") || (EV(l, l.e + Q + 2, 1), s = !l.times(l).eq(u));
@@ -2933,37 +2933,37 @@ var f = function V(t) {
2933
2933
  if (l == null) s != null && a && typeof a == "object" ? (l = a, a = null) : s && typeof s == "object" ? (l = s, s = a = null) : l = Ot;
2934
2934
  else if (typeof l != "object") throw Error(wV + "Argument not an object: " + l);
2935
2935
  if (A = c.toFixed(s, a), c.c) {
2936
- var u, p = A.split("."), d = +l.groupSize, m = +l.secondaryGroupSize, b = l.groupSeparator || "", g = p[0], v = p[1], x = c.s < 0, D = x ? g.slice(1) : g, Z = D.length;
2936
+ var u, p = A.split("."), d = +l.groupSize, m = +l.secondaryGroupSize, b = l.groupSeparator || "", g = p[0], v = p[1], k = c.s < 0, L = k ? g.slice(1) : g, Z = L.length;
2937
2937
  if (m && (u = d, d = m, m = u, Z -= u), d > 0 && Z > 0) {
2938
- for (u = Z % d || d, g = D.substr(0, u); u < Z; u += d) g += b + D.substr(u, d);
2939
- m > 0 && (g += b + D.slice(u)), x && (g = "-" + g);
2938
+ for (u = Z % d || d, g = L.substr(0, u); u < Z; u += d) g += b + L.substr(u, d);
2939
+ m > 0 && (g += b + L.slice(u)), k && (g = "-" + g);
2940
2940
  }
2941
2941
  A = v ? g + (l.decimalSeparator || "") + ((m = +l.fractionGroupSize) ? v.replace(new RegExp("\\d{" + m + "}\\B", "g"), "$&" + (l.fractionGroupSeparator || "")) : v) : g;
2942
2942
  }
2943
2943
  return (l.prefix || "") + A + (l.suffix || "");
2944
2944
  }, C.toFraction = function(s) {
2945
- var a, l, A, c, u, p, d, m, b, g, v, x, D = this, Z = D.c;
2946
- if (s != null && (!(d = new M(s)).isInteger() && (d.c || d.s !== 1) || d.lt(T))) throw Error(wV + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + ot(d));
2947
- if (!Z) return new M(D);
2948
- for (a = new M(T), b = l = new M(T), A = m = new M(T), x = kV(Z), u = a.e = x.length - D.e - 1, a.c[0] = vq[(p = u % G) < 0 ? G + p : p], s = !s || d.comparedTo(a) > 0 ? u > 0 ? a : b : d, p = oV, oV = 1 / 0, d = new M(x), m.c[0] = 0; g = e(d, a, 0, 1), (c = l.plus(g.times(A))).comparedTo(s) != 1; ) l = A, A = c, b = m.plus(g.times(c = b)), m = c, a = d.minus(g.times(c = a)), d = c;
2949
- return c = e(s.minus(l), A, 0, 1), m = m.plus(c.times(b)), l = l.plus(c.times(A)), m.s = b.s = D.s, v = e(b, A, u *= 2, Y).minus(D).abs().comparedTo(e(m, l, u, Y).minus(D).abs()) < 1 ? [b, A] : [m, l], oV = p, v;
2945
+ var a, l, A, c, u, p, d, m, b, g, v, k, L = this, Z = L.c;
2946
+ if (s != null && (!(d = new M(s)).isInteger() && (d.c || d.s !== 1) || d.lt(x))) throw Error(wV + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + st(d));
2947
+ if (!Z) return new M(L);
2948
+ for (a = new M(x), b = l = new M(x), A = m = new M(x), k = kV(Z), u = a.e = k.length - L.e - 1, a.c[0] = vq[(p = u % G) < 0 ? G + p : p], s = !s || d.comparedTo(a) > 0 ? u > 0 ? a : b : d, p = oV, oV = 1 / 0, d = new M(k), m.c[0] = 0; g = e(d, a, 0, 1), (c = l.plus(g.times(A))).comparedTo(s) != 1; ) l = A, A = c, b = m.plus(g.times(c = b)), m = c, a = d.minus(g.times(c = a)), d = c;
2949
+ return c = e(s.minus(l), A, 0, 1), m = m.plus(c.times(b)), l = l.plus(c.times(A)), m.s = b.s = L.s, v = e(b, A, u *= 2, Y).minus(L).abs().comparedTo(e(m, l, u, Y).minus(L).abs()) < 1 ? [b, A] : [m, l], oV = p, v;
2950
2950
  }, C.toNumber = function() {
2951
- return +ot(this);
2951
+ return +st(this);
2952
2952
  }, C.toPrecision = function(s, a) {
2953
2953
  return s != null && $(s, 1, CV), hq(this, s, a, 2);
2954
2954
  }, C.toString = function(s) {
2955
2955
  var a, l = this, A = l.s, c = l.e;
2956
- return c === null ? A ? (a = "Infinity", A < 0 && (a = "-" + a)) : a = "NaN" : (s == null ? a = c <= aV || c >= W ? Pe(kV(l.c), c) : at(kV(l.c), c, "0") : s === 10 && pq ? a = at(kV((l = EV(new M(l), Q + c + 1, Y)).c), l.e, "0") : ($(s, 2, ZV.length, "Base"), a = q(at(kV(l.c), c, "0"), 10, s, A, !0)), A < 0 && l.c[0] && (a = "-" + a)), a;
2956
+ return c === null ? A ? (a = "Infinity", A < 0 && (a = "-" + a)) : a = "NaN" : (s == null ? a = c <= aV || c >= W ? Pe(kV(l.c), c) : nt(kV(l.c), c, "0") : s === 10 && pq ? a = nt(kV((l = EV(new M(l), Q + c + 1, Y)).c), l.e, "0") : ($(s, 2, JV.length, "Base"), a = q(nt(kV(l.c), c, "0"), 10, s, A, !0)), A < 0 && l.c[0] && (a = "-" + a)), a;
2957
2957
  }, C.valueOf = C.toJSON = function() {
2958
- return ot(this);
2958
+ return st(this);
2959
2959
  }, C._isBigNumber = !0, C[Symbol.toStringTag] = "BigNumber", C[Symbol.for("nodejs.util.inspect.custom")] = C.valueOf, t != null && M.set(t), M;
2960
- }(), Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, nt = (V, t, e, q) => {
2960
+ }(), Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, lt = (V, t, e, q) => {
2961
2961
  for (var o, i = q > 1 ? void 0 : q ? Ko(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
2962
2962
  return q && i && Wo(t, e, i), i;
2963
2963
  };
2964
- let QV = class extends O {
2964
+ let OV = class extends N {
2965
2965
  constructor() {
2966
- super(...arguments), this.isFocused = !1, this._gameContext = new xq(this, { context: yt, subscribe: !0, callback: (V) => {
2966
+ super(...arguments), this.isFocused = !1, this._gameContext = new xq(this, { context: bt, subscribe: !0, callback: (V) => {
2967
2967
  f(V.amount).isEqualTo(this.value) || this.isFocused || (this.value = f(V.amount).toFixed(8));
2968
2968
  } }), this.value = "0", this.currency = "ETH", this.disabled = !1, this.label = "Bet Amount", this.displayInFiat = !1;
2969
2969
  }
@@ -3034,12 +3034,12 @@ let QV = class extends O {
3034
3034
  `;
3035
3035
  }
3036
3036
  };
3037
- QV.styles = [R, F`
3037
+ OV.styles = [R, F`
3038
3038
  origami-raw-currency-input {
3039
3039
  flex-grow: 1;
3040
3040
  display: block;
3041
3041
  }
3042
- `], nt([Nt({ context: yt, subscribe: !0 })], QV.prototype, "gameData", 2), nt([E()], QV.prototype, "isFocused", 2), nt([E()], QV.prototype, "value", 2), nt([n({ type: String })], QV.prototype, "currency", 2), nt([n({ type: Boolean })], QV.prototype, "disabled", 2), nt([n({ type: String })], QV.prototype, "label", 2), nt([n({ type: Boolean })], QV.prototype, "displayInFiat", 2), nt([Qt("displayInFiat")], QV.prototype, "handleDisplayInFiatChange", 1), QV = nt([U("origami-bet-amount-input")], QV);
3042
+ `], lt([Qt({ context: bt, subscribe: !0 })], OV.prototype, "gameData", 2), lt([E()], OV.prototype, "isFocused", 2), lt([E()], OV.prototype, "value", 2), lt([n({ type: String })], OV.prototype, "currency", 2), lt([n({ type: Boolean })], OV.prototype, "disabled", 2), lt([n({ type: String })], OV.prototype, "label", 2), lt([n({ type: Boolean })], OV.prototype, "displayInFiat", 2), lt([Yt("displayInFiat")], OV.prototype, "handleDisplayInFiatChange", 1), OV = lt([U("origami-bet-amount-input")], OV);
3043
3043
  const cq = tV`
3044
3044
  <svg
3045
3045
  width="24"
@@ -3273,10 +3273,10 @@ qV.DEFAULT_MINES_QTY = 3, qV.MINES_TILES_COUNT = 25, qV.deriveSelectedTiles = (t
3273
3273
  const q = Math.min(qV.MINES_TILES_COUNT - t, e);
3274
3274
  return Jo.calculateMultiplierBN(t, q, 100);
3275
3275
  }, qV.getState = (t) => {
3276
- var y, B, L;
3276
+ var y, B, T;
3277
3277
  const e = (t == null ? void 0 : t.actions) ?? [];
3278
3278
  if (!e || e.length === 0 || !t) return { selectedTiles: [], mineLocations: [], minesCount: qV.DEFAULT_MINES_QTY, numMinesRemaining: qV.DEFAULT_MINES_QTY, numGemsRemaining: qV.MINES_TILES_COUNT - qV.DEFAULT_MINES_QTY, outcome: null, state: mV.NO_GAME_ACTIVE, betAmount: f(0) };
3279
- const q = qV.deriveOutcome(t), o = ((L = (B = (y = t == null ? void 0 : t.actions) == null ? void 0 : y[0]) == null ? void 0 : B.data.mines) == null ? void 0 : L.minesCount) ?? 0, i = q === qe.LOSS ? o - 1 : o, r = q ? mV.VIEWING_RESULTS : mV.GAME_IN_PROGRESS, h = qV.deriveSelectedTiles(t == null ? void 0 : t.actions);
3279
+ const q = qV.deriveOutcome(t), o = ((T = (B = (y = t == null ? void 0 : t.actions) == null ? void 0 : y[0]) == null ? void 0 : B.data.mines) == null ? void 0 : T.minesCount) ?? 0, i = q === qe.LOSS ? o - 1 : o, r = q ? mV.VIEWING_RESULTS : mV.GAME_IN_PROGRESS, h = qV.deriveSelectedTiles(t == null ? void 0 : t.actions);
3280
3280
  return { currency: t == null ? void 0 : t.currency, selectedTiles: h, mineLocations: qV.deriveMineLocations(t == null ? void 0 : t.actions), outcome: q, minesCount: o, numMinesRemaining: i, numGemsRemaining: qV.MINES_TILES_COUNT - o - h.length, state: r, betAmount: f(t.amount) };
3281
3281
  };
3282
3282
  let yV = qV;
@@ -3285,13 +3285,13 @@ var Ho = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, Xe = (V, t
3285
3285
  return q && i && Ho(t, e, i), i;
3286
3286
  };
3287
3287
  const $o = Array.from({ length: 24 }, (V, t) => ({ value: (t + 1).toString(), label: (t + 1).toString() }));
3288
- let se = class extends O {
3288
+ let se = class extends N {
3289
3289
  constructor() {
3290
3290
  super(...arguments), this.inputsDisabled = !1, this.minesState = null, this.isGameActive = !1;
3291
3291
  }
3292
3292
  render() {
3293
- var B, L, I, C;
3294
- const V = ((B = this.minesState) == null ? void 0 : B.numGemsRemaining) ?? 0, t = ((L = this.minesState) == null ? void 0 : L.betAmount) ?? f(0), e = ((I = this.minesState) == null ? void 0 : I.minesCount) ?? 0, q = 25 - e - V, o = yV.calculateMinesMultiplier(q + 1, e), i = yV.calculateMinesMultiplier(q, e), r = (((C = this.minesState) == null ? void 0 : C.selectedTiles.length) ?? 0) > 0, h = r ? f(t).multipliedBy(i).minus(t).toFixed(8) : f(t).negated().toFixed(8), y = f(t).multipliedBy(o).minus(t).toFixed(8);
3293
+ var B, T, I, C;
3294
+ const V = ((B = this.minesState) == null ? void 0 : B.numGemsRemaining) ?? 0, t = ((T = this.minesState) == null ? void 0 : T.betAmount) ?? f(0), e = ((I = this.minesState) == null ? void 0 : I.minesCount) ?? 0, q = 25 - e - V, o = yV.calculateMinesMultiplier(q + 1, e), i = yV.calculateMinesMultiplier(q, e), r = (((C = this.minesState) == null ? void 0 : C.selectedTiles.length) ?? 0) > 0, h = r ? f(t).multipliedBy(i).minus(t).toFixed(8) : f(t).negated().toFixed(8), y = f(t).multipliedBy(o).minus(t).toFixed(8);
3295
3295
  return w`
3296
3296
  <div class=${P({ disabled: this.isGameActive })}>
3297
3297
  <origami-bet-amount-input ?disabled=${this.inputsDisabled}></origami-bet-amount-input>
@@ -3339,8 +3339,8 @@ let se = class extends O {
3339
3339
  label="Mines Count"
3340
3340
  .options=${$o}
3341
3341
  .value=${e.toString()}
3342
- @select-change=${(T) => {
3343
- this.emit("mines-count-change", { detail: { count: +T.detail.value } });
3342
+ @select-change=${(x) => {
3343
+ this.emit("mines-count-change", { detail: { count: +x.detail.value } });
3344
3344
  }}
3345
3345
  ></origami-select>
3346
3346
  `}
@@ -3378,12 +3378,12 @@ let se = class extends O {
3378
3378
  se.styles = [R, Yi], Xe([n({ type: Boolean })], se.prototype, "inputsDisabled", 2), Xe([n({ type: Object })], se.prototype, "minesState", 2), Xe([n({ type: Boolean })], se.prototype, "isGameActive", 2), se = Xe([U("origami-mines-manual")], se);
3379
3379
  const di = [{ value: "5", label: "5 games" }, { value: "10", label: "10 games" }, { value: "25", label: "25 games" }, { value: "50", label: "50 games" }, { value: "100", label: "100 games" }, { value: "0", label: "Infinite" }];
3380
3380
  var Bi;
3381
- const _o = ((Bi = di[di.length - 1]) == null ? void 0 : Bi.value) ?? "0", Ni = "autobet-context";
3381
+ const _o = ((Bi = di[di.length - 1]) == null ? void 0 : Bi.value) ?? "0", Oi = "autobet-context";
3382
3382
  var Vr = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, Eq = (V, t, e, q) => {
3383
3383
  for (var o, i = q > 1 ? void 0 : q ? tr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
3384
3384
  return q && i && Vr(t, e, i), i;
3385
3385
  };
3386
- let ve = class extends O {
3386
+ let Be = class extends N {
3387
3387
  constructor() {
3388
3388
  super(...arguments), this.disabled = !1;
3389
3389
  }
@@ -3442,7 +3442,7 @@ let ve = class extends O {
3442
3442
  `;
3443
3443
  }
3444
3444
  };
3445
- ve.styles = [R], Eq([Nt({ context: Ni, subscribe: !0 })], ve.prototype, "_autobetContext", 2), Eq([n({ type: Boolean })], ve.prototype, "disabled", 2), ve = Eq([U("origami-bet-count-input")], ve);
3445
+ Be.styles = [R], Eq([Qt({ context: Oi, subscribe: !0 })], Be.prototype, "_autobetContext", 2), Eq([n({ type: Boolean })], Be.prototype, "disabled", 2), Be = Eq([U("origami-bet-count-input")], Be);
3446
3446
  const er = F`
3447
3447
  :host {
3448
3448
  width: 100%;
@@ -3541,7 +3541,7 @@ const er = F`
3541
3541
  pointer-events: none;
3542
3542
  }
3543
3543
  `;
3544
- var qr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, lt = (V, t, e, q) => {
3544
+ var qr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, ct = (V, t, e, q) => {
3545
3545
  for (var o, i = q > 1 ? void 0 : q ? ir(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
3546
3546
  return q && i && qr(t, e, i), i;
3547
3547
  };
@@ -3564,9 +3564,9 @@ const or = { onWinPercentage: "0.00000000", onLossPercentage: "0.00000000", stop
3564
3564
  }
3565
3565
  return t;
3566
3566
  };
3567
- let NV = class extends O {
3567
+ let NV = class extends N {
3568
3568
  constructor() {
3569
- super(...arguments), this.inputsDisabled = !1, this.autobetSettings = or, this.currency = IV.USDC, this.autobetStopping = !1, this.autobetInProgress = !1, this.profitOnWin = "0.00", this.betDisabled = !1, this._autobetProvider = new Ii(this, { context: Ni, initialValue: { numberOfBets: _o, updateNumberOfBets: this.updateNumberOfBets.bind(this) } });
3569
+ super(...arguments), this.inputsDisabled = !1, this.autobetSettings = or, this.currency = IV.USDC, this.autobetStopping = !1, this.autobetInProgress = !1, this.profitOnWin = "0.00", this.betDisabled = !1, this._autobetProvider = new Ii(this, { context: Oi, initialValue: { numberOfBets: _o, updateNumberOfBets: this.updateNumberOfBets.bind(this) } });
3570
3570
  }
3571
3571
  updateNumberOfBets(V) {
3572
3572
  this._autobetProvider.setValue({ ...this._autobetProvider.value, numberOfBets: V });
@@ -3599,7 +3599,7 @@ let NV = class extends O {
3599
3599
 
3600
3600
  <slot name="custom-inputs" @slotchange=${() => this.requestUpdate()}></slot>
3601
3601
 
3602
- ${this._hasCustomInputs() ? k : w`<origami-bet-count-input></origami-bet-count-input>`}
3602
+ ${this._hasCustomInputs() ? D : w`<origami-bet-count-input></origami-bet-count-input>`}
3603
3603
 
3604
3604
  <origami-input
3605
3605
  label="On Win"
@@ -3703,13 +3703,13 @@ let NV = class extends O {
3703
3703
  var V, t;
3704
3704
  }
3705
3705
  };
3706
- NV.styles = [R, er], lt([n({ type: Boolean })], NV.prototype, "inputsDisabled", 2), lt([n({ type: Object })], NV.prototype, "autobetSettings", 2), lt([n({ type: String })], NV.prototype, "currency", 2), lt([n({ type: Boolean })], NV.prototype, "autobetStopping", 2), lt([n({ type: Boolean })], NV.prototype, "autobetInProgress", 2), lt([n({ type: String })], NV.prototype, "profitOnWin", 2), lt([n({ type: Boolean })], NV.prototype, "betDisabled", 2), lt([ye('slot[name="custom-inputs"]')], NV.prototype, "customInputsSlot", 2), NV = lt([U("origami-generic-autobet")], NV);
3706
+ NV.styles = [R, er], ct([n({ type: Boolean })], NV.prototype, "inputsDisabled", 2), ct([n({ type: Object })], NV.prototype, "autobetSettings", 2), ct([n({ type: String })], NV.prototype, "currency", 2), ct([n({ type: Boolean })], NV.prototype, "autobetStopping", 2), ct([n({ type: Boolean })], NV.prototype, "autobetInProgress", 2), ct([n({ type: String })], NV.prototype, "profitOnWin", 2), ct([n({ type: Boolean })], NV.prototype, "betDisabled", 2), ct([me('slot[name="custom-inputs"]')], NV.prototype, "customInputsSlot", 2), NV = ct([U("origami-generic-autobet")], NV);
3707
3707
  var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, Ct = (V, t, e, q) => {
3708
3708
  for (var o, i = q > 1 ? void 0 : q ? sr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
3709
3709
  return q && i && rr(t, e, i), i;
3710
3710
  };
3711
3711
  const ar = Array.from({ length: 24 }, (V, t) => ({ value: (t + 1).toString(), label: (t + 1).toString() }));
3712
- let zV = class extends O {
3712
+ let HV = class extends N {
3713
3713
  constructor() {
3714
3714
  super(...arguments), this.inputsDisabled = !1, this.autobetStopping = !1, this.autobetInProgress = !1, this.profitOnWin = "0.00", this.minesCount = 5, this.disableBet = !1;
3715
3715
  }
@@ -3741,7 +3741,7 @@ let zV = class extends O {
3741
3741
  `;
3742
3742
  }
3743
3743
  };
3744
- zV.styles = [R, Yi], Ct([n({ type: Boolean })], zV.prototype, "inputsDisabled", 2), Ct([n({ type: Boolean })], zV.prototype, "autobetStopping", 2), Ct([n({ type: Boolean })], zV.prototype, "autobetInProgress", 2), Ct([n({ type: String })], zV.prototype, "profitOnWin", 2), Ct([n({ type: Number })], zV.prototype, "minesCount", 2), Ct([n({ type: Boolean })], zV.prototype, "disableBet", 2), Ct([Nt({ context: yt, subscribe: !0 })], zV.prototype, "gameData", 2), zV = Ct([U("origami-mines-auto")], zV);
3744
+ HV.styles = [R, Yi], Ct([n({ type: Boolean })], HV.prototype, "inputsDisabled", 2), Ct([n({ type: Boolean })], HV.prototype, "autobetStopping", 2), Ct([n({ type: Boolean })], HV.prototype, "autobetInProgress", 2), Ct([n({ type: String })], HV.prototype, "profitOnWin", 2), Ct([n({ type: Number })], HV.prototype, "minesCount", 2), Ct([n({ type: Boolean })], HV.prototype, "disableBet", 2), Ct([Qt({ context: bt, subscribe: !0 })], HV.prototype, "gameData", 2), HV = Ct([U("origami-mines-auto")], HV);
3745
3745
  const nr = F`
3746
3746
  .controls {
3747
3747
  display: flex;
@@ -3777,11 +3777,11 @@ const nr = F`
3777
3777
  }
3778
3778
  }
3779
3779
  `;
3780
- var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Kt = (V, t, e, q) => {
3780
+ var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Wt = (V, t, e, q) => {
3781
3781
  for (var o, i = q > 1 ? void 0 : q ? cr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
3782
3782
  return q && i && lr(t, e, i), i;
3783
3783
  };
3784
- let ct = class extends O {
3784
+ let ut = class extends N {
3785
3785
  constructor() {
3786
3786
  super(...arguments), this.mode = "Manual", this.betAmount = "10.00", this.currency = "USDT", this.isPlaying = !1, this.disabled = !1, this.isLoading = !1, this.enableHaptics = !1, this.className = "";
3787
3787
  }
@@ -3809,7 +3809,7 @@ let ct = class extends O {
3809
3809
  `;
3810
3810
  }
3811
3811
  };
3812
- ct.styles = [R, nr], Kt([n({ type: String })], ct.prototype, "mode", 2), Kt([n({ type: Boolean })], ct.prototype, "isPlaying", 2), Kt([n({ type: Boolean })], ct.prototype, "disabled", 2), Kt([n({ type: Boolean })], ct.prototype, "isLoading", 2), Kt([n({ type: Boolean })], ct.prototype, "enableHaptics", 2), Kt([n({ type: String })], ct.prototype, "className", 2), ct = Kt([U("origami-game-sidebar")], ct);
3812
+ ut.styles = [R, nr], Wt([n({ type: String })], ut.prototype, "mode", 2), Wt([n({ type: Boolean })], ut.prototype, "isPlaying", 2), Wt([n({ type: Boolean })], ut.prototype, "disabled", 2), Wt([n({ type: Boolean })], ut.prototype, "isLoading", 2), Wt([n({ type: Boolean })], ut.prototype, "enableHaptics", 2), Wt([n({ type: String })], ut.prototype, "className", 2), ut = Wt([U("origami-game-sidebar")], ut);
3813
3813
  const ur = F`
3814
3814
  :host {
3815
3815
  display: block;
@@ -3899,7 +3899,7 @@ const ur = F`
3899
3899
  }
3900
3900
  }
3901
3901
  `;
3902
- var dr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ae = (V, t, e, q) => {
3902
+ var dr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ve = (V, t, e, q) => {
3903
3903
  for (var o, i = q > 1 ? void 0 : q ? pr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
3904
3904
  return q && i && dr(t, e, i), i;
3905
3905
  };
@@ -3927,9 +3927,9 @@ const hr = tV`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns=
3927
3927
  </defs>
3928
3928
  </svg>
3929
3929
  `;
3930
- let Mt = class extends O {
3930
+ let Kt = class extends N {
3931
3931
  constructor() {
3932
- super(...arguments), this.showLogo = !0, this.logoUrl = "/origami.svg", this.logoAlt = "Origami Logo", this.showStats = !1;
3932
+ super(...arguments), this.showLogo = !0, this.logoUrl = "/origami.svg", this.logoAlt = "Origami Logo";
3933
3933
  }
3934
3934
  handleSettingsClick() {
3935
3935
  this.emit("footer-settings-click", { bubbles: !1, composed: !1 });
@@ -3947,7 +3947,7 @@ let Mt = class extends O {
3947
3947
  this.emit("footer-provably-fair-click", { bubbles: !1, composed: !1 });
3948
3948
  }
3949
3949
  render() {
3950
- var h, y, B, L;
3950
+ var h, y, B, T, I, C;
3951
3951
  const V = "top", o = "#f8f8f8", i = "#333333";
3952
3952
  return w`
3953
3953
  <footer class="footer" role="contentinfo" aria-label="Site information">
@@ -4009,14 +4009,14 @@ let Mt = class extends O {
4009
4009
  variant="icon"
4010
4010
  aria-label="View statistics"
4011
4011
  aria-haspopup="dialog"
4012
- aria-pressed=${this.showStats ? "true" : "false"}
4012
+ aria-pressed=${(B = this.gameData) != null && B.gameStatsOpen ? "true" : "false"}
4013
4013
  @button-click=${this.handleStatsClick}
4014
4014
  >
4015
- <div class="icon-wrapper" slot="icon">${((I) => tV`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4016
- <path d="M9.66992 3V21.001H14.3399V3H9.66992Z" fill="${I ? "#daff01" : "currentColor"}"/>
4017
- <path d="M3 13V21.001H7.67V13H3Z" fill="${I ? "#daff01" : "currentColor"}"/>
4018
- <path d="M16.3398 21.001V8H21.0098V21.001H16.3398Z" fill="${I ? "#daff01" : "currentColor"}"/>
4019
- </svg>`)(this.showStats)}</div>
4015
+ <div class="icon-wrapper" slot="icon">${((x) => tV`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4016
+ <path d="M9.66992 3V21.001H14.3399V3H9.66992Z" fill="${x ? "#daff01" : "currentColor"}"/>
4017
+ <path d="M3 13V21.001H7.67V13H3Z" fill="${x ? "#daff01" : "currentColor"}"/>
4018
+ <path d="M16.3398 21.001V8H21.0098V21.001H16.3398Z" fill="${x ? "#daff01" : "currentColor"}"/>
4019
+ </svg>`)(((T = this.gameData) == null ? void 0 : T.gameStatsOpen) ?? !1)}</div>
4020
4020
  </origami-button>
4021
4021
  </origami-tooltip>
4022
4022
 
@@ -4033,19 +4033,19 @@ let Mt = class extends O {
4033
4033
  variant="icon"
4034
4034
  aria-label="Favorites"
4035
4035
  aria-haspopup="dialog"
4036
- aria-pressed=${(B = this.gameData) != null && B.showFavorites ? "true" : "false"}
4036
+ aria-pressed=${(I = this.gameData) != null && I.showFavorites ? "true" : "false"}
4037
4037
  @button-click=${this.handleFavoritesClick}
4038
4038
  >
4039
4039
  <div class="icon-wrapper" slot="icon">
4040
- ${((I) => tV`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4041
- <path d="M8 3C6.48169 3 4.96498 3.60857 3.83296 4.81606C2.69616 6.02865 2 7.78592 2 10C2 13.3448 4.37277 16.1023 6.58187 17.9272C7.71336 18.8619 8.86688 19.6065 9.7917 20.1203C10.2539 20.377 10.6687 20.5816 11.004 20.7253C11.1707 20.7967 11.3289 20.858 11.4705 20.9033C11.5784 20.9378 11.7841 21 12 21C12.2159 21 12.4216 20.9378 12.5295 20.9033C12.6711 20.858 12.8293 20.7967 12.996 20.7253C13.3313 20.5816 13.7461 20.377 14.2083 20.1203C15.1331 19.6065 16.2866 18.8619 17.4181 17.9272C19.6272 16.1023 22 13.3448 22 10C22 7.78592 21.3038 6.02865 20.167 4.81606C19.035 3.60857 17.5183 3 16 3C14.5455 3 13.3815 3.4369 12.5836 3.8721C12.3615 3.99329 12.1665 4.11496 12 4.22818C11.8335 4.11496 11.6385 3.99329 11.4164 3.8721C10.6185 3.4369 9.45449 3 8 3Z" fill="${I ? "#daff01" : "currentColor"}"/>
4042
- </svg>`)(!!((L = this.gameData) != null && L.showFavorites))}
4040
+ ${((x) => tV`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4041
+ <path d="M8 3C6.48169 3 4.96498 3.60857 3.83296 4.81606C2.69616 6.02865 2 7.78592 2 10C2 13.3448 4.37277 16.1023 6.58187 17.9272C7.71336 18.8619 8.86688 19.6065 9.7917 20.1203C10.2539 20.377 10.6687 20.5816 11.004 20.7253C11.1707 20.7967 11.3289 20.858 11.4705 20.9033C11.5784 20.9378 11.7841 21 12 21C12.2159 21 12.4216 20.9378 12.5295 20.9033C12.6711 20.858 12.8293 20.7967 12.996 20.7253C13.3313 20.5816 13.7461 20.377 14.2083 20.1203C15.1331 19.6065 16.2866 18.8619 17.4181 17.9272C19.6272 16.1023 22 13.3448 22 10C22 7.78592 21.3038 6.02865 20.167 4.81606C19.035 3.60857 17.5183 3 16 3C14.5455 3 13.3815 3.4369 12.5836 3.8721C12.3615 3.99329 12.1665 4.11496 12 4.22818C11.8335 4.11496 11.6385 3.99329 11.4164 3.8721C10.6185 3.4369 9.45449 3 8 3Z" fill="${x ? "#daff01" : "currentColor"}"/>
4042
+ </svg>`)(!!((C = this.gameData) != null && C.showFavorites))}
4043
4043
  </div>
4044
4044
  </origami-button>
4045
4045
  </origami-tooltip>
4046
4046
  </nav>
4047
4047
 
4048
- ${this.showLogo ? w` <div class="footer-logo hide-on-mobile" aria-hidden="true">${Ar}</div> ` : k}
4048
+ ${this.showLogo ? w` <div class="footer-logo hide-on-mobile" aria-hidden="true">${Ar}</div> ` : D}
4049
4049
 
4050
4050
  <div class="footer-links">
4051
4051
  <origami-button
@@ -4077,20 +4077,20 @@ function Vq(V) {
4077
4077
  t.cancel(), requestAnimationFrame(e);
4078
4078
  })));
4079
4079
  }
4080
- Mt.styles = [R, ur], ae([Nt({ context: yt, subscribe: !0 })], Mt.prototype, "gameData", 2), ae([n({ type: Boolean })], Mt.prototype, "showLogo", 2), ae([n({ type: String })], Mt.prototype, "logoUrl", 2), ae([n({ type: String })], Mt.prototype, "logoAlt", 2), ae([n({ type: Boolean })], Mt.prototype, "showStats", 2), Mt = ae([U("origami-footer")], Mt);
4081
- const Oi = /* @__PURE__ */ new Map(), yr = /* @__PURE__ */ new WeakMap();
4080
+ Kt.styles = [R, ur], ve([Qt({ context: bt, subscribe: !0 })], Kt.prototype, "gameData", 2), ve([n({ type: Boolean })], Kt.prototype, "showLogo", 2), ve([n({ type: String })], Kt.prototype, "logoUrl", 2), ve([n({ type: String })], Kt.prototype, "logoAlt", 2), Kt = ve([U("origami-footer")], Kt);
4081
+ const Ni = /* @__PURE__ */ new Map(), yr = /* @__PURE__ */ new WeakMap();
4082
4082
  function gi(V, t) {
4083
4083
  return t.toLowerCase() === "rtl" ? { keyframes: V.rtlKeyframes || V.keyframes, options: V.options } : V;
4084
4084
  }
4085
4085
  function Ee(V, t) {
4086
- Oi.set(V, /* @__PURE__ */ function(e) {
4086
+ Ni.set(V, /* @__PURE__ */ function(e) {
4087
4087
  return e ?? { keyframes: [], options: { duration: 0 } };
4088
4088
  }(t));
4089
4089
  }
4090
4090
  function Se(V, t, e) {
4091
4091
  const q = yr.get(V);
4092
4092
  if (q != null && q[t]) return gi(q[t], e.dir);
4093
- const o = Oi.get(t);
4093
+ const o = Ni.get(t);
4094
4094
  return o ? gi(o, e.dir) : { keyframes: [], options: { duration: 0 } };
4095
4095
  }
4096
4096
  function Ai(V, t) {
@@ -4420,14 +4420,14 @@ const Cr = F`
4420
4420
  color: var(--modal-text);
4421
4421
  }
4422
4422
  `;
4423
- var Mr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, PV = (V, t, e, q) => {
4423
+ var Mr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, XV = (V, t, e, q) => {
4424
4424
  for (var o, i = q > 1 ? void 0 : q ? Br(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
4425
4425
  return q && i && Mr(t, e, i), i;
4426
4426
  };
4427
4427
  const vr = tV`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
4428
4428
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.41421 2L7.91423 6.5L12.4142 2L13.8284 3.41421L9.32843 7.91419L13.8284 12.4142L12.4142 13.8284L7.91423 9.32839L3.41421 13.8284L2 12.4142L6.5 7.91419L2 3.41421L3.41421 2Z" fill="#B3B3B3"/>
4429
4429
  </svg>`;
4430
- let DV = class extends O {
4430
+ let DV = class extends N {
4431
4431
  constructor() {
4432
4432
  super(...arguments), this.hasSlotController = new fr(this, "footer"), this.originalTrigger = null, this.focusTrap = new wr(this), this.closeWatcher = null, this.fixedPosition = !1, this.open = !1, this.label = "", this.lockScrolling = !1, this.noHeader = !1, this.handleDocumentKeyDown = (V) => {
4433
4433
  V.key === "Escape" && this.focusTrap.isActive() && this.open && (V.stopPropagation(), this.requestClose("keyboard"));
@@ -4530,7 +4530,7 @@ let DV = class extends O {
4530
4530
  `;
4531
4531
  }
4532
4532
  };
4533
- DV.styles = [R, Cr], PV([n({ type: Boolean })], DV.prototype, "fixedPosition", 2), PV([ye(".dialog")], DV.prototype, "dialog", 2), PV([ye(".dialog__panel")], DV.prototype, "panel", 2), PV([ye(".dialog__overlay")], DV.prototype, "overlay", 2), PV([n({ type: Boolean, reflect: !0 })], DV.prototype, "open", 2), PV([n({ reflect: !0 })], DV.prototype, "label", 2), PV([n({ type: Boolean })], DV.prototype, "lockScrolling", 2), PV([n({ attribute: "no-header", type: Boolean, reflect: !0 })], DV.prototype, "noHeader", 2), PV([Qt("open", { waitUntilFirstUpdate: !0 })], DV.prototype, "handleOpenChange", 1), DV = PV([U("origami-modal")], DV), Ee("dialog.show", { keyframes: [{ opacity: 0, scale: 0.8 }, { opacity: 1, scale: 1 }], options: { duration: 250, easing: "ease" } }), Ee("dialog.hide", { keyframes: [{ opacity: 1, scale: 1 }, { opacity: 0, scale: 0.8 }], options: { duration: 250, easing: "ease" } }), Ee("dialog.denyClose", { keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }], options: { duration: 250 } }), Ee("dialog.overlay.show", { keyframes: [{ opacity: 0 }, { opacity: 1 }], options: { duration: 250 } }), Ee("dialog.overlay.hide", { keyframes: [{ opacity: 1 }, { opacity: 0 }], options: { duration: 250 } });
4533
+ DV.styles = [R, Cr], XV([n({ type: Boolean })], DV.prototype, "fixedPosition", 2), XV([me(".dialog")], DV.prototype, "dialog", 2), XV([me(".dialog__panel")], DV.prototype, "panel", 2), XV([me(".dialog__overlay")], DV.prototype, "overlay", 2), XV([n({ type: Boolean, reflect: !0 })], DV.prototype, "open", 2), XV([n({ reflect: !0 })], DV.prototype, "label", 2), XV([n({ type: Boolean })], DV.prototype, "lockScrolling", 2), XV([n({ attribute: "no-header", type: Boolean, reflect: !0 })], DV.prototype, "noHeader", 2), XV([Yt("open", { waitUntilFirstUpdate: !0 })], DV.prototype, "handleOpenChange", 1), DV = XV([U("origami-modal")], DV), Ee("dialog.show", { keyframes: [{ opacity: 0, scale: 0.8 }, { opacity: 1, scale: 1 }], options: { duration: 250, easing: "ease" } }), Ee("dialog.hide", { keyframes: [{ opacity: 1, scale: 1 }, { opacity: 0, scale: 0.8 }], options: { duration: 250, easing: "ease" } }), Ee("dialog.denyClose", { keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }], options: { duration: 250 } }), Ee("dialog.overlay.show", { keyframes: [{ opacity: 0 }, { opacity: 1 }], options: { duration: 250 } }), Ee("dialog.overlay.hide", { keyframes: [{ opacity: 1 }, { opacity: 0 }], options: { duration: 250 } });
4534
4534
  const Ir = F`
4535
4535
  :host {
4536
4536
  display: block;
@@ -4633,7 +4633,7 @@ const Ir = F`
4633
4633
  margin: 0;
4634
4634
  }
4635
4635
  `;
4636
- var Er = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, Bt = (V, t, e, q) => {
4636
+ var Er = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, Mt = (V, t, e, q) => {
4637
4637
  for (var o, i = q > 1 ? void 0 : q ? Sr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
4638
4638
  return q && i && Er(t, e, i), i;
4639
4639
  };
@@ -4672,7 +4672,7 @@ const xr = tV`
4672
4672
  <path d="M10.5 14.5L14 11L11.2 9.6L9.1 11.7L10.5 14.5Z" fill="#01E401"/>
4673
4673
  <path d="M14 4L10.5 0.5L9.1 3.3L11.2 5.4L14 4Z" fill="#019902"/>
4674
4674
  </svg>`, Mines: xr };
4675
- let HV = class extends WV {
4675
+ let $V = class extends KV {
4676
4676
  constructor() {
4677
4677
  super(...arguments), this.winAmount = "0", this.multiplier = void 0, this.currencySymbol = "$", this.title = "", this.description = "", this.gemCount = 4, this.gameType = "Keno";
4678
4678
  }
@@ -4703,7 +4703,7 @@ let HV = class extends WV {
4703
4703
  `;
4704
4704
  }
4705
4705
  };
4706
- HV.styles = [R, Ir], Bt([n({ type: String })], HV.prototype, "winAmount", 2), Bt([n({ type: Number })], HV.prototype, "multiplier", 2), Bt([n({ type: String })], HV.prototype, "currencySymbol", 2), Bt([n({ type: String })], HV.prototype, "title", 2), Bt([n({ type: String })], HV.prototype, "description", 2), Bt([n({ type: Number })], HV.prototype, "gemCount", 2), Bt([n({ type: String })], HV.prototype, "gameType", 2), HV = Bt([U("origami-game-win-popup")], HV);
4706
+ $V.styles = [R, Ir], Mt([n({ type: String })], $V.prototype, "winAmount", 2), Mt([n({ type: Number })], $V.prototype, "multiplier", 2), Mt([n({ type: String })], $V.prototype, "currencySymbol", 2), Mt([n({ type: String })], $V.prototype, "title", 2), Mt([n({ type: String })], $V.prototype, "description", 2), Mt([n({ type: Number })], $V.prototype, "gemCount", 2), Mt([n({ type: String })], $V.prototype, "gameType", 2), $V = Mt([U("origami-game-win-popup")], $V);
4707
4707
  const Dr = tV`<svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" viewBox="0 0 65 69" fill="none">
4708
4708
  <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"/>
4709
4709
  <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"/>
@@ -4988,8 +4988,8 @@ const Dr = tV`<svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" vie
4988
4988
  var Ur = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, ke = (V, t, e, q) => {
4989
4989
  for (var o, i = q > 1 ? void 0 : q ? Gr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
4990
4990
  return q && i && Ur(t, e, i), i;
4991
- }, At = ((V) => (V.NORMAL = "NORMAL", V.AUTOBET_SELECTED = "AUTOBET_SELECTED", V.SELECTED_GEM = "SELECTED_GEM", V.UNSELECTED_GEM = "UNSELECTED_GEM", V.SELECTED_BOMB = "SELECTED_BOMB", V.UNSELECTED_BOMB = "UNSELECTED_BOMB", V.AUTOBET_SELECTED_GEM = "AUTOBET_SELECTED_GEM", V.AUTOBET_SELECTED_BOMB = "AUTOBET_SELECTED_BOMB", V))(At || {});
4992
- let Zt = class extends O {
4991
+ }, mt = ((V) => (V.NORMAL = "NORMAL", V.AUTOBET_SELECTED = "AUTOBET_SELECTED", V.SELECTED_GEM = "SELECTED_GEM", V.UNSELECTED_GEM = "UNSELECTED_GEM", V.SELECTED_BOMB = "SELECTED_BOMB", V.UNSELECTED_BOMB = "UNSELECTED_BOMB", V.AUTOBET_SELECTED_GEM = "AUTOBET_SELECTED_GEM", V.AUTOBET_SELECTED_BOMB = "AUTOBET_SELECTED_BOMB", V))(mt || {});
4992
+ let Zt = class extends N {
4993
4993
  constructor() {
4994
4994
  super(...arguments), this.tileId = 0, this.delayReveal = !1, this.state = "NORMAL", this.ariaLabel = "";
4995
4995
  }
@@ -5016,9 +5016,9 @@ let Zt = class extends O {
5016
5016
  <div class="rear-tile">
5017
5017
  ${q || o || e ? w`
5018
5018
  <div class="icon-container">
5019
- ${e ? Dr : q ? Lr : k}
5019
+ ${e ? Dr : q ? Lr : D}
5020
5020
  </div>
5021
- ` : k}
5021
+ ` : D}
5022
5022
  </div>
5023
5023
  `;
5024
5024
  }
@@ -5071,11 +5071,11 @@ const Yr = F`
5071
5071
  margin: 0 auto;
5072
5072
  }
5073
5073
  `;
5074
- var Qr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, vt = (V, t, e, q) => {
5075
- for (var o, i = q > 1 ? void 0 : q ? Nr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
5074
+ var Qr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, Bt = (V, t, e, q) => {
5075
+ for (var o, i = q > 1 ? void 0 : q ? Or(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
5076
5076
  return q && i && Qr(t, e, i), i;
5077
5077
  };
5078
- let XV = class extends O {
5078
+ let _V = class extends N {
5079
5079
  constructor() {
5080
5080
  super(...arguments), this.isAuto = !1, this.autobetSelectedTiles = [], this.autobetInProgress = !1, this.minesState = null, this.hasWon = !1, this.hitBomb = !1;
5081
5081
  }
@@ -5089,9 +5089,9 @@ let XV = class extends O {
5089
5089
  });
5090
5090
  }
5091
5091
  calculateTileState(V) {
5092
- var h, y, B, L, I;
5093
- const t = ((h = this.minesState) == null ? void 0 : h.state) === mV.VIEWING_RESULTS, e = ((y = this.minesState) == null ? void 0 : y.mineLocations.includes(V)) ?? !1, q = (t || ((B = this.minesState) == null ? void 0 : B.selectedTiles.includes(V))) ?? !1, o = this.isAuto && t && ((L = this.minesState) == null ? void 0 : L.selectedTiles.includes(V)), i = this.autobetSelectedTiles.includes(V), r = ((I = this.minesState) == null ? void 0 : I.selectedTiles.includes(V)) ?? !1;
5094
- return q ? e ? o ? At.AUTOBET_SELECTED_BOMB : r ? At.SELECTED_BOMB : At.UNSELECTED_BOMB : o ? At.AUTOBET_SELECTED_GEM : r ? At.SELECTED_GEM : At.UNSELECTED_GEM : i ? At.AUTOBET_SELECTED : At.NORMAL;
5092
+ var h, y, B, T, I;
5093
+ const t = ((h = this.minesState) == null ? void 0 : h.state) === mV.VIEWING_RESULTS, e = ((y = this.minesState) == null ? void 0 : y.mineLocations.includes(V)) ?? !1, q = (t || ((B = this.minesState) == null ? void 0 : B.selectedTiles.includes(V))) ?? !1, o = this.isAuto && t && ((T = this.minesState) == null ? void 0 : T.selectedTiles.includes(V)), i = this.autobetSelectedTiles.includes(V), r = ((I = this.minesState) == null ? void 0 : I.selectedTiles.includes(V)) ?? !1;
5094
+ return q ? e ? o ? mt.AUTOBET_SELECTED_BOMB : r ? mt.SELECTED_BOMB : mt.UNSELECTED_BOMB : o ? mt.AUTOBET_SELECTED_GEM : r ? mt.SELECTED_GEM : mt.UNSELECTED_GEM : i ? mt.AUTOBET_SELECTED : mt.NORMAL;
5095
5095
  }
5096
5096
  render() {
5097
5097
  var t, e;
@@ -5122,8 +5122,8 @@ let XV = class extends O {
5122
5122
  `;
5123
5123
  }
5124
5124
  };
5125
- XV.styles = [R, Yr], vt([n({ type: Boolean })], XV.prototype, "isAuto", 2), vt([n({ type: Array })], XV.prototype, "autobetSelectedTiles", 2), vt([n({ type: Boolean })], XV.prototype, "autobetInProgress", 2), vt([n({ type: Object })], XV.prototype, "minesState", 2), vt([n({ type: Boolean })], XV.prototype, "hasWon", 2), vt([n({ type: Boolean })], XV.prototype, "hitBomb", 2), vt([Nt({ context: yt, subscribe: !0 })], XV.prototype, "gameData", 2), XV = vt([U("origami-mines-grid")], XV);
5126
- const Or = F`
5125
+ _V.styles = [R, Yr], Bt([n({ type: Boolean })], _V.prototype, "isAuto", 2), Bt([n({ type: Array })], _V.prototype, "autobetSelectedTiles", 2), Bt([n({ type: Boolean })], _V.prototype, "autobetInProgress", 2), Bt([n({ type: Object })], _V.prototype, "minesState", 2), Bt([n({ type: Boolean })], _V.prototype, "hasWon", 2), Bt([n({ type: Boolean })], _V.prototype, "hitBomb", 2), Bt([Qt({ context: bt, subscribe: !0 })], _V.prototype, "gameData", 2), _V = Bt([U("origami-mines-grid")], _V);
5126
+ const Nr = F`
5127
5127
  :host {
5128
5128
  display: block;
5129
5129
  color: #ffffff;
@@ -5273,7 +5273,7 @@ const Or = F`
5273
5273
  background-color: #272727;
5274
5274
  }
5275
5275
  `;
5276
- var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, It = (V, t, e, q) => {
5276
+ var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, vt = (V, t, e, q) => {
5277
5277
  for (var o, i = q > 1 ? void 0 : q ? Fr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
5278
5278
  return q && i && Rr(t, e, i), i;
5279
5279
  };
@@ -5285,7 +5285,7 @@ const Wr = tV`
5285
5285
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
5286
5286
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6666 1.33325H5.33329V2.66659H2.66663V14.6666H13.3333V2.66659H10.6666V1.33325ZM9.33329 2.66659H6.66663V3.99992H9.33329V2.66659Z" fill="#B3B3B3"/>
5287
5287
  </svg>`;
5288
- let $V = class extends WV {
5288
+ let Vt = class extends KV {
5289
5289
  constructor() {
5290
5290
  super(...arguments), this._activeTab = "Verify", this._publicKey = "0xabc123def456...", this._request = "req_789ghi012jkl...", this._proof = "proof_345mno678pqr...", this._randomness = "rand_901stu234vwx...", this._clientSeed = "your_client_seed_here", this._historyData = [{ timestamp: "May 20, 2025 (10:26 AM)", game: "Dice", result: "$0.00" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }, { timestamp: "May 20, 2025 (10:26 AM)", game: "Mines", result: "$12.50" }];
5291
5291
  }
@@ -5416,8 +5416,8 @@ let $V = class extends WV {
5416
5416
  `;
5417
5417
  }
5418
5418
  };
5419
- $V.styles = [R, Or], It([E()], $V.prototype, "_activeTab", 2), It([E()], $V.prototype, "_publicKey", 2), It([E()], $V.prototype, "_request", 2), It([E()], $V.prototype, "_proof", 2), It([E()], $V.prototype, "_randomness", 2), It([E()], $V.prototype, "_clientSeed", 2), It([E()], $V.prototype, "_historyData", 2), $V = It([U("origami-fairness-details")], $V);
5420
- class Yq extends WV {
5419
+ Vt.styles = [R, Nr], vt([E()], Vt.prototype, "_activeTab", 2), vt([E()], Vt.prototype, "_publicKey", 2), vt([E()], Vt.prototype, "_request", 2), vt([E()], Vt.prototype, "_proof", 2), vt([E()], Vt.prototype, "_randomness", 2), vt([E()], Vt.prototype, "_clientSeed", 2), vt([E()], Vt.prototype, "_historyData", 2), Vt = vt([U("origami-fairness-details")], Vt);
5420
+ class Yq extends KV {
5421
5421
  constructor() {
5422
5422
  super(), this.title = "", this.icon = "";
5423
5423
  }
@@ -6198,11 +6198,11 @@ const Kr = F`
6198
6198
  text-shadow: 0 0 4px rgba(233, 17, 60, 0.4);
6199
6199
  }
6200
6200
  `;
6201
- var zr = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, _V = (V, t, e, q) => {
6201
+ var zr = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, tt = (V, t, e, q) => {
6202
6202
  for (var o, i = q > 1 ? void 0 : q ? Pr(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
6203
6203
  return q && i && zr(t, e, i), i;
6204
6204
  };
6205
- let LV = class extends O {
6205
+ let LV = class extends N {
6206
6206
  constructor() {
6207
6207
  super(...arguments), this.step = 1, this.isRollLower = !1, this.value = 0, this.min = 0, this.max = 100, this.disabled = !1, this.resultValue = null, this.showDice = !1, this.isWin = !1;
6208
6208
  }
@@ -6238,7 +6238,7 @@ let LV = class extends O {
6238
6238
  </div>
6239
6239
  </div>
6240
6240
  </div>
6241
- ` : k}
6241
+ ` : D}
6242
6242
  <div class="track-background">
6243
6243
  <div class=${P({ "track-fill": !0, reverse: !this.isRollLower })}></div>
6244
6244
  <div class=${P({ "track-remaining": !0, reverse: !this.isRollLower })}></div>
@@ -6268,7 +6268,7 @@ let LV = class extends O {
6268
6268
  `;
6269
6269
  }
6270
6270
  };
6271
- LV.styles = [R, jr], _V([n({ type: Number })], LV.prototype, "step", 2), _V([n({ type: Boolean })], LV.prototype, "isRollLower", 2), _V([n({ type: Number })], LV.prototype, "value", 2), _V([n({ type: Number })], LV.prototype, "min", 2), _V([n({ type: Number })], LV.prototype, "max", 2), _V([n({ type: Boolean, reflect: !0 })], LV.prototype, "disabled", 2), _V([n({ type: Number })], LV.prototype, "resultValue", 2), _V([n({ type: Boolean })], LV.prototype, "showDice", 2), _V([n({ type: Boolean })], LV.prototype, "isWin", 2), LV = _V([U("origami-dice-slider")], LV);
6271
+ LV.styles = [R, jr], tt([n({ type: Number })], LV.prototype, "step", 2), tt([n({ type: Boolean })], LV.prototype, "isRollLower", 2), tt([n({ type: Number })], LV.prototype, "value", 2), tt([n({ type: Number })], LV.prototype, "min", 2), tt([n({ type: Number })], LV.prototype, "max", 2), tt([n({ type: Boolean, reflect: !0 })], LV.prototype, "disabled", 2), tt([n({ type: Number })], LV.prototype, "resultValue", 2), tt([n({ type: Boolean })], LV.prototype, "showDice", 2), tt([n({ type: Boolean })], LV.prototype, "isWin", 2), LV = tt([U("origami-dice-slider")], LV);
6272
6272
  const Hr = F`
6273
6273
  :host {
6274
6274
  display: grid;
@@ -6551,7 +6551,7 @@ const _r = tV`
6551
6551
  <path d="M64 16.4L48 0.400008L41.6 13.2L51.2 22.8L64 16.4Z" fill="#019902"/>
6552
6552
  </svg>
6553
6553
  `;
6554
- let Jt = class extends O {
6554
+ let Jt = class extends N {
6555
6555
  constructor() {
6556
6556
  super(...arguments), this.number = 1, this.state = "NORMAL", this.disabled = !1, this.ariaLabel = "";
6557
6557
  }
@@ -6615,11 +6615,11 @@ const Vs = F`
6615
6615
  }
6616
6616
  }
6617
6617
  `;
6618
- var ts = Object.defineProperty, es = Object.getOwnPropertyDescriptor, ut = (V, t, e, q) => {
6618
+ var ts = Object.defineProperty, es = Object.getOwnPropertyDescriptor, dt = (V, t, e, q) => {
6619
6619
  for (var o, i = q > 1 ? void 0 : q ? es(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
6620
6620
  return q && i && ts(t, e, i), i;
6621
6621
  };
6622
- let OV = class extends O {
6622
+ let RV = class extends N {
6623
6623
  constructor() {
6624
6624
  super(...arguments), this.selectedTiles = [], this.resultTiles = [], this.popupShowing = !1, this.isPlaying = !1, this.gameOver = !1, this.wonAmount = null, this.enableSounds = !0, this.ariaLabel = "Keno Game Grid", this.audioRefs = [], this.winAudioRef = null;
6625
6625
  }
@@ -6684,8 +6684,8 @@ let OV = class extends O {
6684
6684
  `;
6685
6685
  }
6686
6686
  };
6687
- OV.styles = [R, Vs], ut([n({ type: Array })], OV.prototype, "selectedTiles", 2), ut([n({ type: Array })], OV.prototype, "resultTiles", 2), ut([n({ type: Boolean })], OV.prototype, "popupShowing", 2), ut([n({ type: Boolean, reflect: !0 })], OV.prototype, "isPlaying", 2), ut([n({ type: Boolean, reflect: !0 })], OV.prototype, "gameOver", 2), ut([n({ type: String })], OV.prototype, "wonAmount", 2), ut([E()], OV.prototype, "enableSounds", 2), ut([n({ type: String, attribute: "aria-label" })], OV.prototype, "ariaLabel", 2), OV = ut([U("origami-keno-grid")], OV);
6688
- const it = class it {
6687
+ RV.styles = [R, Vs], dt([n({ type: Array })], RV.prototype, "selectedTiles", 2), dt([n({ type: Array })], RV.prototype, "resultTiles", 2), dt([n({ type: Boolean })], RV.prototype, "popupShowing", 2), dt([n({ type: Boolean, reflect: !0 })], RV.prototype, "isPlaying", 2), dt([n({ type: Boolean, reflect: !0 })], RV.prototype, "gameOver", 2), dt([n({ type: String })], RV.prototype, "wonAmount", 2), dt([E()], RV.prototype, "enableSounds", 2), dt([n({ type: String, attribute: "aria-label" })], RV.prototype, "ariaLabel", 2), RV = dt([U("origami-keno-grid")], RV);
6688
+ const rt = class rt {
6689
6689
  constructor(t, e) {
6690
6690
  this.authToken = t, this.baseUrl = e;
6691
6691
  }
@@ -6699,33 +6699,33 @@ const it = class it {
6699
6699
  }
6700
6700
  }
6701
6701
  static getMultiplier(t, e) {
6702
- const q = it.getWinChance(t, e);
6702
+ const q = rt.getWinChance(t, e);
6703
6703
  return f(99).dividedBy(f(q)).toFixed(4);
6704
6704
  }
6705
6705
  static getWinChance(t, e) {
6706
- const q = e === "ABOVE" ? it.totalDiceValue - t : t;
6707
- return f(q).div(it.totalDiceValue).multipliedBy(100).toFixed(4);
6706
+ const q = e === "ABOVE" ? rt.totalDiceValue - t : t;
6707
+ return f(q).div(rt.totalDiceValue).multipliedBy(100).toFixed(4);
6708
6708
  }
6709
6709
  static getSelectedValueFromMultiplier(t, e) {
6710
6710
  const q = f(99).dividedBy(t);
6711
- return it.getSelectedValueFromWinChance(q.toNumber(), e);
6711
+ return rt.getSelectedValueFromWinChance(q.toNumber(), e);
6712
6712
  }
6713
6713
  static getSelectedValueFromWinChance(t, e) {
6714
- const q = f(t).dividedBy(100).multipliedBy(it.totalDiceValue);
6715
- return e === "ABOVE" ? it.totalDiceValue - q.toNumber() : q.toNumber();
6714
+ const q = f(t).dividedBy(100).multipliedBy(rt.totalDiceValue);
6715
+ return e === "ABOVE" ? rt.totalDiceValue - q.toNumber() : q.toNumber();
6716
6716
  }
6717
6717
  static getSelectedValueFromRollOver(t) {
6718
- return it.totalDiceValue - t;
6718
+ return rt.totalDiceValue - t;
6719
6719
  }
6720
6720
  };
6721
- it.totalDiceValue = 1e4;
6722
- let pV = it;
6723
- var qs = Object.defineProperty, is = Object.getOwnPropertyDescriptor, ne = (V, t, e, q) => {
6721
+ rt.totalDiceValue = 1e4;
6722
+ let pV = rt;
6723
+ var qs = Object.defineProperty, is = Object.getOwnPropertyDescriptor, ae = (V, t, e, q) => {
6724
6724
  for (var o, i = q > 1 ? void 0 : q ? is(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
6725
6725
  return q && i && qs(t, e, i), i;
6726
6726
  };
6727
6727
  const os = { 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: vV.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: S.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" }] } };
6728
- let Et = class extends O {
6728
+ let It = class extends N {
6729
6729
  constructor() {
6730
6730
  super(...arguments), this.gameType = "mines", this.betResult = null, this.currencySymbol = "$", this.visible = !1, this.variant = "success";
6731
6731
  }
@@ -6860,7 +6860,7 @@ let Et = class extends O {
6860
6860
  `;
6861
6861
  }
6862
6862
  default:
6863
- return k;
6863
+ return D;
6864
6864
  }
6865
6865
  }
6866
6866
  render() {
@@ -6929,12 +6929,12 @@ let Et = class extends O {
6929
6929
  `;
6930
6930
  }
6931
6931
  };
6932
- Et.styles = [R, Zr], ne([n({ type: String })], Et.prototype, "gameType", 2), ne([n({ type: Object })], Et.prototype, "betResult", 2), ne([n({ type: String })], Et.prototype, "currencySymbol", 2), ne([n({ type: Boolean })], Et.prototype, "visible", 2), ne([n({ type: String })], Et.prototype, "variant", 2), Et = ne([U("origami-bet-result-modal")], Et);
6932
+ It.styles = [R, Zr], ae([n({ type: String })], It.prototype, "gameType", 2), ae([n({ type: Object })], It.prototype, "betResult", 2), ae([n({ type: String })], It.prototype, "currencySymbol", 2), ae([n({ type: Boolean })], It.prototype, "visible", 2), ae([n({ type: String })], It.prototype, "variant", 2), It = ae([U("origami-bet-result-modal")], It);
6933
6933
  var rs = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, Te = (V, t, e, q) => {
6934
6934
  for (var o, i = q > 1 ? void 0 : q ? ss(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
6935
6935
  return q && i && rs(t, e, i), i;
6936
6936
  };
6937
- let le = class extends WV {
6937
+ let ne = class extends KV {
6938
6938
  constructor() {
6939
6939
  super(...arguments), this.containerClass = "", this.body = w``, this.uniqueID = `lit-portal-${Math.random().toString(36).substring(2)}`;
6940
6940
  }
@@ -6961,12 +6961,12 @@ let le = class extends WV {
6961
6961
  render() {
6962
6962
  }
6963
6963
  };
6964
- Te([n()], le.prototype, "to", 2), Te([n()], le.prototype, "containerClass", 2), Te([n()], le.prototype, "body", 2), Te([E()], le.prototype, "uniqueID", 2), le = Te([U("origami-portal")], le);
6964
+ Te([n()], ne.prototype, "to", 2), Te([n()], ne.prototype, "containerClass", 2), Te([n()], ne.prototype, "body", 2), Te([E()], ne.prototype, "uniqueID", 2), ne = Te([U("origami-portal")], ne);
6965
6965
  var as = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, AV = (V, t, e, q) => {
6966
6966
  for (var o, i = q > 1 ? void 0 : q ? ns(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
6967
6967
  return q && i && as(t, e, i), i;
6968
6968
  };
6969
- let lV = class extends O {
6969
+ let lV = class extends N {
6970
6970
  constructor() {
6971
6971
  super(...arguments), this.className = "", this.containerId = "", this.showFooter = !0, this.showLogo = !0, this.logoUrl = "/origami.svg", this.logoAlt = "Origami Logo", this.showSettings = !0, this.showTheatre = !0, this.showStats = !0, this.showFavorites = !0, this.showFairness = !0, this.showFairnessModal = !1, this.betResultModalGameType = null;
6972
6972
  }
@@ -7064,7 +7064,7 @@ let lV = class extends O {
7064
7064
  `;
7065
7065
  }
7066
7066
  };
7067
- lV.styles = [R, Kr], AV([Nt({ context: yt, subscribe: !0 })], lV.prototype, "gameData", 2), AV([n({ type: String })], lV.prototype, "className", 2), AV([n({ type: String })], lV.prototype, "containerId", 2), AV([n({ type: Boolean })], lV.prototype, "showFooter", 2), AV([n({ type: Boolean })], lV.prototype, "showLogo", 2), AV([n({ type: String })], lV.prototype, "logoUrl", 2), AV([n({ type: String })], lV.prototype, "logoAlt", 2), AV([E()], lV.prototype, "showSettings", 2), AV([E()], lV.prototype, "showTheatre", 2), AV([E()], lV.prototype, "showStats", 2), AV([E()], lV.prototype, "showFavorites", 2), AV([E()], lV.prototype, "showFairness", 2), AV([E()], lV.prototype, "showFairnessModal", 2), AV([n({ type: String })], lV.prototype, "betResultModalGameType", 2), lV = AV([U("origami-game-layout")], lV);
7067
+ lV.styles = [R, Kr], AV([Qt({ context: bt, subscribe: !0 })], lV.prototype, "gameData", 2), AV([n({ type: String })], lV.prototype, "className", 2), AV([n({ type: String })], lV.prototype, "containerId", 2), AV([n({ type: Boolean })], lV.prototype, "showFooter", 2), AV([n({ type: Boolean })], lV.prototype, "showLogo", 2), AV([n({ type: String })], lV.prototype, "logoUrl", 2), AV([n({ type: String })], lV.prototype, "logoAlt", 2), AV([E()], lV.prototype, "showSettings", 2), AV([E()], lV.prototype, "showTheatre", 2), AV([E()], lV.prototype, "showStats", 2), AV([E()], lV.prototype, "showFavorites", 2), AV([E()], lV.prototype, "showFairness", 2), AV([E()], lV.prototype, "showFairnessModal", 2), AV([n({ type: String })], lV.prototype, "betResultModalGameType", 2), lV = AV([U("origami-game-layout")], lV);
7068
7068
  const Fq = tV`
7069
7069
  <svg
7070
7070
  width="24"
@@ -7187,7 +7187,7 @@ var us = Object.defineProperty, ds = Object.getOwnPropertyDescriptor, jt = (V, t
7187
7187
  for (var o, i = q > 1 ? void 0 : q ? ds(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7188
7188
  return q && i && us(t, e, i), i;
7189
7189
  };
7190
- let dt = class extends O {
7190
+ let pt = class extends N {
7191
7191
  constructor() {
7192
7192
  super(...arguments), this.selectedValue = 50, this.diceDirection = vV.ABOVE, this.winChanceInputFocused = !1, this.multiplierInputFocused = !1, this.winChanceInputValue = "50.0000", this.multiplierInputValue = "1.9800";
7193
7193
  }
@@ -7250,7 +7250,7 @@ let dt = class extends O {
7250
7250
  `;
7251
7251
  }
7252
7252
  };
7253
- dt.styles = [R, cs], jt([n({ type: Number })], dt.prototype, "selectedValue", 2), jt([n({ type: String })], dt.prototype, "diceDirection", 2), jt([E()], dt.prototype, "winChanceInputFocused", 2), jt([E()], dt.prototype, "multiplierInputFocused", 2), jt([E()], dt.prototype, "winChanceInputValue", 2), jt([E()], dt.prototype, "multiplierInputValue", 2), dt = jt([U("origami-dice-content-bottom")], dt);
7253
+ pt.styles = [R, cs], jt([n({ type: Number })], pt.prototype, "selectedValue", 2), jt([n({ type: String })], pt.prototype, "diceDirection", 2), jt([E()], pt.prototype, "winChanceInputFocused", 2), jt([E()], pt.prototype, "multiplierInputFocused", 2), jt([E()], pt.prototype, "winChanceInputValue", 2), jt([E()], pt.prototype, "multiplierInputValue", 2), pt = jt([U("origami-dice-content-bottom")], pt);
7254
7254
  const ps = F`
7255
7255
  :host {
7256
7256
  display: flex;
@@ -7308,7 +7308,7 @@ const As = w`
7308
7308
  />
7309
7309
  </svg>
7310
7310
  `;
7311
- let zt = class extends O {
7311
+ let zt = class extends N {
7312
7312
  constructor() {
7313
7313
  super(...arguments), this.isPlaying = !1, this.profitOnWin = "0.00", this.betDisabled = !1, this.currency = IV.USDC;
7314
7314
  }
@@ -7353,11 +7353,11 @@ let zt = class extends O {
7353
7353
  }
7354
7354
  };
7355
7355
  zt.styles = [R, ps], Ue([n({ type: Boolean })], zt.prototype, "isPlaying", 2), Ue([n({ type: String })], zt.prototype, "profitOnWin", 2), Ue([n({ type: Boolean })], zt.prototype, "betDisabled", 2), Ue([n({ type: String })], zt.prototype, "currency", 2), zt = Ue([U("origami-dice-manual")], zt);
7356
- var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, ce = (V, t, e, q) => {
7356
+ var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, le = (V, t, e, q) => {
7357
7357
  for (var o, i = q > 1 ? void 0 : q ? ys(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7358
7358
  return q && i && ms(t, e, i), i;
7359
7359
  };
7360
- let Pt = class extends O {
7360
+ let Pt = class extends N {
7361
7361
  constructor() {
7362
7362
  super(...arguments), this.inputsDisabled = !1, this.autobetStopping = !1, this.autobetInProgress = !1, this.profitOnWin = "0.00", this.betDisabled = !1;
7363
7363
  }
@@ -7374,7 +7374,7 @@ let Pt = class extends O {
7374
7374
  `;
7375
7375
  }
7376
7376
  };
7377
- ce([n({ type: Boolean })], Pt.prototype, "inputsDisabled", 2), ce([n({ type: Boolean })], Pt.prototype, "autobetStopping", 2), ce([n({ type: Boolean })], Pt.prototype, "autobetInProgress", 2), ce([n({ type: String })], Pt.prototype, "profitOnWin", 2), ce([n({ type: Boolean })], Pt.prototype, "betDisabled", 2), Pt = ce([U("origami-dice-auto")], Pt);
7377
+ le([n({ type: Boolean })], Pt.prototype, "inputsDisabled", 2), le([n({ type: Boolean })], Pt.prototype, "autobetStopping", 2), le([n({ type: Boolean })], Pt.prototype, "autobetInProgress", 2), le([n({ type: String })], Pt.prototype, "profitOnWin", 2), le([n({ type: Boolean })], Pt.prototype, "betDisabled", 2), Pt = le([U("origami-dice-auto")], Pt);
7378
7378
  const bs = F`
7379
7379
  :host {
7380
7380
  width: 100%;
@@ -7418,25 +7418,25 @@ const bs = F`
7418
7418
  const o = ((Y) => Y._$AH)(V), { values: i, keys: r } = this.dt(t, e, q);
7419
7419
  if (!Array.isArray(o)) return this.ut = r, i;
7420
7420
  const h = this.ut ?? (this.ut = []), y = [];
7421
- let B, L, I = 0, C = o.length - 1, T = 0, Q = i.length - 1;
7422
- for (; I <= C && T <= Q; ) if (o[I] === null) I++;
7421
+ let B, T, I = 0, C = o.length - 1, x = 0, Q = i.length - 1;
7422
+ for (; I <= C && x <= Q; ) if (o[I] === null) I++;
7423
7423
  else if (o[C] === null) C--;
7424
- else if (h[I] === r[T]) y[T] = Ft(o[I], i[T]), I++, T++;
7425
- else if (h[C] === r[Q]) y[Q] = Ft(o[C], i[Q]), C--, Q--;
7426
- else if (h[I] === r[Q]) y[Q] = Ft(o[I], i[Q]), Be(V, y[Q + 1], o[I]), I++, Q--;
7427
- else if (h[C] === r[T]) y[T] = Ft(o[C], i[T]), Be(V, o[I], o[C]), C--, T++;
7428
- else if (B === void 0 && (B = Ci(r, T, Q), L = Ci(h, I, C)), B.has(h[I])) if (B.has(h[C])) {
7429
- const Y = L.get(r[T]), aV = Y !== void 0 ? o[Y] : null;
7424
+ else if (h[I] === r[x]) y[x] = Rt(o[I], i[x]), I++, x++;
7425
+ else if (h[C] === r[Q]) y[Q] = Rt(o[C], i[Q]), C--, Q--;
7426
+ else if (h[I] === r[Q]) y[Q] = Rt(o[I], i[Q]), Me(V, y[Q + 1], o[I]), I++, Q--;
7427
+ else if (h[C] === r[x]) y[x] = Rt(o[C], i[x]), Me(V, o[I], o[C]), C--, x++;
7428
+ else if (B === void 0 && (B = Ci(r, x, Q), T = Ci(h, I, C)), B.has(h[I])) if (B.has(h[C])) {
7429
+ const Y = T.get(r[x]), aV = Y !== void 0 ? o[Y] : null;
7430
7430
  if (aV === null) {
7431
- const W = Be(V, o[I]);
7432
- Ft(W, i[T]), y[T] = W;
7433
- } else y[T] = Ft(aV, i[T]), Be(V, o[I], aV), o[Y] = null;
7434
- T++;
7431
+ const W = Me(V, o[I]);
7432
+ Rt(W, i[x]), y[x] = W;
7433
+ } else y[x] = Rt(aV, i[x]), Me(V, o[I], aV), o[Y] = null;
7434
+ x++;
7435
7435
  } else Cq(o[C]), C--;
7436
7436
  else Cq(o[I]), I++;
7437
- for (; T <= Q; ) {
7438
- const Y = Be(V, y[Q + 1]);
7439
- Ft(Y, i[T]), y[T++] = Y;
7437
+ for (; x <= Q; ) {
7438
+ const Y = Me(V, y[Q + 1]);
7439
+ Rt(Y, i[x]), y[x++] = Y;
7440
7440
  }
7441
7441
  for (; I <= C; ) {
7442
7442
  const Y = o[I++];
@@ -7561,7 +7561,7 @@ var Cs = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, tq = (V, t
7561
7561
  for (var o, i = q > 1 ? void 0 : q ? Ms(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7562
7562
  return q && i && Cs(t, e, i), i;
7563
7563
  };
7564
- let ue = class extends O {
7564
+ let ce = class extends N {
7565
7565
  constructor() {
7566
7566
  super(...arguments), this.history = [], this.gameType = "mines", this.animatingInIds = /* @__PURE__ */ new Set();
7567
7567
  }
@@ -7599,12 +7599,12 @@ let ue = class extends O {
7599
7599
  `;
7600
7600
  }
7601
7601
  };
7602
- ue.styles = [R, fs], tq([n({ type: Array })], ue.prototype, "history", 2), tq([n({ type: String })], ue.prototype, "gameType", 2), tq([E()], ue.prototype, "animatingInIds", 2), ue = tq([U("origami-history-pills")], ue);
7603
- var Bs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, St = (V, t, e, q) => {
7602
+ ce.styles = [R, fs], tq([n({ type: Array })], ce.prototype, "history", 2), tq([n({ type: String })], ce.prototype, "gameType", 2), tq([E()], ce.prototype, "animatingInIds", 2), ce = tq([U("origami-history-pills")], ce);
7603
+ var Bs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, Et = (V, t, e, q) => {
7604
7604
  for (var o, i = q > 1 ? void 0 : q ? vs(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7605
7605
  return q && i && Bs(t, e, i), i;
7606
7606
  };
7607
- let Vt = class extends O {
7607
+ let et = class extends N {
7608
7608
  constructor() {
7609
7609
  super(...arguments), this.selectedValue = 50, this.diceDirection = vV.ABOVE, this.isPlaying = !1, this.showDice = !0, this.isWin = !0, this.resultValue = null, this.history = [];
7610
7610
  }
@@ -7635,7 +7635,7 @@ let Vt = class extends O {
7635
7635
  `;
7636
7636
  }
7637
7637
  };
7638
- Vt.styles = [R, bs], St([n({ type: Number })], Vt.prototype, "selectedValue", 2), St([n({ type: String })], Vt.prototype, "diceDirection", 2), St([n({ type: Boolean })], Vt.prototype, "isPlaying", 2), St([n({ type: Boolean })], Vt.prototype, "showDice", 2), St([n({ type: Boolean })], Vt.prototype, "isWin", 2), St([n({ type: Number })], Vt.prototype, "resultValue", 2), St([n({ type: Array })], Vt.prototype, "history", 2), Vt = St([U("origami-dice-content")], Vt);
7638
+ et.styles = [R, bs], Et([n({ type: Number })], et.prototype, "selectedValue", 2), Et([n({ type: String })], et.prototype, "diceDirection", 2), Et([n({ type: Boolean })], et.prototype, "isPlaying", 2), Et([n({ type: Boolean })], et.prototype, "showDice", 2), Et([n({ type: Boolean })], et.prototype, "isWin", 2), Et([n({ type: Number })], et.prototype, "resultValue", 2), Et([n({ type: Array })], et.prototype, "history", 2), et = Et([U("origami-dice-content")], et);
7639
7639
  const dq = (V) => V === 1 ? "Draw" : V > 1 ? "Win" : "Loss";
7640
7640
  function bV(V) {
7641
7641
  return new Promise((t) => setTimeout(t, V));
@@ -7644,7 +7644,7 @@ var Is = Object.defineProperty, Ht = (V, t, e, q) => {
7644
7644
  for (var o, i = void 0, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = o(t, e, i) || i);
7645
7645
  return i && Is(t, e, i), i;
7646
7646
  };
7647
- const Jq = class Jq extends O {
7647
+ const Jq = class Jq extends N {
7648
7648
  constructor() {
7649
7649
  super(...arguments), this.manualOrAuto = "Manual", this.hasPendingBet = !1, this.autobetInProgress = !1, this.autobetStopping = !1, this.numberOfBets = 0, this.betDelay = 1e3;
7650
7650
  }
@@ -7692,8 +7692,8 @@ Jq.styles = [R, F`
7692
7692
  }
7693
7693
  `];
7694
7694
  let BV = Jq;
7695
- Ht([E()], BV.prototype, "manualOrAuto"), Ht([E()], BV.prototype, "hasPendingBet"), Ht([E()], BV.prototype, "autobetInProgress"), Ht([E()], BV.prototype, "autobetStopping"), Ht([E()], BV.prototype, "numberOfBets"), Ht([E()], BV.prototype, "betDelay"), Ht([Nt({ context: yt, subscribe: !0 })], BV.prototype, "gameData");
7696
- var mt = ((V) => (V.START_BET = "START_BET", V.END_BET = "END_BET", V.ROLLBACK = "ROLLBACK", V.INTERMEDIATE_BET_ACTION = "INTERMEDIATE_BET_ACTION", V.INTERMEDIATE_NON_BET_ACTION = "INTERMEDIATE_NON_BET_ACTION", V))(mt || {});
7695
+ Ht([E()], BV.prototype, "manualOrAuto"), Ht([E()], BV.prototype, "hasPendingBet"), Ht([E()], BV.prototype, "autobetInProgress"), Ht([E()], BV.prototype, "autobetStopping"), Ht([E()], BV.prototype, "numberOfBets"), Ht([E()], BV.prototype, "betDelay"), Ht([Qt({ context: bt, subscribe: !0 })], BV.prototype, "gameData");
7696
+ var yt = ((V) => (V.START_BET = "START_BET", V.END_BET = "END_BET", V.ROLLBACK = "ROLLBACK", V.INTERMEDIATE_BET_ACTION = "INTERMEDIATE_BET_ACTION", V.INTERMEDIATE_NON_BET_ACTION = "INTERMEDIATE_NON_BET_ACTION", V))(yt || {});
7697
7697
  class Wq extends pV {
7698
7698
  static getRandomValueInRange(t, e) {
7699
7699
  return Math.floor(Math.random() * (e - t + 1)) + t;
@@ -7702,15 +7702,15 @@ class Wq extends pV {
7702
7702
  const { amount: e, direction: q, selectedValue: o } = t, i = Wq.getRandomValueInRange(0, 1e4);
7703
7703
  let r = 0;
7704
7704
  r = i > o ? q === vV.ABOVE ? f(pV.getMultiplier(o, q)).toNumber() : 0 : q === vV.BELOW ? f(pV.getMultiplier(o, q)).toNumber() : 0;
7705
- const h = f(e).multipliedBy(r).toString(), y = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "dice", currency: IV.USDC, edge: 0.01, amount: e, payout: h, afterBalance: "1000", maxPayoutReached: !1, multiplier: r, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { dice: { resultValue: i, userValue: o, userDiceDirection: q } }, type: mt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: h }] };
7705
+ const h = f(e).multipliedBy(r).toString(), y = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "dice", currency: IV.USDC, edge: 0.01, amount: e, payout: h, afterBalance: "1000", maxPayoutReached: !1, multiplier: r, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { dice: { resultValue: i, userValue: o, userDiceDirection: q } }, type: yt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: h }] };
7706
7706
  return await bV(250), { success: !0, data: y };
7707
7707
  }
7708
7708
  }
7709
- var Es = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, xt = (V, t, e, q) => {
7709
+ var Es = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, St = (V, t, e, q) => {
7710
7710
  for (var o, i = q > 1 ? void 0 : q ? Ss(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7711
7711
  return q && i && Es(t, e, i), i;
7712
7712
  };
7713
- let pt = class extends BV {
7713
+ let ht = class extends BV {
7714
7714
  constructor() {
7715
7715
  super(...arguments), this.diceDirection = vV.ABOVE, this.selectedValue = 5e3, this.isManualPlaying = !1, this.showDice = !1, this.isWin = !0, this.resultValue = null, this.history = [], this.sliderInputChange = (V) => {
7716
7716
  this.selectedValue = 100 * V.detail.value;
@@ -7760,8 +7760,8 @@ let pt = class extends BV {
7760
7760
  this.showDice = !0, this.isWin = f(i.multiplier).isGreaterThan(0);
7761
7761
  const y = i.actions, B = y[y.length - 1];
7762
7762
  if (!B) return { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: "No action data received" };
7763
- const L = B.data.dice.resultValue;
7764
- return this.resultValue = L, this.addToHistory(i.multiplier, this.isWin), { pnl: r, gameOutcome: h, hasError: !1 };
7763
+ const T = B.data.dice.resultValue;
7764
+ return this.resultValue = T, this.addToHistory(i.multiplier, this.isWin), { pnl: r, gameOutcome: h, hasError: !1 };
7765
7765
  } catch (q) {
7766
7766
  return console.error("Error in executeBet:", q), { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: "An unexpected error occurred" };
7767
7767
  }
@@ -7825,7 +7825,7 @@ let pt = class extends BV {
7825
7825
  `;
7826
7826
  }
7827
7827
  };
7828
- xt([E()], pt.prototype, "diceDirection", 2), xt([E()], pt.prototype, "selectedValue", 2), xt([E()], pt.prototype, "isManualPlaying", 2), xt([E()], pt.prototype, "showDice", 2), xt([E()], pt.prototype, "isWin", 2), xt([E()], pt.prototype, "resultValue", 2), xt([E()], pt.prototype, "history", 2), pt = xt([U("origami-dice-game")], pt);
7828
+ St([E()], ht.prototype, "diceDirection", 2), St([E()], ht.prototype, "selectedValue", 2), St([E()], ht.prototype, "isManualPlaying", 2), St([E()], ht.prototype, "showDice", 2), St([E()], ht.prototype, "isWin", 2), St([E()], ht.prototype, "resultValue", 2), St([E()], ht.prototype, "history", 2), ht = St([U("origami-dice-game")], ht);
7829
7829
  const Ri = F`
7830
7830
  :host {
7831
7831
  display: flex;
@@ -7899,7 +7899,7 @@ var xs = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, Ge = (V, t
7899
7899
  for (var o, i = q > 1 ? void 0 : q ? ks(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7900
7900
  return q && i && xs(t, e, i), i;
7901
7901
  };
7902
- let Xt = class extends O {
7902
+ let Xt = class extends N {
7903
7903
  constructor() {
7904
7904
  super(...arguments), this.inputsDisabled = !1, this.risk = S.CLASSIC, this.isPlaying = !1, this.disableBet = !1;
7905
7905
  }
@@ -7981,7 +7981,7 @@ var Ds = Object.defineProperty, Ls = Object.getOwnPropertyDescriptor, Ye = (V, t
7981
7981
  for (var o, i = q > 1 ? void 0 : q ? Ls(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
7982
7982
  return q && i && Ds(t, e, i), i;
7983
7983
  };
7984
- let $t = class extends O {
7984
+ let $t = class extends N {
7985
7985
  constructor() {
7986
7986
  super(...arguments), this.inputsDisabled = !1, this.autobetStopping = !1, this.disableBet = !1, this.autobetInProgress = !1;
7987
7987
  }
@@ -8170,7 +8170,7 @@ const Ys = [{ tiles: 1, payout: { [S.CLASSIC]: [0, 3.96], [S.LOW_RISK]: [0.7, 1.
8170
8170
  <path d="M10.5 14L14 10.5L11.2 9.1L9.1 11.2L10.5 14Z" fill="#01E401"/>
8171
8171
  <path d="M14 3.5L10.5 -1.5299e-07L9.1 2.8L11.2 4.9L14 3.5Z" fill="#019902"/>
8172
8172
  </svg>`;
8173
- let ht = class extends O {
8173
+ let gt = class extends N {
8174
8174
  constructor() {
8175
8175
  super(...arguments), this.selectedTiles = [], this.risk = S.CLASSIC, this.betAmount = "0", this.hitCount = 0, this.multipliersForSelectedTiles = 0, this.hoverItemIndex = -1;
8176
8176
  }
@@ -8210,7 +8210,7 @@ let ht = class extends O {
8210
8210
  >
8211
8211
  ${uq}
8212
8212
  </origami-input>
8213
- </div>` : k}
8213
+ </div>` : D}
8214
8214
  <div class="container" style="--button-count: ${o.length}">
8215
8215
  <div
8216
8216
  class="hit-column-wrapper"
@@ -8239,8 +8239,8 @@ let ht = class extends O {
8239
8239
  `;
8240
8240
  }
8241
8241
  };
8242
- ht.styles = [R, Ts], _t([n({ type: Array })], ht.prototype, "selectedTiles", 2), _t([n({ type: String })], ht.prototype, "risk", 2), _t([n({ type: String })], ht.prototype, "betAmount", 2), _t([n({ type: Number })], ht.prototype, "hitCount", 2), _t([n({ type: Number })], ht.prototype, "multipliersForSelectedTiles", 2), _t([E()], ht.prototype, "hoverItemIndex", 2), ht = _t([U("origami-keno-content-bottom")], ht);
8243
- const Ns = F`
8242
+ gt.styles = [R, Ts], _t([n({ type: Array })], gt.prototype, "selectedTiles", 2), _t([n({ type: String })], gt.prototype, "risk", 2), _t([n({ type: String })], gt.prototype, "betAmount", 2), _t([n({ type: Number })], gt.prototype, "hitCount", 2), _t([n({ type: Number })], gt.prototype, "multipliersForSelectedTiles", 2), _t([E()], gt.prototype, "hoverItemIndex", 2), gt = _t([U("origami-keno-content-bottom")], gt);
8243
+ const Os = F`
8244
8244
  .container {
8245
8245
  display: flex;
8246
8246
  justify-content: space-between;
@@ -8274,11 +8274,11 @@ const Ns = F`
8274
8274
  }
8275
8275
  }
8276
8276
  `;
8277
- var Os = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, RV = (V, t, e, q) => {
8277
+ var Ns = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, FV = (V, t, e, q) => {
8278
8278
  for (var o, i = q > 1 ? void 0 : q ? Rs(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8279
- return q && i && Os(t, e, i), i;
8279
+ return q && i && Ns(t, e, i), i;
8280
8280
  };
8281
- let MV = class extends O {
8281
+ let MV = class extends N {
8282
8282
  constructor() {
8283
8283
  super(...arguments), this.selectedTiles = [], this.resultTiles = [], this.isPlaying = !1, this.gameOver = !1, this.multipliersForSelectedTiles = 0, this.wonAmount = null, this.gameWinPopupShowing = !1, this.multiplier = null, this.risk = S.CLASSIC, this.betAmount = "0";
8284
8284
  }
@@ -8298,7 +8298,7 @@ let MV = class extends O {
8298
8298
  .multiplier=${this.gameWinPopupShowing ? 2 : 0}
8299
8299
  .currencySymbol=${IV.USDC}
8300
8300
  .gameType=${"Keno"}
8301
- ></origami-game-win-popup>` : k}
8301
+ ></origami-game-win-popup>` : D}
8302
8302
  <origami-keno-grid
8303
8303
  .selectedTiles=${this.selectedTiles}
8304
8304
  .resultTiles=${this.resultTiles}
@@ -8322,7 +8322,7 @@ let MV = class extends O {
8322
8322
  `;
8323
8323
  }
8324
8324
  };
8325
- MV.styles = [R, Ns], RV([n({ type: Array })], MV.prototype, "selectedTiles", 2), RV([n({ type: Array })], MV.prototype, "resultTiles", 2), RV([n({ type: Boolean })], MV.prototype, "isPlaying", 2), RV([n({ type: Boolean })], MV.prototype, "gameOver", 2), RV([n({ type: Number })], MV.prototype, "multipliersForSelectedTiles", 2), RV([n({ type: String })], MV.prototype, "wonAmount", 2), RV([n({ type: Boolean })], MV.prototype, "gameWinPopupShowing", 2), RV([n({ type: Number })], MV.prototype, "multiplier", 2), RV([n({ type: String })], MV.prototype, "risk", 2), RV([n({ type: String })], MV.prototype, "betAmount", 2), MV = RV([U("origami-keno-content")], MV);
8325
+ MV.styles = [R, Os], FV([n({ type: Array })], MV.prototype, "selectedTiles", 2), FV([n({ type: Array })], MV.prototype, "resultTiles", 2), FV([n({ type: Boolean })], MV.prototype, "isPlaying", 2), FV([n({ type: Boolean })], MV.prototype, "gameOver", 2), FV([n({ type: Number })], MV.prototype, "multipliersForSelectedTiles", 2), FV([n({ type: String })], MV.prototype, "wonAmount", 2), FV([n({ type: Boolean })], MV.prototype, "gameWinPopupShowing", 2), FV([n({ type: Number })], MV.prototype, "multiplier", 2), FV([n({ type: String })], MV.prototype, "risk", 2), FV([n({ type: String })], MV.prototype, "betAmount", 2), MV = FV([U("origami-keno-content")], MV);
8326
8326
  class Fi {
8327
8327
  constructor(t, e) {
8328
8328
  this.authToken = t, this.baseUrl = e;
@@ -8341,7 +8341,7 @@ const Fs = { [S.LOW_RISK]: 10, [S.MEDIUM_RISK]: 8, [S.CLASSIC]: 8, [S.HIGH_RISK]
8341
8341
  class sq extends Fi {
8342
8342
  constructor() {
8343
8343
  super(...arguments), this.startBet = async (t) => {
8344
- const { amount: e, riskLevel: q, selectedTiles: o } = t, i = sq.generateRandomTiles(Fs[q]), r = sq.calculateMultiplier(o, i, q), h = f(e).multipliedBy(r).toString(), y = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "keno", currency: IV.USDC, edge: 0.01, amount: e, payout: h, afterBalance: "1000", maxPayoutReached: !1, multiplier: r, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { keno: { selectedTiles: o, resultTiles: i, multiplier: r, riskLevel: q } }, type: mt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: h }] };
8344
+ const { amount: e, riskLevel: q, selectedTiles: o } = t, i = sq.generateRandomTiles(Fs[q]), r = sq.calculateMultiplier(o, i, q), h = f(e).multipliedBy(r).toString(), y = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "keno", currency: IV.USDC, edge: 0.01, amount: e, payout: h, afterBalance: "1000", maxPayoutReached: !1, multiplier: r, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { keno: { selectedTiles: o, resultTiles: i, multiplier: r, riskLevel: q } }, type: yt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: h }] };
8345
8345
  return await bV(250), { success: !0, data: y };
8346
8346
  };
8347
8347
  }
@@ -8354,11 +8354,11 @@ class sq extends Fi {
8354
8354
  return Number.parseFloat(h.toFixed(2));
8355
8355
  }
8356
8356
  }
8357
- var Ks = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, tt = (V, t, e, q) => {
8357
+ var Ks = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, qt = (V, t, e, q) => {
8358
8358
  for (var o, i = q > 1 ? void 0 : q ? Zs(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8359
8359
  return q && i && Ks(t, e, i), i;
8360
8360
  };
8361
- let FV = class extends BV {
8361
+ let WV = class extends BV {
8362
8362
  constructor() {
8363
8363
  super(...arguments), this.isManualPlaying = !1, this.history = [], this.selectedTiles = [], this.resultTiles = [], this.gameWinPopupShowing = !1, this.gameOver = !1, this.wonAmount = null, this.kenoRisk = S.CLASSIC, this.autoselectRunning = !1, this.handleTileClick = (V) => {
8364
8364
  this.gameOver && this.newGame(), this.selectedTiles.includes(V.detail.tile) ? this.selectedTiles = this.selectedTiles.filter((t) => t !== V.detail.tile) : this.selectedTiles.length < 10 && (this.selectedTiles = [...this.selectedTiles, V.detail.tile]);
@@ -8415,9 +8415,9 @@ let FV = class extends BV {
8415
8415
  const o = { amount: t, currency: this.gameData.currency, riskLevel: this.kenoRisk, selectedTiles: this.selectedTiles }, i = await this.kenoApi.startBet(o);
8416
8416
  if (!i.success) return { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: i.error || "Error processing bet" };
8417
8417
  this.emit("balance-change", { detail: { balance: Number(i.data.afterBalance), currency: this.gameData.currency } });
8418
- const r = i.data, h = f(r.payout).minus(r.amount), y = dq(r.multiplier), B = r.actions, L = (q = B[B.length - 1]) == null ? void 0 : q.data.keno;
8419
- if (!L) throw new Error("No keno data found");
8420
- for (const I of L.resultTiles) await bV(50), this.resultTiles = [...this.resultTiles, I];
8418
+ const r = i.data, h = f(r.payout).minus(r.amount), y = dq(r.multiplier), B = r.actions, T = (q = B[B.length - 1]) == null ? void 0 : q.data.keno;
8419
+ if (!T) throw new Error("No keno data found");
8420
+ for (const I of T.resultTiles) await bV(50), this.resultTiles = [...this.resultTiles, I];
8421
8421
  return this.gameWinPopupShowing = f(r.multiplier).isGreaterThan(0), this.wonAmount = this.gameWinPopupShowing ? r.payout : null, this.addToHistory(r.multiplier, this.gameWinPopupShowing), await bV(500), { pnl: h, gameOutcome: y, hasError: !1 };
8422
8422
  } catch (o) {
8423
8423
  return console.error("Error in executeBet:", o), { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: "An unexpected error occurred" };
@@ -8490,7 +8490,7 @@ let FV = class extends BV {
8490
8490
  `;
8491
8491
  }
8492
8492
  };
8493
- tt([E()], FV.prototype, "isManualPlaying", 2), tt([E()], FV.prototype, "history", 2), tt([E()], FV.prototype, "selectedTiles", 2), tt([E()], FV.prototype, "resultTiles", 2), tt([n({ type: Boolean })], FV.prototype, "gameWinPopupShowing", 2), tt([E()], FV.prototype, "gameOver", 2), tt([E()], FV.prototype, "wonAmount", 2), tt([E()], FV.prototype, "kenoRisk", 2), tt([E()], FV.prototype, "autoselectRunning", 2), FV = tt([U("origami-keno-game")], FV);
8493
+ qt([E()], WV.prototype, "isManualPlaying", 2), qt([E()], WV.prototype, "history", 2), qt([E()], WV.prototype, "selectedTiles", 2), qt([E()], WV.prototype, "resultTiles", 2), qt([n({ type: Boolean })], WV.prototype, "gameWinPopupShowing", 2), qt([E()], WV.prototype, "gameOver", 2), qt([E()], WV.prototype, "wonAmount", 2), qt([E()], WV.prototype, "kenoRisk", 2), qt([E()], WV.prototype, "autoselectRunning", 2), WV = qt([U("origami-keno-game")], WV);
8494
8494
  const Js = F`
8495
8495
  :host {
8496
8496
  display: flex;
@@ -8521,11 +8521,11 @@ const Js = F`
8521
8521
  pointer-events: none;
8522
8522
  }
8523
8523
  `;
8524
- var js = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, de = (V, t, e, q) => {
8524
+ var js = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, ue = (V, t, e, q) => {
8525
8525
  for (var o, i = q > 1 ? void 0 : q ? zs(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8526
8526
  return q && i && js(t, e, i), i;
8527
8527
  };
8528
- let kt = class extends O {
8528
+ let xt = class extends N {
8529
8529
  constructor() {
8530
8530
  super(...arguments), this.inputsDisabled = !1, this.isPlaying = !1, this.profitOnWin = "0.00", this.betDisabled = !1;
8531
8531
  }
@@ -8559,12 +8559,12 @@ let kt = class extends O {
8559
8559
  `;
8560
8560
  }
8561
8561
  };
8562
- kt.styles = [R, Js], de([n({ type: Boolean })], kt.prototype, "inputsDisabled", 2), de([n({ type: Boolean })], kt.prototype, "isPlaying", 2), de([n({ type: String })], kt.prototype, "profitOnWin", 2), de([n({ type: Boolean })], kt.prototype, "betDisabled", 2), de([Nt({ context: yt, subscribe: !0 })], kt.prototype, "gameData", 2), kt = de([U("origami-limbo-manual")], kt);
8563
- var Ps = Object.defineProperty, Hs = Object.getOwnPropertyDescriptor, pe = (V, t, e, q) => {
8562
+ xt.styles = [R, Js], ue([n({ type: Boolean })], xt.prototype, "inputsDisabled", 2), ue([n({ type: Boolean })], xt.prototype, "isPlaying", 2), ue([n({ type: String })], xt.prototype, "profitOnWin", 2), ue([n({ type: Boolean })], xt.prototype, "betDisabled", 2), ue([Qt({ context: bt, subscribe: !0 })], xt.prototype, "gameData", 2), xt = ue([U("origami-limbo-manual")], xt);
8563
+ var Ps = Object.defineProperty, Hs = Object.getOwnPropertyDescriptor, de = (V, t, e, q) => {
8564
8564
  for (var o, i = q > 1 ? void 0 : q ? Hs(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8565
8565
  return q && i && Ps(t, e, i), i;
8566
8566
  };
8567
- let Ve = class extends O {
8567
+ let Ve = class extends N {
8568
8568
  constructor() {
8569
8569
  super(...arguments), this.inputsDisabled = !1, this.autobetStopping = !1, this.autobetInProgress = !1, this.profitOnWin = "0.00", this.betDisabled = !1;
8570
8570
  }
@@ -8581,7 +8581,7 @@ let Ve = class extends O {
8581
8581
  `;
8582
8582
  }
8583
8583
  };
8584
- pe([n({ type: Boolean })], Ve.prototype, "inputsDisabled", 2), pe([n({ type: Boolean })], Ve.prototype, "autobetStopping", 2), pe([n({ type: Boolean })], Ve.prototype, "autobetInProgress", 2), pe([n({ type: String })], Ve.prototype, "profitOnWin", 2), pe([n({ type: Boolean })], Ve.prototype, "betDisabled", 2), Ve = pe([U("origami-limbo-auto")], Ve);
8584
+ de([n({ type: Boolean })], Ve.prototype, "inputsDisabled", 2), de([n({ type: Boolean })], Ve.prototype, "autobetStopping", 2), de([n({ type: Boolean })], Ve.prototype, "autobetInProgress", 2), de([n({ type: String })], Ve.prototype, "profitOnWin", 2), de([n({ type: Boolean })], Ve.prototype, "betDisabled", 2), Ve = de([U("origami-limbo-auto")], Ve);
8585
8585
  const Xs = F`
8586
8586
  :host {
8587
8587
  width: 100%;
@@ -8654,11 +8654,11 @@ const Xs = F`
8654
8654
  color: var(--multiplier-default-color);
8655
8655
  }
8656
8656
  `;
8657
- var _s = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, he = (V, t, e, q) => {
8657
+ var _s = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, pe = (V, t, e, q) => {
8658
8658
  for (var o, i = q > 1 ? void 0 : q ? Va(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8659
8659
  return q && i && _s(t, e, i), i;
8660
8660
  };
8661
- let Dt = class extends O {
8661
+ let kt = class extends N {
8662
8662
  constructor() {
8663
8663
  super(...arguments), this.resultMultiplier = null, this.isWin = !0, this.betId = "", this.betTargetMultiplier = 2, this.currentValue = 1, this.animationFrame = null, this.startTime = null;
8664
8664
  }
@@ -8690,8 +8690,8 @@ let Dt = class extends O {
8690
8690
  return w`<div class=${V}>${t}X</div>`;
8691
8691
  }
8692
8692
  };
8693
- Dt.styles = [R, $s], he([n({ type: Number })], Dt.prototype, "resultMultiplier", 2), he([n({ type: Boolean })], Dt.prototype, "isWin", 2), he([n({ type: String })], Dt.prototype, "betId", 2), he([n({ type: Number })], Dt.prototype, "betTargetMultiplier", 2), he([E()], Dt.prototype, "currentValue", 2), Dt = he([U("origami-limbo-multiplier")], Dt);
8694
- class be {
8693
+ kt.styles = [R, $s], pe([n({ type: Number })], kt.prototype, "resultMultiplier", 2), pe([n({ type: Boolean })], kt.prototype, "isWin", 2), pe([n({ type: String })], kt.prototype, "betId", 2), pe([n({ type: Number })], kt.prototype, "betTargetMultiplier", 2), pe([E()], kt.prototype, "currentValue", 2), kt = pe([U("origami-limbo-multiplier")], kt);
8694
+ class ye {
8695
8695
  constructor(t, e) {
8696
8696
  this.startBet = async (q) => {
8697
8697
  try {
@@ -8766,22 +8766,22 @@ const ta = F`
8766
8766
  }
8767
8767
  }
8768
8768
  `;
8769
- var ea = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Lt = (V, t, e, q) => {
8769
+ var ea = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Dt = (V, t, e, q) => {
8770
8770
  for (var o, i = q > 1 ? void 0 : q ? qa(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8771
8771
  return q && i && ea(t, e, i), i;
8772
8772
  };
8773
- let et = class extends O {
8773
+ let it = class extends N {
8774
8774
  constructor() {
8775
8775
  super(...arguments), this.targetMultiplier = 50, this.disabled = !1, this.winChanceInputFocused = !1, this.multiplierInputFocused = !1, this.winChanceInputValue = "50.0000", this.multiplierInputValue = "1.9800";
8776
8776
  }
8777
8777
  handleWinChanceBlur() {
8778
- this.winChanceInputValue = be.calculateWinChance(this.targetMultiplier);
8778
+ this.winChanceInputValue = ye.calculateWinChance(this.targetMultiplier);
8779
8779
  }
8780
8780
  handleMultiplierBlur() {
8781
8781
  this.multiplierInputValue = f(this.targetMultiplier).toFixed(4);
8782
8782
  }
8783
8783
  targetMultiplierChanged() {
8784
- this.winChanceInputFocused || (this.winChanceInputValue = be.calculateWinChance(this.targetMultiplier)), this.multiplierInputFocused || (this.multiplierInputValue = f(this.targetMultiplier).toFixed(2));
8784
+ this.winChanceInputFocused || (this.winChanceInputValue = ye.calculateWinChance(this.targetMultiplier)), this.multiplierInputFocused || (this.multiplierInputValue = f(this.targetMultiplier).toFixed(2));
8785
8785
  }
8786
8786
  render() {
8787
8787
  const V = this.multiplierInputFocused && (this.multiplierInputValue === "" || +this.multiplierInputValue < 1.01) ? "Multiplier must be at least 1.01" : "", t = this.winChanceInputFocused && (this.winChanceInputValue === "" || +this.winChanceInputValue < 99e-6 || +this.winChanceInputValue > 99.9999) ? "Win chance must be between 0.000099 and 99.9999" : "";
@@ -8822,12 +8822,12 @@ let et = class extends O {
8822
8822
  `;
8823
8823
  }
8824
8824
  };
8825
- et.styles = [R, ta], Lt([n({ type: Number })], et.prototype, "targetMultiplier", 2), Lt([n({ type: Boolean })], et.prototype, "disabled", 2), Lt([E()], et.prototype, "winChanceInputFocused", 2), Lt([E()], et.prototype, "multiplierInputFocused", 2), Lt([E()], et.prototype, "winChanceInputValue", 2), Lt([E()], et.prototype, "multiplierInputValue", 2), Lt([Qt("targetMultiplier")], et.prototype, "targetMultiplierChanged", 1), et = Lt([U("origami-limbo-content-bottom")], et);
8826
- var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Tt = (V, t, e, q) => {
8825
+ it.styles = [R, ta], Dt([n({ type: Number })], it.prototype, "targetMultiplier", 2), Dt([n({ type: Boolean })], it.prototype, "disabled", 2), Dt([E()], it.prototype, "winChanceInputFocused", 2), Dt([E()], it.prototype, "multiplierInputFocused", 2), Dt([E()], it.prototype, "winChanceInputValue", 2), Dt([E()], it.prototype, "multiplierInputValue", 2), Dt([Yt("targetMultiplier")], it.prototype, "targetMultiplierChanged", 1), it = Dt([U("origami-limbo-content-bottom")], it);
8826
+ var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Lt = (V, t, e, q) => {
8827
8827
  for (var o, i = q > 1 ? void 0 : q ? oa(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8828
8828
  return q && i && ia(t, e, i), i;
8829
8829
  };
8830
- let qt = class extends O {
8830
+ let ot = class extends N {
8831
8831
  constructor() {
8832
8832
  super(...arguments), this.targetMultiplier = 50, this.betTargetMultiplier = 2, this.history = [], this.resultMultiplier = null, this.isWin = !0, this.betId = "", this.isPlaying = !1;
8833
8833
  }
@@ -8855,11 +8855,11 @@ let qt = class extends O {
8855
8855
  `;
8856
8856
  }
8857
8857
  };
8858
- qt.styles = [R, Xs], Tt([n({ type: Number })], qt.prototype, "targetMultiplier", 2), Tt([n({ type: Number })], qt.prototype, "betTargetMultiplier", 2), Tt([n({ type: Array })], qt.prototype, "history", 2), Tt([n({ type: Number })], qt.prototype, "resultMultiplier", 2), Tt([n({ type: Boolean })], qt.prototype, "isWin", 2), Tt([n({ type: String })], qt.prototype, "betId", 2), Tt([n({ type: Boolean })], qt.prototype, "isPlaying", 2), qt = Tt([U("origami-limbo-content")], qt);
8859
- class Kq extends be {
8858
+ ot.styles = [R, Xs], Lt([n({ type: Number })], ot.prototype, "targetMultiplier", 2), Lt([n({ type: Number })], ot.prototype, "betTargetMultiplier", 2), Lt([n({ type: Array })], ot.prototype, "history", 2), Lt([n({ type: Number })], ot.prototype, "resultMultiplier", 2), Lt([n({ type: Boolean })], ot.prototype, "isWin", 2), Lt([n({ type: String })], ot.prototype, "betId", 2), Lt([n({ type: Boolean })], ot.prototype, "isPlaying", 2), ot = Lt([U("origami-limbo-content")], ot);
8859
+ class Kq extends ye {
8860
8860
  constructor() {
8861
8861
  super(...arguments), this.startBet = async (t) => {
8862
- const { amount: e, targetMultiplier: q } = t, o = Kq.getRandomMultiplier(), i = f(o).gte(q), r = i ? f(e).multipliedBy(q).toString() : "0", h = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "limbo", currency: IV.USDC, edge: 0.01, amount: e, payout: r, afterBalance: "1000", maxPayoutReached: !1, multiplier: i ? q : 0, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { limbo: { targetMultiplier: q, resultMultiplier: f(o).toNumber() } }, type: mt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: r }] };
8862
+ const { amount: e, targetMultiplier: q } = t, o = Kq.getRandomMultiplier(), i = f(o).gte(q), r = i ? f(e).multipliedBy(q).toString() : "0", h = { id: crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "limbo", currency: IV.USDC, edge: 0.01, amount: e, payout: r, afterBalance: "1000", maxPayoutReached: !1, multiplier: i ? q : 0, clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: (/* @__PURE__ */ new Date()).toISOString(), actions: [{ id: crypto.randomUUID(), data: { limbo: { targetMultiplier: q, resultMultiplier: f(o).toNumber() } }, type: yt.END_BET, actionIndex: 0, originalActionId: null, betAmount: e, payoutAmount: r }] };
8863
8863
  return await bV(250), { success: !0, data: h };
8864
8864
  };
8865
8865
  }
@@ -8867,19 +8867,19 @@ class Kq extends be {
8867
8867
  return f(Math.max(1, Math.min(1 / Math.random(), 1e6)).toFixed(2)).times(100).toString();
8868
8868
  }
8869
8869
  }
8870
- var ra = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Ut = (V, t, e, q) => {
8870
+ var ra = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Tt = (V, t, e, q) => {
8871
8871
  for (var o, i = q > 1 ? void 0 : q ? sa(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
8872
8872
  return q && i && ra(t, e, i), i;
8873
8873
  };
8874
- const ge = 100;
8875
- let gt = class extends BV {
8874
+ const he = 100;
8875
+ let At = class extends BV {
8876
8876
  constructor() {
8877
8877
  super(...arguments), this.targetMultiplier = 2, this.resultMultiplier = null, this.isManualPlaying = !1, this.isWin = !0, this.history = [], this.betTargetMultiplier = 2, this.betId = "", this.multiplierChange = (V) => {
8878
8878
  const t = +V.detail.multiplier;
8879
8879
  this.targetMultiplier = t;
8880
8880
  }, this.winChanceChange = (V) => {
8881
8881
  const t = +V.detail.winChance;
8882
- this.targetMultiplier = +be.calculateMultiplier(t);
8882
+ this.targetMultiplier = +ye.calculateMultiplier(t);
8883
8883
  }, this.multiplierAnimationEnd = (V) => {
8884
8884
  const { resultMultiplier: t, isWin: e, betId: q } = V.detail;
8885
8885
  this.history = [...this.history.filter((o) => o.id !== q), { multiplier: t, won: e, id: q }].slice(-6);
@@ -8888,20 +8888,20 @@ let gt = class extends BV {
8888
8888
  get limboApi() {
8889
8889
  var t, e, q, o;
8890
8890
  const V = `${(t = this.gameData) == null ? void 0 : t.baseUrl}/limbo`;
8891
- return (e = this.gameData) != null && e.authToken ? new be(((q = this.gameData) == null ? void 0 : q.authToken) ?? "", V) : new Kq(((o = this.gameData) == null ? void 0 : o.authToken) ?? "", V);
8891
+ return (e = this.gameData) != null && e.authToken ? new ye(((q = this.gameData) == null ? void 0 : q.authToken) ?? "", V) : new Kq(((o = this.gameData) == null ? void 0 : o.authToken) ?? "", V);
8892
8892
  }
8893
8893
  async limboPlay() {
8894
8894
  var V, t;
8895
8895
  this.isManualPlaying = !0, this.resultMultiplier = null;
8896
8896
  try {
8897
8897
  if (!((V = this.gameData) != null && V.currency)) throw new Error("Currency is not set");
8898
- const e = { amount: ((t = this.gameData) == null ? void 0 : t.amount) ?? "0", currency: this.gameData.currency, targetMultiplier: this.targetMultiplier * ge }, q = await this.limboApi.startBet(e);
8898
+ const e = { amount: ((t = this.gameData) == null ? void 0 : t.amount) ?? "0", currency: this.gameData.currency, targetMultiplier: this.targetMultiplier * he }, q = await this.limboApi.startBet(e);
8899
8899
  if (!q.success) throw new Error(q.error);
8900
8900
  this.emit("balance-change", { detail: { balance: Number(q.data.afterBalance), currency: this.gameData.currency } });
8901
8901
  const o = q.data.actions, i = o[o.length - 1];
8902
8902
  if (!i) throw new Error("No action data received");
8903
8903
  const r = i.data.limbo;
8904
- this.resultMultiplier = r.resultMultiplier / ge, this.betTargetMultiplier = r.targetMultiplier / ge, this.isWin = r.targetMultiplier <= r.resultMultiplier, this.betId = q.data.id;
8904
+ this.resultMultiplier = r.resultMultiplier / he, this.betTargetMultiplier = r.targetMultiplier / he, this.isWin = r.targetMultiplier <= r.resultMultiplier, this.betId = q.data.id;
8905
8905
  } finally {
8906
8906
  this.isManualPlaying = !1;
8907
8907
  }
@@ -8910,13 +8910,13 @@ let gt = class extends BV {
8910
8910
  var e;
8911
8911
  try {
8912
8912
  if (this.resultMultiplier = null, !((e = this.gameData) != null && e.currency)) throw new Error("Currency is not set");
8913
- const q = { amount: t, currency: this.gameData.currency, targetMultiplier: this.targetMultiplier * ge }, o = await this.limboApi.startBet(q);
8913
+ const q = { amount: t, currency: this.gameData.currency, targetMultiplier: this.targetMultiplier * he }, o = await this.limboApi.startBet(q);
8914
8914
  if (!o.success) return { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: o.error || "Error processing bet" };
8915
8915
  this.emit("balance-change", { detail: { balance: Number(o.data.afterBalance), currency: this.gameData.currency } });
8916
8916
  const i = o.data, r = f(i.payout).minus(i.amount), h = dq(i.multiplier), y = i.actions, B = y[y.length - 1];
8917
8917
  if (!B) throw new Error("No action data received");
8918
- const L = B.data.limbo;
8919
- return this.resultMultiplier = L.resultMultiplier / ge, this.betTargetMultiplier = L.targetMultiplier / ge, this.isWin = L.targetMultiplier <= L.resultMultiplier, this.betId = i.id, { pnl: r, gameOutcome: h, hasError: !1 };
8918
+ const T = B.data.limbo;
8919
+ return this.resultMultiplier = T.resultMultiplier / he, this.betTargetMultiplier = T.targetMultiplier / he, this.isWin = T.targetMultiplier <= T.resultMultiplier, this.betId = i.id, { pnl: r, gameOutcome: h, hasError: !1 };
8920
8920
  } catch (q) {
8921
8921
  return console.error("Error in executeBet:", q), { pnl: f(0), gameOutcome: "Draw", hasError: !0, errorMessage: "An unexpected error occurred" };
8922
8922
  }
@@ -8926,7 +8926,7 @@ let gt = class extends BV {
8926
8926
  return f(((V = this.gameData) == null ? void 0 : V.amount) ?? "0").multipliedBy(this.targetMultiplier).minus(((t = this.gameData) == null ? void 0 : t.amount) ?? "0").toFixed(4);
8927
8927
  }
8928
8928
  render() {
8929
- const V = this.calculateProfitOnWin(), t = be.calculateMultiplier(this.targetMultiplier), e = this.targetMultiplier < 1.01 || Number.isNaN(this.targetMultiplier);
8929
+ const V = this.calculateProfitOnWin(), t = ye.calculateMultiplier(this.targetMultiplier), e = this.targetMultiplier < 1.01 || Number.isNaN(this.targetMultiplier);
8930
8930
  return w`
8931
8931
  <origami-game-layout>
8932
8932
  <origami-game-sidebar
@@ -8983,61 +8983,61 @@ let gt = class extends BV {
8983
8983
  `;
8984
8984
  }
8985
8985
  };
8986
- Ut([E()], gt.prototype, "targetMultiplier", 2), Ut([E()], gt.prototype, "resultMultiplier", 2), Ut([E()], gt.prototype, "isManualPlaying", 2), Ut([E()], gt.prototype, "isWin", 2), Ut([E()], gt.prototype, "history", 2), Ut([E()], gt.prototype, "betTargetMultiplier", 2), Ut([E()], gt.prototype, "betId", 2), gt = Ut([U("origami-limbo-game")], gt);
8987
- const N = class N extends yV {
8986
+ Tt([E()], At.prototype, "targetMultiplier", 2), Tt([E()], At.prototype, "resultMultiplier", 2), Tt([E()], At.prototype, "isManualPlaying", 2), Tt([E()], At.prototype, "isWin", 2), Tt([E()], At.prototype, "history", 2), Tt([E()], At.prototype, "betTargetMultiplier", 2), Tt([E()], At.prototype, "betId", 2), At = Tt([U("origami-limbo-game")], At);
8987
+ const O = class O extends yV {
8988
8988
  static setMockSettings(t) {
8989
- N.mockSettings = { ...N.mockSettings, ...t }, t.minePositions && (N.minePositions = t.minePositions);
8989
+ O.mockSettings = { ...O.mockSettings, ...t }, t.minePositions && (O.minePositions = t.minePositions);
8990
8990
  }
8991
8991
  static getRandomValueInRange(t, e) {
8992
8992
  return Math.floor(Math.random() * (e - t + 1)) + t;
8993
8993
  }
8994
8994
  static generateMinePositions(t) {
8995
- if (N.mockSettings.minePositions) return N.mockSettings.minePositions;
8995
+ if (O.mockSettings.minePositions) return O.mockSettings.minePositions;
8996
8996
  const e = [];
8997
8997
  for (; e.length < t; ) {
8998
- const q = N.getRandomValueInRange(0, yV.MINES_TILES_COUNT - 1);
8998
+ const q = O.getRandomValueInRange(0, yV.MINES_TILES_COUNT - 1);
8999
8999
  e.includes(q) || e.push(q);
9000
9000
  }
9001
9001
  return e;
9002
9002
  }
9003
9003
  static addAction(t, e, q, o, i, r, h = !1) {
9004
9004
  const y = t.length, B = { minesCount: q, selected: e, winMultiplier: "0" };
9005
- return [...t, { id: crypto.randomUUID(), data: { mines: { ...B, minesResult: h ? N.minePositions ?? [] : [] } }, type: o, actionIndex: y, originalActionId: null, betAmount: i, payoutAmount: r }];
9005
+ return [...t, { id: crypto.randomUUID(), data: { mines: { ...B, minesResult: h ? O.minePositions ?? [] : [] } }, type: o, actionIndex: y, originalActionId: null, betAmount: i, payoutAmount: r }];
9006
9006
  }
9007
9007
  static updateBetResult(t) {
9008
- const { prevResult: e = null, amount: q, minesCount: o, selectedTiles: i, isComplete: r = !1, actionType: h = mt.INTERMEDIATE_NON_BET_ACTION } = t, y = !i.some((Y) => N.minePositions.includes(Y)) && (!r || i.length > 0), B = i.filter((Y) => !N.minePositions.includes(Y)).length, L = y ? yV.calculateMinesMultiplier(B, o) : f(0), I = y ? f(q).multipliedBy(L).toString() : "0";
9008
+ const { prevResult: e = null, amount: q, minesCount: o, selectedTiles: i, isComplete: r = !1, actionType: h = yt.INTERMEDIATE_NON_BET_ACTION } = t, y = !i.some((Y) => O.minePositions.includes(Y)) && (!r || i.length > 0), B = i.filter((Y) => !O.minePositions.includes(Y)).length, T = y ? yV.calculateMinesMultiplier(B, o) : f(0), I = y ? f(q).multipliedBy(T).toString() : "0";
9009
9009
  let C = (e == null ? void 0 : e.actions) || [];
9010
- e || (C = N.addAction([], [], o, mt.START_BET, q, "0"));
9011
- const T = r ? mt.END_BET : h, Q = T === mt.END_BET;
9012
- return C = N.addAction(C, i, o, T, q, I, Q), { id: (e == null ? void 0 : e.id) || crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "mines", currency: IV.USDC, edge: 0.01, amount: q, payout: I, afterBalance: "1000", maxPayoutReached: !1, multiplier: L.toNumber(), clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: r ? (/* @__PURE__ */ new Date()).toISOString() : null, actions: C };
9010
+ e || (C = O.addAction([], [], o, yt.START_BET, q, "0"));
9011
+ const x = r ? yt.END_BET : h, Q = x === yt.END_BET;
9012
+ return C = O.addAction(C, i, o, x, q, I, Q), { id: (e == null ? void 0 : e.id) || crypto.randomUUID(), tenantId: "origami-casino", userId: "mock-user", usdRate: 1, gameId: "mines", currency: IV.USDC, edge: 0.01, amount: q, payout: I, afterBalance: "1000", maxPayoutReached: !1, multiplier: T.toNumber(), clientSeed: "mock-seed", randomValue: "mock-random", proof: "mock-proof", nonce: "1", completedAt: r ? (/* @__PURE__ */ new Date()).toISOString() : null, actions: C };
9013
9013
  }
9014
9014
  async startManualBet(t) {
9015
- N.minePositions = N.generateMinePositions(t.minesCount);
9016
- const e = N.updateBetResult({ amount: t.amount, minesCount: t.minesCount, selectedTiles: [] });
9017
- return N.activeBet = e, await bV(250), { success: !0, data: e };
9015
+ O.minePositions = O.generateMinePositions(t.minesCount);
9016
+ const e = O.updateBetResult({ amount: t.amount, minesCount: t.minesCount, selectedTiles: [] });
9017
+ return O.activeBet = e, await bV(250), { success: !0, data: e };
9018
9018
  }
9019
9019
  async getActiveBet() {
9020
- return N.activeBet ? (await bV(250), { success: !0, data: N.activeBet }) : { success: !1, error: "No active bet" };
9020
+ return O.activeBet ? (await bV(250), { success: !0, data: O.activeBet }) : { success: !1, error: "No active bet" };
9021
9021
  }
9022
9022
  async selectTile(t) {
9023
- if (!N.activeBet) return { success: !1, error: "No active bet" };
9024
- const e = N.activeBet.actions, q = e[e.length - 1], o = [...(q == null ? void 0 : q.data.mines.selected) || [], ...t.selected], i = t.selected.some((y) => N.minePositions.includes(y)), r = (q == null ? void 0 : q.data.mines.minesCount) ?? 0, h = N.updateBetResult({ prevResult: N.activeBet, amount: N.activeBet.amount, minesCount: r, selectedTiles: o, isComplete: i });
9025
- return N.activeBet = h, i && (N.activeBet = null), await bV(250), { success: !0, data: h };
9023
+ if (!O.activeBet) return { success: !1, error: "No active bet" };
9024
+ const e = O.activeBet.actions, q = e[e.length - 1], o = [...(q == null ? void 0 : q.data.mines.selected) || [], ...t.selected], i = t.selected.some((y) => O.minePositions.includes(y)), r = (q == null ? void 0 : q.data.mines.minesCount) ?? 0, h = O.updateBetResult({ prevResult: O.activeBet, amount: O.activeBet.amount, minesCount: r, selectedTiles: o, isComplete: i });
9025
+ return O.activeBet = h, i && (O.activeBet = null), await bV(250), { success: !0, data: h };
9026
9026
  }
9027
9027
  async cashout() {
9028
- if (!N.activeBet) return { success: !1, error: "No active bet" };
9029
- const t = N.activeBet.actions, e = t[t.length - 1], q = (e == null ? void 0 : e.data.mines.selected) ?? [], o = (e == null ? void 0 : e.data.mines.minesCount) ?? 0, i = N.updateBetResult({ prevResult: N.activeBet, amount: N.activeBet.amount, minesCount: o, selectedTiles: q, isComplete: !0, actionType: mt.END_BET });
9030
- return N.activeBet = null, await bV(250), { success: !0, data: i };
9028
+ if (!O.activeBet) return { success: !1, error: "No active bet" };
9029
+ const t = O.activeBet.actions, e = t[t.length - 1], q = (e == null ? void 0 : e.data.mines.selected) ?? [], o = (e == null ? void 0 : e.data.mines.minesCount) ?? 0, i = O.updateBetResult({ prevResult: O.activeBet, amount: O.activeBet.amount, minesCount: o, selectedTiles: q, isComplete: !0, actionType: yt.END_BET });
9030
+ return O.activeBet = null, await bV(250), { success: !0, data: i };
9031
9031
  }
9032
9032
  async autobetPlay(t) {
9033
- N.minePositions = N.generateMinePositions(t.minesCount ?? yV.DEFAULT_MINES_QTY);
9034
- const e = N.updateBetResult({ amount: t.amount, minesCount: t.minesCount ?? yV.DEFAULT_MINES_QTY, selectedTiles: t.selected, isComplete: !0 });
9033
+ O.minePositions = O.generateMinePositions(t.minesCount ?? yV.DEFAULT_MINES_QTY);
9034
+ const e = O.updateBetResult({ amount: t.amount, minesCount: t.minesCount ?? yV.DEFAULT_MINES_QTY, selectedTiles: t.selected, isComplete: !0 });
9035
9035
  return await bV(250), { success: !0, data: e };
9036
9036
  }
9037
9037
  };
9038
- N.mockSettings = { shouldWin: !0 }, N.activeBet = null, N.minePositions = [];
9039
- let Qq = N;
9040
- var aa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, Ae = (V, t, e, q) => {
9038
+ O.mockSettings = { shouldWin: !0 }, O.activeBet = null, O.minePositions = [];
9039
+ let Qq = O;
9040
+ var aa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, ge = (V, t, e, q) => {
9041
9041
  for (var o, i = q > 1 ? void 0 : q ? na(t, e) : t, r = V.length - 1; r >= 0; r--) (o = V[r]) && (i = (q ? o(t, e, i) : o(i)) || i);
9042
9042
  return q && i && aa(t, e, i), i;
9043
9043
  };
@@ -9113,9 +9113,9 @@ let te = class extends BV {
9113
9113
  }
9114
9114
  render() {
9115
9115
  var r, h, y, B;
9116
- const V = this.getMinesState, t = (r = this.minesData) == null ? void 0 : r.multiplier, e = (V == null ? void 0 : V.state) === mV.VIEWING_RESULTS && (V == null ? void 0 : V.outcome) === qe.WIN, q = (h = this.minesData) == null ? void 0 : h.payout, o = ((y = this.gameData) == null ? void 0 : y.currency) ?? IV.USDC, i = (B = V == null ? void 0 : V.mineLocations) == null ? void 0 : B.some((L) => {
9116
+ const V = this.getMinesState, t = (r = this.minesData) == null ? void 0 : r.multiplier, e = (V == null ? void 0 : V.state) === mV.VIEWING_RESULTS && (V == null ? void 0 : V.outcome) === qe.WIN, q = (h = this.minesData) == null ? void 0 : h.payout, o = ((y = this.gameData) == null ? void 0 : y.currency) ?? IV.USDC, i = (B = V == null ? void 0 : V.mineLocations) == null ? void 0 : B.some((T) => {
9117
9117
  var I;
9118
- return (I = V == null ? void 0 : V.selectedTiles) == null ? void 0 : I.includes(L);
9118
+ return (I = V == null ? void 0 : V.selectedTiles) == null ? void 0 : I.includes(T);
9119
9119
  });
9120
9120
  return w`
9121
9121
  <origami-game-layout>
@@ -9124,11 +9124,11 @@ let te = class extends BV {
9124
9124
  slot="control-panel"
9125
9125
  .mode=${this.manualOrAuto}
9126
9126
  ?isPlaying=${!1}
9127
- @bet-mode-change=${(L) => {
9128
- this.manualOrAuto = L.detail.tab;
9127
+ @bet-mode-change=${(T) => {
9128
+ this.manualOrAuto = T.detail.tab;
9129
9129
  }}
9130
- @mines-count-change=${(L) => {
9131
- this.minesCount = L.detail.count;
9130
+ @mines-count-change=${(T) => {
9131
+ this.minesCount = T.detail.count;
9132
9132
  }}
9133
9133
  >
9134
9134
  ${this.manualOrAuto === "Manual" ? w`<origami-mines-manual
@@ -9173,11 +9173,11 @@ let te = class extends BV {
9173
9173
  `;
9174
9174
  }
9175
9175
  };
9176
- Ae([E()], te.prototype, "minesCount", 2), Ae([E()], te.prototype, "autobetSelectedTiles", 2), Ae([E()], te.prototype, "minesData", 2), Ae([Qt("manualOrAuto")], te.prototype, "onManualOrAutoChange", 1), Ae([Qt("minesCount")], te.prototype, "onMinesCountChange", 1), te = Ae([U("origami-mines-game")], te);
9176
+ ge([E()], te.prototype, "minesCount", 2), ge([E()], te.prototype, "autobetSelectedTiles", 2), ge([E()], te.prototype, "minesData", 2), ge([Yt("manualOrAuto")], te.prototype, "onManualOrAutoChange", 1), ge([Yt("minesCount")], te.prototype, "onMinesCountChange", 1), te = ge([U("origami-mines-game")], te);
9177
9177
  export {
9178
- pt as DiceGame,
9179
- rt as GameProviderWrapper,
9180
- FV as KenoGame,
9181
- gt as LimboGame,
9178
+ ht as DiceGame,
9179
+ YV as GameProviderWrapper,
9180
+ WV as KenoGame,
9181
+ At as LimboGame,
9182
9182
  te as MinesGame
9183
9183
  };