var rt = Object.defineProperty, nt = Object.defineProperties;
var at = Object.getOwnPropertyDescriptors;
var Pe = Object.getOwnPropertySymbols;
var it = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable;
var De = (r, e, t) => e in r ? rt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Te = (r, e) => {
  for (var t in e || (e = {}))
    it.call(e, t) && De(r, t, e[t]);
  if (Pe)
    for (var t of Pe(e))
      ot.call(e, t) && De(r, t, e[t]);
  return r;
}, Se = (r, e) => nt(r, at(e));
var X = (r, e, t) => new Promise((n, a) => {
  var i = (f) => {
    try {
      l(t.next(f));
    } catch (c) {
      a(c);
    }
  }, o = (f) => {
    try {
      l(t.throw(f));
    } catch (c) {
      a(c);
    }
  }, l = (f) => f.done ? n(f.value) : Promise.resolve(f.value).then(i, o);
  l((t = t.apply(r, e)).next());
});
import { a as st, $ as lt, S as ut, i as ct, s as dt, f as re, b as ft, n as ue, d as U, r as mt, c as D, z as fe, g as z, h as s, l as ee, j as p, k, t as S, e as h, m as ht, p as gt, o as pt, u as vt, A as te, B as ge, C as we, D as We, w as he, x as bt, y as wt } from "./CasinoCoinroyaleContainer-8oDWnwX4.js";
import { s as _t, a as yt, b as xt } from "./CasinoCoinroyaleDetails-DIS2Dwhr.js";
import "../stencil/ui-skeleton-xXZA3rYO.js";
function ye(r) {
  "@babel/helpers - typeof";
  return ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
    return typeof e;
  } : function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, ye(r);
}
function ce(r) {
  if (r === null || r === !0 || r === !1)
    return NaN;
  var e = Number(r);
  return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
}
function A(r, e) {
  if (e.length < r)
    throw new TypeError(r + " argument" + (r > 1 ? "s" : "") + " required, but only " + e.length + " present");
}
function V(r) {
  A(1, arguments);
  var e = Object.prototype.toString.call(r);
  return r instanceof Date || ye(r) === "object" && e === "[object Date]" ? new Date(r.getTime()) : typeof r == "number" || e === "[object Number]" ? new Date(r) : ((typeof r == "string" || e === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
}
function kt(r, e) {
  A(2, arguments);
  var t = V(r).getTime(), n = ce(e);
  return new Date(t + n);
}
var Ct = {};
function Ce() {
  return Ct;
}
function Tt(r) {
  var e = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate(), r.getHours(), r.getMinutes(), r.getSeconds(), r.getMilliseconds()));
  return e.setUTCFullYear(r.getFullYear()), r.getTime() - e.getTime();
}
function Mt(r) {
  return A(1, arguments), r instanceof Date || ye(r) === "object" && Object.prototype.toString.call(r) === "[object Date]";
}
function Ot(r) {
  if (A(1, arguments), !Mt(r) && typeof r != "number")
    return !1;
  var e = V(r);
  return !isNaN(Number(e));
}
function Pt(r, e) {
  A(2, arguments);
  var t = ce(e);
  return kt(r, -t);
}
var Dt = 864e5;
function St(r) {
  A(1, arguments);
  var e = V(r), t = e.getTime();
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
  var n = e.getTime(), a = t - n;
  return Math.floor(a / Dt) + 1;
}
function xe(r) {
  A(1, arguments);
  var e = 1, t = V(r), n = t.getUTCDay(), a = (n < e ? 7 : 0) + n - e;
  return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
}
function Ke(r) {
  A(1, arguments);
  var e = V(r), t = e.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
  n.setUTCFullYear(t + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
  var a = xe(n), i = /* @__PURE__ */ new Date(0);
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
  var o = xe(i);
  return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
}
function Wt(r) {
  A(1, arguments);
  var e = Ke(r), t = /* @__PURE__ */ new Date(0);
  t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
  var n = xe(t);
  return n;
}
var Ut = 6048e5;
function zt(r) {
  A(1, arguments);
  var e = V(r), t = xe(e).getTime() - Wt(e).getTime();
  return Math.round(t / Ut) + 1;
}
function ke(r, e) {
  var t, n, a, i, o, l, f, c;
  A(1, arguments);
  var d = Ce(), m = ce((t = (n = (a = (i = e == null ? void 0 : e.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : d.weekStartsOn) !== null && n !== void 0 ? n : (f = d.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && t !== void 0 ? t : 0);
  if (!(m >= 0 && m <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var v = V(r), g = v.getUTCDay(), b = (g < m ? 7 : 0) + g - m;
  return v.setUTCDate(v.getUTCDate() - b), v.setUTCHours(0, 0, 0, 0), v;
}
function $e(r, e) {
  var t, n, a, i, o, l, f, c;
  A(1, arguments);
  var d = V(r), m = d.getUTCFullYear(), v = Ce(), g = ce((t = (n = (a = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : v.firstWeekContainsDate) !== null && n !== void 0 ? n : (f = v.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
  if (!(g >= 1 && g <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var b = /* @__PURE__ */ new Date(0);
  b.setUTCFullYear(m + 1, 0, g), b.setUTCHours(0, 0, 0, 0);
  var y = ke(b, e), w = /* @__PURE__ */ new Date(0);
  w.setUTCFullYear(m, 0, g), w.setUTCHours(0, 0, 0, 0);
  var _ = ke(w, e);
  return d.getTime() >= y.getTime() ? m + 1 : d.getTime() >= _.getTime() ? m : m - 1;
}
function Yt(r, e) {
  var t, n, a, i, o, l, f, c;
  A(1, arguments);
  var d = Ce(), m = ce((t = (n = (a = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (f = d.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), v = $e(r, e), g = /* @__PURE__ */ new Date(0);
  g.setUTCFullYear(v, 0, m), g.setUTCHours(0, 0, 0, 0);
  var b = ke(g, e);
  return b;
}
var Et = 6048e5;
function Lt(r, e) {
  A(1, arguments);
  var t = V(r), n = ke(t, e).getTime() - Yt(t, e).getTime();
  return Math.round(n / Et) + 1;
}
function T(r, e) {
  for (var t = r < 0 ? "-" : "", n = Math.abs(r).toString(); n.length < e; )
    n = "0" + n;
  return t + n;
}
var ne = {
  // Year
  y: function(e, t) {
    var n = e.getUTCFullYear(), a = n > 0 ? n : 1 - n;
    return T(t === "yy" ? a % 100 : a, t.length);
  },
  // Month
  M: function(e, t) {
    var n = e.getUTCMonth();
    return t === "M" ? String(n + 1) : T(n + 1, 2);
  },
  // Day of the month
  d: function(e, t) {
    return T(e.getUTCDate(), t.length);
  },
  // AM or PM
  a: function(e, t) {
    var n = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return n.toUpperCase();
      case "aaa":
        return n;
      case "aaaaa":
        return n[0];
      case "aaaa":
      default:
        return n === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h: function(e, t) {
    return T(e.getUTCHours() % 12 || 12, t.length);
  },
  // Hour [0-23]
  H: function(e, t) {
    return T(e.getUTCHours(), t.length);
  },
  // Minute
  m: function(e, t) {
    return T(e.getUTCMinutes(), t.length);
  },
  // Second
  s: function(e, t) {
    return T(e.getUTCSeconds(), t.length);
  },
  // Fraction of second
  S: function(e, t) {
    var n = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, n - 3));
    return T(i, t.length);
  }
}, me = {
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
}, Ft = {
  // Era
  G: function(e, t, n) {
    var a = e.getUTCFullYear() > 0 ? 1 : 0;
    switch (t) {
      case "G":
      case "GG":
      case "GGG":
        return n.era(a, {
          width: "abbreviated"
        });
      case "GGGGG":
        return n.era(a, {
          width: "narrow"
        });
      case "GGGG":
      default:
        return n.era(a, {
          width: "wide"
        });
    }
  },
  // Year
  y: function(e, t, n) {
    if (t === "yo") {
      var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
      return n.ordinalNumber(i, {
        unit: "year"
      });
    }
    return ne.y(e, t);
  },
  // Local week-numbering year
  Y: function(e, t, n, a) {
    var i = $e(e, a), o = i > 0 ? i : 1 - i;
    if (t === "YY") {
      var l = o % 100;
      return T(l, 2);
    }
    return t === "Yo" ? n.ordinalNumber(o, {
      unit: "year"
    }) : T(o, t.length);
  },
  // ISO week-numbering year
  R: function(e, t) {
    var n = Ke(e);
    return T(n, t.length);
  },
  // Extended year. This is a single number designating the year of this calendar system.
  // The main difference between `y` and `u` localizers are B.C. years:
  // | Year | `y` | `u` |
  // |------|-----|-----|
  // | AC 1 |   1 |   1 |
  // | BC 1 |   1 |   0 |
  // | BC 2 |   2 |  -1 |
  // Also `yy` always returns the last two digits of a year,
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
  u: function(e, t) {
    var n = e.getUTCFullYear();
    return T(n, t.length);
  },
  // Quarter
  Q: function(e, t, n) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "Q":
        return String(a);
      case "QQ":
        return T(a, 2);
      case "Qo":
        return n.ordinalNumber(a, {
          unit: "quarter"
        });
      case "QQQ":
        return n.quarter(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return n.quarter(a, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return n.quarter(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, t, n) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "q":
        return String(a);
      case "qq":
        return T(a, 2);
      case "qo":
        return n.ordinalNumber(a, {
          unit: "quarter"
        });
      case "qqq":
        return n.quarter(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return n.quarter(a, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return n.quarter(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, t, n) {
    var a = e.getUTCMonth();
    switch (t) {
      case "M":
      case "MM":
        return ne.M(e, t);
      case "Mo":
        return n.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "MMM":
        return n.month(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return n.month(a, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return n.month(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone month
  L: function(e, t, n) {
    var a = e.getUTCMonth();
    switch (t) {
      case "L":
        return String(a + 1);
      case "LL":
        return T(a + 1, 2);
      case "Lo":
        return n.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "LLL":
        return n.month(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return n.month(a, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return n.month(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Local week of year
  w: function(e, t, n, a) {
    var i = Lt(e, a);
    return t === "wo" ? n.ordinalNumber(i, {
      unit: "week"
    }) : T(i, t.length);
  },
  // ISO week of year
  I: function(e, t, n) {
    var a = zt(e);
    return t === "Io" ? n.ordinalNumber(a, {
      unit: "week"
    }) : T(a, t.length);
  },
  // Day of the month
  d: function(e, t, n) {
    return t === "do" ? n.ordinalNumber(e.getUTCDate(), {
      unit: "date"
    }) : ne.d(e, t);
  },
  // Day of year
  D: function(e, t, n) {
    var a = St(e);
    return t === "Do" ? n.ordinalNumber(a, {
      unit: "dayOfYear"
    }) : T(a, t.length);
  },
  // Day of week
  E: function(e, t, n) {
    var a = e.getUTCDay();
    switch (t) {
      case "E":
      case "EE":
      case "EEE":
        return n.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return n.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return n.day(a, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return n.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, t, n, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "e":
        return String(o);
      case "ee":
        return T(o, 2);
      case "eo":
        return n.ordinalNumber(o, {
          unit: "day"
        });
      case "eee":
        return n.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return n.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return n.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return n.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, t, n, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "c":
        return String(o);
      case "cc":
        return T(o, t.length);
      case "co":
        return n.ordinalNumber(o, {
          unit: "day"
        });
      case "ccc":
        return n.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return n.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return n.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return n.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, t, n) {
    var a = e.getUTCDay(), i = a === 0 ? 7 : a;
    switch (t) {
      case "i":
        return String(i);
      case "ii":
        return T(i, t.length);
      case "io":
        return n.ordinalNumber(i, {
          unit: "day"
        });
      case "iii":
        return n.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return n.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return n.day(a, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return n.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, t, n) {
    var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, t, n) {
    var a = e.getUTCHours(), i;
    switch (a === 12 ? i = me.noon : a === 0 ? i = me.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
      case "b":
      case "bb":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, t, n) {
    var a = e.getUTCHours(), i;
    switch (a >= 17 ? i = me.evening : a >= 12 ? i = me.afternoon : a >= 4 ? i = me.morning : i = me.night, t) {
      case "B":
      case "BB":
      case "BBB":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, t, n) {
    if (t === "ho") {
      var a = e.getUTCHours() % 12;
      return a === 0 && (a = 12), n.ordinalNumber(a, {
        unit: "hour"
      });
    }
    return ne.h(e, t);
  },
  // Hour [0-23]
  H: function(e, t, n) {
    return t === "Ho" ? n.ordinalNumber(e.getUTCHours(), {
      unit: "hour"
    }) : ne.H(e, t);
  },
  // Hour [0-11]
  K: function(e, t, n) {
    var a = e.getUTCHours() % 12;
    return t === "Ko" ? n.ordinalNumber(a, {
      unit: "hour"
    }) : T(a, t.length);
  },
  // Hour [1-24]
  k: function(e, t, n) {
    var a = e.getUTCHours();
    return a === 0 && (a = 24), t === "ko" ? n.ordinalNumber(a, {
      unit: "hour"
    }) : T(a, t.length);
  },
  // Minute
  m: function(e, t, n) {
    return t === "mo" ? n.ordinalNumber(e.getUTCMinutes(), {
      unit: "minute"
    }) : ne.m(e, t);
  },
  // Second
  s: function(e, t, n) {
    return t === "so" ? n.ordinalNumber(e.getUTCSeconds(), {
      unit: "second"
    }) : ne.s(e, t);
  },
  // Fraction of second
  S: function(e, t) {
    return ne.S(e, t);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    if (o === 0)
      return "Z";
    switch (t) {
      case "X":
        return ze(o);
      case "XXXX":
      case "XX":
        return se(o);
      case "XXXXX":
      case "XXX":
      default:
        return se(o, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "x":
        return ze(o);
      case "xxxx":
      case "xx":
        return se(o);
      case "xxxxx":
      case "xxx":
      default:
        return se(o, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Ue(o, ":");
      case "OOOO":
      default:
        return "GMT" + se(o, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + Ue(o, ":");
      case "zzzz":
      default:
        return "GMT" + se(o, ":");
    }
  },
  // Seconds timestamp
  t: function(e, t, n, a) {
    var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
    return T(o, t.length);
  },
  // Milliseconds timestamp
  T: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTime();
    return T(o, t.length);
  }
};
function Ue(r, e) {
  var t = r > 0 ? "-" : "+", n = Math.abs(r), a = Math.floor(n / 60), i = n % 60;
  if (i === 0)
    return t + String(a);
  var o = e;
  return t + String(a) + o + T(i, 2);
}
function ze(r, e) {
  if (r % 60 === 0) {
    var t = r > 0 ? "-" : "+";
    return t + T(Math.abs(r) / 60, 2);
  }
  return se(r, e);
}
function se(r, e) {
  var t = e || "", n = r > 0 ? "-" : "+", a = Math.abs(r), i = T(Math.floor(a / 60), 2), o = T(a % 60, 2);
  return n + i + t + o;
}
var Ye = function(e, t) {
  switch (e) {
    case "P":
      return t.date({
        width: "short"
      });
    case "PP":
      return t.date({
        width: "medium"
      });
    case "PPP":
      return t.date({
        width: "long"
      });
    case "PPPP":
    default:
      return t.date({
        width: "full"
      });
  }
}, et = function(e, t) {
  switch (e) {
    case "p":
      return t.time({
        width: "short"
      });
    case "pp":
      return t.time({
        width: "medium"
      });
    case "ppp":
      return t.time({
        width: "long"
      });
    case "pppp":
    default:
      return t.time({
        width: "full"
      });
  }
}, Nt = function(e, t) {
  var n = e.match(/(P+)(p+)?/) || [], a = n[1], i = n[2];
  if (!i)
    return Ye(e, t);
  var o;
  switch (a) {
    case "P":
      o = t.dateTime({
        width: "short"
      });
      break;
    case "PP":
      o = t.dateTime({
        width: "medium"
      });
      break;
    case "PPP":
      o = t.dateTime({
        width: "long"
      });
      break;
    case "PPPP":
    default:
      o = t.dateTime({
        width: "full"
      });
      break;
  }
  return o.replace("{{date}}", Ye(a, t)).replace("{{time}}", et(i, t));
}, Rt = {
  p: et,
  P: Nt
}, qt = ["D", "DD"], Ht = ["YY", "YYYY"];
function jt(r) {
  return qt.indexOf(r) !== -1;
}
function Bt(r) {
  return Ht.indexOf(r) !== -1;
}
function Ee(r, e, t) {
  if (r === "YYYY")
    throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "YY")
    throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "D")
    throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "DD")
    throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
}
var At = {
  lessThanXSeconds: {
    one: "less than a second",
    other: "less than {{count}} seconds"
  },
  xSeconds: {
    one: "1 second",
    other: "{{count}} seconds"
  },
  halfAMinute: "half a minute",
  lessThanXMinutes: {
    one: "less than a minute",
    other: "less than {{count}} minutes"
  },
  xMinutes: {
    one: "1 minute",
    other: "{{count}} minutes"
  },
  aboutXHours: {
    one: "about 1 hour",
    other: "about {{count}} hours"
  },
  xHours: {
    one: "1 hour",
    other: "{{count}} hours"
  },
  xDays: {
    one: "1 day",
    other: "{{count}} days"
  },
  aboutXWeeks: {
    one: "about 1 week",
    other: "about {{count}} weeks"
  },
  xWeeks: {
    one: "1 week",
    other: "{{count}} weeks"
  },
  aboutXMonths: {
    one: "about 1 month",
    other: "about {{count}} months"
  },
  xMonths: {
    one: "1 month",
    other: "{{count}} months"
  },
  aboutXYears: {
    one: "about 1 year",
    other: "about {{count}} years"
  },
  xYears: {
    one: "1 year",
    other: "{{count}} years"
  },
  overXYears: {
    one: "over 1 year",
    other: "over {{count}} years"
  },
  almostXYears: {
    one: "almost 1 year",
    other: "almost {{count}} years"
  }
}, It = function(e, t, n) {
  var a, i = At[e];
  return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
};
function Me(r) {
  return function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : r.defaultWidth, n = r.formats[t] || r.formats[r.defaultWidth];
    return n;
  };
}
var Gt = {
  full: "EEEE, MMMM do, y",
  long: "MMMM do, y",
  medium: "MMM d, y",
  short: "MM/dd/yyyy"
}, Qt = {
  full: "h:mm:ss a zzzz",
  long: "h:mm:ss a z",
  medium: "h:mm:ss a",
  short: "h:mm a"
}, Xt = {
  full: "{{date}} 'at' {{time}}",
  long: "{{date}} 'at' {{time}}",
  medium: "{{date}}, {{time}}",
  short: "{{date}}, {{time}}"
}, Vt = {
  date: Me({
    formats: Gt,
    defaultWidth: "full"
  }),
  time: Me({
    formats: Qt,
    defaultWidth: "full"
  }),
  dateTime: Me({
    formats: Xt,
    defaultWidth: "full"
  })
}, Zt = {
  lastWeek: "'last' eeee 'at' p",
  yesterday: "'yesterday at' p",
  today: "'today at' p",
  tomorrow: "'tomorrow at' p",
  nextWeek: "eeee 'at' p",
  other: "P"
}, Jt = function(e, t, n, a) {
  return Zt[e];
};
function pe(r) {
  return function(e, t) {
    var n = t != null && t.context ? String(t.context) : "standalone", a;
    if (n === "formatting" && r.formattingValues) {
      var i = r.defaultFormattingWidth || r.defaultWidth, o = t != null && t.width ? String(t.width) : i;
      a = r.formattingValues[o] || r.formattingValues[i];
    } else {
      var l = r.defaultWidth, f = t != null && t.width ? String(t.width) : r.defaultWidth;
      a = r.values[f] || r.values[l];
    }
    var c = r.argumentCallback ? r.argumentCallback(e) : e;
    return a[c];
  };
}
var Kt = {
  narrow: ["B", "A"],
  abbreviated: ["BC", "AD"],
  wide: ["Before Christ", "Anno Domini"]
}, $t = {
  narrow: ["1", "2", "3", "4"],
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
}, er = {
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
}, tr = {
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
}, rr = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  }
}, nr = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  }
}, ar = function(e, t) {
  var n = Number(e), a = n % 100;
  if (a > 20 || a < 10)
    switch (a % 10) {
      case 1:
        return n + "st";
      case 2:
        return n + "nd";
      case 3:
        return n + "rd";
    }
  return n + "th";
}, ir = {
  ordinalNumber: ar,
  era: pe({
    values: Kt,
    defaultWidth: "wide"
  }),
  quarter: pe({
    values: $t,
    defaultWidth: "wide",
    argumentCallback: function(e) {
      return e - 1;
    }
  }),
  month: pe({
    values: er,
    defaultWidth: "wide"
  }),
  day: pe({
    values: tr,
    defaultWidth: "wide"
  }),
  dayPeriod: pe({
    values: rr,
    defaultWidth: "wide",
    formattingValues: nr,
    defaultFormattingWidth: "wide"
  })
};
function ve(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.width, a = n && r.matchPatterns[n] || r.matchPatterns[r.defaultMatchWidth], i = e.match(a);
    if (!i)
      return null;
    var o = i[0], l = n && r.parsePatterns[n] || r.parsePatterns[r.defaultParseWidth], f = Array.isArray(l) ? sr(l, function(m) {
      return m.test(o);
    }) : or(l, function(m) {
      return m.test(o);
    }), c;
    c = r.valueCallback ? r.valueCallback(f) : f, c = t.valueCallback ? t.valueCallback(c) : c;
    var d = e.slice(o.length);
    return {
      value: c,
      rest: d
    };
  };
}
function or(r, e) {
  for (var t in r)
    if (r.hasOwnProperty(t) && e(r[t]))
      return t;
}
function sr(r, e) {
  for (var t = 0; t < r.length; t++)
    if (e(r[t]))
      return t;
}
function lr(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.match(r.matchPattern);
    if (!n)
      return null;
    var a = n[0], i = e.match(r.parsePattern);
    if (!i)
      return null;
    var o = r.valueCallback ? r.valueCallback(i[0]) : i[0];
    o = t.valueCallback ? t.valueCallback(o) : o;
    var l = e.slice(a.length);
    return {
      value: o,
      rest: l
    };
  };
}
var ur = /^(\d+)(th|st|nd|rd)?/i, cr = /\d+/i, dr = {
  narrow: /^(b|a)/i,
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
  wide: /^(before christ|before common era|anno domini|common era)/i
}, fr = {
  any: [/^b/i, /^(a|c)/i]
}, mr = {
  narrow: /^[1234]/i,
  abbreviated: /^q[1234]/i,
  wide: /^[1234](th|st|nd|rd)? quarter/i
}, hr = {
  any: [/1/i, /2/i, /3/i, /4/i]
}, gr = {
  narrow: /^[jfmasond]/i,
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
}, pr = {
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
}, vr = {
  narrow: /^[smtwf]/i,
  short: /^(su|mo|tu|we|th|fr|sa)/i,
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
}, br = {
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
}, wr = {
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
}, _r = {
  any: {
    am: /^a/i,
    pm: /^p/i,
    midnight: /^mi/i,
    noon: /^no/i,
    morning: /morning/i,
    afternoon: /afternoon/i,
    evening: /evening/i,
    night: /night/i
  }
}, yr = {
  ordinalNumber: lr({
    matchPattern: ur,
    parsePattern: cr,
    valueCallback: function(e) {
      return parseInt(e, 10);
    }
  }),
  era: ve({
    matchPatterns: dr,
    defaultMatchWidth: "wide",
    parsePatterns: fr,
    defaultParseWidth: "any"
  }),
  quarter: ve({
    matchPatterns: mr,
    defaultMatchWidth: "wide",
    parsePatterns: hr,
    defaultParseWidth: "any",
    valueCallback: function(e) {
      return e + 1;
    }
  }),
  month: ve({
    matchPatterns: gr,
    defaultMatchWidth: "wide",
    parsePatterns: pr,
    defaultParseWidth: "any"
  }),
  day: ve({
    matchPatterns: vr,
    defaultMatchWidth: "wide",
    parsePatterns: br,
    defaultParseWidth: "any"
  }),
  dayPeriod: ve({
    matchPatterns: wr,
    defaultMatchWidth: "any",
    parsePatterns: _r,
    defaultParseWidth: "any"
  })
}, xr = {
  code: "en-US",
  formatDistance: It,
  formatLong: Vt,
  formatRelative: Jt,
  localize: ir,
  match: yr,
  options: {
    weekStartsOn: 0,
    firstWeekContainsDate: 1
  }
}, kr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tr = /^'([^]*?)'?$/, Mr = /''/g, Or = /[a-zA-Z]/;
function Pr(r, e, t) {
  var n, a, i, o, l, f, c, d, m, v, g, b, y, w;
  A(2, arguments);
  var _ = String(e), C = Ce(), M = (n = (a = void 0) !== null && a !== void 0 ? a : C.locale) !== null && n !== void 0 ? n : xr, E = ce((i = (o = (l = (f = void 0) !== null && f !== void 0 ? f : void 0) !== null && l !== void 0 ? l : C.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = C.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
  if (!(E >= 1 && E <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var O = ce((m = (v = (g = (b = void 0) !== null && b !== void 0 ? b : void 0) !== null && g !== void 0 ? g : C.weekStartsOn) !== null && v !== void 0 ? v : (y = C.locale) === null || y === void 0 || (w = y.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && m !== void 0 ? m : 0);
  if (!(O >= 0 && O <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  if (!M.localize)
    throw new RangeError("locale must contain localize property");
  if (!M.formatLong)
    throw new RangeError("locale must contain formatLong property");
  var R = V(r);
  if (!Ot(R))
    throw new RangeError("Invalid time value");
  var G = Tt(R), Z = Pt(R, G), L = {
    firstWeekContainsDate: E,
    weekStartsOn: O,
    locale: M,
    _originalDate: R
  }, I = _.match(Cr).map(function(P) {
    var q = P[0];
    if (q === "p" || q === "P") {
      var B = Rt[q];
      return B(P, M.formatLong);
    }
    return P;
  }).join("").match(kr).map(function(P) {
    if (P === "''")
      return "'";
    var q = P[0];
    if (q === "'")
      return Dr(P);
    var B = Ft[q];
    if (B)
      return Bt(P) && Ee(P, e, String(r)), jt(P) && Ee(P, e, String(r)), B(Z, P, M.localize, L);
    if (q.match(Or))
      throw new RangeError("Format string contains an unescaped latin alphabet character `" + q + "`");
    return P;
  }).join("");
  return I;
}
function Dr(r) {
  var e = r.match(Tr);
  return e ? e[1].replace(Mr, "'") : r;
}
const Le = (r) => window.postMessage(r, window.location.href), Sr = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Fe = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", Ne = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", Wr = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
var be = /* @__PURE__ */ ((r) => (r.lotteries = "lotteries", r.outcome = "outcome", r.draw = "draw", r))(be || {}), le = /* @__PURE__ */ ((r) => (r.en = "en", r.default = "*", r))(le || {});
const Ur = (r) => X(void 0, null, function* () {
  const { path: e, params: t = {}, options: n = {} } = r, a = new URL(e);
  return Object.keys(t).map((i) => {
    a.searchParams.append(i, t[i]);
  }), yield zr(a, n);
}), zr = (t, ...n) => X(void 0, [t, ...n], function* (r, e = {}) {
  let a;
  try {
    a = yield fetch(r, e), a = yield a.text(), a = JSON.parse(a);
  } catch (i) {
    throw new Error(i.message);
  }
  return a;
}), Re = (r, e, t) => X(void 0, null, function* () {
  const { session: n } = t, a = {
    headers: Te({
      "Content-Type": "application/json",
      accept: "text/plain"
    }, n ? { "x-SessionId": n } : {})
  }, o = {
    [be.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: a
    }),
    [be.outcome]: () => {
      const { id: l } = t;
      return {
        path: `/wof/outcome/${l}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: a
      };
    }
  }[r]();
  return o.path = e + "/v1" + o.path, yield Ur(o);
}), qe = {
  lotteries: (r, e) => X(void 0, null, function* () {
    const t = yield Re(be.lotteries, r, { session: e });
    return (t == null ? void 0 : t.items) || [];
  }),
  outcome: (r, e, t) => X(void 0, null, function* () {
    return yield Re(be.outcome, r, { session: e, id: t });
  })
}, Yr = (r) => {
  var e;
  return +((e = r == null ? void 0 : r.current) == null ? void 0 : e.remainingTimes) > 0;
};
function He(r, e) {
  st(r, e);
}
function Er(r) {
  lt.set(r);
}
const je = {
  en: {
    headerTitle: "Coin Royales",
    infoTooltip: "Flip a virtual coin and take a chance to win!",
    play: "Play",
    history: "History",
    rules: "Rules",
    noCoinYet: "There are no available Coin Royale",
    noHistoryYet: "There is no history yet",
    more: "More",
    rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
    terms: "Terms&Conditions link",
    prizeAgenda: "Prize agenda",
    tournamentTicket: "Tournament ticket",
    freeSpins: "Free spins",
    bonusMoney: "Bonus Money",
    loyaltyPoints: "Loyalty Points&Coins",
    luckyWheel: "LuckyWheel",
    mysteryChest: "Mystery Chest",
    coinRoyale: "Coin Royale",
    customRewards: "Custom Rewards"
  }
};
function Lr(r) {
  ft(r, "svelte-nqi96j", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 135px)}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-loader{border-radius:var(--emw--border-radius-large, 16px);padding:20px;line-height:15px}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}@container (max-width: 1300px){.drawer{padding:20px 40px}}@container (max-width: 992px){.drawer{width:70%}}@container (max-width: 768px){.drawer{width:80%}}@container (max-width: 576px){.drawer{width:90%}}.drawer .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 155px)}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.coins-history-loader{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.coins-history-loader-body{display:flex;justify-content:space-between}.coins-history-loader-left{display:flex}.coins-history-dot .Skeleton{border-radius:var(--emw--border-radius-large, 50%);margin-right:10px}.coins-history-text .Skeleton{margin-right:20px}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-1px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px}.coins-history__list__body{overflow:auto;max-height:200px;padding-right:10px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31)}::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}`);
}
function Be(r, e, t) {
  const n = r.slice();
  return n[43] = e[t], n;
}
function Ae(r, e, t) {
  const n = r.slice();
  return n[46] = e[t], n[48] = t, n;
}
function Ie(r, e, t) {
  const n = r.slice();
  return n[40] = e[t], n[42] = t, n;
}
function Fr(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function Nr(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function Rr(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function Ge(r) {
  let e, t, n, a, i, o = (
    /*$_*/
    r[10]("infoTooltip") + ""
  ), l, f, c;
  return {
    c() {
      e = p("div"), t = p("div"), n = p("button"), a = k(), i = p("span"), l = S(o), h(n, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
    },
    m(d, m) {
      z(d, e, m), s(e, t), s(t, n), s(t, a), s(t, i), s(i, l), f || (c = ee(
        n,
        "click",
        /*showHideToolip*/
        r[13]
      ), f = !0);
    },
    p(d, m) {
      m[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      d[10]("infoTooltip") + "") && D(l, o);
    },
    d(d) {
      d && U(e), f = !1, c();
    }
  };
}
function qr(r) {
  let e, t, n = (
    /*$_*/
    r[10]("rulesDescription") + ""
  ), a, i, o, l, f, c = (
    /*$_*/
    r[10]("prizeAgenda") + ""
  ), d, m, v, g, b = (
    /*$_*/
    r[10]("tournamentTicket") + ""
  ), y, w, _, C = (
    /*$_*/
    r[10]("freeSpins") + ""
  ), M, E, O, R = (
    /*$_*/
    r[10]("bonusMoney") + ""
  ), G, Z, L, I = (
    /*$_*/
    r[10]("loyaltyPoints") + ""
  ), P, q, B, J = (
    /*$_*/
    r[10]("luckyWheel") + ""
  ), W, ae, Q, F = (
    /*$_*/
    r[10]("mysteryChest") + ""
  ), u, x, N, K = (
    /*$_*/
    r[10]("coinRoyale") + ""
  ), _e, ie, $, oe = (
    /*$_*/
    r[10]("customRewards") + ""
  ), de, H = (
    /*hasUrl*/
    r[8] && Qe(r)
  );
  return {
    c() {
      e = p("div"), t = p("span"), a = S(n), i = k(), H && H.c(), o = k(), l = p("section"), f = p("span"), d = S(c), m = k(), v = p("ul"), g = p("li"), y = S(b), w = k(), _ = p("li"), M = S(C), E = k(), O = p("li"), G = S(R), Z = k(), L = p("li"), P = S(I), q = k(), B = p("li"), W = S(J), ae = k(), Q = p("li"), u = S(F), x = k(), N = p("li"), _e = S(K), ie = k(), $ = p("li"), de = S(oe), h(t, "class", "coins-rules__description"), h(f, "class", "coins-rules__prize-title"), h(g, "class", "coins-rules__list__item"), h(_, "class", "coins-rules__list__item"), h(O, "class", "coins-rules__list__item"), h(L, "class", "coins-rules__list__item"), h(B, "class", "coins-rules__list__item"), h(Q, "class", "coins-rules__list__item"), h(N, "class", "coins-rules__list__item"), h($, "class", "coins-rules__list__item"), h(v, "class", "coins-rules__list"), h(e, "class", "coins-rules");
    },
    m(Y, j) {
      z(Y, e, j), s(e, t), s(t, a), s(e, i), H && H.m(e, null), s(e, o), s(e, l), s(l, f), s(f, d), s(l, m), s(l, v), s(v, g), s(g, y), s(v, w), s(v, _), s(_, M), s(v, E), s(v, O), s(O, G), s(v, Z), s(v, L), s(L, P), s(v, q), s(v, B), s(B, W), s(v, ae), s(v, Q), s(Q, u), s(v, x), s(v, N), s(N, _e), s(v, ie), s(v, $), s($, de);
    },
    p(Y, j) {
      j[0] & /*$_*/
      1024 && n !== (n = /*$_*/
      Y[10]("rulesDescription") + "") && D(a, n), /*hasUrl*/
      Y[8] ? H ? H.p(Y, j) : (H = Qe(Y), H.c(), H.m(e, o)) : H && (H.d(1), H = null), j[0] & /*$_*/
      1024 && c !== (c = /*$_*/
      Y[10]("prizeAgenda") + "") && D(d, c), j[0] & /*$_*/
      1024 && b !== (b = /*$_*/
      Y[10]("tournamentTicket") + "") && D(y, b), j[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      Y[10]("freeSpins") + "") && D(M, C), j[0] & /*$_*/
      1024 && R !== (R = /*$_*/
      Y[10]("bonusMoney") + "") && D(G, R), j[0] & /*$_*/
      1024 && I !== (I = /*$_*/
      Y[10]("loyaltyPoints") + "") && D(P, I), j[0] & /*$_*/
      1024 && J !== (J = /*$_*/
      Y[10]("luckyWheel") + "") && D(W, J), j[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      Y[10]("mysteryChest") + "") && D(u, F), j[0] & /*$_*/
      1024 && K !== (K = /*$_*/
      Y[10]("coinRoyale") + "") && D(_e, K), j[0] & /*$_*/
      1024 && oe !== (oe = /*$_*/
      Y[10]("customRewards") + "") && D(de, oe);
    },
    d(Y) {
      Y && U(e), H && H.d();
    }
  };
}
function Hr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyalesHistory*/
      i[9].length > 0 ? Gr : Ir
    );
  }
  let n = t(r), a = n(r);
  return {
    c() {
      a.c(), e = we();
    },
    m(i, o) {
      a.m(i, o), z(i, e, o);
    },
    p(i, o) {
      n === (n = t(i)) && a ? a.p(i, o) : (a.d(1), a = n(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && U(e), a.d(i);
    }
  };
}
function jr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyales*/
      i[6].length > 0 ? Zr : Vr
    );
  }
  let n = t(r), a = n(r);
  return {
    c() {
      a.c(), e = we();
    },
    m(i, o) {
      a.m(i, o), z(i, e, o);
    },
    p(i, o) {
      n === (n = t(i)) && a ? a.p(i, o) : (a.d(1), a = n(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && U(e), a.d(i);
    }
  };
}
function Br(r) {
  let e, t = te([1, 2, 3]), n = [];
  for (let a = 0; a < 3; a += 1)
    n[a] = Kr(Fr(r, t, a));
  return {
    c() {
      for (let a = 0; a < 3; a += 1)
        n[a].c();
      e = we();
    },
    m(a, i) {
      for (let o = 0; o < 3; o += 1)
        n[o] && n[o].m(a, i);
      z(a, e, i);
    },
    p: ue,
    d(a) {
      a && U(e), ge(n, a);
    }
  };
}
function Ar(r) {
  let e, t = te([1, 2, 3, 4, 5, 6, 7]), n = [];
  for (let a = 0; a < 7; a += 1)
    n[a] = $r(Rr(r, t, a));
  return {
    c() {
      for (let a = 0; a < 7; a += 1)
        n[a].c();
      e = we();
    },
    m(a, i) {
      for (let o = 0; o < 7; o += 1)
        n[o] && n[o].m(a, i);
      z(a, e, i);
    },
    p: ue,
    d(a) {
      a && U(e), ge(n, a);
    }
  };
}
function Qe(r) {
  let e, t, n = (
    /*$_*/
    r[10]("terms") + ""
  ), a, i, o;
  return {
    c() {
      e = p("a"), t = p("span"), a = S(n), i = k(), o = p("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
        e,
        "href",
        /*terms*/
        r[0]
      ), h(e, "target", "_blank");
    },
    m(l, f) {
      z(l, e, f), s(e, t), s(t, a), s(e, i), s(e, o);
    },
    p(l, f) {
      f[0] & /*$_*/
      1024 && n !== (n = /*$_*/
      l[10]("terms") + "") && D(a, n), f[0] & /*terms*/
      1 && h(
        e,
        "href",
        /*terms*/
        l[0]
      );
    },
    d(l) {
      l && U(e);
    }
  };
}
function Ir(r) {
  let e, t = (
    /*$_*/
    r[10]("noHistoryYet") + ""
  ), n;
  return {
    c() {
      e = p("div"), n = S(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      z(a, e, i), s(e, n);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noHistoryYet") + "") && D(n, t);
    },
    d(a) {
      a && U(e);
    }
  };
}
function Gr(r) {
  let e, t = te(
    /*coinRoyalesHistory*/
    r[9]
  ), n = [];
  for (let a = 0; a < t.length; a += 1)
    n[a] = Ze(Be(r, t, a));
  return {
    c() {
      for (let a = 0; a < n.length; a += 1)
        n[a].c();
      e = we();
    },
    m(a, i) {
      for (let o = 0; o < n.length; o += 1)
        n[o] && n[o].m(a, i);
      z(a, e, i);
    },
    p(a, i) {
      if (i[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        t = te(
          /*coinRoyalesHistory*/
          a[9]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Be(a, t, o);
          n[o] ? n[o].p(l, i) : (n[o] = Ze(l), n[o].c(), n[o].m(e.parentNode, e));
        }
        for (; o < n.length; o += 1)
          n[o].d(1);
        n.length = t.length;
      }
    },
    d(a) {
      a && U(e), ge(n, a);
    }
  };
}
function Qr(r) {
  let e, t;
  return {
    c() {
      e = p("img"), he(e.src, t = /*outcome*/
      r[46].assets) || h(e, "src", t), h(e, "alt", "");
    },
    m(n, a) {
      z(n, e, a);
    },
    p(n, a) {
      a[0] & /*coinRoyalesHistory*/
      512 && !he(e.src, t = /*outcome*/
      n[46].assets) && h(e, "src", t);
    },
    d(n) {
      n && U(e);
    }
  };
}
function Xr(r) {
  let e = (
    /*outcome*/
    r[46].name + ""
  ), t;
  return {
    c() {
      t = S(e);
    },
    m(n, a) {
      z(n, t, a);
    },
    p(n, a) {
      a[0] & /*coinRoyalesHistory*/
      512 && e !== (e = /*outcome*/
      n[46].name + "") && D(t, e);
    },
    d(n) {
      n && U(t);
    }
  };
}
function Xe(r) {
  var w;
  let e, t, n, a, i, o, l, f, c, d = (
    /*outcome*/
    ((w = r[46]) == null ? void 0 : w.date) + ""
  ), m, v;
  function g(_, C) {
    var M;
    return (
      /*outcome*/
      (M = _[46]) != null && M.name ? Xr : Qr
    );
  }
  let b = g(r), y = b(r);
  return {
    c() {
      var _;
      e = p("div"), t = p("span"), t.textContent = `${/*index*/
      r[48] + 1}`, n = k(), a = p("p"), y.c(), i = k(), o = p("img"), f = k(), c = p("span"), m = S(d), v = k(), h(t, "class", "index"), he(o.src, l = /*outcome*/
      (_ = r[46]) != null && _.state ? Ne : Fe) || h(o, "src", l), h(o, "alt", ""), h(a, "class", "name"), h(c, "class", "time"), h(e, "class", "coins-history__list__item");
    },
    m(_, C) {
      z(_, e, C), s(e, t), s(e, n), s(e, a), y.m(a, null), s(a, i), s(a, o), s(e, f), s(e, c), s(c, m), s(e, v);
    },
    p(_, C) {
      var M, E;
      b === (b = g(_)) && y ? y.p(_, C) : (y.d(1), y = b(_), y && (y.c(), y.m(a, i))), C[0] & /*coinRoyalesHistory*/
      512 && !he(o.src, l = /*outcome*/
      (M = _[46]) != null && M.state ? Ne : Fe) && h(o, "src", l), C[0] & /*coinRoyalesHistory*/
      512 && d !== (d = /*outcome*/
      ((E = _[46]) == null ? void 0 : E.date) + "") && D(m, d);
    },
    d(_) {
      _ && U(e), y.d();
    }
  };
}
function Ve(r) {
  let e, t = (
    /*$_*/
    r[10]("more") + ""
  ), n, a, i, o, l, f;
  function c() {
    return (
      /*click_handler_1*/
      r[24](
        /*history*/
        r[43]
      )
    );
  }
  return {
    c() {
      e = p("button"), n = S(t), a = k(), i = p("img"), he(i.src, o = Wr) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
    },
    m(d, m) {
      z(d, e, m), s(e, n), s(e, a), s(e, i), l || (f = ee(e, "click", c), l = !0);
    },
    p(d, m) {
      r = d, m[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      r[10]("more") + "") && D(n, t);
    },
    d(d) {
      d && U(e), l = !1, f();
    }
  };
}
function Ze(r) {
  var v;
  let e, t, n = (
    /*history*/
    r[43].name + ""
  ), a, i, o, l, f, c = te(
    /*history*/
    r[43].outcomes.slice(
      0,
      /*history*/
      r[43].endPos
    )
  ), d = [];
  for (let g = 0; g < c.length; g += 1)
    d[g] = Xe(Ae(r, c, g));
  let m = (
    /*history*/
    ((v = r[43].outcomes) == null ? void 0 : v.length) > 3 && /*history*/
    r[43].endPos === 3 && Ve(r)
  );
  return {
    c() {
      e = p("div"), t = p("div"), a = S(n), i = k(), o = p("div");
      for (let g = 0; g < d.length; g += 1)
        d[g].c();
      l = k(), m && m.c(), f = k(), h(t, "class", "coins-history__title"), h(o, "class", "coins-history__list__body"), h(e, "class", "coins-history__list");
    },
    m(g, b) {
      z(g, e, b), s(e, t), s(t, a), s(e, i), s(e, o);
      for (let y = 0; y < d.length; y += 1)
        d[y] && d[y].m(o, null);
      s(e, l), m && m.m(e, null), s(e, f);
    },
    p(g, b) {
      var y;
      if (b[0] & /*coinRoyalesHistory*/
      512 && n !== (n = /*history*/
      g[43].name + "") && D(a, n), b[0] & /*coinRoyalesHistory*/
      512) {
        c = te(
          /*history*/
          g[43].outcomes.slice(
            0,
            /*history*/
            g[43].endPos
          )
        );
        let w;
        for (w = 0; w < c.length; w += 1) {
          const _ = Ae(g, c, w);
          d[w] ? d[w].p(_, b) : (d[w] = Xe(_), d[w].c(), d[w].m(o, null));
        }
        for (; w < d.length; w += 1)
          d[w].d(1);
        d.length = c.length;
      }
      /*history*/
      ((y = g[43].outcomes) == null ? void 0 : y.length) > 3 && /*history*/
      g[43].endPos === 3 ? m ? m.p(g, b) : (m = Ve(g), m.c(), m.m(e, f)) : m && (m.d(1), m = null);
    },
    d(g) {
      g && U(e), ge(d, g), m && m.d();
    }
  };
}
function Vr(r) {
  let e, t = (
    /*$_*/
    r[10]("noCoinYet") + ""
  ), n;
  return {
    c() {
      e = p("div"), n = S(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      z(a, e, i), s(e, n);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noCoinYet") + "") && D(n, t);
    },
    d(a) {
      a && U(e);
    }
  };
}
function Zr(r) {
  let e, t = te(
    /*coinRoyales*/
    r[6]
  ), n = [];
  for (let a = 0; a < t.length; a += 1)
    n[a] = Je(Ie(r, t, a));
  return {
    c() {
      e = p("div");
      for (let a = 0; a < n.length; a += 1)
        n[a].c();
      h(e, "class", "coins-list");
    },
    m(a, i) {
      z(a, e, i);
      for (let o = 0; o < n.length; o += 1)
        n[o] && n[o].m(e, null);
    },
    p(a, i) {
      if (i[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        t = te(
          /*coinRoyales*/
          a[6]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Ie(a, t, o);
          n[o] ? n[o].p(l, i) : (n[o] = Je(l), n[o].c(), n[o].m(e, null));
        }
        for (; o < n.length; o += 1)
          n[o].d(1);
        n.length = t.length;
      }
    },
    d(a) {
      a && U(e), ge(n, a);
    }
  };
}
function Je(r) {
  var w, _;
  let e, t = (
    /*coin*/
    (r[40].program.name[
      /*lang*/
      r[1]
    ] || /*coin*/
    r[40].program.name[le.default]) + ""
  ), n, a, i, o, l, f, c, d = (
    /*coin*/
    ((_ = (w = r[40]) == null ? void 0 : w.current) == null ? void 0 : _.remainingTimes) + ""
  ), m, v, g, b;
  function y() {
    return (
      /*click_handler*/
      r[23](
        /*coin*/
        r[40]
      )
    );
  }
  return {
    c() {
      e = p("button"), n = S(t), a = k(), i = p("div"), o = p("img"), f = k(), c = p("span"), m = S(d), v = k(), he(o.src, l = Sr) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
    },
    m(C, M) {
      z(C, e, M), s(e, n), s(e, a), s(e, i), s(i, o), s(i, f), s(i, c), s(c, m), s(e, v), g || (b = ee(e, "click", y), g = !0);
    },
    p(C, M) {
      var E, O;
      r = C, M[0] & /*coinRoyales, lang*/
      66 && t !== (t = /*coin*/
      (r[40].program.name[
        /*lang*/
        r[1]
      ] || /*coin*/
      r[40].program.name[le.default]) + "") && D(n, t), M[0] & /*coinRoyales*/
      64 && d !== (d = /*coin*/
      ((O = (E = r[40]) == null ? void 0 : E.current) == null ? void 0 : O.remainingTimes) + "") && D(m, d);
    },
    d(C) {
      C && U(e), g = !1, b();
    }
  };
}
function Jr(r) {
  let e;
  return {
    c() {
      e = p("div"), e.innerHTML = '<div class="coins-history-loader-left"><ui-skeleton class="coins-history-dot" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="coins-history-text" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton structure="text" width="50px" height="16px"></ui-skeleton>', h(e, "class", "coins-history-loader-body");
    },
    m(t, n) {
      z(t, e, n);
    },
    p: ue,
    d(t) {
      t && U(e);
    }
  };
}
function Kr(r) {
  let e, t, n, a, i = te([1, 2, 3]), o = [];
  for (let l = 0; l < 3; l += 1)
    o[l] = Jr(Nr(r, i, l));
  return {
    c() {
      e = p("div"), t = p("ui-skeleton"), n = k();
      for (let l = 0; l < 3; l += 1)
        o[l].c();
      a = k(), We(t, "structure", "text"), We(t, "height", "16px"), h(e, "class", "coins-history-loader");
    },
    m(l, f) {
      z(l, e, f), s(e, t), s(e, n);
      for (let c = 0; c < 3; c += 1)
        o[c] && o[c].m(e, null);
      s(e, a);
    },
    p: ue,
    d(l) {
      l && U(e), ge(o, l);
    }
  };
}
function $r(r) {
  let e;
  return {
    c() {
      e = p("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', h(e, "class", "coins-loader");
    },
    m(t, n) {
      z(t, e, n);
    },
    p: ue,
    d(t) {
      t && U(e);
    }
  };
}
function en(r) {
  let e, t, n, a, i, o, l, f, c, d = (
    /*$_*/
    r[10]("headerTitle") + ""
  ), m, v, g, b, y, w, _, C = (
    /*$_*/
    r[10]("play") + ""
  ), M, E, O, R = (
    /*$_*/
    r[10]("history") + ""
  ), G, Z, L, I = (
    /*$_*/
    r[10]("rules") + ""
  ), P, q, B, J, W = (
    /*tooltip*/
    r[7] && Ge(r)
  );
  function ae(u, x) {
    return (
      /*coinsLoading*/
      u[5] ? Ar : (
        /*historyLoading*/
        u[4] ? Br : (
          /*activeTab*/
          u[3] === 1 ? jr : (
            /*activeTab*/
            u[3] === 2 ? Hr : qr
          )
        )
      )
    );
  }
  let Q = ae(r), F = Q(r);
  return {
    c() {
      e = p("div"), t = p("button"), n = k(), a = p("div"), W && W.c(), i = k(), o = p("div"), l = p("button"), f = k(), c = p("div"), m = S(d), v = k(), g = p("button"), b = k(), y = p("div"), w = p("div"), _ = p("button"), M = S(C), E = k(), O = p("button"), G = S(R), Z = k(), L = p("button"), P = S(I), q = k(), F.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(c, "class", "coins-header__title"), h(g, "class", "icon-button close"), h(o, "class", "coins-header"), h(_, "data-index", "1"), h(_, "class", "coins-tabs__tab"), fe(
        _,
        "active",
        /*activeTab*/
        r[3] === 1
      ), h(O, "data-index", "2"), h(O, "class", "coins-tabs__tab"), fe(
        O,
        "active",
        /*activeTab*/
        r[3] === 2
      ), h(L, "data-index", "3"), h(L, "class", "coins-tabs__tab"), fe(
        L,
        "active",
        /*activeTab*/
        r[3] === 3
      ), h(w, "class", "coins-tabs__container"), h(y, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
      (r[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
    },
    m(u, x) {
      z(u, e, x), s(e, t), s(e, n), s(e, a), W && W.m(a, null), s(a, i), s(a, o), s(o, l), s(o, f), s(o, c), s(c, m), s(o, v), s(o, g), s(a, b), s(a, y), s(y, w), s(w, _), s(_, M), s(w, E), s(w, O), s(O, G), s(w, Z), s(w, L), s(L, P), s(a, q), F.m(a, null), r[25](e), B || (J = [
        ee(
          t,
          "click",
          /*onClose*/
          r[12]
        ),
        ee(
          l,
          "click",
          /*showHideToolip*/
          r[13]
        ),
        ee(
          g,
          "click",
          /*onClose*/
          r[12]
        ),
        ee(
          _,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        ee(
          O,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        ee(
          L,
          "click",
          /*handleTabChange*/
          r[15]
        )
      ], B = !0);
    },
    p(u, x) {
      /*tooltip*/
      u[7] ? W ? W.p(u, x) : (W = Ge(u), W.c(), W.m(a, i)) : W && (W.d(1), W = null), x[0] & /*$_*/
      1024 && d !== (d = /*$_*/
      u[10]("headerTitle") + "") && D(m, d), x[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      u[10]("play") + "") && D(M, C), x[0] & /*activeTab*/
      8 && fe(
        _,
        "active",
        /*activeTab*/
        u[3] === 1
      ), x[0] & /*$_*/
      1024 && R !== (R = /*$_*/
      u[10]("history") + "") && D(G, R), x[0] & /*activeTab*/
      8 && fe(
        O,
        "active",
        /*activeTab*/
        u[3] === 2
      ), x[0] & /*$_*/
      1024 && I !== (I = /*$_*/
      u[10]("rules") + "") && D(P, I), x[0] & /*activeTab*/
      8 && fe(
        L,
        "active",
        /*activeTab*/
        u[3] === 3
      ), Q === (Q = ae(u)) && F ? F.p(u, x) : (F.d(1), F = Q(u), F && (F.c(), F.m(a, null)));
    },
    i: ue,
    o: ue,
    d(u) {
      u && U(e), W && W.d(), F.d(), r[25](null), B = !1, mt(J);
    }
  };
}
function tn(r, e, t) {
  let n;
  ht(r, wt, (u) => t(10, n = u));
  let { terms: a = "" } = e, { lang: i = le.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: d = "" } = e, { mbsource: m } = e, v = window.navigator.userAgent, g = gt(v), b, y = 1, w = !1, _ = !1, C = [], M = !1, E = !1, O;
  const R = (u) => /(https?:\/\/[^\s]+)/g.test(u), G = () => {
    Le({ type: "CloseCoinRoyaleDrawer" });
  }, Z = () => {
    t(7, M = !M);
  }, L = () => X(this, null, function* () {
    t(4, w = !0);
    let u = C.map((x) => ({
      id: x.program.id,
      name: x.program.name[i] || x.program.name[le.default],
      partitions: x.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (u.length > 0) {
      const x = u.map((N, K) => X(this, null, function* () {
        const ie = (yield qe.outcome(o, l, N == null ? void 0 : N.id)).items || [];
        if (ie.length === 0) {
          u[K] = null;
          return;
        }
        u[K] = Se(Te({}, N), {
          endPos: ie.length > 3 ? 3 : ie.length,
          outcomes: ie.map(($) => {
            var j, Oe;
            const oe = ((j = N.partitions[$.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : j.name) || {}, de = ((Oe = N.partitions[$.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : Oe.image1) || {}, H = $.draw.state === "fulfilled", Y = Pr(new Date($.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: oe[i] || oe[le.default],
              state: H,
              date: Y,
              assets: de[i] || de[le.default]
            };
          })
        });
      }));
      yield Promise.all(x);
    }
    t(9, O = u.filter((x) => !!x)), t(4, w = !1);
  }), I = () => X(this, null, function* () {
    t(5, _ = !0);
    const u = yield qe.lotteries(o, l);
    t(6, C = u.filter((x) => Yr(x))), t(5, _ = !1);
  }), P = (u) => {
    var N;
    const x = O.findIndex((K) => K.id === u);
    t(9, O[x].endPos = (N = O[x].outcomes) == null ? void 0 : N.length, O);
  }, q = (u) => X(this, null, function* () {
    t(3, y = +u.target.getAttribute("data-index")), y === 2 && (yield L());
  }), B = () => {
    fetch(d).then((x) => x.json()).then((x) => {
      Object.keys(x).forEach((N) => {
        He(N, x[N]);
      });
    });
  };
  Object.keys(je).forEach((u) => {
    He(u, je[u]);
  });
  const J = () => {
    Er(i);
  }, W = (u) => {
    Le({
      type: "OpenCoinRoyaleDetails",
      data: u
    });
  };
  pt(() => {
    t(8, E = R(a)), I();
  });
  const ae = (u) => {
    W(u);
  }, Q = (u) => P(u.id);
  function F(u) {
    vt[u ? "unshift" : "push"](() => {
      b = u, t(2, b);
    });
  }
  return r.$$set = (u) => {
    "terms" in u && t(0, a = u.terms), "lang" in u && t(1, i = u.lang), "endpoint" in u && t(17, o = u.endpoint), "session" in u && t(18, l = u.session), "clientstyling" in u && t(19, f = u.clientstyling), "clientstylingurl" in u && t(20, c = u.clientstylingurl), "translationurl" in u && t(21, d = u.translationurl), "mbsource" in u && t(22, m = u.mbsource);
  }, r.$$.update = () => {
    r.$$.dirty[0] & /*lang*/
    2 && i && J(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && f && b && _t(b, f), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && c && b && yt(b, c), r.$$.dirty[0] & /*translationurl*/
    2097152 && d && B(), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && m && b && xt(b, `${m}.Style`);
  }, [
    a,
    i,
    b,
    y,
    w,
    _,
    C,
    M,
    E,
    O,
    n,
    g,
    G,
    Z,
    P,
    q,
    W,
    o,
    l,
    f,
    c,
    d,
    m,
    ae,
    Q,
    F
  ];
}
class tt extends ut {
  constructor(e) {
    super(), ct(
      this,
      e,
      tn,
      en,
      dt,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      Lr,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), re();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), re();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), re();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), re();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), re();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), re();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), re();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), re();
  }
}
bt(tt, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
const sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: tt
}, Symbol.toStringTag, { value: "Module" }));
export {
  sn as C,
  Pr as f
};
