import { S as Re, b as Fe, s as Pe, f as $, d as Ie, n as ne, e as L, r as De, E as k, N as re, g as T, p as s, q, l as u, h as w, F as C, m as c, w as Ae, o as Be, A as He, L as J, M as ae, j as de, k as fe, t as se, I as Oe, J as je, K as Ue, c as Ze } from "./CasinoGameOverlay-8T89JqAi.js";
import { a as Ee, $ as Ne, i as Ge, c as Ye } from "./CasinoMysteryChestContainer-DbmkGTID.js";
import "../stencil/ui-skeleton-W50o8tfg.js";
import { a as We } from "./LotteryProgramWof-DS_7y7AG.js";
const pe = (i) => window.postMessage(i, window.location.href), qe = "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", ge = "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", he = "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", Je = "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 le = /* @__PURE__ */ ((i) => (i.lotteries = "lotteries", i.outcome = "outcome", i.history = "history", i.draw = "draw", i))(le || {}), oe = /* @__PURE__ */ ((i) => (i.en = "en", i.default = "*", i))(oe || {});
const Ke = async (i) => {
  const { path: e, params: l = {}, options: o = {} } = i, t = new URL(e);
  return Object.keys(l).map((r) => {
    t.searchParams.append(r, l[r]);
  }), await Ve(t, o);
}, Ve = async (i, e = {}) => {
  try {
    const o = await (await fetch(i, e)).text();
    return JSON.parse(o);
  } catch (l) {
    return l.message;
  }
}, ue = async (i, e, l) => {
  const { session: o } = l, t = {
    headers: {
      "Content-Type": "application/json",
      accept: "text/plain",
      ...o ? { "x-SessionId": o } : {}
    }
  }, n = {
    [le.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: t
    }),
    [le.history]: () => ({
      path: "/wof/lotteryHistory",
      options: t
    }),
    [le.outcome]: () => {
      const { id: a } = l;
      return {
        path: `/wof/outcome/${a}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: t
      };
    }
  }[i]();
  return n.path = e + "/v1" + n.path, await Ke(n);
}, me = {
  lotteries: async (i, e) => (await ue(le.lotteries, i, { session: e }))?.items || [],
  outcome: async (i, e, l) => await ue(le.outcome, i, { session: e, id: l }),
  history: async (i, e) => await ue(le.history, i, { session: e })
}, Xe = (i) => +i?.current?.remainingTimes > 0;
function _e(i, e) {
  Ee(i, e);
}
function Qe(i) {
  Ne.set(i);
}
const be = {
  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 $e(i) {
  Ie(i, "svelte-1tv2sur", `.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__wrap{max-height:85%;overflow:auto;padding-right:10px;padding-bottom:50px}.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;overflow:auto;max-height:215px}.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 we(i, e, l) {
  const o = i.slice();
  return o[43] = e[l], o;
}
function ve(i, e, l) {
  const o = i.slice();
  return o[46] = e[l], o[48] = l, o;
}
function ye(i, e, l) {
  const o = i.slice();
  return o[40] = e[l], o[42] = l, o;
}
function et(i, e, l) {
  const o = i.slice();
  return o[33] = e[l], o;
}
function tt(i, e, l) {
  const o = i.slice();
  return o[33] = e[l], o;
}
function it(i, e, l) {
  const o = i.slice();
  return o[33] = e[l], o;
}
function xe(i) {
  let e, l, o, t, r, n = (
    /*$_*/
    i[10]("infoTooltip") + ""
  ), a, g, p;
  return {
    c() {
      e = u("div"), l = u("div"), o = u("button"), t = w(), r = u("span"), a = C(n), c(o, "class", "icon-button close"), c(l, "class", "tooltip"), c(e, "class", "tooltip-backdrop");
    },
    m(m, f) {
      T(m, e, f), s(e, l), s(l, o), s(l, t), s(l, r), s(r, a), g || (p = q(
        o,
        "click",
        /*showHideToolip*/
        i[13]
      ), g = !0);
    },
    p(m, f) {
      f[0] & /*$_*/
      1024 && n !== (n = /*$_*/
      m[10]("infoTooltip") + "") && k(a, n);
    },
    d(m) {
      m && L(e), g = !1, p();
    }
  };
}
function ot(i) {
  let e, l, o = (
    /*$_*/
    i[10]("rulesDescription") + ""
  ), t, r, n, a, g, p = (
    /*$_*/
    i[10]("prizeAgenda") + ""
  ), m, f, _, h, b = (
    /*$_*/
    i[10]("tournamentTicket") + ""
  ), x, v, z, O = (
    /*$_*/
    i[10]("freeSpins") + ""
  ), j, K, M, U = (
    /*$_*/
    i[10]("bonusMoney") + ""
  ), G, ee, B, Z = (
    /*$_*/
    i[10]("loyaltyPoints") + ""
  ), Y, V, N, W = (
    /*$_*/
    i[10]("luckyWheel") + ""
  ), S, X, E, I = (
    /*$_*/
    i[10]("mysteryChest") + ""
  ), y, d, P, H = (
    /*$_*/
    i[10]("coinRoyale") + ""
  ), D, te, ie, ce = (
    /*$_*/
    i[10]("customRewards") + ""
  ), Q, F = (
    /*hasUrl*/
    i[8] && ke(i)
  );
  return {
    c() {
      e = u("div"), l = u("span"), t = C(o), r = w(), F && F.c(), n = w(), a = u("section"), g = u("span"), m = C(p), f = w(), _ = u("ul"), h = u("li"), x = C(b), v = w(), z = u("li"), j = C(O), K = w(), M = u("li"), G = C(U), ee = w(), B = u("li"), Y = C(Z), V = w(), N = u("li"), S = C(W), X = w(), E = u("li"), y = C(I), d = w(), P = u("li"), D = C(H), te = w(), ie = u("li"), Q = C(ce), c(l, "class", "coins-rules__description"), c(g, "class", "coins-rules__prize-title"), c(h, "class", "coins-rules__list__item"), c(z, "class", "coins-rules__list__item"), c(M, "class", "coins-rules__list__item"), c(B, "class", "coins-rules__list__item"), c(N, "class", "coins-rules__list__item"), c(E, "class", "coins-rules__list__item"), c(P, "class", "coins-rules__list__item"), c(ie, "class", "coins-rules__list__item"), c(_, "class", "coins-rules__list"), c(e, "class", "coins-rules");
    },
    m(R, A) {
      T(R, e, A), s(e, l), s(l, t), s(e, r), F && F.m(e, null), s(e, n), s(e, a), s(a, g), s(g, m), s(a, f), s(a, _), s(_, h), s(h, x), s(_, v), s(_, z), s(z, j), s(_, K), s(_, M), s(M, G), s(_, ee), s(_, B), s(B, Y), s(_, V), s(_, N), s(N, S), s(_, X), s(_, E), s(E, y), s(_, d), s(_, P), s(P, D), s(_, te), s(_, ie), s(ie, Q);
    },
    p(R, A) {
      A[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      R[10]("rulesDescription") + "") && k(t, o), /*hasUrl*/
      R[8] ? F ? F.p(R, A) : (F = ke(R), F.c(), F.m(e, n)) : F && (F.d(1), F = null), A[0] & /*$_*/
      1024 && p !== (p = /*$_*/
      R[10]("prizeAgenda") + "") && k(m, p), A[0] & /*$_*/
      1024 && b !== (b = /*$_*/
      R[10]("tournamentTicket") + "") && k(x, b), A[0] & /*$_*/
      1024 && O !== (O = /*$_*/
      R[10]("freeSpins") + "") && k(j, O), A[0] & /*$_*/
      1024 && U !== (U = /*$_*/
      R[10]("bonusMoney") + "") && k(G, U), A[0] & /*$_*/
      1024 && Z !== (Z = /*$_*/
      R[10]("loyaltyPoints") + "") && k(Y, Z), A[0] & /*$_*/
      1024 && W !== (W = /*$_*/
      R[10]("luckyWheel") + "") && k(S, W), A[0] & /*$_*/
      1024 && I !== (I = /*$_*/
      R[10]("mysteryChest") + "") && k(y, I), A[0] & /*$_*/
      1024 && H !== (H = /*$_*/
      R[10]("coinRoyale") + "") && k(D, H), A[0] & /*$_*/
      1024 && ce !== (ce = /*$_*/
      R[10]("customRewards") + "") && k(Q, ce);
    },
    d(R) {
      R && L(e), F && F.d();
    }
  };
}
function lt(i) {
  let e;
  function l(r, n) {
    return (
      /*coinRoyalesHistory*/
      r[9].length > 0 ? ct : at
    );
  }
  let o = l(i), t = o(i);
  return {
    c() {
      t.c(), e = de();
    },
    m(r, n) {
      t.m(r, n), T(r, e, n);
    },
    p(r, n) {
      o === (o = l(r)) && t ? t.p(r, n) : (t.d(1), t = o(r), t && (t.c(), t.m(e.parentNode, e)));
    },
    d(r) {
      r && L(e), t.d(r);
    }
  };
}
function nt(i) {
  let e;
  function l(r, n) {
    return (
      /*coinRoyales*/
      r[6].length > 0 ? ft : mt
    );
  }
  let o = l(i), t = o(i);
  return {
    c() {
      t.c(), e = de();
    },
    m(r, n) {
      t.m(r, n), T(r, e, n);
    },
    p(r, n) {
      o === (o = l(r)) && t ? t.p(r, n) : (t.d(1), t = o(r), t && (t.c(), t.m(e.parentNode, e)));
    },
    d(r) {
      r && L(e), t.d(r);
    }
  };
}
function rt(i) {
  let e, l = J([1, 2, 3]), o = [];
  for (let t = 0; t < 3; t += 1)
    o[t] = gt(et(i, l, t));
  return {
    c() {
      for (let t = 0; t < 3; t += 1)
        o[t].c();
      e = de();
    },
    m(t, r) {
      for (let n = 0; n < 3; n += 1)
        o[n] && o[n].m(t, r);
      T(t, e, r);
    },
    p: ne,
    d(t) {
      t && L(e), ae(o, t);
    }
  };
}
function st(i) {
  let e, l = J([1, 2, 3, 4, 5, 6, 7]), o = [];
  for (let t = 0; t < 7; t += 1)
    o[t] = ht(it(i, l, t));
  return {
    c() {
      for (let t = 0; t < 7; t += 1)
        o[t].c();
      e = de();
    },
    m(t, r) {
      for (let n = 0; n < 7; n += 1)
        o[n] && o[n].m(t, r);
      T(t, e, r);
    },
    p: ne,
    d(t) {
      t && L(e), ae(o, t);
    }
  };
}
function ke(i) {
  let e, l, o = (
    /*$_*/
    i[10]("terms") + ""
  ), t, r, n;
  return {
    c() {
      e = u("a"), l = u("span"), t = C(o), r = w(), n = u("span"), c(n, "class", "arrow-icon"), c(e, "class", "coins-rules__terms"), c(
        e,
        "href",
        /*terms*/
        i[0]
      ), c(e, "target", "_blank");
    },
    m(a, g) {
      T(a, e, g), s(e, l), s(l, t), s(e, r), s(e, n);
    },
    p(a, g) {
      g[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      a[10]("terms") + "") && k(t, o), g[0] & /*terms*/
      1 && c(
        e,
        "href",
        /*terms*/
        a[0]
      );
    },
    d(a) {
      a && L(e);
    }
  };
}
function at(i) {
  let e, l = (
    /*$_*/
    i[10]("noHistoryYet") + ""
  ), o;
  return {
    c() {
      e = u("div"), o = C(l), c(e, "class", "coins-empty");
    },
    m(t, r) {
      T(t, e, r), s(e, o);
    },
    p(t, r) {
      r[0] & /*$_*/
      1024 && l !== (l = /*$_*/
      t[10]("noHistoryYet") + "") && k(o, l);
    },
    d(t) {
      t && L(e);
    }
  };
}
function ct(i) {
  let e, l = J(
    /*coinRoyalesHistory*/
    i[9]
  ), o = [];
  for (let t = 0; t < l.length; t += 1)
    o[t] = Le(we(i, l, t));
  return {
    c() {
      e = u("div");
      for (let t = 0; t < o.length; t += 1)
        o[t].c();
      c(e, "class", "coins-history__wrap");
    },
    m(t, r) {
      T(t, e, r);
      for (let n = 0; n < o.length; n += 1)
        o[n] && o[n].m(e, null);
    },
    p(t, r) {
      if (r[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        l = J(
          /*coinRoyalesHistory*/
          t[9]
        );
        let n;
        for (n = 0; n < l.length; n += 1) {
          const a = we(t, l, n);
          o[n] ? o[n].p(a, r) : (o[n] = Le(a), o[n].c(), o[n].m(e, null));
        }
        for (; n < o.length; n += 1)
          o[n].d(1);
        o.length = l.length;
      }
    },
    d(t) {
      t && L(e), ae(o, t);
    }
  };
}
function dt(i) {
  let e, l;
  return {
    c() {
      e = u("img"), se(e.src, l = /*outcome*/
      i[46].assets) || c(e, "src", l), c(e, "alt", "");
    },
    m(o, t) {
      T(o, e, t);
    },
    p(o, t) {
      t[0] & /*coinRoyalesHistory*/
      512 && !se(e.src, l = /*outcome*/
      o[46].assets) && c(e, "src", l);
    },
    d(o) {
      o && L(e);
    }
  };
}
function ut(i) {
  let e = (
    /*outcome*/
    i[46].name + ""
  ), l;
  return {
    c() {
      l = C(e);
    },
    m(o, t) {
      T(o, l, t);
    },
    p(o, t) {
      t[0] & /*coinRoyalesHistory*/
      512 && e !== (e = /*outcome*/
      o[46].name + "") && k(l, e);
    },
    d(o) {
      o && L(l);
    }
  };
}
function Ce(i) {
  let e, l, o, t, r, n, a, g, p, m = (
    /*outcome*/
    i[46]?.date + ""
  ), f;
  function _(x, v) {
    return (
      /*outcome*/
      x[46]?.name ? ut : dt
    );
  }
  let h = _(i), b = h(i);
  return {
    c() {
      e = u("div"), l = u("span"), l.textContent = `${/*index*/
      i[48] + 1}`, o = w(), t = u("p"), b.c(), r = w(), n = u("img"), g = w(), p = u("span"), f = C(m), c(l, "class", "index"), se(n.src, a = /*outcome*/
      i[46]?.state ? he : ge) || c(n, "src", a), c(n, "alt", ""), c(t, "class", "name"), c(p, "class", "time"), c(e, "class", "coins-history__list__item");
    },
    m(x, v) {
      T(x, e, v), s(e, l), s(e, o), s(e, t), b.m(t, null), s(t, r), s(t, n), s(e, g), s(e, p), s(p, f);
    },
    p(x, v) {
      h === (h = _(x)) && b ? b.p(x, v) : (b.d(1), b = h(x), b && (b.c(), b.m(t, r))), v[0] & /*coinRoyalesHistory*/
      512 && !se(n.src, a = /*outcome*/
      x[46]?.state ? he : ge) && c(n, "src", a), v[0] & /*coinRoyalesHistory*/
      512 && m !== (m = /*outcome*/
      x[46]?.date + "") && k(f, m);
    },
    d(x) {
      x && L(e), b.d();
    }
  };
}
function ze(i) {
  let e, l = (
    /*$_*/
    i[10]("more") + ""
  ), o, t, r, n, a, g;
  function p() {
    return (
      /*click_handler_1*/
      i[24](
        /*history*/
        i[43]
      )
    );
  }
  return {
    c() {
      e = u("button"), o = C(l), t = w(), r = u("img"), se(r.src, n = Je) || c(r, "src", n), c(r, "alt", "More"), c(e, "class", "coins-history__more");
    },
    m(m, f) {
      T(m, e, f), s(e, o), s(e, t), s(e, r), a || (g = q(e, "click", p), a = !0);
    },
    p(m, f) {
      i = m, f[0] & /*$_*/
      1024 && l !== (l = /*$_*/
      i[10]("more") + "") && k(o, l);
    },
    d(m) {
      m && L(e), a = !1, g();
    }
  };
}
function Le(i) {
  let e, l, o = (
    /*history*/
    i[43].name + ""
  ), t, r, n, a, g = J(
    /*history*/
    i[43].outcomes.slice(
      0,
      /*history*/
      i[43].endPos
    )
  ), p = [];
  for (let f = 0; f < g.length; f += 1)
    p[f] = Ce(ve(i, g, f));
  let m = (
    /*history*/
    i[43].outcomes?.length > 3 && /*history*/
    i[43].endPos === 3 && ze(i)
  );
  return {
    c() {
      e = u("div"), l = u("div"), t = C(o), r = w();
      for (let f = 0; f < p.length; f += 1)
        p[f].c();
      n = w(), m && m.c(), a = w(), c(l, "class", "coins-history__title"), c(e, "class", "coins-history__list");
    },
    m(f, _) {
      T(f, e, _), s(e, l), s(l, t), s(e, r);
      for (let h = 0; h < p.length; h += 1)
        p[h] && p[h].m(e, null);
      s(e, n), m && m.m(e, null), s(e, a);
    },
    p(f, _) {
      if (_[0] & /*coinRoyalesHistory*/
      512 && o !== (o = /*history*/
      f[43].name + "") && k(t, o), _[0] & /*coinRoyalesHistory*/
      512) {
        g = J(
          /*history*/
          f[43].outcomes.slice(
            0,
            /*history*/
            f[43].endPos
          )
        );
        let h;
        for (h = 0; h < g.length; h += 1) {
          const b = ve(f, g, h);
          p[h] ? p[h].p(b, _) : (p[h] = Ce(b), p[h].c(), p[h].m(e, n));
        }
        for (; h < p.length; h += 1)
          p[h].d(1);
        p.length = g.length;
      }
      /*history*/
      f[43].outcomes?.length > 3 && /*history*/
      f[43].endPos === 3 ? m ? m.p(f, _) : (m = ze(f), m.c(), m.m(e, a)) : m && (m.d(1), m = null);
    },
    d(f) {
      f && L(e), ae(p, f), m && m.d();
    }
  };
}
function mt(i) {
  let e, l = (
    /*$_*/
    i[10]("noCoinYet") + ""
  ), o;
  return {
    c() {
      e = u("div"), o = C(l), c(e, "class", "coins-empty");
    },
    m(t, r) {
      T(t, e, r), s(e, o);
    },
    p(t, r) {
      r[0] & /*$_*/
      1024 && l !== (l = /*$_*/
      t[10]("noCoinYet") + "") && k(o, l);
    },
    d(t) {
      t && L(e);
    }
  };
}
function ft(i) {
  let e, l = J(
    /*coinRoyales*/
    i[6]
  ), o = [];
  for (let t = 0; t < l.length; t += 1)
    o[t] = Te(ye(i, l, t));
  return {
    c() {
      e = u("div");
      for (let t = 0; t < o.length; t += 1)
        o[t].c();
      c(e, "class", "coins-list");
    },
    m(t, r) {
      T(t, e, r);
      for (let n = 0; n < o.length; n += 1)
        o[n] && o[n].m(e, null);
    },
    p(t, r) {
      if (r[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        l = J(
          /*coinRoyales*/
          t[6]
        );
        let n;
        for (n = 0; n < l.length; n += 1) {
          const a = ye(t, l, n);
          o[n] ? o[n].p(a, r) : (o[n] = Te(a), o[n].c(), o[n].m(e, null));
        }
        for (; n < o.length; n += 1)
          o[n].d(1);
        o.length = l.length;
      }
    },
    d(t) {
      t && L(e), ae(o, t);
    }
  };
}
function Te(i) {
  let e, l = (
    /*coin*/
    (i[40].program.name[
      /*lang*/
      i[1]
    ] || /*coin*/
    i[40].program.name[oe.default]) + ""
  ), o, t, r, n, a, g, p, m = (
    /*coin*/
    i[40]?.current?.remainingTimes + ""
  ), f, _, h, b;
  function x() {
    return (
      /*click_handler*/
      i[23](
        /*coin*/
        i[40]
      )
    );
  }
  return {
    c() {
      e = u("button"), o = C(l), t = w(), r = u("div"), n = u("img"), g = w(), p = u("span"), f = C(m), _ = w(), se(n.src, a = qe) || c(n, "src", a), c(n, "alt", "Key"), c(r, "class", "coins-list__item__keys"), c(e, "class", "coins-list__item");
    },
    m(v, z) {
      T(v, e, z), s(e, o), s(e, t), s(e, r), s(r, n), s(r, g), s(r, p), s(p, f), s(e, _), h || (b = q(e, "click", x), h = !0);
    },
    p(v, z) {
      i = v, z[0] & /*coinRoyales, lang*/
      66 && l !== (l = /*coin*/
      (i[40].program.name[
        /*lang*/
        i[1]
      ] || /*coin*/
      i[40].program.name[oe.default]) + "") && k(o, l), z[0] & /*coinRoyales*/
      64 && m !== (m = /*coin*/
      i[40]?.current?.remainingTimes + "") && k(f, m);
    },
    d(v) {
      v && L(e), h = !1, b();
    }
  };
}
function pt(i) {
  let e;
  return {
    c() {
      e = u("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>', c(e, "class", "coins-history-loader-body");
    },
    m(l, o) {
      T(l, e, o);
    },
    p: ne,
    d(l) {
      l && L(e);
    }
  };
}
function gt(i) {
  let e, l, o, t, r = J([1, 2, 3]), n = [];
  for (let a = 0; a < 3; a += 1)
    n[a] = pt(tt(i, r, a));
  return {
    c() {
      e = u("div"), l = u("ui-skeleton"), o = w();
      for (let a = 0; a < 3; a += 1)
        n[a].c();
      t = w(), fe(l, "structure", "text"), fe(l, "height", "16px"), c(e, "class", "coins-history-loader");
    },
    m(a, g) {
      T(a, e, g), s(e, l), s(e, o);
      for (let p = 0; p < 3; p += 1)
        n[p] && n[p].m(e, null);
      s(e, t);
    },
    p: ne,
    d(a) {
      a && L(e), ae(n, a);
    }
  };
}
function ht(i) {
  let e;
  return {
    c() {
      e = u("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', c(e, "class", "coins-loader");
    },
    m(l, o) {
      T(l, e, o);
    },
    p: ne,
    d(l) {
      l && L(e);
    }
  };
}
function _t(i) {
  let e, l, o, t, r, n, a, g, p, m = (
    /*$_*/
    i[10]("headerTitle") + ""
  ), f, _, h, b, x, v, z, O = (
    /*$_*/
    i[10]("play") + ""
  ), j, K, M, U = (
    /*$_*/
    i[10]("history") + ""
  ), G, ee, B, Z = (
    /*$_*/
    i[10]("rules") + ""
  ), Y, V, N, W, S = (
    /*tooltip*/
    i[7] && xe(i)
  );
  function X(y, d) {
    return (
      /*coinsLoading*/
      y[5] ? st : (
        /*historyLoading*/
        y[4] ? rt : (
          /*activeTab*/
          y[3] === 1 ? nt : (
            /*activeTab*/
            y[3] === 2 ? lt : ot
          )
        )
      )
    );
  }
  let E = X(i), I = E(i);
  return {
    c() {
      e = u("div"), l = u("button"), o = w(), t = u("div"), S && S.c(), r = w(), n = u("div"), a = u("button"), g = w(), p = u("div"), f = C(m), _ = w(), h = u("button"), b = w(), x = u("div"), v = u("div"), z = u("button"), j = C(O), K = w(), M = u("button"), G = C(U), ee = w(), B = u("button"), Y = C(Z), V = w(), I.c(), c(l, "class", "overlay"), c(a, "class", "icon-button help"), c(p, "class", "coins-header__title"), c(h, "class", "icon-button close"), c(n, "class", "coins-header"), c(z, "data-index", "1"), c(z, "class", "coins-tabs__tab"), re(
        z,
        "active",
        /*activeTab*/
        i[3] === 1
      ), c(M, "data-index", "2"), c(M, "class", "coins-tabs__tab"), re(
        M,
        "active",
        /*activeTab*/
        i[3] === 2
      ), c(B, "data-index", "3"), c(B, "class", "coins-tabs__tab"), re(
        B,
        "active",
        /*activeTab*/
        i[3] === 3
      ), c(v, "class", "coins-tabs__container"), c(x, "class", "coins-tabs"), c(t, "class", "drawer " + /*mobileView*/
      (i[11] ? "mobile" : "")), c(e, "part", "CustomStylingContainer");
    },
    m(y, d) {
      T(y, e, d), s(e, l), s(e, o), s(e, t), S && S.m(t, null), s(t, r), s(t, n), s(n, a), s(n, g), s(n, p), s(p, f), s(n, _), s(n, h), s(t, b), s(t, x), s(x, v), s(v, z), s(z, j), s(v, K), s(v, M), s(M, G), s(v, ee), s(v, B), s(B, Y), s(t, V), I.m(t, null), i[25](e), N || (W = [
        q(
          l,
          "click",
          /*onClose*/
          i[12]
        ),
        q(
          a,
          "click",
          /*showHideToolip*/
          i[13]
        ),
        q(
          h,
          "click",
          /*onClose*/
          i[12]
        ),
        q(
          z,
          "click",
          /*handleTabChange*/
          i[15]
        ),
        q(
          M,
          "click",
          /*handleTabChange*/
          i[15]
        ),
        q(
          B,
          "click",
          /*handleTabChange*/
          i[15]
        )
      ], N = !0);
    },
    p(y, d) {
      /*tooltip*/
      y[7] ? S ? S.p(y, d) : (S = xe(y), S.c(), S.m(t, r)) : S && (S.d(1), S = null), d[0] & /*$_*/
      1024 && m !== (m = /*$_*/
      y[10]("headerTitle") + "") && k(f, m), d[0] & /*$_*/
      1024 && O !== (O = /*$_*/
      y[10]("play") + "") && k(j, O), d[0] & /*activeTab*/
      8 && re(
        z,
        "active",
        /*activeTab*/
        y[3] === 1
      ), d[0] & /*$_*/
      1024 && U !== (U = /*$_*/
      y[10]("history") + "") && k(G, U), d[0] & /*activeTab*/
      8 && re(
        M,
        "active",
        /*activeTab*/
        y[3] === 2
      ), d[0] & /*$_*/
      1024 && Z !== (Z = /*$_*/
      y[10]("rules") + "") && k(Y, Z), d[0] & /*activeTab*/
      8 && re(
        B,
        "active",
        /*activeTab*/
        y[3] === 3
      ), E === (E = X(y)) && I ? I.p(y, d) : (I.d(1), I = E(y), I && (I.c(), I.m(t, null)));
    },
    i: ne,
    o: ne,
    d(y) {
      y && L(e), S && S.d(), I.d(), i[25](null), N = !1, De(W);
    }
  };
}
function bt(i, e, l) {
  let o;
  Ae(i, Ye, (d) => l(10, o = d));
  let { terms: t = "" } = e, { lang: r = oe.en } = e, { endpoint: n = "" } = e, { session: a = "" } = e, { clientstyling: g = "" } = e, { clientstylingurl: p = "" } = e, { translationurl: m = "" } = e, { mbsource: f } = e, _ = window.navigator.userAgent, h = Ge(_), b, x = 1, v = !1, z = !1, O = [], j = !1, K = !1, M, U;
  const G = (d) => /(https?:\/\/[^\s]+)/g.test(d), ee = () => {
    pe({ type: "CloseCoinRoyaleDrawer" });
  }, B = () => {
    l(7, j = !j);
  }, Z = async () => {
    l(4, v = !0);
    const P = (await me.history(n, a))?.items?.map((D) => D.programID);
    let H = O.filter((D) => !P || P.includes(D.program.id)).map((D) => ({
      id: D.program.id,
      name: D.program.name[r] || D.program.name[oe.default],
      partitions: D.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (H.length > 0) {
      const D = H.map(async (te, ie) => {
        const Q = (await me.outcome(n, a, te?.id)).items || [];
        if (Q.length === 0) {
          H[ie] = null;
          return;
        }
        H[ie] = {
          ...te,
          endPos: Q.length > 3 ? 3 : Q.length,
          outcomes: Q.map((F) => {
            const R = te.partitions[F.draw.result.wheelOfFortunePartitionIndex]?.name || {}, A = te.partitions[F.draw.result.wheelOfFortunePartitionIndex]?.image1 || {}, Me = F.draw.state === "fulfilled", Se = We(new Date(F.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: R[r] || R[oe.default],
              state: Me,
              date: Se,
              assets: A[r] || A[oe.default]
            };
          })
        };
      });
      await Promise.all(D);
    }
    l(9, M = H.filter((D) => !!D)), l(4, v = !1);
  }, Y = async () => {
    l(5, z = !0);
    const d = await me.lotteries(n, a);
    l(6, O = d.filter((P) => Xe(P))), l(5, z = !1);
  }, V = (d) => {
    const P = M.findIndex((H) => H.id === d);
    l(9, M[P].endPos = M[P].outcomes?.length, M);
  }, N = async (d) => {
    l(3, x = +d.target.getAttribute("data-index")), x === 2 && await Z();
  }, W = () => {
    fetch(m).then((P) => P.json()).then((P) => {
      Object.keys(P).forEach((H) => {
        _e(H, P[H]);
      });
    });
  };
  Object.keys(be).forEach((d) => {
    _e(d, be[d]);
  });
  const S = () => {
    Qe(r);
  }, X = (d) => {
    pe({
      type: "OpenCoinRoyaleDetails",
      data: d
    });
  };
  Be(() => {
    l(8, K = G(t)), Y();
  });
  const E = (d) => {
    X(d);
  }, I = (d) => V(d.id);
  function y(d) {
    He[d ? "unshift" : "push"](() => {
      b = d, l(2, b);
    });
  }
  return i.$$set = (d) => {
    "terms" in d && l(0, t = d.terms), "lang" in d && l(1, r = d.lang), "endpoint" in d && l(17, n = d.endpoint), "session" in d && l(18, a = d.session), "clientstyling" in d && l(19, g = d.clientstyling), "clientstylingurl" in d && l(20, p = d.clientstylingurl), "translationurl" in d && l(21, m = d.translationurl), "mbsource" in d && l(22, f = d.mbsource);
  }, i.$$.update = () => {
    i.$$.dirty[0] & /*lang*/
    2 && r && S(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && g && b && Oe(b, g), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && p && b && je(b, p), i.$$.dirty[0] & /*translationurl*/
    2097152 && m && W(), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && f && b && Ue(b, `${f}.Style`, U);
  }, [
    t,
    r,
    b,
    x,
    v,
    z,
    O,
    j,
    K,
    M,
    o,
    h,
    ee,
    B,
    V,
    N,
    X,
    n,
    a,
    g,
    p,
    m,
    f,
    E,
    I,
    y
  ];
}
class wt extends Re {
  constructor(e) {
    super(), Fe(
      this,
      e,
      bt,
      _t,
      Pe,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      $e,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), $();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), $();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), $();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), $();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), $();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), $();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), $();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), $();
  }
}
Ze(wt, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
export {
  wt as default
};
