var wn = Object.defineProperty;
var $n = (s, i, t) => i in s ? wn(s, i, {
    enumerable: !0,
    configurable: !0,
    writable: !0,
    value: t
}) : s[i] = t;
var qe = (s, i, t) => ($n(s, typeof i != "symbol" ? i + "" : i, t),
t);
import {G as Y, B as x, r as B, N as w, I as C, J as a, P as f, K as q, M as K, aB as fe, aC as ve, $ as se, aA as j, ao as H, ap as Cn, C as xe, X as Et, a9 as kn, b5 as Tn, aL as Sn, b6 as st, b7 as at, aZ as An, b8 as Ln, b9 as kt, v as In, S as Bn, w as it, aj as Je, ba as Pn, a4 as Gt, ak as Dn, A as $e, a7 as Ft, aS as Xe, p as xn, q as _e, t as Nn, bb as We, z as ke, E as Mn, bc as Rn, an as N, O as k, H as Q, Q as L, au as F, aq as Pe, Z as ze, a_ as De, V as Ke, u as Tt, R as Ht, az as On, aw as vt, at as ye, aD as En, n as Vt, ax as qt, bd as Gn, be as Fn, bf as we, ay as Hn, bg as Wt, bh as Ue, bi as Vn, bj as qn, bk as Fe, W as mt, a3 as Wn, Y as jn, aX as Un, bl as zn, T as Xn} from "./common.modules-af1f85b9.js";
import {_ as X, N as Yn, az as Zn, cw as Jn, G as Kn, c as re, g as St, a1 as Qn, i as eo, y as to} from "./page-activity-ActivityDetail-09e806d3.js";
import {N as no} from "./page-home-other-97f62cb2.js";
import {E as jt} from "./page-activity-Bonus-78dc3749.js";
const oo = s => (fe("data-v-468343ea"),
s = s(),
ve(),
s)
  , so = {
    class: "FDP__C"
}
  , ao = {
    class: "FDP__C-text"
}
  , ro = {
    class: "FDP__C-list"
}
  , lo = {
    class: "num"
}
  , io = {
    class: "letter"
}
  , co = oo( () => a("div", {
    class: "FDP__C-symbol"
}, "=", -1))
  , uo = {
    class: "FDP__C-sum"
}
  , _o = Y({
    __name: "LotteryResult",
    props: {
        sumCount: {
            type: Number,
            default: 0
        },
        premium: {
            type: Array,
            default: ["0", "0", "0", "0", "0"]
        }
    },
    setup(s) {
        const i = s
          , t = x( () => [...i.premium])
          , r = B(["A", "B", "C", "D", "E"]);
        return (l, d) => (w(),
        C("div", so, [a("div", ao, f(l.$t("betResult")), 1), a("div", ro, [(w(!0),
        C(q, null, K(t.value, (c, b) => (w(),
        C("div", {
            key: b
        }, [a("div", lo, f(c), 1), a("div", io, f(r.value[b]), 1)]))), 128))]), co, a("div", uo, f(s.sumCount), 1)]))
    }
});
const po = X(_o, [["__scopeId", "data-v-468343ea"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/LotteryResult.vue"]])
  , Ut = s => (fe("data-v-c6036253"),
s = s(),
ve(),
s)
  , fo = {
    class: "FDTL__C"
}
  , vo = {
    class: "FDTL__C-l1"
}
  , mo = {
    class: "left"
}
  , go = Ut( () => a("svg", {
    xmlns: "http://www.w3.org/2000/svg",
    width: "32",
    height: "32",
    viewBox: "0 0 32 32",
    fill: "none"
}, [a("path", {
    d: "M8.5484 25.8291L8.54089 25.8366L8.53366 25.8444C7.97797 26.4409 7.47942 26.802 7.06631 26.9804C6.65908 27.1562 6.37147 27.1416 6.17169 27.0556C5.96753 26.9677 5.74252 26.7566 5.56263 26.3155C5.38195 25.8725 5.26602 25.2383 5.26602 24.4V9.38666C5.26602 6.69084 5.59509 5.24007 6.36083 4.42157C7.11326 3.6173 8.44055 3.26666 10.9593 3.26666H21.0393C23.5584 3.26666 24.8852 3.61741 25.6358 4.42118C26.3997 5.23909 26.726 6.68929 26.7193 9.38518V9.38666V24.3867C26.7193 25.2254 26.6041 25.8598 26.4242 26.3031C26.2451 26.7444 26.0211 26.9549 25.8182 27.0425C25.6198 27.1281 25.3328 27.1431 24.9244 26.967C24.5105 26.7884 24.0102 26.4271 23.4512 25.8305C22.7918 25.1231 21.9328 24.7739 21.0701 24.8209C20.2074 24.8679 19.3916 25.3082 18.8127 26.08L18.8123 26.0806L17.4676 27.8779C17.4673 27.8783 17.467 27.8787 17.4667 27.8791C17.0231 28.4644 16.4844 28.71 15.9927 28.71C15.501 28.71 14.9623 28.4644 14.5187 27.8791C14.5184 27.8787 14.5181 27.8783 14.5177 27.8779L13.1733 26.0808C13.1732 26.0807 13.1732 26.0806 13.1731 26.0806C12.0033 24.5156 9.90283 24.3999 8.55577 25.8217L8.5484 25.8291ZM8.43935 14.6667C8.43935 15.7314 9.30798 16.6 10.3727 16.6C11.4374 16.6 12.306 15.7314 12.306 14.6667C12.306 13.602 11.4374 12.7333 10.3727 12.7333C9.30798 12.7333 8.43935 13.602 8.43935 14.6667ZM8.43935 9.33333C8.43935 10.398 9.30798 11.2667 10.3727 11.2667C11.4374 11.2667 12.306 10.398 12.306 9.33333C12.306 8.26863 11.4374 7.4 10.3727 7.4C9.30798 7.4 8.43935 8.26863 8.43935 9.33333ZM14.306 16.2667H21.6393C22.5174 16.2667 23.2393 15.5447 23.2393 14.6667C23.2393 13.7886 22.5174 13.0667 21.6393 13.0667H14.306C13.428 13.0667 12.706 13.7886 12.706 14.6667C12.706 15.5447 13.428 16.2667 14.306 16.2667ZM14.306 10.9333H21.6393C22.5174 10.9333 23.2393 10.2114 23.2393 9.33333C23.2393 8.45529 22.5174 7.73333 21.6393 7.73333H14.306C13.428 7.73333 12.706 8.45529 12.706 9.33333C12.706 10.2114 13.428 10.9333 14.306 10.9333Z",
    stroke: "currentColor",
    "stroke-width": "1.2"
})], -1))
  , yo = {
    class: "FDTL__C-l2"
}
  , ho = {
    class: "FDTL__C-time"
}
  , bo = Ut( () => a("div", null, ":", -1))
  , wo = {
    class: "FDTL__C-l3"
}
  , $o = {
    class: "box"
}
  , Co = ["num"]
  , ko = Cn('<div class="slot-num" data-v-c6036253>1</div><div class="slot-num" data-v-c6036253>2</div><div class="slot-num" data-v-c6036253>0</div><div class="slot-num" data-v-c6036253>1</div><div class="slot-num" data-v-c6036253>2</div><div class="slot-num" data-v-c6036253>3</div><div class="slot-num" data-v-c6036253>4</div><div class="slot-num" data-v-c6036253>5</div><div class="slot-num" data-v-c6036253>6</div><div class="slot-num" data-v-c6036253>7</div><div class="slot-num" data-v-c6036253>8</div><div class="slot-num" data-v-c6036253>9</div><div class="slot-num" data-v-c6036253>0</div><div class="slot-num" data-v-c6036253>1</div><div class="slot-num" data-v-c6036253>2</div><div class="slot-num" data-v-c6036253>3</div><div class="slot-num" data-v-c6036253>4</div><div class="slot-num" data-v-c6036253>5</div><div class="slot-num" data-v-c6036253>6</div><div class="slot-num" data-v-c6036253>7</div><div class="slot-num" data-v-c6036253>8</div><div class="slot-num" data-v-c6036253>9</div><div class="slot-num" data-v-c6036253>0</div><div class="slot-num" data-v-c6036253>1</div><div class="slot-num" data-v-c6036253>2</div><div class="slot-num" data-v-c6036253>3</div><div class="slot-num" data-v-c6036253>4</div><div class="slot-num" data-v-c6036253>5</div><div class="slot-num" data-v-c6036253>6</div><div class="slot-num" data-v-c6036253>7</div><div class="slot-num" data-v-c6036253>8</div><div class="slot-num" data-v-c6036253>9</div>', 32)
  , To = ["num"]
  , So = Y({
    __name: "LotteryOpen",
    props: {
        issue: {
            type: String,
            default: ""
        },
        premium: {
            type: Array,
            default: () => [0, 0, 0, 0, 0]
        },
        countdownTime: {
            type: Array,
            default: ["0", "0", ":", "0", "0"]
        },
        handleRule: {
            type: Function,
            default: () => {}
        }
    },
    setup(s, {expose: i}) {
        const t = s
          , r = B([{
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }])
          , l = B(0);
        se( () => t.premium, p => {
            p && (r.value = b(p))
        }
        ),
        i({
            control: () => {
                l.value = 0
            }
            ,
            animationShow: () => {
                l.value = 1,
                setTimeout( () => {
                    l.value = 0
                }
                , 3e3)
            }
        });
        const b = p => {
            let y = [];
            for (let $ = 0; $ < p.length; $++) {
                let e = p[$]
                  , n = [];
                switch (e) {
                case 9:
                    n.push(1, 0, e);
                    break;
                case 0:
                    n.push(e + 8, e + 9, e);
                    break;
                default:
                    e < 2 ? n.push(1, 0, e) : n.push(e - 2, e - 1, e)
                }
                y.push({
                    arr: n
                })
            }
            return y
        }
        ;
        return (p, y) => (w(),
        C("div", fo, [a("div", vo, [a("div", mo, [a("div", null, f(p.$t("betIssue")), 1), a("div", {
            class: "FDTL__C-rule",
            onClick: y[0] || (y[0] = $ => s.handleRule())
        }, [go, j(" " + f(p.$t("winTrxIndicate")), 1)])]), a("div", null, f(p.$t("k3TimeLeftToBuy")), 1)]), a("div", yo, [a("div", null, f(s.issue), 1), a("div", ho, [a("div", null, f(s.countdownTime[0] || 0), 1), a("div", null, f(s.countdownTime[1] || 0), 1), bo, a("div", null, f(s.countdownTime[3] || 0), 1), a("div", null, f(s.countdownTime[4] || 0), 1)])]), a("div", wo, [a("div", $o, [(w(!0),
        C(q, null, K(r.value, ($, e) => (w(),
        C("div", {
            key: e,
            class: "slot-column"
        }, [a("div", {
            class: H(["slot-transform", "transform" + e, l.value == 1 && "slot-scroll"])
        }, [(w(!0),
        C(q, null, K($.arr, (n, o) => (w(),
        C("div", {
            class: "slot-num",
            num: $,
            key: "2" + o
        }, f(n), 9, Co))), 128)), ko, (w(!0),
        C(q, null, K($.arr, (n, o) => (w(),
        C("div", {
            class: "slot-num",
            num: $,
            key: "2" + o
        }, f(n), 9, To))), 128))], 2)]))), 128))])])]))
    }
});
const Ao = X(So, [["__scopeId", "data-v-c6036253"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/LotteryOpen.vue"]])
  , Lo = "en"
  , He = "ar_token"
  , Io = "ar_lang"
  , Bo = "ar_url"
  , Po = "__DATA__"
  , Do = "__APP__"
  , At = "ar_sound_bg"
  , Lt = "ar_sound_ef"
  , It = "ar_skin"
  , xo = "isOpenFollow";
function No(s, i, t={
    immediate: !1
}) {
    const r = B(!1);
    let l = null;
    const d = () => {
        const y = `
      let intervalId = null;
      self.onmessage = (e) => {
        const { command, interval } = e.data;

        switch (command) {
          case 'start':
            if (!intervalId) {
              intervalId = setInterval(() => postMessage('tick'), interval);
            }
            break;
          case 'pause':
            clearInterval(intervalId);
            intervalId = null;
            break;
        }
      };
    `
          , $ = new Blob([y],{
            type: "application/javascript"
        });
        return new Worker(URL.createObjectURL($))
    }
      , c = () => {
        l && (r.value = !0,
        l.postMessage({
            command: "start",
            interval: i
        }))
    }
      , b = () => {
        l && (r.value = !1,
        l.postMessage({
            command: "pause"
        }))
    }
      , p = () => {
        r.value || c()
    }
    ;
    return xe( () => {
        l = d(),
        l.onmessage = y => {
            y.data === "tick" && s()
        }
        ,
        t.immediate && c()
    }
    ),
    Et( () => {
        b(),
        l == null || l.terminate(),
        l = null
    }
    ),
    {
        start: c,
        pause: b,
        resume: p,
        isActive: r
    }
}
const Bt = "ping";
function rt(s) {
    return s === !0 ? {} : s
}
function r_(s, i={}) {
    const {onConnected: t, onDisconnected: r, onError: l, onMessage: d, immediate: c=!1, autoClose: b=!0, protocols: p=[]} = i
      , y = B(null)
      , $ = kn("CLOSED")
      , e = B()
      , n = Tn(s);
    let o, u, _ = !1, v = 0, m = [], S, h;
    const T = () => {
        if (m.length && e.value && $.value === "OPEN") {
            for (const I of m)
                e.value.send(I);
            m = []
        }
    }
      , A = () => {
        S != null && (clearTimeout(S),
        S = void 0)
    }
      , M = () => {
        clearTimeout(h),
        h = void 0
    }
      , P = (I=1e3, R) => {
        A(),
        !(!at && !kt || !e.value) && (_ = !0,
        M(),
        o == null || o(),
        e.value.close(I, R),
        e.value = void 0)
    }
      , g = (I, R=!0) => !e.value || $.value !== "OPEN" ? (R && m.push(I),
    !1) : (T(),
    e.value.send(I),
    !0)
      , D = () => {
        if (_ || typeof n.value > "u")
            return;
        let I = "";
        typeof s == "function" ? I = s() || "" : I = st(s);
        const R = new WebSocket(I,p);
        e.value = R,
        $.value = "CONNECTING",
        R.onopen = () => {
            $.value = "OPEN",
            v = 0,
            t == null || t(R),
            u == null || u(),
            T()
        }
        ,
        R.onclose = O => {
            if ($.value = "CLOSED",
            M(),
            o == null || o(),
            r == null || r(R, O),
            !_ && i.autoReconnect && (e.value == null || R === e.value)) {
                const {retries: V=-1, delay: te=1e3, onFailed: Z} = rt(i.autoReconnect);
                (typeof V == "function" ? V : () => typeof V == "number" && (V < 0 || v < V))(v) ? (v += 1,
                S = setTimeout(D, te)) : Z == null || Z()
            }
        }
        ,
        R.onerror = O => {
            l == null || l(R, O)
        }
        ,
        R.onmessage = O => {
            if (i.heartbeat) {
                M();
                const {message: V=Bt, responseMessage: te=V} = rt(i.heartbeat);
                if (O.data === st(te))
                    return
            }
            y.value = O.data,
            d == null || d(R, O)
        }
    }
    ;
    if (i.heartbeat) {
        const {message: I=Bt, interval: R=1e3, pongTimeout: O=1e3} = rt(i.heartbeat)
          , {pause: V, resume: te} = Sn( () => {
            g(st(I), !1),
            h == null && (h = setTimeout( () => {
                P(),
                _ = !1
            }
            , O))
        }
        , R, {
            immediate: !1
        });
        o = V,
        u = te
    }
    b && (at && An("beforeunload", () => P(), {
        passive: !0
    }),
    Ln(P));
    const E = () => {
        !at && !kt || (P(),
        _ = !1,
        v = 0,
        D())
    }
    ;
    return c && E(),
    {
        data: y,
        status: $,
        close: P,
        send: g,
        open: E,
        ws: e
    }
}
function gt() {
    const s = {
        set(t, r, l=-1) {
            l !== -1 && (l = Date.now() + l * 1e3),
            window.localStorage.setItem(t, JSON.stringify({
                value: r,
                expires: l
            }))
        },
        get(t) {
            const r = window.localStorage.getItem(t);
            if (r) {
                const l = JSON.parse(r);
                return l.expires !== -1 && l.expires < Date.now() ? (s.remove(t),
                null) : l.value
            }
            return null
        },
        remove(t) {
            window.localStorage.removeItem(t)
        }
    };
    return {
        localStore: s,
        cookie: {
            setCookie: function(t, r, l, d={
                sameSite: "None",
                secure: !0,
                domain: location.hostname
            }) {
                let c = "";
                if (l) {
                    const e = new Date;
                    e.setTime(e.getTime() + l * 24 * 60 * 60 * 1e3),
                    c = "; expires=" + e.toUTCString()
                }
                const b = d.path ? `; path=${d.path}` : "; path=/"
                  , p = d.domain ? `; domain=${d.domain}` : ""
                  , y = d.secure ? "; Secure" : ""
                  , $ = d.sameSite ? `; SameSite=${d.sameSite}` : "";
                try {
                    document.cookie = `${t}=${encodeURIComponent(r)}${c}${b}${p}${y}${$}`
                } catch (e) {
                    console.error("Failed to set cookie:", e)
                }
            },
            getCookie: function(t) {
                const r = t + "="
                  , l = document.cookie.split(";");
                for (let d = 0; d < l.length; d++) {
                    let c = l[d].trim();
                    if (c.indexOf(r) === 0)
                        return decodeURIComponent(c.substring(r.length, c.length))
                }
                return null
            },
            remove: function(t) {
                this.setCookie(t, "", -1)
            }
        }
    }
}
class Mo {
    constructor() {
        qe(this, "serviceTime", null);
        qe(this, "lastSyncTime");
        this.serviceTime = null,
        this.lastSyncTime = 0
    }
    getCurrentTime() {
        if (this.serviceTime === null || this.lastSyncTime === 0)
            return Date.now();
        const t = Date.now() - this.lastSyncTime;
        return this.serviceTime + t
    }
    syncTime(i) {
        this.serviceTime = i,
        this.lastSyncTime = Date.now()
    }
}
const ct = new Mo
  , Ro = s => {
    if (!s)
        return;
    const i = document.createElement("input");
    i.setAttribute("readonly", "readonly"),
    i.setAttribute("value", s.toLocaleString()),
    document.body.appendChild(i),
    i.select(),
    document.execCommand("Copy"),
    document.body.removeChild(i),
    In.showSuccessToast("copySuccess")
}
  , Oo = s => Bn.hash(s).toString().toUpperCase().slice(0, 32);
function zt(s) {
    if (s <= 0)
        return -1;
    const i = Math.pow(10, s);
    let t = Math.floor(Math.random() * i);
    return t < i / 10 && t !== 0 ? zt(s) : t
}
const Eo = s => s && typeof s == "object" && !Array.isArray(s)
  , Go = s => Array.isArray(s)
  , Pt = s => {
    s.random = zt(12);
    const i = JSON.parse(JSON.stringify(s))
      , r = Object.keys(i).filter(c => !(Eo(i[c]) || Go(i[c])));
    r.sort();
    const l = {}
      , d = ["signature"];
    return r.forEach(c => {
        i[c] !== null && i[c] !== "" && !d.includes(c) && (l[c] = i[c] === 0 ? 0 : i[c])
    }
    ),
    s.signature = Oo(JSON.stringify(l)),
    s.timestamp = Math.floor(Date.now() / 1e3),
    s
}
;
function lt(s) {
    if (s == null)
        return "";
    const i = s.toString().trim().split(" ");
    return i.length > 0 && (i[0] = i[0].charAt(0).toUpperCase() + i[0].slice(1).toLowerCase()),
    i.join(" ")
}
const ut = 1e3
  , dt = 60 * ut
  , _t = 60 * dt
  , Dt = 24 * _t;
function Fo(s) {
    const i = Math.floor(s / Dt)
      , t = Math.floor(s % Dt / _t)
      , r = Math.floor(s % _t / dt)
      , l = Math.floor(s % dt / ut)
      , d = Math.floor(s % ut);
    return {
        total: s,
        days: i,
        hours: t,
        minutes: r,
        seconds: l,
        milliseconds: d
    }
}
function Qe(s, i="YYYY-MM-DD HH:mm:ss") {
    if (!s)
        return "";
    const t = it(s).format(i);
    return t === "Invalid Date" ? s : t
}
function Ho(s) {
    let i = null;
    return () => (i === null && (i = s().catch(t => {
        throw i = null,
        t
    }
    )),
    i)
}
function xt(s) {
    return new Promise(i => setTimeout(i, s))
}
function l_(s, i) {
    return Math.floor(Math.random() * i) + s
}
const Vo = s => s >= 1e6 ? (s / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : s >= 1e3 ? (s / 1e3).toFixed(1).replace(/\.0$/, "") + "K" : s + ""
  , Xt = s => {
    const i = {};
    for (const t in s)
        typeof s[t] == "string" && !isNaN(Number(s[t])) ? i[t] = Number(s[t]) : typeof s[t] == "object" && s[t] !== null ? i[t] = Xt(s[t]) : i[t] = s[t];
    return i
}
;
var Yt = (s => (s.Small = "betSmall",
s.Big = "betBig",
s.Even = "betEven",
s.Odd = "betOdd",
s))(Yt || {})
  , Me = (s => (s.ReverseDirection = "against",
s.SameDirection = "follow",
s))(Me || {})
  , Ve = (s => (s.Json = "application/json",
s.FormURLEncoded = "application/x-www-form-urlencoded",
s.FormData = "multipart/form-data",
s))(Ve || {});
function Ie(s) {
    return typeof s == "function"
}
function qo(s) {
    return typeof s == "string"
}
function Wo(s, i) {
    let t;
    return function() {
        const r = arguments
          , l = this;
        t || (s.apply(l, r),
        t = !0,
        setTimeout( () => t = !1, i))
    }
}
function jo(s, i) {
    let t;
    return function() {
        const r = this
          , l = arguments;
        clearTimeout(t),
        t = setTimeout( () => s.apply(r, l), i)
    }
}
let Le = new Map;
const Nt = s => [s.method, s.url].join("&");
class Uo {
    addPending(i) {
        this.removePending(i);
        const t = Nt(i);
        i.cancelToken = i.cancelToken || new Je.CancelToken(r => {
            Le.has(t) || Le.set(t, r)
        }
        )
    }
    removeAllPending() {
        Le.forEach(i => {
            i && Ie(i) && i()
        }
        ),
        Le.clear()
    }
    removePending(i) {
        const t = Nt(i);
        if (!Le.has(t))
            return;
        const r = Le.get(t);
        r && r(t),
        Le.delete(t)
    }
    reset() {
        Le = new Map
    }
}
class Zt {
    constructor(i) {
        qe(this, "instance");
        qe(this, "options");
        this.options = i,
        this.instance = Je.create(i),
        this.setupInterceptors()
    }
    createAxios(i) {
        this.instance = Je.create(i)
    }
    getTransform() {
        const {transform: i} = this.options;
        return i
    }
    getAxios() {
        return this.instance
    }
    configAxios(i) {
        this.instance && this.createAxios(i)
    }
    setHeader(i) {
        this.instance && Object.assign(this.instance.defaults.headers, i)
    }
    setupInterceptors() {
        const i = this.getTransform();
        if (!i)
            return;
        const {requestInterceptors: t, requestInterceptorsCatch: r, responseInterceptors: l, responseInterceptorsCatch: d} = i
          , c = new Uo;
        this.instance.interceptors.request.use(b => {
            var $;
            const {ignoreCancelToken: p} = b.requestOptions;
            return (p ?? (($ = this.options.requestOptions) == null ? void 0 : $.ignoreCancelToken)) || c.addPending(b),
            t && Ie(t) && (b = t(b, this.options)),
            b
        }
        , void 0),
        r && Ie(r) && this.instance.interceptors.request.use(void 0, r),
        this.instance.interceptors.response.use(b => (b && c.removePending(b.config),
        l && Ie(l) && (b = l(b)),
        b), void 0),
        d && Ie(d) && this.instance.interceptors.response.use(void 0, b => d(b, this.instance))
    }
    supportFormData(i) {
        var l;
        const t = i.headers || this.options.headers;
        return ((t == null ? void 0 : t["Content-Type"]) || (t == null ? void 0 : t["content-type"])) !== Ve.FormURLEncoded || !Reflect.has(i, "data") || ((l = i.method) == null ? void 0 : l.toUpperCase()) === "GET" ? i : {
            ...i,
            data: Pn.stringify(i.data, {
                arrayFormat: "brackets"
            })
        }
    }
    getOptions(i) {
        return qo(i) ? {
            url: i
        } : i
    }
    get(i, t, r) {
        return this.request(Object.assign({
            method: "GET",
            params: t
        }, this.getOptions(i)), r)
    }
    post(i, t, r) {
        return this.request(Object.assign({
            method: "POST",
            data: t
        }, this.getOptions(i)), r)
    }
    put(i, t, r) {
        return this.request(Object.assign({
            method: "PUT",
            data: t
        }, this.getOptions(i)), r)
    }
    delete(i, t, r) {
        return this.request(Object.assign({
            method: "DELETE",
            data: t
        }, this.getOptions(i)), r)
    }
    patch(i, t, r) {
        return this.request(Object.assign({
            method: "PATCH",
            data: t
        }, this.getOptions(i)), r)
    }
    upload(i, t, r) {
        return this.request(Object.assign({
            method: "POST",
            headers: {
                "Content-Type": Ve.FormData
            },
            data: t
        }, this.getOptions(i)), r)
    }
    request(i, t) {
        const {requestOptions: r={}} = this.options;
        if (r.throttle !== void 0 && r.debounce !== void 0)
            throw new Error("throttle and debounce cannot be set at the same time");
        const l = r.throttle || {}
          , d = r.debounce || {};
        return r.throttle && r.throttle.delay !== 0 ? new Promise(c => {
            Wo( () => c(this.synthesisRequest(i, t)), l == null ? void 0 : l.delay)
        }
        ) : r.debounce && r.debounce.delay !== 0 ? new Promise(c => {
            jo( () => c(this.synthesisRequest(i, t)), d == null ? void 0 : d.delay)
        }
        ) : this.synthesisRequest(i, t)
    }
    async synthesisRequest(i, t) {
        let r = i;
        const l = this.getTransform()
          , {requestOptions: d={}} = this.options
          , c = {
            ...d,
            ...t
        }
          , {beforeRequestHook: b, requestCatchHook: p, transformRequestHook: y} = l || {};
        return b && Ie(b) && (r = b(r, c)),
        r.requestOptions = c,
        r = this.supportFormData(r),
        new Promise( ($, e) => {
            this.instance.request(d.retry ? i : r).then(n => {
                if (y && Ie(y)) {
                    try {
                        const o = y(n, c);
                        $(o)
                    } catch (o) {
                        e(o || new Error("请求错误!"))
                    }
                    return
                }
                $(n)
            }
            ).catch(n => {
                if (p && Ie(p)) {
                    e(p(n, c));
                    return
                }
                Je.isAxiosError(n),
                e(n)
            }
            )
        }
        )
    }
}
const {localStore: je} = gt()
  , Jt = tt()
  , pt = Yn.global.t
  , zo = "https://h5.ar-lottery06.com"
  , Xo = "https://draw.ar-lottery06.com"
  , Mt = s => {
    je.remove(He),
    Jt.error({
        message: `${pt(s ? "common.tokenExpired" : "common.token")}`,
        onClose() {
            Zn.push({
                path: "/"
            })
        }
    })
}
  , Kt = {
    transformRequestHook: (s, i) => {
        var p;
        const {isTransformResponse: t, isReturnNativeResponse: r} = i
          , l = (p = s.config.method) == null ? void 0 : p.toLowerCase();
        if (s.status === 204 && ["put", "patch", "delete"].includes(l || "") || r)
            return s;
        if (!t)
            return s.data;
        const {data: d} = s;
        if (!d)
            throw new Error("请求接口错误");
        const {code: c} = d;
        if (d && c === 0)
            return d.data;
        throw new Error(`请求接口错误, 错误码: ${c}`)
    }
    ,
    requestInterceptors: (s, i) => {
        var d;
        if ((d = s.url) != null && d.endsWith(".json"))
            return s.baseURL = je.get("ar_api_json") || Xo,
            s.url = s.url + "?ts=" + Date.now(),
            s;
        s.baseURL = `${je.get("ar_api") || zo}/api`;
        const t = localStorage.getItem("language") || "en"
          , l = {
            hd: "hi",
            md: "my",
            bra: "pt",
            my: "ms",
            pk: "ur",
            ph: "tl",
            bdt: "bn",
            bd: "bn"
        }[t] || t || "en";
        return s.method === "get" ? s.params = Pt(Object.assign(s.params || {}, {
            language: l
        })) : Pt(Object.assign(s.data || {}, {
            language: l
        })),
        s
    }
    ,
    beforeRequestHook: (s, i) => {
        var r;
        const {apiUrl: t} = i;
        return i.ts = Date.now(),
        s.url = `${t || s.baseURL || ""}${s.url}`,
        s.headers || (s.headers = {}),
        (r = s.url) != null && r.includes(".json") || (s.headers.Authorization = `Bearer ${je.get(He)}`),
        s
    }
    ,
    responseInterceptors: s => {
        var p;
        const {data: i, headers: t, config: r} = s
          , {requestOptions: l} = r
          , d = Date.now() - ((l == null ? void 0 : l.ts) || 0)
          , c = t.authorization || ""
          , b = i.code || s.status;
        return i.serviceTime && !((p = r.url) != null && p.includes(".json")) && ct.syncTime(i.serviceTime + d / 2),
        [401].includes(b) && Mt(t.hasOwnProperty("token-expired")),
        c && ![401].includes(i.code || s.status) && je.set(He, c.replace("Bearer ", "")),
        [0].includes(i.code) ? s.data.result = !0 : (s.data && (s.data.result = !1),
        s.data.msgCode && ![401].includes(b) && Jt.error(`${s.data.msgCode} ${pt(`common.code_${s.data.msgCode}`)}`)),
        s
    }
    ,
    responseInterceptorsCatch: async (s, i) => {
        var c;
        const {config: t, response: r={}} = s
          , {headers: l={}} = r;
        if ([401].includes(((c = r.data) == null ? void 0 : c.code) || r.status) && Mt(l.hasOwnProperty("token-expired")),
        !t || !t.requestOptions.retry || (t.retryCount = t.retryCount || 0,
        t.retryCount >= t.requestOptions.retry.count))
            return Promise.reject(s);
        t.retryCount += 1;
        const d = new Promise(b => {
            setTimeout( () => {
                b(t)
            }
            , t.requestOptions.retry.delay || 1)
        }
        );
        return t.headers = {
            ...t.headers,
            "Content-Type": Ve.Json
        },
        d.then(b => i.request(b))
    }
}
  , ee = new Zt({
    authenticationScheme: "Bearer",
    baseURL: "/api",
    timeout: 10 * 1e3,
    withCredentials: !1,
    headers: {
        "Content-Type": Ve.Json
    },
    transform: Kt
})
  , Qt = new Zt({
    authenticationScheme: "Bearer",
    timeout: 10 * 1e3,
    withCredentials: !1,
    headers: {
        "Content-Type": Ve.Json
    },
    transform: Kt,
    requestOptions: {
        retry: !1
    }
});
function Yo(s) {
    return ee.get("/Lottery/GetGameInfo", s)
}
function Zo({lotteryCode: s, gameCode: i}) {
    return Qt.get(`/${s}/${i}.json`)
}
function Jo(s) {
    return ee.get("/Lottery/GetBetLimit", {
        gameCode: s
    })
}
function Ko(s) {
    return ee.get("/Lottery/GetGameIntroduce", {
        gameCode: s
    })
}
function Qo(s) {
    return ee.get("/Lottery/GetRecordPage", s)
}
function en(s) {
    return ee.get("/Lottery/GetHistoryIssuePage", s)
}
function Rt({lotteryCode: s, gameCode: i}) {
    return Qt.get(`/${s}/${i}/GetHistoryIssuePage.json`)
}
function es(s) {
    return ee.get("/Lottery/GetTrendStatistics", s)
}
function ts(s) {
    return ee.get("/Lottery/GetWinLossResult", s)
}
function ns() {
    return ee.get("/Lottery/GetGameList")
}
function os(s) {
    return ee.get("/Lottery/GetFollowPlanList", s)
}
function ss(s) {
    return ee.post("/Lottery/AddFollowRecord", s)
}
function as(s) {
    return ee.post("/Lottery/StopFollowRecord", s)
}
function rs(s) {
    return ee.get("/Lottery/GetHistoryFollowRecordPageList", s)
}
function ls(s) {
    return ee.get("/Lottery/GetFollowRule", s)
}
function is(s) {
    return ee.get("/Lottery/GetFollowRecord", s)
}
function i_(s) {
    return ee.get("/Lottery/GetWingoLiveUrl", s)
}
function cs(s) {
    return ee.get("/Lottery/GetDragonList", s)
}
function us(s) {
    return ee.post("/Lottery/WinGoBet", s)
}
function ds(s) {
    return ee.post("/Lottery/VideoWinGoBet", s)
}
function _s(s) {
    return ee.post("/Lottery/K3Bet", s)
}
function yt(s) {
    return ee.post("/Lottery/D5Bet", s)
}
function ps(s) {
    return ee.post("/Lottery/TrxWinGoBet", s)
}
function fs(s) {
    return ee.post("/Lottery/MotoRaceBet", s)
}
function vs() {
    return ee.get("/Lottery/GetUserInfo")
}
function ms() {
    return ee.get("/Lottery/GetBalance")
}
const tn = Symbol("GLOBAL_INJECT")
  , {localStore: Be} = gt()
  , gs = Gt("stop")
  , ht = Dn( () => {
    const s = window[Do] || {}
      , i = window[Po] || {}
      , t = !1
      , r = s.Lang || Be.get(Io)
      , l = s.RedirectUrl
      , d = $e({
        user: i == null ? void 0 : i.info,
        balance: 0,
        token: Be.get(He) || s.Token,
        gameInfo: i == null ? void 0 : i.game,
        gameCode: "",
        lotteryCode: "",
        lang: r || Lo,
        gameList: [],
        redirectUrl: l || Be.get(Bo) || "",
        skin: s.Skin || Be.get(It),
        skincolor: s.SkinColor
    })
      , c = B(0)
      , b = x( () => d.user)
      , p = x( () => d.balance || 0)
      , y = x( () => d.gameInfo || {})
      , $ = x( () => d.gameCode)
      , e = x( () => d.lotteryCode)
      , n = x( () => d.lang)
      , o = x( () => d.redirectUrl)
      , u = x( () => ct.getCurrentTime())
      , _ = x( () => d.gameList || [])
      , v = x( () => d.skin)
      , m = x( () => d.skincolor)
      , S = x( () => {
        let g = [];
        return d.gameList.forEach(E => {
            g.push(...E.gameList)
        }
        ),
        g.find(E => E.gameCode === $.value)
    }
    );
    function h(g) {
        d.user = g,
        d.skin = g.skin,
        d.skincolor = g.skinColor,
        Be.set(xo, g.isOpenFollow === !0),
        Be.set(It, g.skin)
    }
    function T(g) {
        d.balance = g
    }
    const A = (g=null) => {
        typeof g == "number" ? c.value = g : typeof c.value == "number" && (c.value += 1)
    }
    ;
    return {
        skin: v,
        skincolor: m,
        triggerTimer: gs,
        synchronizer: ct,
        redirectUrl: o,
        lang: n,
        gameList: _,
        currentGame: S,
        prerender: t,
        serviceTime: u,
        user: b,
        balance: p,
        state: d,
        gameCode: $,
        lotteryCode: e,
        gameInfo: y,
        visibility: c,
        visibilitychange: () => {
            document.visibilityState === "visible" ? A() : A(0)
        }
        ,
        setUser: h,
        setBalance: T,
        setLotteryCode: g => {
            const D = g == null ? void 0 : g.split("_")[0];
            d.gameCode = g,
            d.lotteryCode = D
        }
    }
}
)
  , ys = () => {
    const s = Gt("bet")
      , {lotteryCode: i, skin: t, skincolor: r, redirectUrl: l, balance: d, gameList: c, currentGame: b, prerender: p, user: y, gameInfo: $, gameCode: e, state: n, setUser: o, setBalance: u, setLotteryCode: _} = ht()
      , v = x( () => n.token || Be.get(He) || "")
      , m = B(!1)
      , S = B(p)
      , h = x( () => {
        var O;
        return (O = y.value) == null ? void 0 : O.sysCurrency
    }
    )
      , T = async O => {
        O.state !== 2 && O.gameCode !== e.value && (_(O.gameCode),
        await xt(600),
        s.emit("bets"))
    }
      , A = T
      , M = async () => {
        try {
            if (!Be.get(He))
                return;
            const O = await vs();
            O.result && o(O.data)
        } catch {}
    }
      , P = async () => {
        if (!m.value)
            try {
                m.value = !0;
                const {result: O, data: V, serviceTime: te} = await ms();
                return O && u((V == null ? void 0 : V.balance) || 0),
                {
                    serviceTime: te
                }
            } catch {
                return {
                    serviceTime: 0
                }
            } finally {
                m.value = !1
            }
    }
      , g = async () => {
        if (n.gameCode)
            try {
                const O = await Yo({
                    gameCode: n.gameCode
                });
                O.result && (n.gameInfo = O.data)
            } catch {}
    }
      , D = async (O=!1) => {
        if (!(n.gameList.length && !O))
            try {
                const V = await ns();
                if (V.result) {
                    const te = V.data.filter(Z => {
                        var le;
                        return ((le = Z.gameList) == null ? void 0 : le.length) > 0
                    }
                    ).sort( (Z, le) => le.sort - Z.sort);
                    te.forEach(Z => {
                        var le;
                        Z.gameList = (le = Z.gameList) == null ? void 0 : le.sort( (ge, pe) => pe.sort - ge.sort)
                    }
                    ),
                    n.gameList = te
                }
            } catch {}
    }
      , E = async () => {
        await xt(2e3),
        s.emit("bets")
    }
      , I = async () => {
        S.value = !0,
        await Promise.all([M(), g()]),
        S.value = !1,
        D(),
        setTimeout( () => {
            P()
        }
        , 1e3)
    }
    ;
    return {
        prerender: p,
        balance: d,
        user: y,
        token: v,
        gameInfo: $,
        balanceLoading: m,
        dollarSign: h,
        gameCode: e,
        globalLoading: S,
        gameList: c,
        currentGame: b,
        skin: t,
        skincolor: r,
        lotteryCode: i,
        trigger: s,
        useProvide: () => {
            Ft(tn, {
                balance: d,
                user: y,
                token: v,
                gameInfo: $,
                balanceLoading: m,
                dollarSign: h,
                gameCode: e,
                globalLoading: S,
                gameList: c,
                currentGame: b,
                redirectUrl: l,
                trigger: s,
                skin: t,
                skincolor: r,
                updateBalance: P,
                getGameList: D,
                onBetTrigger: E,
                getUserInfo: M,
                getWebData: I,
                getGameInfo: g,
                onLotteryJump: T,
                changeSelectGame: A,
                lotteryCode: i
            })
        }
        ,
        updateBalance: P,
        getUserInfo: M,
        getWebData: I,
        getGameInfo: g,
        onLotteryJump: T,
        getGameList: D,
        changeSelectGame: A,
        setLotteryCode: _
    }
}
  , Te = () => Xe(tn, {});
xn({
    duration: 3500,
    zIndex: 4e3
});
function tt() {
    const s = _e
      , i = s
      , t = s;
    return {
        text: s,
        success: i,
        error: t,
        loading: Nn,
        fail: t
    }
}
$e({
    list: [{
        name: "English",
        code: "en",
        icon: "https://dapp.pmhash.com/_nuxt/img/en.fa78245.png"
    }, {
        name: "中文",
        code: "zh",
        icon: "https://dapp.pmhash.com/_nuxt/img/zh-CN.0cb069f.png"
    }],
    currentIndex: 0,
    dialog: !1
});
var et = {};
/*!
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */
(function(s) {
    (function() {
        var i = function() {
            this.init()
        };
        i.prototype = {
            init: function() {
                var e = this || t;
                return e._counter = 1e3,
                e._html5AudioPool = [],
                e.html5PoolSize = 10,
                e._codecs = {},
                e._howls = [],
                e._muted = !1,
                e._volume = 1,
                e._canPlayEvent = "canplaythrough",
                e._navigator = typeof window < "u" && window.navigator ? window.navigator : null,
                e.masterGain = null,
                e.noAudio = !1,
                e.usingWebAudio = !0,
                e.autoSuspend = !0,
                e.ctx = null,
                e.autoUnlock = !0,
                e._setup(),
                e
            },
            volume: function(e) {
                var n = this || t;
                if (e = parseFloat(e),
                n.ctx || $(),
                typeof e < "u" && e >= 0 && e <= 1) {
                    if (n._volume = e,
                    n._muted)
                        return n;
                    n.usingWebAudio && n.masterGain.gain.setValueAtTime(e, t.ctx.currentTime);
                    for (var o = 0; o < n._howls.length; o++)
                        if (!n._howls[o]._webAudio)
                            for (var u = n._howls[o]._getSoundIds(), _ = 0; _ < u.length; _++) {
                                var v = n._howls[o]._soundById(u[_]);
                                v && v._node && (v._node.volume = v._volume * e)
                            }
                    return n
                }
                return n._volume
            },
            mute: function(e) {
                var n = this || t;
                n.ctx || $(),
                n._muted = e,
                n.usingWebAudio && n.masterGain.gain.setValueAtTime(e ? 0 : n._volume, t.ctx.currentTime);
                for (var o = 0; o < n._howls.length; o++)
                    if (!n._howls[o]._webAudio)
                        for (var u = n._howls[o]._getSoundIds(), _ = 0; _ < u.length; _++) {
                            var v = n._howls[o]._soundById(u[_]);
                            v && v._node && (v._node.muted = e ? !0 : v._muted)
                        }
                return n
            },
            stop: function() {
                for (var e = this || t, n = 0; n < e._howls.length; n++)
                    e._howls[n].stop();
                return e
            },
            unload: function() {
                for (var e = this || t, n = e._howls.length - 1; n >= 0; n--)
                    e._howls[n].unload();
                return e.usingWebAudio && e.ctx && typeof e.ctx.close < "u" && (e.ctx.close(),
                e.ctx = null,
                $()),
                e
            },
            codecs: function(e) {
                return (this || t)._codecs[e.replace(/^x-/, "")]
            },
            _setup: function() {
                var e = this || t;
                if (e.state = e.ctx && e.ctx.state || "suspended",
                e._autoSuspend(),
                !e.usingWebAudio)
                    if (typeof Audio < "u")
                        try {
                            var n = new Audio;
                            typeof n.oncanplaythrough > "u" && (e._canPlayEvent = "canplay")
                        } catch {
                            e.noAudio = !0
                        }
                    else
                        e.noAudio = !0;
                try {
                    var n = new Audio;
                    n.muted && (e.noAudio = !0)
                } catch {}
                return e.noAudio || e._setupCodecs(),
                e
            },
            _setupCodecs: function() {
                var e = this || t
                  , n = null;
                try {
                    n = typeof Audio < "u" ? new Audio : null
                } catch {
                    return e
                }
                if (!n || typeof n.canPlayType != "function")
                    return e;
                var o = n.canPlayType("audio/mpeg;").replace(/^no$/, "")
                  , u = e._navigator ? e._navigator.userAgent : ""
                  , _ = u.match(/OPR\/(\d+)/g)
                  , v = _ && parseInt(_[0].split("/")[1], 10) < 33
                  , m = u.indexOf("Safari") !== -1 && u.indexOf("Chrome") === -1
                  , S = u.match(/Version\/(.*?) /)
                  , h = m && S && parseInt(S[1], 10) < 15;
                return e._codecs = {
                    mp3: !!(!v && (o || n.canPlayType("audio/mp3;").replace(/^no$/, ""))),
                    mpeg: !!o,
                    opus: !!n.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""),
                    ogg: !!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
                    oga: !!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
                    wav: !!(n.canPlayType('audio/wav; codecs="1"') || n.canPlayType("audio/wav")).replace(/^no$/, ""),
                    aac: !!n.canPlayType("audio/aac;").replace(/^no$/, ""),
                    caf: !!n.canPlayType("audio/x-caf;").replace(/^no$/, ""),
                    m4a: !!(n.canPlayType("audio/x-m4a;") || n.canPlayType("audio/m4a;") || n.canPlayType("audio/aac;")).replace(/^no$/, ""),
                    m4b: !!(n.canPlayType("audio/x-m4b;") || n.canPlayType("audio/m4b;") || n.canPlayType("audio/aac;")).replace(/^no$/, ""),
                    mp4: !!(n.canPlayType("audio/x-mp4;") || n.canPlayType("audio/mp4;") || n.canPlayType("audio/aac;")).replace(/^no$/, ""),
                    weba: !!(!h && n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
                    webm: !!(!h && n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "")),
                    dolby: !!n.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/, ""),
                    flac: !!(n.canPlayType("audio/x-flac;") || n.canPlayType("audio/flac;")).replace(/^no$/, "")
                },
                e
            },
            _unlockAudio: function() {
                var e = this || t;
                if (!(e._audioUnlocked || !e.ctx)) {
                    e._audioUnlocked = !1,
                    e.autoUnlock = !1,
                    !e._mobileUnloaded && e.ctx.sampleRate !== 44100 && (e._mobileUnloaded = !0,
                    e.unload()),
                    e._scratchBuffer = e.ctx.createBuffer(1, 1, 22050);
                    var n = function(o) {
                        for (; e._html5AudioPool.length < e.html5PoolSize; )
                            try {
                                var u = new Audio;
                                u._unlocked = !0,
                                e._releaseHtml5Audio(u)
                            } catch {
                                e.noAudio = !0;
                                break
                            }
                        for (var _ = 0; _ < e._howls.length; _++)
                            if (!e._howls[_]._webAudio)
                                for (var v = e._howls[_]._getSoundIds(), m = 0; m < v.length; m++) {
                                    var S = e._howls[_]._soundById(v[m]);
                                    S && S._node && !S._node._unlocked && (S._node._unlocked = !0,
                                    S._node.load())
                                }
                        e._autoResume();
                        var h = e.ctx.createBufferSource();
                        h.buffer = e._scratchBuffer,
                        h.connect(e.ctx.destination),
                        typeof h.start > "u" ? h.noteOn(0) : h.start(0),
                        typeof e.ctx.resume == "function" && e.ctx.resume(),
                        h.onended = function() {
                            h.disconnect(0),
                            e._audioUnlocked = !0,
                            document.removeEventListener("touchstart", n, !0),
                            document.removeEventListener("touchend", n, !0),
                            document.removeEventListener("click", n, !0),
                            document.removeEventListener("keydown", n, !0);
                            for (var T = 0; T < e._howls.length; T++)
                                e._howls[T]._emit("unlock")
                        }
                    };
                    return document.addEventListener("touchstart", n, !0),
                    document.addEventListener("touchend", n, !0),
                    document.addEventListener("click", n, !0),
                    document.addEventListener("keydown", n, !0),
                    e
                }
            },
            _obtainHtml5Audio: function() {
                var e = this || t;
                if (e._html5AudioPool.length)
                    return e._html5AudioPool.pop();
                var n = new Audio().play();
                return n && typeof Promise < "u" && (n instanceof Promise || typeof n.then == "function") && n.catch(function() {
                    console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")
                }),
                new Audio
            },
            _releaseHtml5Audio: function(e) {
                var n = this || t;
                return e._unlocked && n._html5AudioPool.push(e),
                n
            },
            _autoSuspend: function() {
                var e = this;
                if (!(!e.autoSuspend || !e.ctx || typeof e.ctx.suspend > "u" || !t.usingWebAudio)) {
                    for (var n = 0; n < e._howls.length; n++)
                        if (e._howls[n]._webAudio) {
                            for (var o = 0; o < e._howls[n]._sounds.length; o++)
                                if (!e._howls[n]._sounds[o]._paused)
                                    return e
                        }
                    return e._suspendTimer && clearTimeout(e._suspendTimer),
                    e._suspendTimer = setTimeout(function() {
                        if (e.autoSuspend) {
                            e._suspendTimer = null,
                            e.state = "suspending";
                            var u = function() {
                                e.state = "suspended",
                                e._resumeAfterSuspend && (delete e._resumeAfterSuspend,
                                e._autoResume())
                            };
                            e.ctx.suspend().then(u, u)
                        }
                    }, 3e4),
                    e
                }
            },
            _autoResume: function() {
                var e = this;
                if (!(!e.ctx || typeof e.ctx.resume > "u" || !t.usingWebAudio))
                    return e.state === "running" && e.ctx.state !== "interrupted" && e._suspendTimer ? (clearTimeout(e._suspendTimer),
                    e._suspendTimer = null) : e.state === "suspended" || e.state === "running" && e.ctx.state === "interrupted" ? (e.ctx.resume().then(function() {
                        e.state = "running";
                        for (var n = 0; n < e._howls.length; n++)
                            e._howls[n]._emit("resume")
                    }),
                    e._suspendTimer && (clearTimeout(e._suspendTimer),
                    e._suspendTimer = null)) : e.state === "suspending" && (e._resumeAfterSuspend = !0),
                    e
            }
        };
        var t = new i
          , r = function(e) {
            var n = this;
            if (!e.src || e.src.length === 0) {
                console.error("An array of source files must be passed with any new Howl.");
                return
            }
            n.init(e)
        };
        r.prototype = {
            init: function(e) {
                var n = this;
                return t.ctx || $(),
                n._autoplay = e.autoplay || !1,
                n._format = typeof e.format != "string" ? e.format : [e.format],
                n._html5 = e.html5 || !1,
                n._muted = e.mute || !1,
                n._loop = e.loop || !1,
                n._pool = e.pool || 5,
                n._preload = typeof e.preload == "boolean" || e.preload === "metadata" ? e.preload : !0,
                n._rate = e.rate || 1,
                n._sprite = e.sprite || {},
                n._src = typeof e.src != "string" ? e.src : [e.src],
                n._volume = e.volume !== void 0 ? e.volume : 1,
                n._xhr = {
                    method: e.xhr && e.xhr.method ? e.xhr.method : "GET",
                    headers: e.xhr && e.xhr.headers ? e.xhr.headers : null,
                    withCredentials: e.xhr && e.xhr.withCredentials ? e.xhr.withCredentials : !1
                },
                n._duration = 0,
                n._state = "unloaded",
                n._sounds = [],
                n._endTimers = {},
                n._queue = [],
                n._playLock = !1,
                n._onend = e.onend ? [{
                    fn: e.onend
                }] : [],
                n._onfade = e.onfade ? [{
                    fn: e.onfade
                }] : [],
                n._onload = e.onload ? [{
                    fn: e.onload
                }] : [],
                n._onloaderror = e.onloaderror ? [{
                    fn: e.onloaderror
                }] : [],
                n._onplayerror = e.onplayerror ? [{
                    fn: e.onplayerror
                }] : [],
                n._onpause = e.onpause ? [{
                    fn: e.onpause
                }] : [],
                n._onplay = e.onplay ? [{
                    fn: e.onplay
                }] : [],
                n._onstop = e.onstop ? [{
                    fn: e.onstop
                }] : [],
                n._onmute = e.onmute ? [{
                    fn: e.onmute
                }] : [],
                n._onvolume = e.onvolume ? [{
                    fn: e.onvolume
                }] : [],
                n._onrate = e.onrate ? [{
                    fn: e.onrate
                }] : [],
                n._onseek = e.onseek ? [{
                    fn: e.onseek
                }] : [],
                n._onunlock = e.onunlock ? [{
                    fn: e.onunlock
                }] : [],
                n._onresume = [],
                n._webAudio = t.usingWebAudio && !n._html5,
                typeof t.ctx < "u" && t.ctx && t.autoUnlock && t._unlockAudio(),
                t._howls.push(n),
                n._autoplay && n._queue.push({
                    event: "play",
                    action: function() {
                        n.play()
                    }
                }),
                n._preload && n._preload !== "none" && n.load(),
                n
            },
            load: function() {
                var e = this
                  , n = null;
                if (t.noAudio) {
                    e._emit("loaderror", null, "No audio support.");
                    return
                }
                typeof e._src == "string" && (e._src = [e._src]);
                for (var o = 0; o < e._src.length; o++) {
                    var u, _;
                    if (e._format && e._format[o])
                        u = e._format[o];
                    else {
                        if (_ = e._src[o],
                        typeof _ != "string") {
                            e._emit("loaderror", null, "Non-string found in selected audio sources - ignoring.");
                            continue
                        }
                        u = /^data:audio\/([^;,]+);/i.exec(_),
                        u || (u = /\.([^.]+)$/.exec(_.split("?", 1)[0])),
                        u && (u = u[1].toLowerCase())
                    }
                    if (u || console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),
                    u && t.codecs(u)) {
                        n = e._src[o];
                        break
                    }
                }
                if (!n) {
                    e._emit("loaderror", null, "No codec support for selected audio sources.");
                    return
                }
                return e._src = n,
                e._state = "loading",
                window.location.protocol === "https:" && n.slice(0, 5) === "http:" && (e._html5 = !0,
                e._webAudio = !1),
                new l(e),
                e._webAudio && c(e),
                e
            },
            play: function(e, n) {
                var o = this
                  , u = null;
                if (typeof e == "number")
                    u = e,
                    e = null;
                else {
                    if (typeof e == "string" && o._state === "loaded" && !o._sprite[e])
                        return null;
                    if (typeof e > "u" && (e = "__default",
                    !o._playLock)) {
                        for (var _ = 0, v = 0; v < o._sounds.length; v++)
                            o._sounds[v]._paused && !o._sounds[v]._ended && (_++,
                            u = o._sounds[v]._id);
                        _ === 1 ? e = null : u = null
                    }
                }
                var m = u ? o._soundById(u) : o._inactiveSound();
                if (!m)
                    return null;
                if (u && !e && (e = m._sprite || "__default"),
                o._state !== "loaded") {
                    m._sprite = e,
                    m._ended = !1;
                    var S = m._id;
                    return o._queue.push({
                        event: "play",
                        action: function() {
                            o.play(S)
                        }
                    }),
                    S
                }
                if (u && !m._paused)
                    return n || o._loadQueue("play"),
                    m._id;
                o._webAudio && t._autoResume();
                var h = Math.max(0, m._seek > 0 ? m._seek : o._sprite[e][0] / 1e3)
                  , T = Math.max(0, (o._sprite[e][0] + o._sprite[e][1]) / 1e3 - h)
                  , A = T * 1e3 / Math.abs(m._rate)
                  , M = o._sprite[e][0] / 1e3
                  , P = (o._sprite[e][0] + o._sprite[e][1]) / 1e3;
                m._sprite = e,
                m._ended = !1;
                var g = function() {
                    m._paused = !1,
                    m._seek = h,
                    m._start = M,
                    m._stop = P,
                    m._loop = !!(m._loop || o._sprite[e][2])
                };
                if (h >= P) {
                    o._ended(m);
                    return
                }
                var D = m._node;
                if (o._webAudio) {
                    var E = function() {
                        o._playLock = !1,
                        g(),
                        o._refreshBuffer(m);
                        var V = m._muted || o._muted ? 0 : m._volume;
                        D.gain.setValueAtTime(V, t.ctx.currentTime),
                        m._playStart = t.ctx.currentTime,
                        typeof D.bufferSource.start > "u" ? m._loop ? D.bufferSource.noteGrainOn(0, h, 86400) : D.bufferSource.noteGrainOn(0, h, T) : m._loop ? D.bufferSource.start(0, h, 86400) : D.bufferSource.start(0, h, T),
                        A !== 1 / 0 && (o._endTimers[m._id] = setTimeout(o._ended.bind(o, m), A)),
                        n || setTimeout(function() {
                            o._emit("play", m._id),
                            o._loadQueue()
                        }, 0)
                    };
                    t.state === "running" && t.ctx.state !== "interrupted" ? E() : (o._playLock = !0,
                    o.once("resume", E),
                    o._clearTimer(m._id))
                } else {
                    var I = function() {
                        D.currentTime = h,
                        D.muted = m._muted || o._muted || t._muted || D.muted,
                        D.volume = m._volume * t.volume(),
                        D.playbackRate = m._rate;
                        try {
                            var V = D.play();
                            if (V && typeof Promise < "u" && (V instanceof Promise || typeof V.then == "function") ? (o._playLock = !0,
                            g(),
                            V.then(function() {
                                o._playLock = !1,
                                D._unlocked = !0,
                                n ? o._loadQueue() : o._emit("play", m._id)
                            }).catch(function() {
                                o._playLock = !1,
                                o._emit("playerror", m._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),
                                m._ended = !0,
                                m._paused = !0
                            })) : n || (o._playLock = !1,
                            g(),
                            o._emit("play", m._id)),
                            D.playbackRate = m._rate,
                            D.paused) {
                                o._emit("playerror", m._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
                                return
                            }
                            e !== "__default" || m._loop ? o._endTimers[m._id] = setTimeout(o._ended.bind(o, m), A) : (o._endTimers[m._id] = function() {
                                o._ended(m),
                                D.removeEventListener("ended", o._endTimers[m._id], !1)
                            }
                            ,
                            D.addEventListener("ended", o._endTimers[m._id], !1))
                        } catch (te) {
                            o._emit("playerror", m._id, te)
                        }
                    };
                    D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src = o._src,
                    D.load());
                    var R = window && window.ejecta || !D.readyState && t._navigator.isCocoonJS;
                    if (D.readyState >= 3 || R)
                        I();
                    else {
                        o._playLock = !0,
                        o._state = "loading";
                        var O = function() {
                            o._state = "loaded",
                            I(),
                            D.removeEventListener(t._canPlayEvent, O, !1)
                        };
                        D.addEventListener(t._canPlayEvent, O, !1),
                        o._clearTimer(m._id)
                    }
                }
                return m._id
            },
            pause: function(e) {
                var n = this;
                if (n._state !== "loaded" || n._playLock)
                    return n._queue.push({
                        event: "pause",
                        action: function() {
                            n.pause(e)
                        }
                    }),
                    n;
                for (var o = n._getSoundIds(e), u = 0; u < o.length; u++) {
                    n._clearTimer(o[u]);
                    var _ = n._soundById(o[u]);
                    if (_ && !_._paused && (_._seek = n.seek(o[u]),
                    _._rateSeek = 0,
                    _._paused = !0,
                    n._stopFade(o[u]),
                    _._node))
                        if (n._webAudio) {
                            if (!_._node.bufferSource)
                                continue;
                            typeof _._node.bufferSource.stop > "u" ? _._node.bufferSource.noteOff(0) : _._node.bufferSource.stop(0),
                            n._cleanBuffer(_._node)
                        } else
                            (!isNaN(_._node.duration) || _._node.duration === 1 / 0) && _._node.pause();
                    arguments[1] || n._emit("pause", _ ? _._id : null)
                }
                return n
            },
            stop: function(e, n) {
                var o = this;
                if (o._state !== "loaded" || o._playLock)
                    return o._queue.push({
                        event: "stop",
                        action: function() {
                            o.stop(e)
                        }
                    }),
                    o;
                for (var u = o._getSoundIds(e), _ = 0; _ < u.length; _++) {
                    o._clearTimer(u[_]);
                    var v = o._soundById(u[_]);
                    v && (v._seek = v._start || 0,
                    v._rateSeek = 0,
                    v._paused = !0,
                    v._ended = !0,
                    o._stopFade(u[_]),
                    v._node && (o._webAudio ? v._node.bufferSource && (typeof v._node.bufferSource.stop > "u" ? v._node.bufferSource.noteOff(0) : v._node.bufferSource.stop(0),
                    o._cleanBuffer(v._node)) : (!isNaN(v._node.duration) || v._node.duration === 1 / 0) && (v._node.currentTime = v._start || 0,
                    v._node.pause(),
                    v._node.duration === 1 / 0 && o._clearSound(v._node))),
                    n || o._emit("stop", v._id))
                }
                return o
            },
            mute: function(e, n) {
                var o = this;
                if (o._state !== "loaded" || o._playLock)
                    return o._queue.push({
                        event: "mute",
                        action: function() {
                            o.mute(e, n)
                        }
                    }),
                    o;
                if (typeof n > "u")
                    if (typeof e == "boolean")
                        o._muted = e;
                    else
                        return o._muted;
                for (var u = o._getSoundIds(n), _ = 0; _ < u.length; _++) {
                    var v = o._soundById(u[_]);
                    v && (v._muted = e,
                    v._interval && o._stopFade(v._id),
                    o._webAudio && v._node ? v._node.gain.setValueAtTime(e ? 0 : v._volume, t.ctx.currentTime) : v._node && (v._node.muted = t._muted ? !0 : e),
                    o._emit("mute", v._id))
                }
                return o
            },
            volume: function() {
                var e = this, n = arguments, o, u;
                if (n.length === 0)
                    return e._volume;
                if (n.length === 1 || n.length === 2 && typeof n[1] > "u") {
                    var _ = e._getSoundIds()
                      , v = _.indexOf(n[0]);
                    v >= 0 ? u = parseInt(n[0], 10) : o = parseFloat(n[0])
                } else
                    n.length >= 2 && (o = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                var m;
                if (typeof o < "u" && o >= 0 && o <= 1) {
                    if (e._state !== "loaded" || e._playLock)
                        return e._queue.push({
                            event: "volume",
                            action: function() {
                                e.volume.apply(e, n)
                            }
                        }),
                        e;
                    typeof u > "u" && (e._volume = o),
                    u = e._getSoundIds(u);
                    for (var S = 0; S < u.length; S++)
                        m = e._soundById(u[S]),
                        m && (m._volume = o,
                        n[2] || e._stopFade(u[S]),
                        e._webAudio && m._node && !m._muted ? m._node.gain.setValueAtTime(o, t.ctx.currentTime) : m._node && !m._muted && (m._node.volume = o * t.volume()),
                        e._emit("volume", m._id))
                } else
                    return m = u ? e._soundById(u) : e._sounds[0],
                    m ? m._volume : 0;
                return e
            },
            fade: function(e, n, o, u) {
                var _ = this;
                if (_._state !== "loaded" || _._playLock)
                    return _._queue.push({
                        event: "fade",
                        action: function() {
                            _.fade(e, n, o, u)
                        }
                    }),
                    _;
                e = Math.min(Math.max(0, parseFloat(e)), 1),
                n = Math.min(Math.max(0, parseFloat(n)), 1),
                o = parseFloat(o),
                _.volume(e, u);
                for (var v = _._getSoundIds(u), m = 0; m < v.length; m++) {
                    var S = _._soundById(v[m]);
                    if (S) {
                        if (u || _._stopFade(v[m]),
                        _._webAudio && !S._muted) {
                            var h = t.ctx.currentTime
                              , T = h + o / 1e3;
                            S._volume = e,
                            S._node.gain.setValueAtTime(e, h),
                            S._node.gain.linearRampToValueAtTime(n, T)
                        }
                        _._startFadeInterval(S, e, n, o, v[m], typeof u > "u")
                    }
                }
                return _
            },
            _startFadeInterval: function(e, n, o, u, _, v) {
                var m = this
                  , S = n
                  , h = o - n
                  , T = Math.abs(h / .01)
                  , A = Math.max(4, T > 0 ? u / T : u)
                  , M = Date.now();
                e._fadeTo = o,
                e._interval = setInterval(function() {
                    var P = (Date.now() - M) / u;
                    M = Date.now(),
                    S += h * P,
                    S = Math.round(S * 100) / 100,
                    h < 0 ? S = Math.max(o, S) : S = Math.min(o, S),
                    m._webAudio ? e._volume = S : m.volume(S, e._id, !0),
                    v && (m._volume = S),
                    (o < n && S <= o || o > n && S >= o) && (clearInterval(e._interval),
                    e._interval = null,
                    e._fadeTo = null,
                    m.volume(o, e._id),
                    m._emit("fade", e._id))
                }, A)
            },
            _stopFade: function(e) {
                var n = this
                  , o = n._soundById(e);
                return o && o._interval && (n._webAudio && o._node.gain.cancelScheduledValues(t.ctx.currentTime),
                clearInterval(o._interval),
                o._interval = null,
                n.volume(o._fadeTo, e),
                o._fadeTo = null,
                n._emit("fade", e)),
                n
            },
            loop: function() {
                var e = this, n = arguments, o, u, _;
                if (n.length === 0)
                    return e._loop;
                if (n.length === 1)
                    if (typeof n[0] == "boolean")
                        o = n[0],
                        e._loop = o;
                    else
                        return _ = e._soundById(parseInt(n[0], 10)),
                        _ ? _._loop : !1;
                else
                    n.length === 2 && (o = n[0],
                    u = parseInt(n[1], 10));
                for (var v = e._getSoundIds(u), m = 0; m < v.length; m++)
                    _ = e._soundById(v[m]),
                    _ && (_._loop = o,
                    e._webAudio && _._node && _._node.bufferSource && (_._node.bufferSource.loop = o,
                    o && (_._node.bufferSource.loopStart = _._start || 0,
                    _._node.bufferSource.loopEnd = _._stop,
                    e.playing(v[m]) && (e.pause(v[m], !0),
                    e.play(v[m], !0)))));
                return e
            },
            rate: function() {
                var e = this, n = arguments, o, u;
                if (n.length === 0)
                    u = e._sounds[0]._id;
                else if (n.length === 1) {
                    var _ = e._getSoundIds()
                      , v = _.indexOf(n[0]);
                    v >= 0 ? u = parseInt(n[0], 10) : o = parseFloat(n[0])
                } else
                    n.length === 2 && (o = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                var m;
                if (typeof o == "number") {
                    if (e._state !== "loaded" || e._playLock)
                        return e._queue.push({
                            event: "rate",
                            action: function() {
                                e.rate.apply(e, n)
                            }
                        }),
                        e;
                    typeof u > "u" && (e._rate = o),
                    u = e._getSoundIds(u);
                    for (var S = 0; S < u.length; S++)
                        if (m = e._soundById(u[S]),
                        m) {
                            e.playing(u[S]) && (m._rateSeek = e.seek(u[S]),
                            m._playStart = e._webAudio ? t.ctx.currentTime : m._playStart),
                            m._rate = o,
                            e._webAudio && m._node && m._node.bufferSource ? m._node.bufferSource.playbackRate.setValueAtTime(o, t.ctx.currentTime) : m._node && (m._node.playbackRate = o);
                            var h = e.seek(u[S])
                              , T = (e._sprite[m._sprite][0] + e._sprite[m._sprite][1]) / 1e3 - h
                              , A = T * 1e3 / Math.abs(m._rate);
                            (e._endTimers[u[S]] || !m._paused) && (e._clearTimer(u[S]),
                            e._endTimers[u[S]] = setTimeout(e._ended.bind(e, m), A)),
                            e._emit("rate", m._id)
                        }
                } else
                    return m = e._soundById(u),
                    m ? m._rate : e._rate;
                return e
            },
            seek: function() {
                var e = this, n = arguments, o, u;
                if (n.length === 0)
                    e._sounds.length && (u = e._sounds[0]._id);
                else if (n.length === 1) {
                    var _ = e._getSoundIds()
                      , v = _.indexOf(n[0]);
                    v >= 0 ? u = parseInt(n[0], 10) : e._sounds.length && (u = e._sounds[0]._id,
                    o = parseFloat(n[0]))
                } else
                    n.length === 2 && (o = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                if (typeof u > "u")
                    return 0;
                if (typeof o == "number" && (e._state !== "loaded" || e._playLock))
                    return e._queue.push({
                        event: "seek",
                        action: function() {
                            e.seek.apply(e, n)
                        }
                    }),
                    e;
                var m = e._soundById(u);
                if (m)
                    if (typeof o == "number" && o >= 0) {
                        var S = e.playing(u);
                        S && e.pause(u, !0),
                        m._seek = o,
                        m._ended = !1,
                        e._clearTimer(u),
                        !e._webAudio && m._node && !isNaN(m._node.duration) && (m._node.currentTime = o);
                        var h = function() {
                            S && e.play(u, !0),
                            e._emit("seek", u)
                        };
                        if (S && !e._webAudio) {
                            var T = function() {
                                e._playLock ? setTimeout(T, 0) : h()
                            };
                            setTimeout(T, 0)
                        } else
                            h()
                    } else if (e._webAudio) {
                        var A = e.playing(u) ? t.ctx.currentTime - m._playStart : 0
                          , M = m._rateSeek ? m._rateSeek - m._seek : 0;
                        return m._seek + (M + A * Math.abs(m._rate))
                    } else
                        return m._node.currentTime;
                return e
            },
            playing: function(e) {
                var n = this;
                if (typeof e == "number") {
                    var o = n._soundById(e);
                    return o ? !o._paused : !1
                }
                for (var u = 0; u < n._sounds.length; u++)
                    if (!n._sounds[u]._paused)
                        return !0;
                return !1
            },
            duration: function(e) {
                var n = this
                  , o = n._duration
                  , u = n._soundById(e);
                return u && (o = n._sprite[u._sprite][1] / 1e3),
                o
            },
            state: function() {
                return this._state
            },
            unload: function() {
                for (var e = this, n = e._sounds, o = 0; o < n.length; o++)
                    n[o]._paused || e.stop(n[o]._id),
                    e._webAudio || (e._clearSound(n[o]._node),
                    n[o]._node.removeEventListener("error", n[o]._errorFn, !1),
                    n[o]._node.removeEventListener(t._canPlayEvent, n[o]._loadFn, !1),
                    n[o]._node.removeEventListener("ended", n[o]._endFn, !1),
                    t._releaseHtml5Audio(n[o]._node)),
                    delete n[o]._node,
                    e._clearTimer(n[o]._id);
                var u = t._howls.indexOf(e);
                u >= 0 && t._howls.splice(u, 1);
                var _ = !0;
                for (o = 0; o < t._howls.length; o++)
                    if (t._howls[o]._src === e._src || e._src.indexOf(t._howls[o]._src) >= 0) {
                        _ = !1;
                        break
                    }
                return d && _ && delete d[e._src],
                t.noAudio = !1,
                e._state = "unloaded",
                e._sounds = [],
                e = null,
                null
            },
            on: function(e, n, o, u) {
                var _ = this
                  , v = _["_on" + e];
                return typeof n == "function" && v.push(u ? {
                    id: o,
                    fn: n,
                    once: u
                } : {
                    id: o,
                    fn: n
                }),
                _
            },
            off: function(e, n, o) {
                var u = this
                  , _ = u["_on" + e]
                  , v = 0;
                if (typeof n == "number" && (o = n,
                n = null),
                n || o)
                    for (v = 0; v < _.length; v++) {
                        var m = o === _[v].id;
                        if (n === _[v].fn && m || !n && m) {
                            _.splice(v, 1);
                            break
                        }
                    }
                else if (e)
                    u["_on" + e] = [];
                else {
                    var S = Object.keys(u);
                    for (v = 0; v < S.length; v++)
                        S[v].indexOf("_on") === 0 && Array.isArray(u[S[v]]) && (u[S[v]] = [])
                }
                return u
            },
            once: function(e, n, o) {
                var u = this;
                return u.on(e, n, o, 1),
                u
            },
            _emit: function(e, n, o) {
                for (var u = this, _ = u["_on" + e], v = _.length - 1; v >= 0; v--)
                    (!_[v].id || _[v].id === n || e === "load") && (setTimeout((function(m) {
                        m.call(this, n, o)
                    }
                    ).bind(u, _[v].fn), 0),
                    _[v].once && u.off(e, _[v].fn, _[v].id));
                return u._loadQueue(e),
                u
            },
            _loadQueue: function(e) {
                var n = this;
                if (n._queue.length > 0) {
                    var o = n._queue[0];
                    o.event === e && (n._queue.shift(),
                    n._loadQueue()),
                    e || o.action()
                }
                return n
            },
            _ended: function(e) {
                var n = this
                  , o = e._sprite;
                if (!n._webAudio && e._node && !e._node.paused && !e._node.ended && e._node.currentTime < e._stop)
                    return setTimeout(n._ended.bind(n, e), 100),
                    n;
                var u = !!(e._loop || n._sprite[o][2]);
                if (n._emit("end", e._id),
                !n._webAudio && u && n.stop(e._id, !0).play(e._id),
                n._webAudio && u) {
                    n._emit("play", e._id),
                    e._seek = e._start || 0,
                    e._rateSeek = 0,
                    e._playStart = t.ctx.currentTime;
                    var _ = (e._stop - e._start) * 1e3 / Math.abs(e._rate);
                    n._endTimers[e._id] = setTimeout(n._ended.bind(n, e), _)
                }
                return n._webAudio && !u && (e._paused = !0,
                e._ended = !0,
                e._seek = e._start || 0,
                e._rateSeek = 0,
                n._clearTimer(e._id),
                n._cleanBuffer(e._node),
                t._autoSuspend()),
                !n._webAudio && !u && n.stop(e._id, !0),
                n
            },
            _clearTimer: function(e) {
                var n = this;
                if (n._endTimers[e]) {
                    if (typeof n._endTimers[e] != "function")
                        clearTimeout(n._endTimers[e]);
                    else {
                        var o = n._soundById(e);
                        o && o._node && o._node.removeEventListener("ended", n._endTimers[e], !1)
                    }
                    delete n._endTimers[e]
                }
                return n
            },
            _soundById: function(e) {
                for (var n = this, o = 0; o < n._sounds.length; o++)
                    if (e === n._sounds[o]._id)
                        return n._sounds[o];
                return null
            },
            _inactiveSound: function() {
                var e = this;
                e._drain();
                for (var n = 0; n < e._sounds.length; n++)
                    if (e._sounds[n]._ended)
                        return e._sounds[n].reset();
                return new l(e)
            },
            _drain: function() {
                var e = this
                  , n = e._pool
                  , o = 0
                  , u = 0;
                if (!(e._sounds.length < n)) {
                    for (u = 0; u < e._sounds.length; u++)
                        e._sounds[u]._ended && o++;
                    for (u = e._sounds.length - 1; u >= 0; u--) {
                        if (o <= n)
                            return;
                        e._sounds[u]._ended && (e._webAudio && e._sounds[u]._node && e._sounds[u]._node.disconnect(0),
                        e._sounds.splice(u, 1),
                        o--)
                    }
                }
            },
            _getSoundIds: function(e) {
                var n = this;
                if (typeof e > "u") {
                    for (var o = [], u = 0; u < n._sounds.length; u++)
                        o.push(n._sounds[u]._id);
                    return o
                } else
                    return [e]
            },
            _refreshBuffer: function(e) {
                var n = this;
                return e._node.bufferSource = t.ctx.createBufferSource(),
                e._node.bufferSource.buffer = d[n._src],
                e._panner ? e._node.bufferSource.connect(e._panner) : e._node.bufferSource.connect(e._node),
                e._node.bufferSource.loop = e._loop,
                e._loop && (e._node.bufferSource.loopStart = e._start || 0,
                e._node.bufferSource.loopEnd = e._stop || 0),
                e._node.bufferSource.playbackRate.setValueAtTime(e._rate, t.ctx.currentTime),
                n
            },
            _cleanBuffer: function(e) {
                var n = this
                  , o = t._navigator && t._navigator.vendor.indexOf("Apple") >= 0;
                if (!e.bufferSource)
                    return n;
                if (t._scratchBuffer && e.bufferSource && (e.bufferSource.onended = null,
                e.bufferSource.disconnect(0),
                o))
                    try {
                        e.bufferSource.buffer = t._scratchBuffer
                    } catch {}
                return e.bufferSource = null,
                n
            },
            _clearSound: function(e) {
                var n = /MSIE |Trident\//.test(t._navigator && t._navigator.userAgent);
                n || (e.src = "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")
            }
        };
        var l = function(e) {
            this._parent = e,
            this.init()
        };
        l.prototype = {
            init: function() {
                var e = this
                  , n = e._parent;
                return e._muted = n._muted,
                e._loop = n._loop,
                e._volume = n._volume,
                e._rate = n._rate,
                e._seek = 0,
                e._paused = !0,
                e._ended = !0,
                e._sprite = "__default",
                e._id = ++t._counter,
                n._sounds.push(e),
                e.create(),
                e
            },
            create: function() {
                var e = this
                  , n = e._parent
                  , o = t._muted || e._muted || e._parent._muted ? 0 : e._volume;
                return n._webAudio ? (e._node = typeof t.ctx.createGain > "u" ? t.ctx.createGainNode() : t.ctx.createGain(),
                e._node.gain.setValueAtTime(o, t.ctx.currentTime),
                e._node.paused = !0,
                e._node.connect(t.masterGain)) : t.noAudio || (e._node = t._obtainHtml5Audio(),
                e._errorFn = e._errorListener.bind(e),
                e._node.addEventListener("error", e._errorFn, !1),
                e._loadFn = e._loadListener.bind(e),
                e._node.addEventListener(t._canPlayEvent, e._loadFn, !1),
                e._endFn = e._endListener.bind(e),
                e._node.addEventListener("ended", e._endFn, !1),
                e._node.src = n._src,
                e._node.preload = n._preload === !0 ? "auto" : n._preload,
                e._node.volume = o * t.volume(),
                e._node.load()),
                e
            },
            reset: function() {
                var e = this
                  , n = e._parent;
                return e._muted = n._muted,
                e._loop = n._loop,
                e._volume = n._volume,
                e._rate = n._rate,
                e._seek = 0,
                e._rateSeek = 0,
                e._paused = !0,
                e._ended = !0,
                e._sprite = "__default",
                e._id = ++t._counter,
                e
            },
            _errorListener: function() {
                var e = this;
                e._parent._emit("loaderror", e._id, e._node.error ? e._node.error.code : 0),
                e._node.removeEventListener("error", e._errorFn, !1)
            },
            _loadListener: function() {
                var e = this
                  , n = e._parent;
                n._duration = Math.ceil(e._node.duration * 10) / 10,
                Object.keys(n._sprite).length === 0 && (n._sprite = {
                    __default: [0, n._duration * 1e3]
                }),
                n._state !== "loaded" && (n._state = "loaded",
                n._emit("load"),
                n._loadQueue()),
                e._node.removeEventListener(t._canPlayEvent, e._loadFn, !1)
            },
            _endListener: function() {
                var e = this
                  , n = e._parent;
                n._duration === 1 / 0 && (n._duration = Math.ceil(e._node.duration * 10) / 10,
                n._sprite.__default[1] === 1 / 0 && (n._sprite.__default[1] = n._duration * 1e3),
                n._ended(e)),
                e._node.removeEventListener("ended", e._endFn, !1)
            }
        };
        var d = {}
          , c = function(e) {
            var n = e._src;
            if (d[n]) {
                e._duration = d[n].duration,
                y(e);
                return
            }
            if (/^data:[^;]+;base64,/.test(n)) {
                for (var o = atob(n.split(",")[1]), u = new Uint8Array(o.length), _ = 0; _ < o.length; ++_)
                    u[_] = o.charCodeAt(_);
                p(u.buffer, e)
            } else {
                var v = new XMLHttpRequest;
                v.open(e._xhr.method, n, !0),
                v.withCredentials = e._xhr.withCredentials,
                v.responseType = "arraybuffer",
                e._xhr.headers && Object.keys(e._xhr.headers).forEach(function(m) {
                    v.setRequestHeader(m, e._xhr.headers[m])
                }),
                v.onload = function() {
                    var m = (v.status + "")[0];
                    if (m !== "0" && m !== "2" && m !== "3") {
                        e._emit("loaderror", null, "Failed loading audio file with status: " + v.status + ".");
                        return
                    }
                    p(v.response, e)
                }
                ,
                v.onerror = function() {
                    e._webAudio && (e._html5 = !0,
                    e._webAudio = !1,
                    e._sounds = [],
                    delete d[n],
                    e.load())
                }
                ,
                b(v)
            }
        }
          , b = function(e) {
            try {
                e.send()
            } catch {
                e.onerror()
            }
        }
          , p = function(e, n) {
            var o = function() {
                n._emit("loaderror", null, "Decoding audio data failed.")
            }
              , u = function(_) {
                _ && n._sounds.length > 0 ? (d[n._src] = _,
                y(n, _)) : o()
            };
            typeof Promise < "u" && t.ctx.decodeAudioData.length === 1 ? t.ctx.decodeAudioData(e).then(u).catch(o) : t.ctx.decodeAudioData(e, u, o)
        }
          , y = function(e, n) {
            n && !e._duration && (e._duration = n.duration),
            Object.keys(e._sprite).length === 0 && (e._sprite = {
                __default: [0, e._duration * 1e3]
            }),
            e._state !== "loaded" && (e._state = "loaded",
            e._emit("load"),
            e._loadQueue())
        }
          , $ = function() {
            if (t.usingWebAudio) {
                try {
                    typeof AudioContext < "u" ? t.ctx = new AudioContext : typeof webkitAudioContext < "u" ? t.ctx = new webkitAudioContext : t.usingWebAudio = !1
                } catch {
                    t.usingWebAudio = !1
                }
                t.ctx || (t.usingWebAudio = !1);
                var e = /iP(hone|od|ad)/.test(t._navigator && t._navigator.platform)
                  , n = t._navigator && t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)
                  , o = n ? parseInt(n[1], 10) : null;
                if (e && o && o < 9) {
                    var u = /safari/.test(t._navigator && t._navigator.userAgent.toLowerCase());
                    t._navigator && !u && (t.usingWebAudio = !1)
                }
                t.usingWebAudio && (t.masterGain = typeof t.ctx.createGain > "u" ? t.ctx.createGainNode() : t.ctx.createGain(),
                t.masterGain.gain.setValueAtTime(t._muted ? 0 : t._volume, t.ctx.currentTime),
                t.masterGain.connect(t.ctx.destination)),
                t._setup()
            }
        };
        s.Howler = t,
        s.Howl = r,
        typeof We < "u" ? (We.HowlerGlobal = i,
        We.Howler = t,
        We.Howl = r,
        We.Sound = l) : typeof window < "u" && (window.HowlerGlobal = i,
        window.Howler = t,
        window.Howl = r,
        window.Sound = l)
    }
    )();
    /*!
 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
 *  
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */
    (function() {
        HowlerGlobal.prototype._pos = [0, 0, 0],
        HowlerGlobal.prototype._orientation = [0, 0, -1, 0, 1, 0],
        HowlerGlobal.prototype.stereo = function(t) {
            var r = this;
            if (!r.ctx || !r.ctx.listener)
                return r;
            for (var l = r._howls.length - 1; l >= 0; l--)
                r._howls[l].stereo(t);
            return r
        }
        ,
        HowlerGlobal.prototype.pos = function(t, r, l) {
            var d = this;
            if (!d.ctx || !d.ctx.listener)
                return d;
            if (r = typeof r != "number" ? d._pos[1] : r,
            l = typeof l != "number" ? d._pos[2] : l,
            typeof t == "number")
                d._pos = [t, r, l],
                typeof d.ctx.listener.positionX < "u" ? (d.ctx.listener.positionX.setTargetAtTime(d._pos[0], Howler.ctx.currentTime, .1),
                d.ctx.listener.positionY.setTargetAtTime(d._pos[1], Howler.ctx.currentTime, .1),
                d.ctx.listener.positionZ.setTargetAtTime(d._pos[2], Howler.ctx.currentTime, .1)) : d.ctx.listener.setPosition(d._pos[0], d._pos[1], d._pos[2]);
            else
                return d._pos;
            return d
        }
        ,
        HowlerGlobal.prototype.orientation = function(t, r, l, d, c, b) {
            var p = this;
            if (!p.ctx || !p.ctx.listener)
                return p;
            var y = p._orientation;
            if (r = typeof r != "number" ? y[1] : r,
            l = typeof l != "number" ? y[2] : l,
            d = typeof d != "number" ? y[3] : d,
            c = typeof c != "number" ? y[4] : c,
            b = typeof b != "number" ? y[5] : b,
            typeof t == "number")
                p._orientation = [t, r, l, d, c, b],
                typeof p.ctx.listener.forwardX < "u" ? (p.ctx.listener.forwardX.setTargetAtTime(t, Howler.ctx.currentTime, .1),
                p.ctx.listener.forwardY.setTargetAtTime(r, Howler.ctx.currentTime, .1),
                p.ctx.listener.forwardZ.setTargetAtTime(l, Howler.ctx.currentTime, .1),
                p.ctx.listener.upX.setTargetAtTime(d, Howler.ctx.currentTime, .1),
                p.ctx.listener.upY.setTargetAtTime(c, Howler.ctx.currentTime, .1),
                p.ctx.listener.upZ.setTargetAtTime(b, Howler.ctx.currentTime, .1)) : p.ctx.listener.setOrientation(t, r, l, d, c, b);
            else
                return y;
            return p
        }
        ,
        Howl.prototype.init = function(t) {
            return function(r) {
                var l = this;
                return l._orientation = r.orientation || [1, 0, 0],
                l._stereo = r.stereo || null,
                l._pos = r.pos || null,
                l._pannerAttr = {
                    coneInnerAngle: typeof r.coneInnerAngle < "u" ? r.coneInnerAngle : 360,
                    coneOuterAngle: typeof r.coneOuterAngle < "u" ? r.coneOuterAngle : 360,
                    coneOuterGain: typeof r.coneOuterGain < "u" ? r.coneOuterGain : 0,
                    distanceModel: typeof r.distanceModel < "u" ? r.distanceModel : "inverse",
                    maxDistance: typeof r.maxDistance < "u" ? r.maxDistance : 1e4,
                    panningModel: typeof r.panningModel < "u" ? r.panningModel : "HRTF",
                    refDistance: typeof r.refDistance < "u" ? r.refDistance : 1,
                    rolloffFactor: typeof r.rolloffFactor < "u" ? r.rolloffFactor : 1
                },
                l._onstereo = r.onstereo ? [{
                    fn: r.onstereo
                }] : [],
                l._onpos = r.onpos ? [{
                    fn: r.onpos
                }] : [],
                l._onorientation = r.onorientation ? [{
                    fn: r.onorientation
                }] : [],
                t.call(this, r)
            }
        }(Howl.prototype.init),
        Howl.prototype.stereo = function(t, r) {
            var l = this;
            if (!l._webAudio)
                return l;
            if (l._state !== "loaded")
                return l._queue.push({
                    event: "stereo",
                    action: function() {
                        l.stereo(t, r)
                    }
                }),
                l;
            var d = typeof Howler.ctx.createStereoPanner > "u" ? "spatial" : "stereo";
            if (typeof r > "u")
                if (typeof t == "number")
                    l._stereo = t,
                    l._pos = [t, 0, 0];
                else
                    return l._stereo;
            for (var c = l._getSoundIds(r), b = 0; b < c.length; b++) {
                var p = l._soundById(c[b]);
                if (p)
                    if (typeof t == "number")
                        p._stereo = t,
                        p._pos = [t, 0, 0],
                        p._node && (p._pannerAttr.panningModel = "equalpower",
                        (!p._panner || !p._panner.pan) && i(p, d),
                        d === "spatial" ? typeof p._panner.positionX < "u" ? (p._panner.positionX.setValueAtTime(t, Howler.ctx.currentTime),
                        p._panner.positionY.setValueAtTime(0, Howler.ctx.currentTime),
                        p._panner.positionZ.setValueAtTime(0, Howler.ctx.currentTime)) : p._panner.setPosition(t, 0, 0) : p._panner.pan.setValueAtTime(t, Howler.ctx.currentTime)),
                        l._emit("stereo", p._id);
                    else
                        return p._stereo
            }
            return l
        }
        ,
        Howl.prototype.pos = function(t, r, l, d) {
            var c = this;
            if (!c._webAudio)
                return c;
            if (c._state !== "loaded")
                return c._queue.push({
                    event: "pos",
                    action: function() {
                        c.pos(t, r, l, d)
                    }
                }),
                c;
            if (r = typeof r != "number" ? 0 : r,
            l = typeof l != "number" ? -.5 : l,
            typeof d > "u")
                if (typeof t == "number")
                    c._pos = [t, r, l];
                else
                    return c._pos;
            for (var b = c._getSoundIds(d), p = 0; p < b.length; p++) {
                var y = c._soundById(b[p]);
                if (y)
                    if (typeof t == "number")
                        y._pos = [t, r, l],
                        y._node && ((!y._panner || y._panner.pan) && i(y, "spatial"),
                        typeof y._panner.positionX < "u" ? (y._panner.positionX.setValueAtTime(t, Howler.ctx.currentTime),
                        y._panner.positionY.setValueAtTime(r, Howler.ctx.currentTime),
                        y._panner.positionZ.setValueAtTime(l, Howler.ctx.currentTime)) : y._panner.setPosition(t, r, l)),
                        c._emit("pos", y._id);
                    else
                        return y._pos
            }
            return c
        }
        ,
        Howl.prototype.orientation = function(t, r, l, d) {
            var c = this;
            if (!c._webAudio)
                return c;
            if (c._state !== "loaded")
                return c._queue.push({
                    event: "orientation",
                    action: function() {
                        c.orientation(t, r, l, d)
                    }
                }),
                c;
            if (r = typeof r != "number" ? c._orientation[1] : r,
            l = typeof l != "number" ? c._orientation[2] : l,
            typeof d > "u")
                if (typeof t == "number")
                    c._orientation = [t, r, l];
                else
                    return c._orientation;
            for (var b = c._getSoundIds(d), p = 0; p < b.length; p++) {
                var y = c._soundById(b[p]);
                if (y)
                    if (typeof t == "number")
                        y._orientation = [t, r, l],
                        y._node && (y._panner || (y._pos || (y._pos = c._pos || [0, 0, -.5]),
                        i(y, "spatial")),
                        typeof y._panner.orientationX < "u" ? (y._panner.orientationX.setValueAtTime(t, Howler.ctx.currentTime),
                        y._panner.orientationY.setValueAtTime(r, Howler.ctx.currentTime),
                        y._panner.orientationZ.setValueAtTime(l, Howler.ctx.currentTime)) : y._panner.setOrientation(t, r, l)),
                        c._emit("orientation", y._id);
                    else
                        return y._orientation
            }
            return c
        }
        ,
        Howl.prototype.pannerAttr = function() {
            var t = this, r = arguments, l, d, c;
            if (!t._webAudio)
                return t;
            if (r.length === 0)
                return t._pannerAttr;
            if (r.length === 1)
                if (typeof r[0] == "object")
                    l = r[0],
                    typeof d > "u" && (l.pannerAttr || (l.pannerAttr = {
                        coneInnerAngle: l.coneInnerAngle,
                        coneOuterAngle: l.coneOuterAngle,
                        coneOuterGain: l.coneOuterGain,
                        distanceModel: l.distanceModel,
                        maxDistance: l.maxDistance,
                        refDistance: l.refDistance,
                        rolloffFactor: l.rolloffFactor,
                        panningModel: l.panningModel
                    }),
                    t._pannerAttr = {
                        coneInnerAngle: typeof l.pannerAttr.coneInnerAngle < "u" ? l.pannerAttr.coneInnerAngle : t._coneInnerAngle,
                        coneOuterAngle: typeof l.pannerAttr.coneOuterAngle < "u" ? l.pannerAttr.coneOuterAngle : t._coneOuterAngle,
                        coneOuterGain: typeof l.pannerAttr.coneOuterGain < "u" ? l.pannerAttr.coneOuterGain : t._coneOuterGain,
                        distanceModel: typeof l.pannerAttr.distanceModel < "u" ? l.pannerAttr.distanceModel : t._distanceModel,
                        maxDistance: typeof l.pannerAttr.maxDistance < "u" ? l.pannerAttr.maxDistance : t._maxDistance,
                        refDistance: typeof l.pannerAttr.refDistance < "u" ? l.pannerAttr.refDistance : t._refDistance,
                        rolloffFactor: typeof l.pannerAttr.rolloffFactor < "u" ? l.pannerAttr.rolloffFactor : t._rolloffFactor,
                        panningModel: typeof l.pannerAttr.panningModel < "u" ? l.pannerAttr.panningModel : t._panningModel
                    });
                else
                    return c = t._soundById(parseInt(r[0], 10)),
                    c ? c._pannerAttr : t._pannerAttr;
            else
                r.length === 2 && (l = r[0],
                d = parseInt(r[1], 10));
            for (var b = t._getSoundIds(d), p = 0; p < b.length; p++)
                if (c = t._soundById(b[p]),
                c) {
                    var y = c._pannerAttr;
                    y = {
                        coneInnerAngle: typeof l.coneInnerAngle < "u" ? l.coneInnerAngle : y.coneInnerAngle,
                        coneOuterAngle: typeof l.coneOuterAngle < "u" ? l.coneOuterAngle : y.coneOuterAngle,
                        coneOuterGain: typeof l.coneOuterGain < "u" ? l.coneOuterGain : y.coneOuterGain,
                        distanceModel: typeof l.distanceModel < "u" ? l.distanceModel : y.distanceModel,
                        maxDistance: typeof l.maxDistance < "u" ? l.maxDistance : y.maxDistance,
                        refDistance: typeof l.refDistance < "u" ? l.refDistance : y.refDistance,
                        rolloffFactor: typeof l.rolloffFactor < "u" ? l.rolloffFactor : y.rolloffFactor,
                        panningModel: typeof l.panningModel < "u" ? l.panningModel : y.panningModel
                    };
                    var $ = c._panner;
                    $ || (c._pos || (c._pos = t._pos || [0, 0, -.5]),
                    i(c, "spatial"),
                    $ = c._panner),
                    $.coneInnerAngle = y.coneInnerAngle,
                    $.coneOuterAngle = y.coneOuterAngle,
                    $.coneOuterGain = y.coneOuterGain,
                    $.distanceModel = y.distanceModel,
                    $.maxDistance = y.maxDistance,
                    $.refDistance = y.refDistance,
                    $.rolloffFactor = y.rolloffFactor,
                    $.panningModel = y.panningModel
                }
            return t
        }
        ,
        Sound.prototype.init = function(t) {
            return function() {
                var r = this
                  , l = r._parent;
                r._orientation = l._orientation,
                r._stereo = l._stereo,
                r._pos = l._pos,
                r._pannerAttr = l._pannerAttr,
                t.call(this),
                r._stereo ? l.stereo(r._stereo) : r._pos && l.pos(r._pos[0], r._pos[1], r._pos[2], r._id)
            }
        }(Sound.prototype.init),
        Sound.prototype.reset = function(t) {
            return function() {
                var r = this
                  , l = r._parent;
                return r._orientation = l._orientation,
                r._stereo = l._stereo,
                r._pos = l._pos,
                r._pannerAttr = l._pannerAttr,
                r._stereo ? l.stereo(r._stereo) : r._pos ? l.pos(r._pos[0], r._pos[1], r._pos[2], r._id) : r._panner && (r._panner.disconnect(0),
                r._panner = void 0,
                l._refreshBuffer(r)),
                t.call(this)
            }
        }(Sound.prototype.reset);
        var i = function(t, r) {
            r = r || "spatial",
            r === "spatial" ? (t._panner = Howler.ctx.createPanner(),
            t._panner.coneInnerAngle = t._pannerAttr.coneInnerAngle,
            t._panner.coneOuterAngle = t._pannerAttr.coneOuterAngle,
            t._panner.coneOuterGain = t._pannerAttr.coneOuterGain,
            t._panner.distanceModel = t._pannerAttr.distanceModel,
            t._panner.maxDistance = t._pannerAttr.maxDistance,
            t._panner.refDistance = t._pannerAttr.refDistance,
            t._panner.rolloffFactor = t._pannerAttr.rolloffFactor,
            t._panner.panningModel = t._pannerAttr.panningModel,
            typeof t._panner.positionX < "u" ? (t._panner.positionX.setValueAtTime(t._pos[0], Howler.ctx.currentTime),
            t._panner.positionY.setValueAtTime(t._pos[1], Howler.ctx.currentTime),
            t._panner.positionZ.setValueAtTime(t._pos[2], Howler.ctx.currentTime)) : t._panner.setPosition(t._pos[0], t._pos[1], t._pos[2]),
            typeof t._panner.orientationX < "u" ? (t._panner.orientationX.setValueAtTime(t._orientation[0], Howler.ctx.currentTime),
            t._panner.orientationY.setValueAtTime(t._orientation[1], Howler.ctx.currentTime),
            t._panner.orientationZ.setValueAtTime(t._orientation[2], Howler.ctx.currentTime)) : t._panner.setOrientation(t._orientation[0], t._orientation[1], t._orientation[2])) : (t._panner = Howler.ctx.createStereoPanner(),
            t._panner.pan.setValueAtTime(t._stereo, Howler.ctx.currentTime)),
            t._panner.connect(t._node),
            t._paused || t._parent.pause(t._id, !0).play(t._id, !0)
        }
    }
    )()
}
)(et);
const nt = Symbol("AR_LOTTERY");
function hs(s) {
    const {localStore: i} = gt()
      , {synchronizer: t, gameCode: r, lotteryCode: l, gameInfo: d, triggerTimer: c, setLotteryCode: b} = ht()
      , p = $e({
        issue: "",
        issueData: null,
        countdown: 0,
        interval: 0,
        sound: !1,
        soundBg: !1,
        soundEffects: !1,
        agreePreSale: !0,
        introduceDialog: !1,
        betLimit: [],
        introduceHtml: void 0,
        maintain: !1
    })
      , y = B(null)
      , $ = B(!0)
      , e = new et.Howl({
        src: s ? [s.bg] : [""],
        loop: !0,
        volume: 1,
        preload: !1
    })
      , n = B(!1)
      , o = B(!1)
      , u = B(!1)
      , _ = x( () => p.issue)
      , v = x( () => p.issueData || {})
      , m = x( () => ({
        interval: p.interval || 0,
        ...Fo(p.countdown * 1e3)
    }))
      , S = x( () => {
        const G = `${m.value.minutes}`.padStart(2, "0")
          , ie = `${m.value.seconds}`.padStart(2, "0");
        return [...G.split(""), ":", ...ie.split("")]
    }
    )
      , h = x( () => m.value.seconds > 5)
      , T = x( () => {
        var G;
        return p.maintain ? !0 : ((G = d.value) == null ? void 0 : G.state) !== 1
    }
    )
      , A = x( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.betScopes) || []
    }
    )
      , M = x( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.betMultiples) || []
    }
    )
      , P = x( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.rates) || []
    }
    )
      , g = x( () => p.betLimit || [])
      , D = x({
        get() {
            return p.sound
        },
        set(G) {
            p.sound = G
        }
    })
      , E = x({
        get() {
            return p.soundBg
        },
        set(G) {
            p.soundBg = G,
            p.soundBg ? (i.set(At, 1),
            e.load(),
            e.duration(0),
            e.play()) : (e.pause(),
            i.set(At, 0))
        }
    })
      , I = x({
        get() {
            return p.soundEffects
        },
        set(G) {
            G ? i.set(Lt, 1) : i.set(Lt, 0),
            p.soundEffects = G
        }
    })
      , R = x( () => p.introduceHtml || {})
      , O = x({
        get() {
            return p.agreePreSale
        },
        set(G) {
            p.agreePreSale = G
        }
    })
      , V = x({
        get() {
            return p.introduceDialog
        },
        set(G) {
            p.introduceDialog = G
        }
    })
      , te = B(!1)
      , {pause: Z, resume: le} = No(async () => {
        var G, ie;
        if (p.countdown < 1) {
            Z();
            const ue = ((G = p.issueData) == null ? void 0 : G.next) || null
              , {useNext: Ne=!0} = s || {};
            ue && Ne ? (await ge(ue, p.interval),
            p.issueData.next = null) : await U();
            return
        }
        p.countdown -= 1,
        s && ((ie = s == null ? void 0 : s.processSound) == null || ie.call(s, p.countdown))
    }
    , 1e3, {
        immediate: !1
    })
      , ge = async (G, ie) => {
        p.issue = G.issueNumber;
        const ue = it(G.endTime).valueOf() - it(t.getCurrentTime()).valueOf();
        p.countdown = Math.floor(ue / 1e3),
        le()
    }
      , pe = () => {
        p.sound = !p.sound
    }
      , ae = () => {
        p.introduceDialog = !p.introduceDialog,
        p.introduceDialog && (n.value = !0)
    }
      , U = async (G=!1) => {
        var ie;
        try {
            G && (u.value = !0);
            const ue = await Zo({
                gameCode: r.value,
                lotteryCode: l.value
            });
            if (!ue.current)
                return Z();
            const Ne = ue.intervalMinute * 60
              , ot = ue.current
              , Oe = ((ie = d.value) == null ? void 0 : ie.state) === 2
              , Ee = ue.state === 2;
            if (p.issueData) {
                const Ge = p.issueData.state == 2;
                Oe && Ge && Ee || !Oe && !Ge && Ee ? p.maintain = !0 : (!Oe && !Ge && !Ee || !Oe && Ge && !Ee) && (p.maintain = !1)
            }
            p.issueData = ue,
            p.interval = Ne,
            await ge(ot, Ne)
        } catch {
            Z()
        } finally {
            u.value = !1
        }
    }
      , Re = async () => {
        try {
            n.value = !0;
            const {result: G, data: ie} = await Ko(r.value);
            if (!G)
                return;
            p.introduceHtml = ie
        } catch {} finally {
            n.value = !1
        }
    }
      , Se = async () => {
        if (!o.value)
            try {
                o.value = !0;
                const {result: G, data: ie} = await Jo(r.value);
                if (!G)
                    return;
                p.betLimit = ie
            } catch {} finally {
                o.value = !1
            }
    }
      , me = async G => {
        const ie = G || (s ? s.bg : "");
        if (!ie)
            return !1;
        const ue = new Audio;
        ue.src = ie,
        ue.muted = !0;
        try {
            return await ue.play(),
            !0
        } catch {
            return !1
        }
    }
      , Ae = async () => {
        if (!te.value)
            try {
                te.value = !0,
                await Jn()
            } finally {
                te.value = !1
            }
    }
      , Ce = (G=!1) => {
        y.value && clearInterval(y.value),
        !G && (y.value = setInterval( () => {
            Ae()
        }
        , 30 * 1e3))
    }
      , Ye = () => {
        $.value = document.visibilityState === "visible",
        $.value ? Ce() : Ce(!0)
    }
    ;
    return xe( () => {
        Ce(),
        c.on( () => {
            Z()
        }
        ),
        document.addEventListener("visibilitychange", Ye)
    }
    ),
    Et( () => {
        Ce(!0),
        document.removeEventListener("visibilitychange", Ye)
    }
    ),
    se( () => $.value, G => {
        G ? setTimeout( () => {
            U()
        }
        , 500) : Z()
    }
    ),
    {
        betScopes: A,
        betMultiples: M,
        rates: P,
        canBet: h,
        issue: _,
        countdown: m,
        countdownTime: S,
        soundEffects: I,
        soundBg: E,
        sound: D,
        gameCode: r,
        agreePreSale: O,
        introduceDialog: V,
        introduceLoading: n,
        betLimitLoading: o,
        introduceHtml: R,
        bgSound: e,
        issueLoading: u,
        lotteryCode: l,
        betLimit: g,
        issueData: v,
        closeGame: T,
        getIssue: U,
        updataCurrentIssue: ge,
        pause: Z,
        onSwitchSound: pe,
        onSwitchIntroduce: ae,
        getIntroduce: Re,
        getBetLimit: Se,
        canAutoPlay: me,
        setLotteryCode: b,
        visibilityStatus: $
    }
}
function nn() {
    return Xe(nt, {})
}
const bt = () => {
    const {gameCode: s} = ht()
      , {t: i} = ke()
      , t = $e({
        totalCount: 0,
        totalPage: 0,
        pageNo: 1,
        pageSize: 10,
        strategiesList: [],
        historyStrategiesList: [],
        currentStrategy: [],
        orderNo: "",
        followRule: {}
    })
      , r = x( () => t.pageNo)
      , l = x( () => t.pageSize)
      , d = x( () => t.totalPage)
      , c = x( () => t.totalCount)
      , b = x( () => t.strategiesList)
      , p = x( () => t.historyStrategiesList)
      , y = x( () => t.currentStrategy)
      , $ = x( () => {
        var h;
        return ((h = t.currentStrategy[0]) == null ? void 0 : h.orderNo) || ""
    }
    )
      , e = x( () => t.followRule)
      , n = async () => {
        const {data: h, code: T, msgCode: A} = await os({
            gameCode: s == null ? void 0 : s.value
        });
        if (T === 0) {
            t.strategiesList = h || [];
            const M = h == null ? void 0 : h.find(D => D.orderNo !== null);
            M && (t.currentStrategy = [M]);
            const P = h == null ? void 0 : h.find(D => D.orderNo === $.value)
              , g = t.currentStrategy[0] || {};
            if (!P)
                return;
            (P == null ? void 0 : P.orderNo) === (g == null ? void 0 : g.orderNo) && (t.currentStrategy = [Object.assign(g, {
                ...P
            })])
        } else
            _e({
                message: i(`code${A}`)
            })
    }
    ;
    return {
        getStrategiesList: n,
        getHistoryStrategiesList: async h => {
            const {data: T, code: A, msgCode: M} = await rs({
                gameCode: s == null ? void 0 : s.value,
                ...h
            });
            A === 0 ? (t.totalCount = T.totalCount,
            t.totalPage = T.totalPage,
            t.historyStrategiesList = T.list) : _e({
                message: i(`code${M}`)
            })
        }
        ,
        addStrategy: async h => {
            try {
                const {data: T, code: A, msgCode: M} = await ss(h);
                A === 0 ? (t.currentStrategy = [{
                    ...T
                }],
                _e({
                    message: i("hint7")
                })) : _e({
                    message: i(`code${M}`)
                })
            } catch {}
        }
        ,
        stopStrategy: async h => {
            const {code: T, msgCode: A} = await as({
                orderNo: h
            });
            T === 0 ? _e({
                message: i("hint8")
            }) : _e({
                message: i(`code${A}`)
            })
        }
        ,
        getFollowBetAll: async () => {
            t.currentStrategy = [],
            await Promise.all([n()])
        }
        ,
        getFollowBetRule: async () => {
            const {data: h, code: T, msgCode: A} = await ls({
                gameCode: s == null ? void 0 : s.value
            });
            T === 0 ? t.followRule = h || {} : _e({
                message: i(`code${A}`)
            })
        }
        ,
        getCurrentStrategy: async h => {
            if (!h)
                return;
            const {data: T, code: A, msgCode: M} = await is({
                orderNo: h
            });
            if (A === 0) {
                const P = t.currentStrategy[0] || {};
                t.currentStrategy = [Object.assign(P, {
                    ...T
                })],
                T.state === 0 && (t.currentStrategy = [],
                await n())
            } else
                _e({
                    message: i(`code${M}`)
                })
        }
        ,
        historyStrategiesList: p,
        strategiesList: b,
        orderNo: $,
        currentStrategy: y,
        pageNo: r,
        totalPage: d,
        pageSize: l,
        totalCount: c,
        followRule: e
    }
}
;
function c_() {
    const {t: s} = ke()
      , i = tt()
      , t = B([])
      , r = $e({
        coin: 1,
        count: 1,
        gameName: "",
        issueNumber: "",
        betMultiples: [],
        betScopes: [],
        playBet: "",
        playType: "",
        gameCode: ""
    })
      , l = B(!1);
    let d = null
      , c = null;
    const b = B(!1)
      , p = B(!0)
      , y = B(!1)
      , $ = B(!1)
      , e = x( () => r.betMultiples)
      , n = x( () => r.betMultiples)
      , o = g => g.startsWith("MotoRace") ? 23 : g.startsWith("TrxWinGo") ? 10 : 5
      , u = g => {
        switch (g) {
        case 1:
            r.count > 1 && r.count--;
            break;
        case 2:
            r.count++;
            break
        }
    }
      , _ = g => {
        g > 0 && (r.count = parseInt(g))
    }
      , v = g => {
        r.count = g
    }
      , m = g => {
        r.coin = g
    }
      , S = () => {
        b.value = !1,
        p.value = !0
    }
      , h = () => {
        l.value = !1,
        b.value = !1,
        r.coin = 1,
        r.count = 1,
        r.issueNumber = "",
        r.gameName = "",
        r.gameCode = "",
        r.playBet = "",
        r.playType = ""
    }
      , T = async () => {
        if (!p.value)
            return _e(s("agreePresaleRules"));
        const g = r.gameCode.split("_")[0];
        if (!g)
            return i.error(s("common.code_403"));
        if (!r.issueNumber)
            return i.error(s("common.noIssueNumber"));
        if (!r.playType)
            return i.error(s("common.code_403"));
        $.value = !0;
        let D = async R => ({})
          , E = r.playBet
          , I = `${r.playType}_${lt(E)}`;
        switch (E) {
        case "h":
            E = "Big";
            break;
        case "l":
            E = "Small";
            break;
        case "o":
            E = "Odd";
            break;
        case "e":
            E = "Even";
            break
        }
        switch (g) {
        case "MotoRace":
            D = fs;
            break;
        case "D5":
            D = yt,
            I = [`${r.playType}_${lt(E)}`];
            break;
        case "TrxWinGo":
            D = ps;
            break;
        case "K3":
            D = _s,
            I = [`${r.playType}_${lt(E)}`];
            break;
        case "WinGo":
            D = us;
            break;
        case "VideoWinGo":
            D = ds;
            break
        }
        try {
            const {result: R} = await D({
                gameCode: r.gameCode,
                issueNumber: r.issueNumber,
                amount: r.coin,
                betMultiple: Number(r.count),
                betContent: I
            });
            if (!R)
                return;
            h(),
            i.success(s("common.betSuccessful"))
        } catch {} finally {
            $.value = !1
        }
    }
      , A = async () => {
        try {
            if (d && clearInterval(d),
            y.value)
                return;
            y.value = !0;
            const {data: g, result: D, serviceTime: E} = await cs({});
            D && (t.value = g || [],
            M(E),
            d = setInterval( () => {
                M()
            }
            , 1e3),
            g && g.length ? clearInterval(c) : (c && clearInterval(c),
            c = setInterval( () => {
                A()
            }
            , 10 * 1e3)))
        } catch {} finally {
            y.value = !1
        }
    }
      , M = g => {
        let D = !1;
        for (let E = 0; E < t.value.length; E++) {
            const I = t.value[E];
            if (g) {
                I.passTime = Math.floor((I.endTime - g) / 1e3),
                I.time1 = 0,
                I.time2 = Math.floor(I.passTime / 60),
                I.time3 = Math.floor(I.passTime % 60 / 10),
                I.time4 = Math.floor(I.passTime % 10);
                let R = [];
                I.playType === "SumBigSmall" ? R = [{
                    ...I.playBetList,
                    playBet: "Small"
                }, {
                    ...I.playBetList,
                    playBet: "Big"
                }] : I.playType === "SumOddEven" ? R = [{
                    ...I.playBetList,
                    playBet: "Even"
                }, {
                    ...I.playBetList,
                    playBet: "Odd"
                }] : R = Object.keys(I.playBetList).map(O => ({
                    playBet: O,
                    odds: I.playBetList[O]
                })),
                I.playBetList = R.sort( (O, V) => O.playBet.localeCompare(V.playBet))
            } else {
                if (I.passTime < o(I.gameCode) && I.issueNumber == r.issueNumber && h(),
                I.passTime > 0)
                    I.time2 = Math.floor(I.passTime / 60),
                    I.time3 = Math.floor(I.passTime % 60 / 10),
                    I.time4 = Math.floor(I.passTime % 10),
                    I.passTime--;
                else {
                    D = !1,
                    clearInterval(d),
                    A();
                    break
                }
                D = I.time3 + I.time4 == 0
            }
        }
        Rn(t),
        D && (clearInterval(d),
        A())
    }
      , P = (g, D) => {
        r.coin = g.betMultiples[0] || 1,
        r.count = g.betScopes[0] || 1,
        r.issueNumber = g.issueNumber,
        r.gameName = g.gameName,
        r.betMultiples = g.betMultiples,
        r.betScopes = g.betScopes,
        r.playType = g.playType,
        r.playBet = D.playBet,
        r.gameCode = g.gameCode,
        l.value = !0
    }
    ;
    return Mn( () => {
        clearInterval(d),
        clearInterval(c)
    }
    ),
    se( () => Kn().visibility, g => {
        A()
    }
    ),
    {
        betlist: t,
        prohibitBuyTime: o,
        bettingPopupShow: l,
        isShowPreSale: b,
        isCheckPreSale: p,
        selectInfo: r,
        betTypeList: e,
        multipleList: n,
        loading: $,
        lock: y,
        Stepper: u,
        changeStep: _,
        TaskCount: v,
        changeCoin: m,
        knowPreSale: S,
        submitBetting: T,
        getDragonListPage: A,
        onBet: P,
        clearBetting: h
    }
}
const J = $e({
    navList: [{
        name: "A",
        code: "First"
    }, {
        name: "B",
        code: "Second"
    }, {
        name: "C",
        code: "Third"
    }, {
        name: "D",
        code: "Fourth"
    }, {
        name: "E",
        code: "Fifth"
    }, {
        name: "SUM",
        code: "Sum"
    }],
    actNav: {
        name: "A",
        code: "First"
    },
    numberList: [],
    initContainer: [],
    show: !1
})
  , on = () => {
    const s = x( () => J.numberList)
      , i = x( () => J.initContainer)
      , t = x( () => J.navList)
      , r = x( () => J.actNav)
      , l = y => {
        J.actNav = y
    }
      , d = y => {
        J.show = !0;
        const $ = J.initContainer.findIndex(e => e.playBet === y.playBet);
        J.numberList = [],
        $ > -1 ? J.initContainer.splice($, 1) : (J.initContainer = [],
        J.initContainer.push(y)),
        J.initContainer.length === 0 && (J.show = !1)
    }
      , c = y => {
        J.show = !0;
        const $ = J.numberList.findIndex(e => e.playBet === y.playBet);
        J.initContainer = [],
        $ === -1 ? J.numberList.push(y) : J.numberList.splice($, 1),
        J.numberList.length === 0 && (J.show = !1)
    }
    ;
    return {
        bettingPopupShow: x({
            get() {
                return J.show || !1
            },
            set(y) {
                J.show = y
            }
        }),
        numberList: s,
        navList: t,
        actNav: r,
        initContainer: i,
        showType: l,
        toggleItem: c,
        clearBetting: () => {
            J.show && (J.show = !1,
            J.initContainer = [],
            J.numberList = [])
        }
        ,
        selectBox: d
    }
}
;
function bs() {
    const s = tt()
      , i = new Map
      , t = B()
      , {t: r} = ke()
      , {updateBalance: l, onBetTrigger: d, getGameInfo: c} = Te()
      , b = B(1)
      , p = B()
      , y = B(!1)
      , $ = B(!1)
      , {clearBetting: e, actNav: n, initContainer: o, numberList: u} = on()
      , _ = B(localStorage.getItem("volumeShow") || "1")
      , {rates: v, betScopes: m, betMultiples: S, gameCode: h, canBet: T, issue: A, introduceHtml: M, introduceDialog: P, introduceLoading: g, lotteryCode: D, countdownTime: E, betLimitLoading: I, betLimit: R, agreePreSale: O, issueData: V, getIntroduce: te, getIssue: Z, onSwitchIntroduce: le, onSwitchSound: ge, getBetLimit: pe, countdown: ae} = hs()
      , U = $e({
        amount: 1,
        betMultiple: 1,
        playType: "",
        playBet: null,
        playRate: 0,
        historyIssues: [],
        historyIssuesTotalPage: 0
    })
      , Re = x( () => U.historyIssuesTotalPage)
      , Se = x( () => U.historyIssues)
      , me = x( () => U.playRate)
      , Ae = x( () => U.playBet)
      , Ce = x( () => {
        var W, z;
        return ((z = (W = U.historyIssues[0]) == null ? void 0 : W.premium) == null ? void 0 : z.split("")) || []
    }
    )
      , Ye = x( () => {
        var W;
        return ((W = U.historyIssues[0]) == null ? void 0 : W.sum) || 0
    }
    )
      , G = x({
        get() {
            return U.amount
        },
        set(W) {
            U.amount = W
        }
    })
      , ie = (W=!1) => {
        U.playBet = null,
        U.playType = "",
        U.playRate = 0,
        b.value = S.value[0] || 1,
        U.amount = m.value[0] || 1,
        W && i.clear(),
        e()
    }
      , ue = async () => {
        var Ze;
        if ($.value)
            return;
        if (!O.value)
            return s.error(r("common.agreePreSale"));
        if (!A.value)
            return s.error(r("common.noIssueNumber"));
        const z = (u == null ? void 0 : u.value.sort( (oe, be) => ((oe == null ? void 0 : oe.playBet) ?? 0) - ((be == null ? void 0 : be.playBet) ?? 0))).map(oe => {
            var be;
            return {
                ...oe,
                playType: `${(be = n.value) == null ? void 0 : be.code}Num`
            }
        }
        )
          , ce = oe => oe.replace(/^.*?(BigSmall|OddEven)/, "$1")
          , ne = [...(Ze = o.value) == null ? void 0 : Ze.map(oe => {
            var be;
            return {
                ...oe,
                playType: `${(be = n.value) == null ? void 0 : be.code}${ce(oe == null ? void 0 : oe.playType)}`
            }
        }
        ), ...z]
          , he = ne == null ? void 0 : ne.map(oe => `${oe.playType}_${oe.playBet}`);
        try {
            $.value = !0;
            const {result: oe} = await yt({
                gameCode: h.value,
                issueNumber: A.value,
                amount: U.amount,
                betMultiple: b.value,
                betContent: he
            });
            if (!oe)
                return;
            i.set(A.value, 1),
            ie(),
            s.success(r("common.betSuccessful")),
            d(),
            await l()
        } catch {} finally {
            $.value = !1
        }
    }
      , Ne = x( () => {
        const W = Array.from({
            length: 10
        }, (ce, de) => de)
          , z = v.value.find( ({playType: ce}) => {
            var de;
            return ce === `${(de = n.value) == null ? void 0 : de.code}Num`
        }
        );
        return z ? W.map(ce => {
            var de;
            return {
                playType: `${(de = n.value) == null ? void 0 : de.code}Num`,
                playBet: ce,
                playRate: z.playRate
            }
        }
        ) : W.map(ce => {
            var de;
            return {
                playType: `${(de = n.value) == null ? void 0 : de.code}Num`,
                playBet: ce,
                playRate: 0
            }
        }
        )
    }
    )
      , ot = W => {
        switch (W) {
        case "H":
            return "Big";
        case "L":
            return "Small";
        case "O":
            return "Odd";
        case "E":
            return "Even";
        default:
            return W
        }
    }
      , Oe = W => {
        switch (W) {
        case "H":
            return "#F8B460";
        case "L":
            return "#609DEC";
        case "O":
            return "#F04848";
        case "E":
            return "#13C164";
        default:
            return W
        }
    }
      , Ee = x( () => {
        const W = v.value.filter( ({playType: ne}) => {
            var he;
            return ne === `${(he = n.value) == null ? void 0 : he.code}BigSmall`
        }
        )
          , z = v.value.filter( ({playType: ne}) => {
            var he;
            return ne === `${(he = n.value) == null ? void 0 : he.code}OddEven`
        }
        )
          , ce = [...W, ...z].sort( (ne, he) => ne.playTypeId - he.playTypeId);
        return ce == null ? void 0 : ce.map(ne => ({
            playType: ne.playType,
            playBet: ot(ne.playBet),
            playRate: ne.playRate,
            playTypeId: ne.playTypeId,
            color: Oe(ne.playBet)
        }))
    }
    )
      , Ge = x( () => ae.value.minutes === 0 && ae.value.seconds < 6)
      , fn = x( () => ae.value.seconds < 10 ? "0" + ae.value.seconds : ae.value.seconds + "")
      , vn = () => {
        i.set(A.value, 1)
    }
      , mn = async () => {
        try {
            const W = [...i.keys()].reverse();
            if (!W.length)
                return;
            const z = W[0];
            if (Se.value.findIndex(oe => oe.issueNumber === z) > 0)
                return i.clear();
            const {result: de, data: ne} = await ts({
                issueNumber: z
            });
            if (!de)
                return;
            if (ne.status === null) {
                i.delete(z);
                return
            }
            if (d(),
            i.delete(z),
            !t.value)
                return;
            const he = ne.status === !0
              , Ze = Se.value.find(oe => oe.issueNumber === z);
            t.value.open({
                isWin: he,
                amount: ne.winAmount || 0,
                issueNumber: z,
                result: Ze
            }),
            i.clear(),
            he && l()
        } catch {}
    }
      , gn = async () => {
        try {
            const {result: W, data: z} = await Rt({
                gameCode: h.value,
                lotteryCode: D.value
            });
            if (!W)
                return;
            U.historyIssues = z.list || [],
            U.historyIssuesTotalPage = z.totalPage || 0
        } catch {} finally {}
    }
      , yn = async W => {
        try {
            const {result: z, data: ce} = await Rt({
                gameCode: h.value,
                lotteryCode: D.value
            });
            if (!z)
                return;
            const de = ce.list || [];
            U.historyIssuesTotalPage = ce.totalPage || 0;
            const ne = de[0];
            return ne.issueNumber !== W ? {
                list: ce.list,
                item: null
            } : {
                item: ne,
                list: ce.list
            }
        } catch {} finally {}
    }
      , hn = async () => {
        await Promise.all([c(), Z(!0)])
    }
      , Ct = (W=1) => {
        const z = document.getElementById(`voice${W}`);
        z && (z == null || z.play())
    }
      , bn = () => {
        _.value == "1" ? _.value = "2" : _.value = "1",
        localStorage.setItem("volumeShow", _.value)
    }
    ;
    return se( () => ae.value.seconds, W => {
        _.value == "1" && (ae.value.seconds <= 5 && ae.value.seconds > 0 ? Ct(1) : ae.value.seconds == 0 && Ct(2))
    }
    , {
        immediate: !1
    }),
    se( () => A.value, async W => {
        const z = await yn(W);
        U.historyIssues = (z == null ? void 0 : z.list) || [],
        await mn()
    }
    ),
    {
        betScopes: m,
        betMultiples: S,
        betMultiple: b,
        issue: A,
        canBet: T,
        introduceHtml: M,
        introduceDialog: P,
        introduceLoading: g,
        historyIssues: Se,
        countdownTime: E,
        rates: v,
        betLimitLoading: I,
        betLimit: R,
        animationRoll: y,
        lottieEl: p,
        lastResultSum: Ye,
        lastResult: Ce,
        winner: t,
        countdown: ae,
        issueData: V,
        onClearBet: ie,
        numList: Ne,
        bigSmallEven: Ee,
        useProvide: () => {
            Ft(nt, {
                betScopes: m,
                betMultiples: S,
                betMultiple: b,
                amount: G,
                playRate: me,
                playBet: Ae,
                loading: $,
                agreePreSale: O,
                betLimitLoading: I,
                betLimit: R,
                issue: A,
                canBet: T,
                historyIssues: Se,
                gameCode: h,
                historyIssuesTotalPage: Re,
                onClearBet: ie,
                onBetting: ue,
                getBetLimit: pe,
                onSwitchSound: ge
            })
        }
        ,
        getIntroduce: te,
        onSwitchIntroduce: le,
        onSwitchSound: ge,
        getHistoryIssues: gn,
        getIssue: Z,
        isShowMark: Ge,
        secondsStr: fn,
        newBetting: vn,
        setVoice: bn,
        VoiceType: _,
        getlotteryissue: hn
    }
}
function sn() {
    return Xe(nt, {})
}
const ws = {
    class: "FDB__C-nav"
}
  , $s = ["onClick"]
  , Cs = {
    class: "FDB__C-H"
}
  , ks = ["onClick"]
  , Ts = {
    class: "FDB__C-Num"
}
  , Ss = ["txt", "onClick"]
  , As = {
    class: "round"
}
  , Ls = {
    class: "rate"
}
  , Is = Y({
    __name: "BettingBody",
    props: {
        navList: {
            type: null,
            required: !0
        },
        actNav: {
            type: null,
            required: !0
        },
        bigSmallEven: {
            type: null,
            required: !0
        },
        numList: {
            type: null,
            required: !0
        },
        onTabID: {
            type: null,
            required: !0
        },
        numberChack: {
            type: null,
            required: !0
        }
    },
    emits: ["changeType", "onTab", "numberTab"],
    setup(s, {emit: i}) {
        return (t, r) => {
            var l;
            return w(),
            C(q, null, [N(" 彩种类型选择 "), a("div", ws, [(w(!0),
            C(q, null, K(t.navList, (d, c) => (w(),
            C("div", {
                key: c,
                class: H({
                    active: t.actNav.name == `${d.name}`
                }),
                onClick: b => i("changeType", c, d)
            }, f(d.name), 11, $s))), 128))]), N(" 大小奇偶选择 "), a("div", Cs, [(w(!0),
            C(q, null, K(t.bigSmallEven, (d, c) => (w(),
            C("div", {
                key: c,
                class: H({
                    active: t.onTabID == c + 1,
                    [d == null ? void 0 : d.playBet]: !0
                }),
                onClick: b => i("onTab", c + 1, d)
            }, [a("span", null, f(t.$t(`${k(Yt)[d == null ? void 0 : d.playBet]}`)), 1), a("span", null, f(d == null ? void 0 : d.playRate), 1), N("<span>{{ item?.playBet }}</span>"), N("<span>{{ item?.playRate }}</span>")], 10, ks))), 128))]), N(" 球选择 "), a("div", Ts, [((l = t.actNav) == null ? void 0 : l.name) !== "SUM" ? (w(!0),
            C(q, {
                key: 0
            }, K(t.numList, (d, c) => (w(),
            C("div", {
                key: c,
                txt: c,
                class: H({
                    active: t.numberChack[c]
                }),
                onClick: b => i("numberTab", c, d)
            }, [a("div", As, f(c), 1), a("div", Ls, f(d.playRate) + "X ", 1)], 10, Ss))), 128)) : N("v-if", !0)])], 64)
        }
    }
});
const Ot = X(Is, [["__scopeId", "data-v-9361d4f4"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/BettingBody.vue"]])
  , Bs = s => (fe("data-v-3d16f58a"),
s = s(),
ve(),
s)
  , Ps = {
    class: "bet_p-body"
}
  , Ds = {
    class: "bet_p-body-line"
}
  , xs = {
    class: "bet_p-body-line-list"
}
  , Ns = ["onClick"]
  , Ms = {
    class: "bet_p-body-line"
}
  , Rs = {
    class: "bet_p-body-line-btnL"
}
  , Os = {
    class: "bet_p-body-line"
}
  , Es = Bs( () => a("div", null, null, -1))
  , Gs = {
    class: "bet_p-body-line-list"
}
  , Fs = ["onClick"]
  , Hs = {
    class: "bet_p-body-line"
}
  , Vs = {
    class: "bet_p-foot"
}
  , qs = {
    class: "bet_p-PreSale"
}
  , Ws = {
    class: "bet_p-PreSale-head"
}
  , js = {
    class: "bet_p-PreSale-body"
}
  , Us = {
    class: "bet_p-PreSale-foot"
}
  , zs = Y({
    __name: "BettingPopup",
    props: {
        currentGame: {
            type: null,
            required: !0
        },
        bettingPopupShow: {
            type: null,
            required: !0
        },
        betTypeList: {
            type: null,
            required: !0
        },
        selectInfo: {
            type: null,
            required: !0
        }
    },
    emits: ["update:bettingPopupShow", "update:selectInfo", "clearBetting", "computedCoin", "submitBetting"],
    setup(s, {emit: i}) {
        const t = s
          , {t: r} = ke()
          , {agreePreSale: l} = sn()
          , d = tt()
          , c = B(!1)
          , b = x( () => {
            var _;
            return (_ = t.currentGame) == null ? void 0 : _.betMultiples
        }
        );
        se( () => b, () => {
            var _;
            t.selectInfo.count = (_ = b == null ? void 0 : b.value) == null ? void 0 : _[0]
        }
        , {
            deep: !0,
            immediate: !0
        });
        let p = x({
            get() {
                return t.bettingPopupShow || !1
            },
            set(_) {
                i("update:bettingPopupShow", _)
            }
        });
        const y = _ => {
            switch (_) {
            case 1:
                t.selectInfo.count > 1 && t.selectInfo.count--;
                break;
            case 2:
                t.selectInfo.count++;
                break
            }
            i("computedCoin")
        }
          , $ = _ => {
            _ > 0 && (t.selectInfo.count = Math.floor(_)),
            i("computedCoin")
        }
          , e = _ => {
            t.selectInfo.count = _,
            i("computedCoin")
        }
          , n = _ => {
            t.selectInfo.coin = _,
            i("computedCoin")
        }
          , o = () => {
            c.value = !1
        }
          , u = () => {
            if (!l.value)
                return d.error(r("agreePresaleRules"));
            i("submitBetting")
        }
        ;
        return (_, v) => {
            const m = Q("van-field")
              , S = Q("van-checkbox")
              , h = Q("van-popup");
            return w(),
            C(q, null, [N(" 投注内容 begin "), L(h, {
                show: k(p),
                "onUpdate:show": v[6] || (v[6] = T => ze(p) ? p.value = T : p = T),
                position: "bottom",
                class: "betPopup",
                round: !0,
                "close-on-click-overlay": !1
            }, {
                default: F( () => [a("div", Ps, [Pe(_.$slots, "default", {}, void 0, !0), a("div", Ds, [j(f(k(r)("amount")) + " ", 1), a("div", xs, [(w(!0),
                C(q, null, K(_.betTypeList, (T, A) => (w(),
                C("div", {
                    key: A,
                    class: H(["bet_p-body-line-item", {
                        bgcolor: t.selectInfo.coin == T
                    }]),
                    onClick: M => n(T)
                }, f(k(Vo)(T)), 11, Ns))), 128))])]), a("div", Ms, [j(f(k(r)("numbers")) + " ", 1), a("div", Rs, [a("div", {
                    class: H(["bet_p-btn", {
                        bgcolor: t.selectInfo.count > 0
                    }]),
                    onClick: v[0] || (v[0] = T => y(1))
                }, "-", 2), L(m, {
                    class: "bet_p-input",
                    modelValue: t.selectInfo.count,
                    "onUpdate:modelValue": v[1] || (v[1] = T => t.selectInfo.count = T),
                    modelModifiers: {
                        number: !0
                    },
                    type: "digit",
                    maxlength: 8,
                    onInput: $
                }, null, 8, ["modelValue"]), a("div", {
                    class: "bet_p-btn bgcolor",
                    onClick: v[2] || (v[2] = T => y(2))
                }, "+")])]), a("div", Os, [Es, a("div", Gs, [(w(!0),
                C(q, null, K(b.value, (T, A) => (w(),
                C("div", {
                    key: A,
                    class: H(["bet_p-body-line-item setBorder", {
                        bgcolor: t.selectInfo.count == T
                    }]),
                    onClick: M => e(T)
                }, " X" + f(T), 11, Fs))), 128))])]), a("div", Hs, [N(` <span class="bet_p-agree" :class="{ active: agreePreSale }" @click="agreePreSale = !agreePreSale">{{ t('agree') }}</span>
		  <span @click="isShowPreSale = true" class="bet_p-preSaleShow">{{ t('presaleRules') }}</span> `), L(S, {
                    modelValue: k(l),
                    "onUpdate:modelValue": v[4] || (v[4] = T => ze(l) ? l.value = T : null),
                    "checked-color": "var(--main-color)"
                }, {
                    default: F( () => [j(f(_.$t("agree")) + " ", 1), a("span", {
                        class: "bet_p-preSaleShow",
                        onClick: v[3] || (v[3] = De(T => c.value = !0, ["stop"]))
                    }, f(_.$t("presaleRules")), 1)]),
                    _: 1
                }, 8, ["modelValue"])])]), a("div", Vs, [a("div", {
                    class: "bet_p-foot-c",
                    onClick: v[5] || (v[5] = T => i("clearBetting"))
                }, f(k(r)("cancel")), 1), a("div", {
                    class: "bet_p-foot-s bgcolor",
                    onClick: u
                }, f(k(r)("totalAmount")) + f(k(re)(t.selectInfo.allCoin || 0)), 1)])]),
                _: 3
            }, 8, ["show"]), N(" 预售规则弹层 begin"), L(h, {
                show: c.value,
                "onUpdate:show": v[7] || (v[7] = T => c.value = T),
                "close-on-click-overlay": !1,
                round: ""
            }, {
                default: F( () => [a("div", qs, [a("div", Ws, f(k(r)("presaleRules")), 1), a("div", js, f(_.$t("betPopTXT")), 1), a("div", Us, [a("div", {
                    class: "bet_p-PreSale-foot-btn",
                    onClick: o
                }, f(k(r)("iKonw")), 1)])])]),
                _: 1
            }, 8, ["show"])], 64)
        }
    }
});
const Xs = X(zs, [["__scopeId", "data-v-3d16f58a"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/BettingPopup.vue"]])
  , Ys = Y({
    __name: "BetListColumn",
    props: {
        bigSmallEven: {
            type: Array,
            default: () => []
        },
        numList: {
            type: Array,
            default: () => []
        },
        currentInfo: {
            type: Object,
            default: () => ({})
        },
        ProhibitBuyTime: {
            type: Number,
            default: 5
        },
        currentGame: {
            type: Object,
            default: () => ({})
        },
        issueData: {
            type: Object,
            default: () => ({})
        },
        issueNum: {
            type: String,
            default: 0
        },
        gameCode: {
            type: String,
            default: 0
        },
        time: {
            type: Object,
            default: () => ({})
        }
    },
    emits: ["betting", "changeBettingP"],
    setup(s, {expose: i, emit: t}) {
        const r = s
          , {actNav: l, navList: d, showType: c} = on()
          , {t: b} = ke()
          , p = B(!1);
        se( () => p.value, P => {
            P && (_.value.coin = v.value[0])
        }
        ),
        se( () => r.time.seconds, async () => {
            r.time.seconds == 5 && T()
        }
        );
        const y = B(0)
          , $ = (P, g) => {
            h(),
            y.value == P ? (y.value = 0,
            p.value = !0) : (y.value = P,
            p.value = !0),
            S()
        }
          , e = (P, g) => {
            if (y.value = 0,
            u.value[P]) {
                u.value[P] = !1;
                const D = o.value.indexOf(P);
                D > -1 && o.value.splice(D, 1),
                p.value = !0
            } else
                o.value.push(P),
                u.value[P] = !0,
                p.value = !0;
            S()
        }
          , n = B(0)
          , o = B([])
          , u = B([!1, !1, !1, !1, !1, !1, !1, !1])
          , _ = B({
            coin: 0,
            count: 1,
            allCoin: 0,
            gametype: 0,
            typeid: 1,
            issuenumber: "2020",
            selecttype: ""
        })
          , v = x( () => {
            var P, g;
            return (P = r.currentGame) != null && P.betScopes ? (g = r.currentGame) == null ? void 0 : g.betScopes.map(D => Number(D)) : []
        }
        )
          , m = (P, g) => {
            n.value = P,
            c(g),
            P == 5 && h()
        }
          , S = () => {
            Ke( () => {
                o.value.length > 0 ? _.value.allCoin = _.value.coin * _.value.count * o.value.length : y.value ? _.value.allCoin = _.value.coin * _.value.count : _.value.allCoin = 0
            }
            )
        }
          , h = () => {
            o.value = [];
            for (let P = 0; u.value.length > P; P++)
                u.value[P] = !1;
            S()
        }
          , T = () => {
            var P;
            _.value.count = ((P = r.currentGame.betMultiples) == null ? void 0 : P[0]) || 1,
            p.value = !1,
            A()
        }
          , A = () => {
            o.value = [],
            u.value = [!1, !1, !1, !1, !1, !1, !1, !1],
            y.value = 0
        }
          , M = async () => {
            var E;
            if (r.gameCode !== ((E = r.issueData) == null ? void 0 : E.gameCode))
                return;
            if (_.value.count == 0)
                return Tt(b("bteNoCount"));
            let P;
            if (o.value.length > 0)
                P = o.value.map(I => `${l.value.code}Num_${I}`);
            else
                switch (y.value) {
                case 1:
                    P = [`${l.value.code}BigSmall_Big`];
                    break;
                case 2:
                    P = [`${l.value.code}BigSmall_Small`];
                    break;
                case 3:
                    P = [`${l.value.code}OddEven_Odd`];
                    break;
                case 4:
                    P = [`${l.value.code}OddEven_Even`];
                    break
                }
            if (!P)
                return Tt(b("common.betContent"));
            const g = {
                issueNumber: r.issueNum,
                gameCode: r.gameCode,
                amount: _.value.coin,
                betMultiple: Number(_.value.count),
                betContent: P
            }
              , D = await yt(g);
            (D == null ? void 0 : D.code) === 0 && (_e(b("common.betSuccessful")),
            p.value = !1,
            A(),
            t("betting", D.data))
        }
        ;
        return i({
            bettingPopupShow: p
        }),
        (P, g) => (w(),
        C(q, null, [L(Ot, {
            navList: k(d),
            actNav: k(l),
            bigSmallEven: s.bigSmallEven,
            numList: s.numList,
            onChangeType: m,
            numberChack: u.value,
            onTabID: y.value,
            onOnTab: $,
            onNumberTab: e
        }, null, 8, ["navList", "actNav", "bigSmallEven", "numList", "numberChack", "onTabID"]), L(Xs, {
            currentGame: s.currentGame,
            bettingPopupShow: p.value,
            betTypeList: v.value,
            selectInfo: _.value,
            onComputedCoin: S,
            onClearBetting: T,
            onSubmitBetting: M
        }, {
            default: F( () => [L(Ot, {
                navList: k(d),
                actNav: k(l),
                bigSmallEven: s.bigSmallEven,
                numList: s.numList,
                onChangeType: m,
                onTabID: y.value,
                numberChack: u.value,
                onNumberTab: e,
                onOnTab: $
            }, null, 8, ["navList", "actNav", "bigSmallEven", "numList", "onTabID", "numberChack"])]),
            _: 1
        }, 8, ["currentGame", "bettingPopupShow", "betTypeList", "selectInfo"])], 64))
    }
})
  , Zs = X(Ys, [["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/BetListColumn.vue"]]);
const Js = {}
  , Ks = {
    class: "empty__container"
};
function Qs(s, i) {
    const t = Q("svg-icon");
    return w(),
    C("div", Ks, [L(t, {
        name: "empty"
    }), Pe(s.$slots, "text", {}, () => [a("p", null, f(s.$t("noData")), 1)], !0)])
}
const an = X(Js, [["render", Qs], ["__scopeId", "data-v-b6e9536c"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/Empty/index.vue"]]);
const ea = "/assets/json/winTip-4f4f6226.json"
  , ta = "/assets/mp3/win_explode-4f48dde5.mp3"
  , na = "/assets/mp3/lost_explode-c3dc8a78.mp3"
  , oa = "/assets/json/win_animation-7d5b66f8.json";
const rn = s => (fe("data-v-a2883285"),
s = s(),
ve(),
s)
  , sa = {
    class: "bet-rule"
}
  , aa = {
    class: "bet-rule-head"
}
  , ra = rn( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , la = rn( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , ia = {
    class: "bet-rule-body"
}
  , ca = {
    class: "bet-rule-foot"
}
  , ua = Y({
    __name: "BetRule",
    props: {
        title: {
            type: String
        }
    },
    emits: ["close"],
    setup(s, {emit: i}) {
        return (t, r) => (w(),
        C("div", sa, [a("div", aa, [ra, a("span", null, "· " + f(s.title) + " ·", 1), la]), a("div", ia, [Pe(t.$slots, "default", {}, void 0, !0)]), a("div", ca, [Pe(t.$slots, "foot", {}, () => [a("div", {
            class: "bet-rule-foot-btn",
            onClick: r[0] || (r[0] = l => i("close"))
        }, f(t.$t("close")), 1)], !0)])]))
    }
});
const da = X(ua, [["__scopeId", "data-v-a2883285"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/Rule/BetRule.vue"]])
  , ln = s => (fe("data-v-7004d918"),
s = s(),
ve(),
s)
  , _a = {
    class: "sound"
}
  , pa = {
    class: "sound-head"
}
  , fa = ln( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , va = ln( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , ma = {
    class: "sound-body"
}
  , ga = {
    class: "sound-foot"
}
  , ya = Y({
    __name: "BetSound",
    emits: ["close"],
    setup(s, {emit: i}) {
        const {soundBg: t, soundEffects: r} = nn();
        return (l, d) => {
            const c = Q("van-switch");
            return w(),
            C("div", _a, [a("div", pa, [fa, a("span", null, f(l.$t("common.sound")), 1), va]), a("div", ma, [a("div", null, [a("span", null, f(l.$t("common.sound_background")), 1), L(c, {
                modelValue: k(t),
                "onUpdate:modelValue": d[0] || (d[0] = b => ze(t) ? t.value = b : null),
                "active-color": "#61ED7D",
                "inactive-color": "#E9EAF2"
            }, null, 8, ["modelValue"])]), a("div", null, [a("span", null, f(l.$t("common.sound_effect")), 1), L(c, {
                modelValue: k(r),
                "onUpdate:modelValue": d[1] || (d[1] = b => ze(r) ? r.value = b : null),
                "active-color": "#61ED7D",
                "inactive-color": "#E9EAF2"
            }, null, 8, ["modelValue"])])]), a("div", ga, [a("div", {
                class: "sound-foot-btn",
                onClick: d[2] || (d[2] = b => i("close"))
            }, f(l.$t("common.close")), 1)])])
        }
    }
});
const u_ = X(ya, [["__scopeId", "data-v-7004d918"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/Sound/BetSound.vue"]]);
const ha = {
    class: "timer-cards"
}
  , ba = ["onClick"]
  , wa = {
    class: "clock-icon"
}
  , $a = ["src"]
  , Ca = ["src"]
  , ka = Y({
    __name: "LotteryMenu",
    emits: ["changeSelectGame"],
    setup(s, {emit: i}) {
        const {gameList: t, currentGame: r, lotteryCode: l} = Te()
          , d = x( () => {
            let b = l.value === "D5" ? "5D" : l.value;
            const p = t.value.find(y => y.gameTypeName === b);
            return p ? p.gameList.sort( (y, $) => $.sort - y.sort) : []
        }
        )
          , c = async b => {
            var p;
            ((p = r == null ? void 0 : r.value) == null ? void 0 : p.gameCode) !== b.gameCode && i("changeSelectGame", b)
        }
        ;
        return (b, p) => (w(),
        C("div", ha, [(w(!0),
        C(q, null, K(d.value, y => {
            var $, e;
            return w(),
            C("div", {
                key: y.gameCode,
                class: H(["timer-card", {
                    active: (($ = k(r)) == null ? void 0 : $.gameCode) === y.gameCode
                }]),
                onClick: n => c(y)
            }, [a("div", wa, [((e = k(r)) == null ? void 0 : e.gameCode) === y.gameCode ? (w(),
            C("img", {
                key: 0,
                src: k(St)("home", "time_a"),
                class: "timeIcon",
                alt: "active"
            }, null, 8, $a)) : (w(),
            C("img", {
                key: 1,
                src: k(St)("home", "time"),
                class: "timeIcon",
                alt: "default"
            }, null, 8, Ca))]), a("div", {
                class: H(["card-title", {
                    noActive: y.state === 2
                }])
            }, f(y.gameName), 3)], 10, ba)
        }
        ), 128))]))
    }
});
const Ta = X(ka, [["__scopeId", "data-v-8406ace2"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/LotteryInfo/LotteryMenu.vue"]])
  , Sa = {
    class: "Wallet__C"
}
  , Aa = {
    class: "Wallet__C-balance"
}
  , La = {
    class: "Wallet__C-balance-l1"
}
  , Ia = {
    class: "Wallet__C-balance-l2"
}
  , Ba = {
    class: "Wallet__C-balance-l3"
}
  , Pa = Y({
    __name: "Wallet",
    props: {
        countdown: {
            type: Object,
            required: !0
        }
    },
    setup(s) {
        const i = s
          , {dollarSign: t, balance: r, updateBalance: l} = Te();
        se( () => i.countdown, b => {
            b.total === 0 && setTimeout(async () => {
                await l()
            }
            , 5e3)
        }
        );
        const d = Ht()
          , c = b => {
            d.push({
                name: b
            })
        }
        ;
        return (b, p) => {
            const y = Q("svg-icon")
              , $ = On("throttle-click");
            return w(),
            C("div", Sa, [a("div", Aa, [a("div", La, [vt((w(),
            C("div", null, [j(f(k(re)(k(r))), 1)])), [[$, {
                handler: k(l),
                wait: 1e3
            }]])]), a("div", Ia, [L(y, {
                name: "lottyWallet"
            }), a("div", null, f(b.$t("walletBalance")), 1)]), a("div", Ba, [a("div", {
                onClick: p[0] || (p[0] = e => c("Withdraw"))
            }, f(b.$t("withdraw")), 1), a("div", {
                onClick: p[1] || (p[1] = e => c("Recharge"))
            }, f(b.$t("recharge")), 1)])])])
        }
    }
});
const Da = X(Pa, [["__scopeId", "data-v-7b3870ea"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/LotteryInfo/Wallet.vue"]])
  , xa = {
    key: 0,
    class: "bg"
}
  , Na = {
    class: "more"
}
  , Ma = {
    key: 1
}
  , Ra = Y({
    __name: "main",
    props: {
        VoiceType: {
            type: String,
            default: ""
        },
        countdown: {
            type: Object,
            default: {}
        },
        showNav: {
            type: Boolean,
            default: !0
        }
    },
    emits: ["change-select-game", "setVoice"],
    setup(s, {emit: i}) {
        const t = En( () => Vt( () => import("./VideoPlayer-6c84180b.js"), ["assets/js/VideoPlayer-6c84180b.js", "assets/js/common.modules-af1f85b9.js", "assets/css/common-e210f711.css", "assets/js/chunk.veplayer-b004266e.js", "assets/css/chunk-d236df01.css", "assets/js/page-activity-ActivityDetail-09e806d3.js", "assets/js/page-turntable-assets-d6267459.js", "assets/js/native/index-2c2af617.js", "assets/js/en-8dc3e88f.js", "assets/css/page-activity-ActivityDetail-a597c4a3.css", "assets/js/page-home-other-97f62cb2.js", "assets/js/page-home-Casino-1d49356a.js", "assets/css/page-home-Casino-21302d32.css", "assets/css/page-home-other-3842e833.css", "assets/js/page-activity-Bonus-78dc3749.js", "assets/css/page-activity-Bonus-608b6579.css", "assets/css/VideoPlayer-e4f85b85.css"]))
          , r = Ht()
          , {getSelfCustomerServiceLink: l, isCenterServer: d} = Qn({
            ServerType: 2
        })
          , c = p => {
            if (d.value)
                return l();
            r.push({
                name: p
            })
        }
          , b = () => {
            r.go(-1),
            sessionStorage.setItem("clickedGameType", "lottery")
        }
        ;
        return (p, y) => {
            const $ = Q("NavBar");
            return w(),
            C("div", {
                class: H(["lottery-info", {
                    padding: s.showNav
                }])
            }, [s.showNav ? (w(),
            C("div", xa)) : N("v-if", !0), L($, {
                "left-arrow": "",
                onClickLeft: b,
                class: "main",
                headLogo: !0
            }, {
                right: F( () => [a("div", Na, [a("div", {
                    onClick: y[0] || (y[0] = e => c("CustomerService"))
                }), a("div", {
                    class: H({
                        disableVoice: s.VoiceType == "2"
                    }),
                    onClick: y[1] || (y[1] = e => i("setVoice"))
                }, null, 2)])]),
                _: 1
            }), s.showNav ? (w(),
            C("div", Ma, [L(Da, {
                countdown: s.countdown
            }, null, 8, ["countdown"]), L(no, {
                key: "wingo",
                class: "lottery-notice"
            }), L(Ta, {
                onChangeSelectGame: y[2] || (y[2] = e => i("change-select-game", e))
            })])) : (w(),
            ye(k(t), {
                key: 2
            }))], 2)
        }
    }
});
const Oa = X(Ra, [["__scopeId", "data-v-63b58aab"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/LotteryInfo/main.vue"]])
  , Ea = {
    class: "winning"
}
  , Ga = {
    class: "winning-main"
}
  , Fa = {
    class: "winning-wrap"
}
  , Ha = {
    key: 1,
    class: "winning-wrap-l1"
}
  , Va = {
    class: "winning-wrap-l2"
}
  , qa = {
    class: "winning-wrap-l3"
}
  , Wa = {
    key: 0,
    class: "isLose"
}
  , ja = {
    class: "head"
}
  , Ua = {
    class: "bonus"
}
  , za = {
    class: "gameDetail"
}
  , Xa = {
    class: "winning-wrap-l4"
}
  , Ya = ["onClick"]
  , Za = Y({
    __name: "Winning",
    setup(s, {expose: i}) {
        const {currentGame: t} = Te()
          , {soundEffects: r} = nn()
          , l = B()
          , d = B()
          , c = B(!1)
          , b = new et.Howl({
            src: [ta],
            loop: !1,
            preload: !1
        })
          , p = new et.Howl({
            src: [na],
            loop: !1,
            preload: !1
        })
          , y = B(!1)
          , $ = B(null)
          , e = $e({
            issueNumber: "",
            amount: 0,
            result: null
        })
          , n = B(!1);
        let o = null
          , u = null;
        const _ = Ho(async () => Vt( () => import("./lottie-3aeffd7e.js").then(h => h.l), ["assets/js/lottie-3aeffd7e.js", "assets/js/common.modules-af1f85b9.js", "assets/css/common-e210f711.css"]))
          , v = () => {
            y.value = !y.value,
            y.value ? (clearTimeout($.value),
            $.value = setTimeout( () => {
                y.value = !1,
                c.value = !1,
                o.stop(),
                u.stop()
            }
            , 3e3)) : clearTimeout($.value)
        }
          , m = async () => {
            if (o)
                return o;
            b.load(),
            p.load();
            const h = await _();
            try {
                o = h.loadAnimation({
                    container: l.value,
                    renderer: "svg",
                    loop: !1,
                    autoplay: !1,
                    path: ea
                }),
                u = h.loadAnimation({
                    container: d.value,
                    renderer: "svg",
                    loop: !0,
                    autoplay: !1,
                    path: oa
                })
            } catch {}
        }
        ;
        return i({
            open: async h => {
                y.value = !1,
                c.value = !0,
                n.value = h.isWin,
                e.issueNumber = h.issueNumber,
                e.amount = h.amount,
                e.result = h.result,
                await m(),
                h.isWin ? (o.play(),
                u.play(),
                r != null && r.value && (b == null || b.play())) : r != null && r.value && (p == null || p.play()),
                v()
            }
        }),
        (h, T) => (w(),
        ye(Gn, {
            name: "van-fade",
            persisted: ""
        }, {
            default: F( () => {
                var A;
                return [vt(a("div", Ea, [a("div", {
                    class: "winning-animation",
                    ref_key: "animation",
                    ref: l
                }, null, 512), a("div", {
                    class: H(["winning-body", {
                        isWin: n.value,
                        noWin: !n.value
                    }])
                }, [a("div", Ga, [a("div", Fa, [n.value ? (w(),
                C("div", {
                    key: 0,
                    class: H(["winning-wrap-l1", {
                        isWin: n.value
                    }])
                }, f(h.$t("k3WarningTip2")), 3)) : (w(),
                C("div", Ha, f(h.$t("k3WarningTip1")), 1)), a("div", Va, [e.result ? Pe(h.$slots, "default", {
                    key: 0,
                    data: e.result
                }, void 0, !0) : N("v-if", !0)]), a("div", qa, [n.value ? (w(),
                C(q, {
                    key: 1
                }, [a("div", ja, f(h.$t("k3WarningTip4")), 1), a("div", Ua, f(k(re)(e.amount)), 1)], 64)) : (w(),
                C("div", Wa, f(h.$t("k3WarningTip3")), 1)), a("div", za, [j(f(h.$t("k3WarningTip5")) + " " + f((A = k(t)) == null ? void 0 : A.gameName) + " ", 1), a("p", null, f(e.issueNumber), 1)])])])]), a("div", Xa, [a("div", {
                    class: H(["acitveBtn", {
                        active: y.value
                    }]),
                    onClick: De(v, ["stop"])
                }, null, 10, Ya), j(" " + f(h.$t("autoShutOff3s")), 1)]), a("div", {
                    class: "closeBtn",
                    onClick: T[0] || (T[0] = De(M => c.value = !1, ["stop"]))
                })], 2)], 512), [[qt, c.value]])]
            }
            ),
            _: 3
        }))
    }
});
const Ja = X(Za, [["__scopeId", "data-v-baa1fbd1"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/WinningTips/Winning.vue"]])
  , Ka = s => (fe("data-v-ad929f00"),
s = s(),
ve(),
s)
  , Qa = {
    key: 0,
    class: "title"
}
  , er = {
    key: 1,
    class: "noWin_title"
}
  , tr = {
    key: 2,
    class: "amount"
}
  , nr = {
    key: 3,
    class: "amount"
}
  , or = {
    class: "result_txt"
}
  , sr = {
    key: 4,
    class: "result_box"
}
  , ar = {
    class: "lottery_info"
}
  , rr = Ka( () => a("div", {
    class: "lottery_img"
}, null, -1))
  , lr = {
    class: "info"
}
  , ir = Y({
    __name: "Winning",
    setup(s, {expose: i}) {
        const {currentGame: t} = Te()
          , r = B(!1)
          , l = B(!1)
          , d = B(!1)
          , c = B(null)
          , b = $e({
            issueNumber: "",
            amount: 0,
            result: null
        })
          , p = () => {
            d.value = !d.value,
            d.value ? (clearTimeout(c.value),
            c.value = setTimeout( () => {
                d.value = !1,
                r.value = !1,
                b.issueNumber = "",
                b.amount = 0,
                b.result = null
            }
            , 3e3)) : clearTimeout(c.value)
        }
        ;
        return i({
            open: async $ => {
                d.value = !1,
                r.value = !0,
                l.value = $.isWin,
                b.issueNumber = $.issueNumber,
                b.amount = $.amount,
                b.result = $.result,
                p()
            }
        }),
        ($, e) => (w(),
        ye(k(Fn), {
            show: r.value,
            "z-index": "99",
            onClick: e[2] || (e[2] = n => r.value = !1)
        }, {
            default: F( () => {
                var n;
                return [a("div", {
                    class: H(["winning", {
                        winBg: l.value,
                        failBg: !l.value
                    }]),
                    onClick: e[1] || (e[1] = De( () => {}
                    , ["stop"]))
                }, [a("div", {
                    class: H(["winning-wrap", {
                        noWin: !l.value
                    }])
                }, [l.value ? (w(),
                C("div", Qa, f($.$t("motoTip1")), 1)) : (w(),
                C("div", er, f($.$t("common.fail")), 1)), l.value ? (w(),
                C("div", tr, f(b.amount), 1)) : (w(),
                C("div", nr, f($.$t("motoTip2")), 1)), a("div", or, f($.$t("motoTip3")), 1), b.result ? (w(),
                C("div", sr, [Pe($.$slots, "result", {
                    data: {
                        result: b.result,
                        isWin: l.value
                    }
                }, void 0, !0)])) : N("v-if", !0), a("div", ar, [rr, a("div", lr, [a("div", null, f($.$t("game")) + ":" + f(((n = k(t)) == null ? void 0 : n.gameName) || ""), 1), a("div", null, f($.$t("motoTip4")) + ":", 1), a("div", null, f(b.issueNumber), 1)])]), a("div", {
                    class: "go_it",
                    onClick: e[0] || (e[0] = De(o => r.value = !1, ["stop"]))
                }, f($.$t("motoTip5")), 1)], 2)], 2)]
            }
            ),
            _: 3
        }, 8, ["show"]))
    }
});
const d_ = X(ir, [["__scopeId", "data-v-ad929f00"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/Winning3/Winning.vue"]])
  , cr = "/assets/png/empty-state-465716d6.png"
  , ur = s => (fe("data-v-564de1be"),
s = s(),
ve(),
s)
  , dr = {
    class: "empty-state"
}
  , _r = ur( () => a("img", {
    src: cr,
    alt: "Empty state",
    class: "empty-image"
}, null, -1))
  , pr = {
    class: "empty-text"
}
  , fr = Y({
    __name: "EmptyState",
    setup(s) {
        return (i, t) => (w(),
        C("div", dr, [_r, a("p", pr, f(i.$t("strategyTip")), 1)]))
    }
});
const cn = X(fr, [["__scopeId", "data-v-564de1be"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/EmptyState.vue"]])
  , un = "/assets/png/try-f58fb39f.png"
  , dn = s => (fe("data-v-a14b4791"),
s = s(),
ve(),
s)
  , vr = {
    class: "historical-strategy"
}
  , mr = {
    class: "strategy-list"
}
  , gr = {
    class: "card-header"
}
  , yr = {
    class: "avatar"
}
  , hr = ["src"]
  , br = {
    class: "strategy-info"
}
  , wr = {
    class: "strategy-name"
}
  , $r = {
    class: "strategy-type"
}
  , Cr = {
    class: "strategy-tags"
}
  , kr = {
    key: 0,
    class: "tag tag-martingale"
}
  , Tr = {
    key: 1,
    class: "tag tag-try-it"
}
  , Sr = dn( () => a("div", {
    class: "card-divider"
}, null, -1))
  , Ar = {
    class: "card-content"
}
  , Lr = {
    class: "info-row"
}
  , Ir = {
    class: "info-item"
}
  , Br = {
    class: "info-label"
}
  , Pr = {
    class: "info-item"
}
  , Dr = {
    class: "info-value"
}
  , xr = {
    class: "info-row"
}
  , Nr = {
    class: "info-item"
}
  , Mr = {
    class: "info-label"
}
  , Rr = {
    class: "info-item"
}
  , Or = {
    class: "info-row"
}
  , Er = {
    class: "info-item"
}
  , Gr = {
    class: "info-label"
}
  , Fr = {
    class: "info-item"
}
  , Hr = {
    class: "info-value"
}
  , Vr = {
    class: "info-row"
}
  , qr = {
    class: "info-item"
}
  , Wr = {
    class: "info-label"
}
  , jr = {
    class: "info-item"
}
  , Ur = {
    class: "info-value"
}
  , zr = {
    class: "status-row"
}
  , Xr = {
    key: 0,
    class: "try-it-watermark"
}
  , Yr = dn( () => a("img", {
    src: un,
    alt: "Try it"
}, null, -1))
  , Zr = [Yr]
  , Jr = Y({
    __name: "History",
    props: {
        list: {
            type: Array,
            default: []
        }
    },
    setup(s) {
        return (i, t) => {
            var r;
            return w(),
            C("div", vr, [N(" 策略列表 "), a("div", mr, [((r = s.list) == null ? void 0 : r.length) !== 0 ? (w(!0),
            C(q, {
                key: 0
            }, K(s.list, (l, d) => (w(),
            C("div", {
                class: "strategy-card",
                key: d
            }, [a("div", gr, [a("div", yr, [a("img", {
                src: l.headImgUrl,
                alt: "avatar"
            }, null, 8, hr)]), a("div", br, [a("div", wr, [j(f(l.name) + " ", 1), a("span", $r, f(l.playType), 1)]), a("div", Cr, [a("div", {
                class: H(["tag", l.playBet ? l.playBet : k(Me)[l.followPlayType]])
            }, f(l.playBet || k(Me)[l.followPlayType]), 3), (l == null ? void 0 : l.isOpenDoubleBet) === 1 ? (w(),
            C("div", kr, f(l.doubleBetMultiple), 1)) : N("v-if", !0), l.orderType === 0 ? (w(),
            C("div", Tr, "Try it")) : N("v-if", !0)])])]), Sr, a("div", Ar, [a("div", Lr, [a("div", Ir, [a("div", Br, f(i.$t("Tron")) + ":", 1)]), a("div", Pr, [a("div", Dr, f(Number(l.winIssueCount + l.lossIssueCount)), 1)])]), a("div", xr, [a("div", Nr, [a("div", Mr, f(i.$t("Treve")) + ":", 1)]), a("div", Rr, [a("div", {
                class: H(["info-value revenue", {
                    negative: l.totalWinLossAmount < 0
                }])
            }, f(k(re)(l.totalWinLossAmount)), 3)])]), a("div", Or, [a("div", Er, [a("div", Gr, f(i.$t("startTime")) + ":", 1)]), a("div", Fr, [a("div", Hr, f(k(Qe)(l.startTime)), 1)])]), a("div", Vr, [a("div", qr, [a("div", Wr, f(i.$t("lotteryActivityEndTime")) + ":", 1)]), a("div", jr, [a("div", Ur, f(k(Qe)(l.endTime)), 1)])]), a("div", zr, [a("div", {
                class: H(["status status-completed", {
                    "status-exceeded": l.stopReason !== "IssueCountFinish"
                }])
            }, [L(k(we), {
                name: "warning-o",
                class: "status-icon"
            }), j(" " + f(i.$t(`${l.stopReason}`)), 1)], 2), l.orderType === 0 ? (w(),
            C("div", Xr, Zr)) : N("v-if", !0)])])]))), 128)) : (w(),
            ye(cn, {
                key: 1
            }))])])
        }
    }
});
const Kr = X(Jr, [["__scopeId", "data-v-a14b4791"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/History.vue"]])
  , Qr = s => (fe("data-v-17f6c92c"),
s = s(),
ve(),
s)
  , el = {
    class: "strategy-content"
}
  , tl = {
    class: "title"
}
  , nl = {
    class: "label"
}
  , ol = {
    class: "value"
}
  , sl = {
    key: 0,
    class: "try"
}
  , al = {
    class: "progress-bar"
}
  , rl = {
    class: "win-lose-stats"
}
  , ll = {
    class: "win"
}
  , il = {
    class: "lose"
}
  , cl = {
    class: "strategy-benefits"
}
  , ul = {
    class: "label"
}
  , dl = {
    class: "amount"
}
  , _l = {
    class: "betting-details"
}
  , pl = {
    key: 0,
    class: "try"
}
  , fl = Qr( () => a("img", {
    src: un,
    alt: ""
}, null, -1))
  , vl = [fl]
  , ml = {
    class: "box"
}
  , gl = {
    class: "detail-row"
}
  , yl = {
    class: "detail-label"
}
  , hl = {
    class: "detail-value"
}
  , bl = {
    class: "detail-row"
}
  , wl = {
    class: "detail-label"
}
  , $l = {
    class: "detail-value win-wager"
}
  , Cl = {
    key: 0,
    class: "detail-row"
}
  , kl = {
    class: "detail-label"
}
  , Tl = {
    class: "detail-value"
}
  , Sl = {
    class: "detail-row"
}
  , Al = {
    class: "detail-label"
}
  , Ll = {
    class: "detail-row"
}
  , Il = {
    class: "detail-label"
}
  , Bl = {
    class: "detail-value"
}
  , Pl = {
    class: "detail-row"
}
  , Dl = {
    class: "detail-label"
}
  , xl = {
    class: "detail-value top1"
}
  , Nl = {
    class: "detail-row"
}
  , Ml = {
    class: "detail-label"
}
  , Rl = {
    class: "detail-value top2"
}
  , Ol = {
    class: "stop-button-container"
}
  , El = Y({
    __name: "BetStrategy",
    props: {
        info: {
            type: Object,
            required: !0
        }
    },
    emits: ["prohibit"],
    setup(s, {emit: i}) {
        const t = s
          , {stopStrategy: r} = bt()
          , l = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.preIssueCount
        }
        )
          , d = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.winIssueCount
        }
        )
          , c = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.lossIssueCount
        }
        )
          , b = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.totalWinLossAmount
        }
        )
          , p = x( () => l.value - d.value - c.value)
          , y = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.betAmount
        }
        )
          , $ = x( () => y.value)
          , e = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.isOpenDoubleBet
        }
        )
          , n = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.currentMarginAmount
        }
        )
          , o = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.stopProfitAmount
        }
        )
          , u = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.stopLossAmount
        }
        )
          , _ = x( () => {
            var g;
            return (g = t.info) == null ? void 0 : g.betAmountAfterLose
        }
        )
          , v = B(!1)
          , m = x( () => {
            const g = d.value + c.value;
            return g > 0 ? d.value / g * 100 : 50
        }
        )
          , S = async () => {
            await r(t.info.orderNo).then( () => {
                i("prohibit")
            }
            )
        }
          , h = B([])
          , T = B(null)
          , A = () => {
            v.value = !v.value,
            h.value = v.value ? ["1"] : [],
            T.value.toggleAll(v.value)
        }
          , M = x( () => {
            var D;
            const g = (D = t.info.playBet) == null ? void 0 : D.toLowerCase();
            return g != null && g.includes("red") ? "red" : g != null && g.includes("big") ? "big" : g != null && g.includes("small") ? "small" : g != null && g.includes("green") ? "green" : g != null && g.includes("violet") ? "violet" : ""
        }
        )
          , P = x( () => {
            const g = Me[t.info.followPlayType];
            return g != null && g.includes("purple") ? "purple" : g != null && g.includes("against") ? "against" : g != null && g.includes("follow") ? "follow" : ""
        }
        );
        return (g, D) => {
            var R, O, V, te, Z, le, ge;
            const E = Q("van-collapse-item")
              , I = Q("van-collapse");
            return w(),
            C("div", el, [a("div", tl, [a("div", nl, f((R = t.info) == null ? void 0 : R.name), 1), a("div", ol, f((O = t.info) == null ? void 0 : O.playType), 1), a("div", {
                class: H(["bet", (V = t.info) != null && V.playBet ? M.value : P.value])
            }, f(((te = t.info) == null ? void 0 : te.playBet) || k(Me)[(Z = t.info) == null ? void 0 : Z.followPlayType]), 3), ((le = t.info) == null ? void 0 : le.orderType) === 0 ? (w(),
            C("div", sl, f(g.$t("tryIt")), 1)) : N("v-if", !0)]), a("div", al, [a("div", {
                class: "progressBox",
                style: Hn({
                    width: m.value + "%"
                })
            }, null, 4)]), a("div", rl, [a("div", ll, [a("h2", null, f(g.$t("stWin")) + " " + f(d.value), 1)]), a("div", il, [a("h2", null, f(g.$t("stLose")) + " " + f(c.value), 1)])]), a("div", cl, [a("div", ul, f(g.$t("sb")), 1), a("div", dl, f(k(re)(b.value)), 1)]), L(I, {
                modelValue: h.value,
                "onUpdate:modelValue": D[1] || (D[1] = pe => h.value = pe),
                ref_key: "collapse",
                ref: T
            }, {
                default: F( () => {
                    var pe, ae;
                    return [a("div", _l, [N(" 试玩标识 "), ((pe = s.info) == null ? void 0 : pe.orderType) === 0 ? (w(),
                    C("div", pl, vl)) : N("v-if", !0), a("div", ml, [a("div", gl, [a("span", yl, f(g.$t("bron")), 1), a("span", hl, f(p.value), 1)]), a("div", bl, [a("span", wl, f(g.$t("waaw")), 1), a("span", $l, f(k(re)(y.value)), 1)]), ((ae = s.info) == null ? void 0 : ae.isOpenDoubleBet) === 1 ? (w(),
                    C("div", Cl, [a("span", kl, f(g.$t("waal")), 1), a("span", Tl, [N("{ currency(wagerAfterLoss) }}"), j(" " + f(e.value === 1 ? k(re)(_.value) : k(re)($.value)), 1)])])) : N("v-if", !0), a("div", Sl, [a("span", Al, f(g.$t("wtem")), 1), L(k(Wt), {
                        "active-color": "var(--main-color)",
                        "active-value": 1,
                        "inactive-value": 0,
                        modelValue: e.value,
                        "onUpdate:modelValue": D[0] || (D[0] = U => e.value = U),
                        disabled: "",
                        size: "24"
                    }, null, 8, ["modelValue"])]), L(E, {
                        name: "1",
                        border: !1,
                        "is-link": !1
                    }, {
                        default: F( () => [a("div", Ll, [a("span", Il, f(g.$t("margin")), 1), a("span", Bl, f(k(re)(n.value)), 1)]), a("div", Pl, [a("span", Dl, f(g.$t("tpa")), 1), a("span", xl, "+" + f(k(re)(o.value)), 1)]), a("div", Nl, [a("span", Ml, f(g.$t("sla")), 1), a("span", Rl, "-" + f(k(re)(u.value)), 1)])]),
                        _: 1
                    })]), a("div", {
                        class: "expand-more",
                        onClick: A
                    }, [j(f(v.value ? g.$t("pickUp") : g.$t("emore")) + " ", 1), L(k(we), {
                        name: v.value ? "arrow-up" : "arrow-down"
                    }, null, 8, ["name"])])])]
                }
                ),
                _: 1
            }, 8, ["modelValue"]), a("div", Ol, [L(k(Ue), {
                block: "",
                type: "primary",
                disabled: ((ge = s.info) == null ? void 0 : ge.state) === 2,
                class: "stop-button",
                onClick: S
            }, {
                default: F( () => {
                    var pe;
                    return [j(f(((pe = s.info) == null ? void 0 : pe.state) === 2 ? g.$t("hint6") : g.$t("stopStrage")), 1)]
                }
                ),
                _: 1
            }, 8, ["disabled"])])])
        }
    }
});
const Gl = X(El, [["__scopeId", "data-v-17f6c92c"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/BetStrategy.vue"]])
  , Fl = "/assets/png/close-32ada670.png"
  , wt = s => (fe("data-v-fc78d8ff"),
s = s(),
ve(),
s)
  , Hl = {
    class: "bet-rule"
}
  , Vl = {
    class: "bet-rule-head"
}
  , ql = wt( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , Wl = wt( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , jl = {
    key: 0,
    class: "bet-rule-foot"
}
  , Ul = wt( () => a("img", {
    src: Fl,
    alt: ""
}, null, -1))
  , zl = [Ul]
  , Xl = Y({
    __name: "FollowBetPop",
    props: {
        title: {
            type: String
        },
        showPop: {
            type: Boolean,
            default: !1
        },
        isPagina: {
            type: Boolean,
            default: !1
        },
        isClose: {
            type: Boolean,
            default: !1
        },
        totalCount: {
            type: Number,
            default: 1,
            required: !1
        },
        totalPage: {
            type: Number,
            default: 1,
            required: !1
        },
        pageNo: {
            type: Number,
            default: 1,
            required: !1
        }
    },
    emits: ["close", "PaginatChange"],
    setup(s, {emit: i}) {
        const t = B(1);
        return (r, l) => {
            const d = Q("van-popup");
            return w(),
            ye(d, {
                show: s.showPop,
                round: "",
                "close-on-click-overlay": !1,
                "destroy-on-close": !0,
                class: "boxPop"
            }, {
                default: F( () => [a("div", Hl, [a("div", Vl, [ql, a("span", null, "· " + f(s.title) + " ·", 1), Wl]), a("div", {
                    class: H(["bet-rule-conent", s.isPagina ? "" : "noPagtion"])
                }, [Pe(r.$slots, "default", {}, void 0, !0)], 2), s.isPagina ? (w(),
                C("div", jl, [Pe(r.$slots, "foot", {}, () => [L(k(Vn), {
                    "force-ellipses": "",
                    modelValue: t.value,
                    "onUpdate:modelValue": l[0] || (l[0] = c => t.value = c),
                    "items-per-page": 10,
                    "total-items": s.totalCount,
                    "page-count": s.totalPage,
                    onChange: l[1] || (l[1] = c => {
                        i("PaginatChange", c)
                    }
                    )
                }, {
                    "prev-text": F( () => [L(k(we), {
                        name: "arrow-left"
                    })]),
                    "next-text": F( () => [L(k(we), {
                        name: "arrow"
                    })]),
                    page: F( ({text: c}) => [j(f(c), 1)]),
                    _: 1
                }, 8, ["modelValue", "total-items", "page-count"])], !0)])) : N("v-if", !0), N(" 关闭按钮图标 "), s.isClose ? (w(),
                C("div", {
                    key: 1,
                    class: "closeIcon",
                    onClick: l[2] || (l[2] = c => i("close"))
                }, zl)) : N("v-if", !0)])]),
                _: 3
            }, 8, ["show"])
        }
    }
});
const ft = X(Xl, [["__scopeId", "data-v-fc78d8ff"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/FollowBetPop.vue"]])
  , Yl = {
    class: "betting-strategy"
}
  , Zl = {
    class: "page-header"
}
  , Jl = {
    class: "title-container"
}
  , Kl = {
    class: "title"
}
  , Ql = {
    key: 0,
    class: "flex-center",
    style: {
        height: "215px"
    }
}
  , ei = {
    key: 0,
    class: "flex-center",
    style: {
        height: "200px"
    }
}
  , ti = {
    key: 0,
    class: "flex-center",
    style: {
        height: "100%"
    }
}
  , ni = ["innerHTML"]
  , oi = Y({
    __name: "PageHeader",
    props: {
        title: {
            type: String,
            required: !0
        },
        currentStrategy: {
            type: Array,
            required: !0
        }
    },
    emits: ["stopBet"],
    setup(s, {emit: i}) {
        const t = s
          , {totalCount: r, pageNo: l, totalPage: d, getHistoryStrategiesList: c, historyStrategiesList: b, getFollowBetRule: p, followRule: y} = bt()
          , $ = B(l.value)
          , e = T => {
            $.value = T
        }
          , n = B(!0)
          , o = x( () => {
            var T, A;
            return !n.value && (((T = t.currentStrategy) == null ? void 0 : T.length) === 0 || ((A = t.currentStrategy[0]) == null ? void 0 : A.state) === 0)
        }
        );
        se( () => t.currentStrategy, () => {
            n.value = !0,
            setTimeout( () => {
                n.value = !1
            }
            , 100)
        }
        , {
            immediate: !0
        }),
        xe( () => {
            setTimeout( () => {
                n.value = !1
            }
            , 200)
        }
        );
        const u = B(!0);
        se( () => $.value, () => {
            c({
                pageSize: 10,
                pageNo: $.value
            })
        }
        );
        const _ = async () => {
            await c({
                pageSize: 10,
                pageNo: 1
            }),
            i("stopBet")
        }
          , v = B(!1)
          , m = () => {
            v.value = !0,
            c({
                pageSize: 10,
                pageNo: 1
            })
        }
        ;
        se( () => b.value, () => {
            b.value && (u.value = !1)
        }
        );
        const S = B(!1)
          , h = () => {
            p(),
            S.value = !S.value
        }
        ;
        return (T, A) => {
            const M = Q("van-loading");
            return w(),
            C(q, null, [a("div", Yl, [a("div", Zl, [a("div", Jl, [a("h1", Kl, f(s.title), 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: h
            })]), a("div", {
                class: "history-btn",
                onClick: m
            }, [L(k(we), {
                name: "clock-o",
                class: "history-icon"
            }), a("span", null, f(T.$t("strategyHistory")), 1)])]), N(" 加载中提示组件 "), n.value ? (w(),
            C("div", Ql, [L(M, {
                type: "spinner",
                color: "#FD565C"
            })])) : o.value ? (w(),
            C(q, {
                key: 1
            }, [N(" 空状态提示组件 "), L(cn)], 2112)) : (w(),
            C(q, {
                key: 2
            }, [N("当前跟投的信息"), L(Gl, {
                info: s.currentStrategy[0],
                onProhibit: _
            }, null, 8, ["info"])], 2112))]), N("历史记录弹框 "), L(ft, {
                show: v.value,
                title: T.$t("hstrage"),
                onClose: A[0] || (A[0] = P => v.value = !1),
                onPaginatChange: e,
                totalCount: k(r),
                totalPage: k(d),
                pageNo: k(l),
                isClose: !0,
                isPagina: !0
            }, {
                default: F( () => [u.value ? (w(),
                C("div", ei, [L(M, {
                    type: "spinner",
                    color: "#FD565C"
                })])) : (w(),
                ye(Kr, {
                    key: 1,
                    list: k(b)
                }, null, 8, ["list"]))]),
                _: 1
            }, 8, ["show", "title", "totalCount", "totalPage", "pageNo"]), N("跟单规则"), L(ft, {
                show: S.value,
                title: k(y).content1,
                onClose: A[1] || (A[1] = P => S.value = !1),
                isClose: !0
            }, {
                default: F( () => [k(y).content2 ? (w(),
                C("div", {
                    key: 1,
                    innerHTML: k(y).content2
                }, null, 8, ni)) : (w(),
                C("div", ti, [L(M, {
                    type: "spinner",
                    color: "#FD565C"
                })]))]),
                _: 1
            }, 8, ["show", "title"])], 64)
        }
    }
});
const si = X(oi, [["__scopeId", "data-v-29779131"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/PageHeader.vue"]])
  , ai = "/assets/png/uer-b012a664.png"
  , ri = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function li(s, i) {
    return w(),
    C("svg", ri, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        "fill-rule": "evenodd",
        d: "M16.718 17.869c7.012 0 12.68-2.857 12.68-6.378V9.378C29.397 5.856 23.73 3 16.717 3S4.02 5.856 4.02 9.378v2.113c0 3.521 5.688 6.378 12.7 6.378m0 12.756c1.364 0 2.669-.118 3.895-.313a8.2 8.2 0 0 1-.253-1.976c0-.763.117-1.507.312-2.211-1.247.156-2.59.254-3.973.254C9.687 26.38 4 24.19 4 20.666v3.58c.02 3.522 5.707 6.379 12.718 6.379m12.076-9.489c-3.974 0-7.207 3.248-7.207 7.239s3.233 7.239 7.207 7.239S36 32.366 36 28.374c0-4.01-3.233-7.238-7.206-7.238m-.001 12.13a1.175 1.175 0 0 1-1.169-1.173v-2.54h-2.53a1.175 1.175 0 0 1-1.17-1.148v-.025c0-.646.527-1.174 1.17-1.174h2.53v-2.548c0-.637.512-1.16 1.144-1.173h.025c.643 0 1.169.528 1.169 1.173v2.548h2.532a1.175 1.175 0 0 1 0 2.348h-2.532v2.539a1.175 1.175 0 0 1-1.17 1.173m-12.075-.512c1.695 0 3.292-.137 4.772-.372a7.94 7.94 0 0 0 3.467 3.091c-2.22.959-5.103 1.526-8.239 1.526-7.011 0-12.698-2.856-12.698-6.378v-3.58c0 3.521 5.687 5.713 12.698 5.713m5.181-9.059a24 24 0 0 1-5.18.548c-7.012 0-12.7-2.856-12.7-6.378v-3.58c0 3.521 5.688 5.713 12.7 5.713 7.01 0 12.679-2.192 12.698-5.713v3.58c0 .959-.409 1.859-1.15 2.66h-.096a7.8 7.8 0 0 0-6.272 3.17",
        "clip-rule": "evenodd"
    }, null, -1)])])
}
const ii = {
    render: li
}
  , ci = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function ui(s, i) {
    return w(),
    C("svg", ci, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        d: "M4.055 9.814a11.08 11.08 0 0 1 7.663-5.65 1.08 1.08 0 0 0-.412-2.124 13.22 13.22 0 0 0-9.153 6.75 1.081 1.081 0 0 0 1.624 1.368 1.1 1.1 0 0 0 .269-.33zm33.82-1.025a13.24 13.24 0 0 0-9.153-6.749 1.08 1.08 0 0 0-1.102 1.667c.16.237.409.402.69.456a11.07 11.07 0 0 1 7.663 5.651 1.08 1.08 0 0 0 1.902-1.023zm-2.32 11.898a15.89 15.89 0 0 0-7.28-13.35A15.85 15.85 0 0 0 7.008 11.16a15.885 15.885 0 0 0 2.272 21.507l-2.72 2.726a1.514 1.514 0 1 0 2.138 2.14l2.8-2.803q.137-.138.235-.308a15.86 15.86 0 0 0 15.746.1q.08.113.18.208l2.8 2.804a1.51 1.51 0 0 0 2.137-.001 1.514 1.514 0 0 0 0-2.14l-2.614-2.617a15.84 15.84 0 0 0 5.571-12.09zm-17.53 7.27-.198-6.662-4.25.137 7.285-8.494.623 6.87 4.317.139z"
    }, null, -1)])])
}
const di = {
    render: ui
}
  , _i = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function pi(s, i) {
    return w(),
    C("svg", _i, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        "fill-rule": "evenodd",
        d: "M20.889 2.65 19.993 2l-.889.653c-.02.015-2.292 1.658-5.817 3.093a21.3 21.3 0 0 1-6.798 1.467L5 7.237v15.132C5 29.965 14.757 38 20 38c5.248 0 15-8.034 15-15.63l-.009-15.132-1.483-.025a21.3 21.3 0 0 1-6.8-1.467c-3.527-1.435-5.798-3.078-5.82-3.096m-3.386 24.14a5.7 5.7 0 0 1-1.585-1.237L14 27.47q1.146 1.06 2.597 1.753a7.4 7.4 0 0 0 3.023.694v2.787h1.398v-2.787q2.29-.329 3.623-1.803 1.332-1.426 1.358-3.595.067-4.174-4.98-5.322v-5.499a5.3 5.3 0 0 1 3.023 1.21l1.584-1.954q-2.05-1.702-4.608-1.728V9.41H19.62v1.816q-4.661.644-4.741 5.285-.106 4.01 4.741 5.17v5.764q-1.252-.138-2.117-.656m2.117-13.092v5.196q-1.092-.34-1.518-.958-.44-.593-.44-1.476 0-.693.187-1.185.16-.492.413-.82.572-.656 1.358-.757m1.398 13.747v-5.448q1.305.252 1.772.92.44.681.44 1.577 0 1.11-.467 1.866-.493.77-1.745 1.085",
        "clip-rule": "evenodd"
    }, null, -1)])])
}
const fi = {
    render: pi
}
  , vi = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function mi(s, i) {
    return w(),
    C("svg", vi, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        "fill-rule": "evenodd",
        d: "M39 20c0 10.493-8.507 19-19 19S1 30.493 1 20 9.507 1 20 1s19 8.507 19 19m-6.854-3.672 3.322-1.917.003.012.005-.004a16.4 16.4 0 0 0-3.274-5.435l-4.723.78c2.172 1.585 3.823 3.846 4.667 6.564M20 30.16c5.602 0 10.159-4.557 10.159-10.159 0-5.6-4.557-10.158-10.16-10.158-5.601 0-10.158 4.557-10.158 10.158 0 5.602 4.557 10.16 10.159 10.16m3.167-26.312c-1.021-.2-2.075-.312-3.153-.313h.01H20h.014a16 16 0 0 0-3.181.313v3.878a12.6 12.6 0 0 1 3.127-.417c1.14 0 2.245.153 3.207.417zM7.799 8.984l-.001-.001.004-.004zm0 0 3.353 1.936a12.67 12.67 0 0 0-3.696 7.13l-2.924-3.64a16.7 16.7 0 0 1 3.267-5.426m-.087 14.14L4.34 25.068l-.001-.005-.004.006a16.4 16.4 0 0 0 3.085 5.534l4.512-.83c-2.022-1.665-3.518-3.95-4.22-6.65m8.99 13.008c1.065.218 2.167.334 3.298.336h-.025c1.13 0 2.232-.114 3.192-.313v-3.877a12.6 12.6 0 0 1-3.167.416c-1.096 0-2.153-.154-3.167-.416zm15.875-5.529zl-.008.009zm-.008.01-.003.003zm3.09-5.543a16.7 16.7 0 0 1-3.082 5.533l-3.337-1.927a12.6 12.6 0 0 0 3.342-7.101zm-16.866-8.085c0 .626.665 1.026 2.28 1.633l-.002.001c2.262.798 3.173 1.843 3.172 3.552 0 1.69-1.197 3.135-3.381 3.515v.981a.93.93 0 0 1-.93.931h-.001a.93.93 0 0 1-.93-.93l.322-.84a8.7 8.7 0 0 1-2.447-.366 1.246 1.246 0 0 1-.838-1.501l.01-.04c.114-.429.505-.746.97-.746.12 0 .235.021.257.03.69.26 1.437.404 2.219.41 1.084 0 1.825-.42 1.825-1.179 0-.72-.608-1.177-2.013-1.652-2.033-.684-3.42-1.634-3.42-3.477 0-1.671 1.178-2.982 3.211-3.382v-.873a.93.93 0 0 1 1.02-.927c.483.045.842.47.842.954l-.24.71a8 8 0 0 1 1.934.244 1.134 1.134 0 0 1 .808 1.377l-.018.066a1 1 0 0 1-.48.623.98.98 0 0 1-.743.095 5.8 5.8 0 0 0-1.764-.273h-.029c-1.235 0-1.634.532-1.634 1.064",
        "clip-rule": "evenodd"
    }, null, -1)])])
}
const gi = {
    render: mi
}
  , yi = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function hi(s, i) {
    return w(),
    C("svg", yi, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        d: "M36.987 13.955c-1.236-4.472-5.832-7.148-10.347-6.032l-.076.04c-.84.2-1.52.68-2.12 1.32-.92 1-2.596 1.676-4.472 1.676-1.88 0-3.596-.676-4.476-1.676-.56-.64-1.28-1.12-2.12-1.32l-.076-.04C8.785 6.807 4.19 9.483 2.953 13.955c-1.4 5.115-2.12 8.827-1.92 13.463.04 1.28.56 2.396 1.4 3.276.8.88 1.956 1.44 3.196 1.6 1.716.2 3.396-.48 4.512-1.76l1.16-1.316c1.68-2.12 4.955-3.556 8.707-3.556 3.756 0 6.992 1.436 8.712 3.556l1.16 1.316a5.2 5.2 0 0 0 4.511 1.76 5.02 5.02 0 0 0 3.196-1.6c.84-.88 1.36-1.996 1.4-3.276.12-4.636-.6-8.348-2-13.463m-22.45 5.475H12.54v1.996c0 .72-.6 1.32-1.32 1.32s-1.316-.6-1.316-1.32V19.43h-2c-.72 0-1.315-.6-1.315-1.32 0-.36.156-.72.396-.956.24-.24.56-.4.96-.4h2v-2.04c0-.72.595-1.315 1.315-1.315.36 0 .72.16.96.4.24.236.4.556.4.956v2.04h1.996c.72 0 1.32.595 1.32 1.315-.04.72-.64 1.32-1.4 1.32M29.28 13.32c.875 0 1.595.716 1.595 1.636 0 .88-.72 1.6-1.595 1.6-.88 0-1.64-.72-1.64-1.6 0-.92.72-1.636 1.64-1.636m-3.196 6.431c-.88 0-1.6-.72-1.6-1.64 0-.88.72-1.595 1.6-1.595a1.6 1.6 0 0 1 1.596 1.595c.04.88-.68 1.64-1.596 1.64m3.196 3.156c-.88 0-1.64-.72-1.64-1.64 0-.876.72-1.596 1.64-1.596.875 0 1.595.72 1.595 1.596 0 .92-.72 1.64-1.595 1.64m3.155-3.156c-.88 0-1.64-.72-1.64-1.64 0-.88.72-1.595 1.64-1.595a1.6 1.6 0 0 1 1.596 1.595c0 .88-.72 1.64-1.596 1.64"
    }, null, -1)])])
}
const bi = {
    render: hi
}
  , wi = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function $i(s, i) {
    return w(),
    C("svg", wi, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        "fill-rule": "evenodd",
        d: "M29.397 11.49c0 3.522-5.667 6.378-12.679 6.378-7.011 0-12.699-2.856-12.699-6.378V9.378C4.02 5.856 9.707 3 16.72 3c7.01 0 12.678 2.856 12.678 6.378zm-8.783 18.82a25 25 0 0 1-3.896.313C9.707 30.623 4.02 27.767 4 24.246v-3.58c0 3.521 5.687 5.712 12.699 5.712 1.383 0 2.726-.098 3.973-.254a8.3 8.3 0 0 0-.312 2.21c0 .685.098 1.35.253 1.976m.973-1.936c0-3.991 3.233-7.239 7.207-7.239S36 24.363 36 28.373c0 3.991-3.233 7.239-7.206 7.239s-7.207-3.248-7.207-7.239m10.907 1.173a1.175 1.175 0 0 0 0-2.347h-7.4a1.175 1.175 0 0 0 0 2.347zm-15.776 3.209c1.695 0 3.292-.137 4.772-.372a7.94 7.94 0 0 0 3.467 3.091c-2.22.959-5.103 1.526-8.239 1.526-7.011 0-12.699-2.856-12.699-6.377v-3.58c0 3.52 5.688 5.712 12.7 5.712m5.18-9.058a24 24 0 0 1-5.18.548c-7.011 0-12.699-2.856-12.699-6.378v-3.58c0 3.522 5.688 5.713 12.7 5.713 7.01 0 12.678-2.191 12.698-5.713v3.58c0 .959-.41 1.859-1.15 2.661h-.097a7.8 7.8 0 0 0-6.271 3.17",
        "clip-rule": "evenodd"
    }, null, -1)])])
}
const Ci = {
    render: $i
}
  , ki = {
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 40 40"
};
function Ti(s, i) {
    return w(),
    C("svg", ki, [...i[0] || (i[0] = [a("path", {
        fill: "var(--main-color)",
        d: "M16.182 31.036a11.43 11.43 0 0 0 3.406 5.95q-.47.013-.952.014C10.602 37 5 34.26 5 31.804v-4.417c2.26 2.073 6.636 3.317 11.182 3.649m2.416-9.988C10.583 21.04 5 18.306 5 15.852v-4.417c2.665 2.445 8.272 3.74 13.636 3.74 5.365 0 10.972-1.295 13.637-3.74v4.417c0 .717-.475 1.456-1.348 2.145-1.304-.55-2.699-.832-4.107-.83a10.5 10.5 0 0 0-4.516 1.013 10.9 10.9 0 0 0-3.704 2.868m-2.667 8.189C9.37 28.71 5 26.318 5 24.148V19.09c2.457 2.256 7.418 3.53 12.382 3.715a11.64 11.64 0 0 0-1.451 6.432M18.636 3c8.038 0 13.637 2.74 13.637 5.196 0 2.457-5.6 5.197-13.637 5.197C10.602 13.393 5 10.653 5 8.196S10.602 3 18.636 3m8.182 34c-2.17 0-4.25-.895-5.785-2.49-1.535-1.594-2.397-3.756-2.397-6.01s.862-4.416 2.397-6.01S24.648 20 26.818 20s4.251.895 5.786 2.49C34.138 24.084 35 26.246 35 28.5s-.862 4.416-2.396 6.01C31.069 36.105 28.988 37 26.818 37m-4.364-2.833H24.5v-7.39l4.4 7.39h2.208V22.833h-2.045v7.568l-4.465-7.568h-2.143z"
    }, null, -1)])])
}
const Si = {
    render: Ti
}
  , _n = s => (fe("data-v-3b9458ad"),
s = s(),
ve(),
s)
  , Ai = {
    class: "contentBox"
}
  , Li = {
    class: "form-item"
}
  , Ii = {
    class: "label-container"
}
  , Bi = {
    class: "label"
}
  , Pi = _n( () => a("span", {
    class: "required"
}, "*", -1))
  , Di = {
    class: "input-group"
}
  , xi = {
    class: "action-buttons"
}
  , Ni = {
    class: "form-item"
}
  , Mi = {
    class: "label-container"
}
  , Ri = {
    class: "label"
}
  , Oi = _n( () => a("span", {
    class: "required"
}, "*", -1))
  , Ei = {
    class: "form-item"
}
  , Gi = {
    class: "label-container"
}
  , Fi = {
    class: "label"
}
  , Hi = {
    class: "form-item"
}
  , Vi = {
    class: "label-container"
}
  , qi = {
    class: "label"
}
  , Wi = {
    class: "form-item"
}
  , ji = {
    class: "label-container"
}
  , Ui = {
    class: "label"
}
  , zi = {
    key: 0,
    class: "form-item"
}
  , Xi = {
    class: "label-container"
}
  , Yi = {
    class: "label"
}
  , Zi = {
    class: "strategy-parameters"
}
  , Ji = {
    class: "parameter-list"
}
  , Ki = {
    class: "parameter-item"
}
  , Qi = {
    class: "parameter-label"
}
  , ec = {
    class: "parameter-value"
}
  , tc = {
    class: "parameter-item"
}
  , nc = {
    class: "parameter-label"
}
  , oc = {
    class: "parameter-value win-value"
}
  , sc = {
    class: "parameter-item"
}
  , ac = {
    class: "parameter-label"
}
  , rc = {
    class: "parameter-value win2"
}
  , lc = {
    key: 0
}
  , ic = {
    key: 0
}
  , cc = {
    key: 0,
    class: "parameter-item"
}
  , uc = {
    class: "parameter-label"
}
  , dc = {
    class: "action-area"
}
  , _c = Y({
    __name: "FollowSetForm",
    props: {
        infoData: {
            type: Object,
            default: {}
        }
    },
    emits: ["update:visible", "confirm", "try"],
    setup(s, {expose: i, emit: t}) {
        const r = s
          , {balance: l} = Te()
          , {t: d} = ke()
          , c = $e({
            betAmount: r.infoData.defineAmount,
            preIssueCount: 10,
            initMarginAmount: "",
            stopProfitAmount: "",
            stopLossAmount: "",
            isOpenDoubleBet: 0,
            doubleBetMultiple: 1
        });
        i({
            show: () => {
                c.betAmount = r.infoData.defineAmount,
                c.preIssueCount = 10,
                c.initMarginAmount = "",
                c.stopProfitAmount = "",
                c.stopLossAmount = "",
                c.isOpenDoubleBet = 0,
                c.doubleBetMultiple = 1
            }
        });
        const p = B(!1)
          , y = B([])
          , $ = B(null)
          , e = () => {
            p.value = !p.value,
            y.value = p.value ? ["1"] : [],
            $.value.toggleAll(p.value)
        }
          , n = () => {
            const h = parseFloat(c.betAmount);
            c.betAmount = Math.floor(h / 2).toString()
        }
          , o = () => {
            const h = parseFloat(c.betAmount);
            c.betAmount = Math.floor(h * 2).toString()
        }
          , u = B("")
          , _ = B(null)
          , v = (h, T) => {
            T && T.preventDefault(),
            u.value = h,
            _.value.validate().then( () => {
                m()
            }
            ).catch(A => {}
            )
        }
          , m = () => {
            if (u.value === "default") {
                const h = {
                    ...c,
                    orderType: 0
                };
                h.isOpenDoubleBet !== 1 ? delete h.doubleBetMultiple : h.doubleBetMultiple || (h.doubleBetMultiple = 1),
                t("try", {
                    ...h
                })
            } else if (u.value === "primary") {
                const h = {
                    ...c,
                    orderType: 1
                };
                if (h.betAmount > l.value) {
                    _e(d("verify5"));
                    return
                } else if (h.betAmount < r.infoData.minAmount) {
                    _e(d("verify6"));
                    return
                } else
                    h.isOpenDoubleBet !== 1 && delete h.doubleBetMultiple;
                t("confirm", {
                    ...h
                })
            }
        }
          , S = h => {
            if (h) {
                if (h = Number(h),
                h < 1)
                    return c.doubleBetMultiple = 1;
                if (h > 15)
                    return c.doubleBetMultiple = 15;
                if (h % 1 !== 0)
                    return c.doubleBetMultiple = Math.floor(h * 10) / 10
            }
        }
        ;
        return (h, T) => {
            const A = Q("van-collapse-item")
              , M = Q("van-collapse");
            return w(),
            C("div", Ai, [L(M, {
                modelValue: y.value,
                "onUpdate:modelValue": T[10] || (T[10] = P => y.value = P),
                ref_key: "collapse",
                ref: $
            }, {
                default: F( () => [L(k(qn), {
                    onSubmit: m,
                    ref_key: "formRef",
                    ref: _
                }, {
                    default: F( () => {
                        var P;
                        return [a("div", Li, [a("div", Ii, [L(k(gi), {
                            class: "icon money-icon"
                        }), a("span", Bi, [j(f(h.$t("betA")), 1), Pi])]), a("div", Di, [L(k(Fe), {
                            max: 1e6,
                            modelValue: c.betAmount,
                            "onUpdate:modelValue": T[0] || (T[0] = g => c.betAmount = g),
                            type: "number",
                            placeholder: h.$t("hint1"),
                            class: "amount-input",
                            rules: [{
                                required: !0,
                                message: `${h.$t("verify1")}`
                            }, {
                                pattern: /^[0-9]*$/,
                                message: `${h.$t("verify2")}`
                            }]
                        }, null, 8, ["modelValue", "placeholder", "rules"]), a("div", xi, [L(k(Ue), {
                            class: "half-button",
                            onClick: n
                        }, {
                            default: F( () => [j("1/2")]),
                            _: 1
                        }), L(k(Ue), {
                            class: "double-button",
                            onClick: o
                        }, {
                            default: F( () => [j("2X")]),
                            _: 1
                        })])])]), a("div", Ni, [a("div", Mi, [L(k(di), {
                            class: "icon clock-icon"
                        }), a("span", Ri, [j(f(h.$t("betR")), 1), Oi])]), L(k(Fe), {
                            modelValue: c.preIssueCount,
                            "onUpdate:modelValue": T[1] || (T[1] = g => c.preIssueCount = g),
                            type: "number",
                            max: 1e3,
                            min: 1,
                            placeholder: h.$t("hint2"),
                            class: "round-input",
                            rules: [{
                                required: !0,
                                message: `${h.$t("verify3")}`
                            }, {
                                pattern: /^(?:[1-9]|[1-9]\d{1,2}|1000)$/,
                                message: `${h.$t("verify4")}`
                            }]
                        }, null, 8, ["modelValue", "placeholder", "rules"])]), L(A, {
                            name: "1",
                            border: !1,
                            "is-link": !1
                        }, {
                            default: F( () => [a("div", Ei, [a("div", Gi, [L(k(fi), {
                                class: "icon clock-icon"
                            }), a("span", Fi, f(h.$t("margin")), 1)]), L(k(Fe), {
                                modelValue: c.initMarginAmount,
                                "onUpdate:modelValue": T[2] || (T[2] = g => c.initMarginAmount = g),
                                type: "number",
                                placeholder: h.$t("hint3"),
                                class: "round-input"
                            }, null, 8, ["modelValue", "placeholder"])]), a("div", Hi, [a("div", Vi, [L(k(ii), {
                                class: "icon clock-icon"
                            }), a("span", qi, f(h.$t("tpa")), 1)]), L(k(Fe), {
                                modelValue: c.stopProfitAmount,
                                "onUpdate:modelValue": T[3] || (T[3] = g => c.stopProfitAmount = g),
                                type: "number",
                                placeholder: h.$t("hint4"),
                                class: "round-input"
                            }, null, 8, ["modelValue", "placeholder"])]), a("div", Wi, [a("div", ji, [L(k(Ci), {
                                class: "icon clock-icon"
                            }), a("span", Ui, f(h.$t("sla")), 1)]), L(k(Fe), {
                                modelValue: c.stopLossAmount,
                                "onUpdate:modelValue": T[4] || (T[4] = g => c.stopLossAmount = g),
                                type: "number",
                                placeholder: h.$t("hint5"),
                                class: "round-input"
                            }, null, 8, ["modelValue", "placeholder"])]), c.isOpenDoubleBet === 1 ? (w(),
                            C("div", zi, [a("div", Xi, [L(k(Si), {
                                class: "icon clock-icon"
                            }), a("span", Yi, f(h.$t("mating")), 1)]), L(k(Fe), {
                                min: 1,
                                max: 15,
                                modelValue: c.doubleBetMultiple,
                                "onUpdate:modelValue": T[5] || (T[5] = g => c.doubleBetMultiple = g),
                                type: "number",
                                placeholder: h.$t("hint9"),
                                class: "round-input",
                                onInput: T[6] || (T[6] = g => S(g.target.value))
                            }, null, 8, ["modelValue", "placeholder"])])) : N("v-if", !0)]),
                            _: 1
                        }), a("div", {
                            class: "expand-more",
                            onClick: e
                        }, [j(f(p.value ? h.$t("pickUp") : h.$t("emore")) + " ", 1), L(k(we), {
                            name: p.value ? "arrow-up" : "arrow-down"
                        }, null, 8, ["name"])]), a("div", Zi, [a("h2", null, f(h.$t("betSp")), 1), a("div", Ji, [a("div", Ki, [a("span", Qi, f(h.$t("bron")), 1), a("span", ec, f(c.preIssueCount), 1)]), a("div", tc, [a("span", nc, f(h.$t("waaw")), 1), a("span", oc, f(k(re)(c.betAmount)), 1)]), a("div", sc, [a("span", ac, f(h.$t("waal")), 1), a("span", rc, [j(f(k(re)(c.betAmount)), 1), c.isOpenDoubleBet === 1 && c.doubleBetMultiple ? (w(),
                        C("i", lc, [j("×" + f(c.doubleBetMultiple), 1), c.doubleBetMultiple ? (w(),
                        C("sup", ic, "n")) : N("v-if", !0)])) : N("v-if", !0)])]), ((P = s.infoData) == null ? void 0 : P.isSupportDoubleBet) === 1 ? (w(),
                        C("div", cc, [a("span", uc, f(h.$t("wtem")), 1), L(k(Wt), {
                            "active-color": "var(--main-color)",
                            "active-value": 1,
                            "inactive-value": 0,
                            modelValue: c.isOpenDoubleBet,
                            "onUpdate:modelValue": T[7] || (T[7] = g => c.isOpenDoubleBet = g),
                            size: "24"
                        }, null, 8, ["modelValue"])])) : N("v-if", !0)])]), a("div", dc, [a("div", {
                            class: "try-button",
                            onClick: T[8] || (T[8] = De(g => v("default"), ["prevent"]))
                        }, [L(k(bi), {
                            class: "game1"
                        }), a("span", null, f(h.$t("tryIt")), 1)]), L(k(Ue), {
                            type: "primary",
                            "native-type": "submit",
                            class: "confirm-button",
                            onClick: T[9] || (T[9] = De(g => v("primary"), ["prevent"]))
                        }, {
                            default: F( () => [j(f(h.$t("confirm")), 1)]),
                            _: 1
                        })])]
                    }
                    ),
                    _: 1
                }, 512)]),
                _: 1
            }, 8, ["modelValue"])])
        }
    }
});
const pc = X(_c, [["__scopeId", "data-v-3b9458ad"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/FollowSetForm.vue"]])
  , fc = s => (fe("data-v-bcfdab7a"),
s = s(),
ve(),
s)
  , vc = {
    class: "strategy-card"
}
  , mc = {
    class: "strategy-header"
}
  , gc = {
    class: "box"
}
  , yc = {
    class: "avatar-container"
}
  , hc = ["src"]
  , bc = {
    class: "strategy-nammax"
}
  , wc = {
    class: "strategy-info"
}
  , $c = {
    class: "strategy-name"
}
  , Cc = {
    class: "strategy-followers"
}
  , kc = fc( () => a("img", {
    src: ai,
    alt: "user",
    class: "followers-icon"
}, null, -1))
  , Tc = {
    class: "followers-count"
}
  , Sc = {
    class: "followers-text"
}
  , Ac = {
    class: "strategy-tags"
}
  , Lc = ["textContent"]
  , Ic = {
    class: "strategy-stats"
}
  , Bc = {
    class: "stat-item"
}
  , Pc = {
    class: "stat-label"
}
  , Dc = {
    class: "stat-value roi"
}
  , xc = {
    class: "stat-item"
}
  , Nc = {
    class: "stat-label"
}
  , Mc = {
    class: "stat-value"
}
  , Rc = {
    class: "stat-item"
}
  , Oc = {
    class: "stat-label"
}
  , Ec = {
    class: "stat-value"
}
  , Gc = Y({
    __name: "StrategyCard",
    props: {
        strategy: {
            type: Object,
            required: !0
        },
        defineAmount: {
            type: Number,
            required: !0
        },
        minAmount: {
            type: Number,
            required: !0
        },
        orderNo: {
            type: String,
            required: !0
        }
    },
    emits: ["follow", "cancelBet"],
    setup(s, {emit: i}) {
        const t = s
          , {t: r} = ke()
          , l = B(null)
          , d = () => {
            var o;
            $.value = !1,
            (o = l.value) == null || o.show()
        }
          , c = B({
            ...t.strategy,
            defineAmount: t.defineAmount,
            minAmount: t.minAmount
        })
          , b = x( () => {
            const o = c.value.playBet.toLowerCase();
            return o.includes("red") ? "red" : o.includes("big") ? "big" : o.includes("small") ? "small" : o.includes("green") ? "green" : o.includes("violet") ? "violet" : ""
        }
        )
          , p = x( () => {
            const o = Me[c.value.followPlayType];
            return o != null && o.includes("purple") ? "purple" : o != null && o.includes("against") ? "against" : o != null && o.includes("follow") ? "follow" : ""
        }
        )
          , y = o => {
            o === 1 ? _e(r("ruleT21")) : o === 2 ? _e(r("ruleT31")) : o === 3 && _e(r("ruleT11"))
        }
          , $ = B(!1)
          , e = () => {
            t.orderNo ? i("cancelBet") : $.value = !0
        }
          , n = async o => {
            var _;
            const u = Xt({
                ...o,
                followPlanId: c.value.id
            });
            i("follow", u),
            $.value = !1,
            (_ = l.value) == null || _.show()
        }
        ;
        return (o, u) => {
            var _;
            return w(),
            C(q, null, [a("div", vc, [a("div", mc, [a("div", gc, [a("div", yc, [a("img", {
                src: (_ = c.value) == null ? void 0 : _.headImgUrl,
                alt: "Avatar",
                class: "avatar"
            }, null, 8, hc)]), a("div", bc, f(c.value.name), 1)]), a("div", wc, [a("div", $c, f(o.$t(c.value.playType)), 1), a("div", Cc, [kc, a("span", Tc, f(c.value.followUserCount), 1), a("span", Sc, f(o.$t("followed")), 1)]), a("div", Ac, [a("div", {
                class: H(["tag type-tag", c.value.playBet ? b.value : p.value])
            }, f(c.value.playBet ? o.$t(c.value.playBet) : o.$t(k(Me)[c.value.followPlayType])), 3), c.value.isSupportDoubleBet === 1 ? (w(),
            C("div", {
                key: 0,
                class: "tag method-tag",
                textContent: f(o.$t("martingale"))
            }, null, 8, Lc)) : N("v-if", !0)])])]), a("div", Ic, [a("div", Bc, [a("div", Pc, [j(f(o.$t("roi")) + " ", 1), a("div", Dc, "+" + f(c.value.actualMaxOrderReturnRate < 1 ? c.value.actualMaxOrderReturnRate * 100 : c.value.actualMaxOrderReturnRate) + "%", 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: u[0] || (u[0] = v => y(1))
            })])]), a("div", xc, [a("div", Nc, [j(f(o.$t("tp")) + " ", 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: u[1] || (u[1] = v => y(2))
            })]), a("div", Mc, f(k(re)(c.value.actualTotalProfitAmount)), 1)]), a("div", Rc, [a("div", Oc, [j(f(o.$t("totalBetA")) + " ", 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: u[2] || (u[2] = v => y(3))
            })]), a("div", Ec, f(k(re)(c.value.actualTotalBetAmount)), 1)])]), N("跟单按钮"), L(k(Ue), {
                disabled: c.value.orderNo == s.orderNo,
                block: "",
                type: "primary",
                class: "follow-btn",
                onClick: e
            }, {
                default: F( () => [j(f(o.$t("fts")), 1)]),
                _: 1
            }, 8, ["disabled"])]), N(" 新增跟投设置弹窗 "), L(ft, {
                show: $.value,
                "destroy-on-close": !0,
                title: o.$t("strageSet"),
                onClose: d,
                isClose: !0
            }, {
                default: F( () => [L(pc, {
                    ref_key: "FollowSetFormRef",
                    ref: l,
                    onConfirm: n,
                    onTry: n,
                    infoData: c.value
                }, null, 8, ["infoData"])]),
                _: 1
            }, 8, ["show", "title"])], 64)
        }
    }
});
const Fc = X(Gc, [["__scopeId", "data-v-bcfdab7a"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/StrategyCard.vue"]])
  , $t = s => (fe("data-v-49506d41"),
s = s(),
ve(),
s)
  , Hc = {
    class: "bet-rule"
}
  , Vc = {
    class: "bet-rule-head"
}
  , qc = $t( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , Wc = $t( () => a("div", {
    class: "sound-dot"
}, null, -1))
  , jc = {
    class: "bet-rule-body"
}
  , Uc = $t( () => a("div", {
    class: "bet-rule-body-iconImg"
}, [a("svg", {
    xmlns: "http://www.w3.org/2000/svg",
    width: "60",
    height: "60",
    viewBox: "0 0 120 120",
    fill: "none"
}, [a("circle", {
    cx: "60",
    cy: "60",
    r: "60",
    fill: "#F95959"
}), a("path", {
    d: "M60 33.75V71.25",
    stroke: "white",
    "stroke-width": "8",
    "stroke-linecap": "round"
}), a("circle", {
    cx: "60",
    cy: "88.125",
    r: "3.75",
    fill: "white",
    stroke: "white",
    "stroke-width": "3.75"
})])], -1))
  , zc = {
    class: "bet-rule-body-foot"
}
  , Xc = Y({
    __name: "ConfirmPromptPop",
    props: {
        title: {
            type: String
        },
        showPop: {
            type: Boolean,
            default: !1
        }
    },
    emits: ["cancel", "confirm"],
    setup(s, {emit: i}) {
        return (t, r) => {
            const l = Q("van-button")
              , d = Q("van-popup");
            return w(),
            ye(d, {
                show: s.showPop,
                round: "",
                "close-on-click-overlay": !1,
                class: "boxPop"
            }, {
                default: F( () => [a("div", Hc, [a("div", Vc, [qc, a("span", null, "· " + f(s.title) + " ·", 1), Wc]), a("div", jc, [N(" <slot></slot>"), Uc, a("p", null, f(t.$t("ruleT41")), 1), a("div", zc, [L(l, {
                    plain: "",
                    hairline: "",
                    type: "success",
                    class: "bt1",
                    onClick: r[0] || (r[0] = c => i("cancel"))
                }, {
                    default: F( () => [j(f(t.$t("cancel")), 1)]),
                    _: 1
                }), L(l, {
                    type: "success",
                    class: "bt2",
                    onClick: r[1] || (r[1] = c => i("confirm"))
                }, {
                    default: F( () => [j(f(t.$t("confirm")), 1)]),
                    _: 1
                })])])])]),
                _: 1
            }, 8, ["show"])
        }
    }
});
const Yc = X(Xc, [["__scopeId", "data-v-49506d41"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/ConfirmPromptPop.vue"]])
  , Zc = {
    class: "content12"
}
  , Jc = Y({
    __name: "main",
    setup(s) {
        const {strategiesList: i, getStrategiesList: t, getCurrentStrategy: r, currentStrategy: l, getFollowBetAll: d, addStrategy: c, stopStrategy: b, orderNo: p} = bt()
          , {gameCode: y, updateBalance: $} = Te()
          , e = Xe("WinHook")
          , {countdown: n, betScopes: o} = e || {
            countdown: B({}),
            betScopes: B([])
        };
        se( () => n.value, S => {
            p.value && S.total === 0 && setTimeout(async () => {
                await r(p.value)
            }
            , 5e3)
        }
        , {
            deep: !0
        });
        const u = async S => {
            await c(S).then( () => {
                t(),
                S.initMarginAmount && $()
            }
            ),
            setTimeout( () => {
                window.scrollTo({
                    top: 600,
                    behavior: "smooth"
                })
            }
            , 300)
        }
          , _ = async () => {
            var h;
            if (!p.value)
                return;
            const S = (h = l.value[0]) == null ? void 0 : h.initMarginAmount;
            await r(p.value).then( () => {
                t(),
                S !== 0 && $()
            }
            )
        }
          , v = B(!1)
          , m = async () => {
            v.value = !v.value,
            p.value && (await b(p.value),
            await _())
        }
        ;
        return se( () => y.value, async () => {
            await d()
        }
        ),
        mt(async () => {
            await t()
        }
        ),
        (S, h) => (w(),
        C("div", Zc, [N(" 头部及空状态组件 "), L(si, {
            title: S.$t("strategyTitle"),
            currentStrategy: k(l),
            onStopBet: _
        }, null, 8, ["title", "currentStrategy"]), (w(!0),
        C(q, null, K(k(i), T => (w(),
        ye(Fc, {
            key: `${T.id}-${T.orderNo}-${T.name}`,
            strategy: T,
            defineAmount: k(o)[1],
            minAmount: k(o)[0],
            orderNo: k(p),
            onFollow: u,
            onCancelBet: h[0] || (h[0] = A => v.value = !0)
        }, null, 8, ["strategy", "defineAmount", "minAmount", "orderNo"]))), 128)), N("跟单更换确认弹框"), L(Yc, {
            show: v.value,
            title: S.$t("promptT"),
            onCancel: h[1] || (h[1] = T => v.value = !1),
            onConfirm: m
        }, null, 8, ["show", "title"])]))
    }
});
const __ = X(Jc, [["__scopeId", "data-v-d3b4a951"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/FollowBet/main.vue"]])
  , Kc = {
    class: "RecordNav__C"
}
  , Qc = ["onClick"]
  , eu = Y({
    __name: "RecordNav",
    props: {
        record: {
            type: String,
            default: "GameRecord"
        }
    },
    setup(s) {
        const i = s
          , {t} = ke()
          , r = B([{
            name: t("gameRecords"),
            componentName: "GameRecord"
        }, {
            name: t("chartTrends"),
            componentName: "Trend"
        }, {
            name: t("myGameRecords"),
            componentName: "MyGameRecord"
        }]);
        return (l, d) => (w(),
        C("div", Kc, [(w(!0),
        C(q, null, K(r.value, (c, b) => (w(),
        C("div", {
            key: b,
            onClick: p => l.$emit("changeC", c.componentName),
            class: H({
                active: i.record == c.componentName
            })
        }, f(c.name), 11, Qc))), 128))]))
    }
});
const tu = X(eu, [["__scopeId", "data-v-11eddb79"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/RecordNav.vue"]])
  , nu = {
    class: "GameRecord__C"
}
  , ou = {
    class: "GameRecord__C-head"
}
  , su = {
    class: "GameRecord__C-body"
}
  , au = {
    class: "numList"
}
  , ru = {
    class: "redNumItem"
}
  , lu = {
    key: 1,
    class: "GameRecord__C-body-empty"
}
  , iu = {
    key: 0,
    class: "GameRecord__C-foot"
}
  , cu = {
    class: "GameRecord__C-foot-page"
}
  , uu = Y({
    __name: "GameRecord",
    props: {
        gameCode: {
            type: null,
            required: !0
        }
    },
    setup(s) {
        const i = s
          , {historyIssues: t, historyIssuesTotalPage: r} = sn()
          , l = B([])
          , d = x( () => l.value.length ? l.value : t.value)
          , c = B(!1)
          , b = B(r)
          , p = B(10)
          , y = B(1)
          , $ = () => {
            y.value--,
            n()
        }
          , e = () => {
            y.value++,
            n()
        }
          , n = async (o=!1) => {
            try {
                if (c.value = !0,
                i.gameCode == null)
                    return;
                const {result: u, data: _} = await en({
                    pageSize: p.value,
                    pageNo: y.value,
                    gameCode: i.gameCode
                });
                u && (l.value = _.list || [],
                y.value = o ? 1 : y.value,
                b.value = _.totalPage || 0)
            } catch {
                c.value = !1
            }
        }
        ;
        return se(t, () => {
            l.value = [],
            y.value = 1
        }
        ),
        se(r, () => {
            b.value = r.value
        }
        ),
        se(i.gameCode, () => {
            n(!0)
        }
        ),
        (o, u) => {
            var S;
            const _ = Q("van-col")
              , v = Q("van-row")
              , m = Q("van-icon");
            return w(),
            C("div", nu, [a("div", ou, [L(v, null, {
                default: F( () => [L(_, {
                    span: "10"
                }, {
                    default: F( () => [j(f(o.$t("FDNumber")), 1)]),
                    _: 1
                }), L(_, {
                    span: "10"
                }, {
                    default: F( () => [j(f(o.$t("FDResult")), 1)]),
                    _: 1
                }), L(_, {
                    span: "4"
                }, {
                    default: F( () => [j(f(o.$t("FDTotal")), 1)]),
                    _: 1
                })]),
                _: 1
            })]), a("div", su, [d.value.length != 0 ? (w(!0),
            C(q, {
                key: 0
            }, K(d.value, (h, T) => (w(),
            ye(v, {
                key: T
            }, {
                default: F( () => [L(_, {
                    span: "10"
                }, {
                    default: F( () => [j(f(h.issueNumber), 1)]),
                    _: 2
                }, 1024), L(_, {
                    span: "10"
                }, {
                    default: F( () => [a("div", au, [(w(!0),
                    C(q, null, K([...h.premium], (A, M) => (w(),
                    C("div", {
                        class: "numItem",
                        key: M
                    }, f(A), 1))), 128))])]),
                    _: 2
                }, 1024), L(_, {
                    span: "4"
                }, {
                    default: F( () => [a("div", ru, f(h.sum), 1)]),
                    _: 2
                }, 1024)]),
                _: 2
            }, 1024))), 128)) : N("v-if", !0), ((S = d.value) == null ? void 0 : S.length) == 0 && !c.value ? (w(),
            C("div", lu, [L(jt)])) : N("v-if", !0)]), d.value.length ? (w(),
            C("div", iu, [a("div", {
                class: H(["GameRecord__C-foot-previous", {
                    disabled: y.value <= 1
                }]),
                onClick: $
            }, [L(m, {
                name: "arrow-left",
                class: "GameRecord__C-icon",
                size: "20"
            })], 2), a("div", cu, f(y.value) + "/" + f(b.value), 1), a("div", {
                class: H(["GameRecord__C-foot-next", {
                    disabled: y.value >= b.value
                }]),
                onClick: e
            }, [L(m, {
                name: "arrow",
                class: "GameRecord__C-icon",
                size: "20"
            })], 2)])) : N("v-if", !0)])
        }
    }
});
const du = X(uu, [["__scopeId", "data-v-59fd933e"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/GameRecord.vue"]])
  , p_ = "/assets/wav/tips-0120196b.wav";
function _u() {
    return Xe(nt, {})
}
const pu = {
    class: "t"
}
  , fu = {
    class: "t-outBox"
}
  , vu = {
    class: "t-head"
}
  , mu = ["onClick"]
  , gu = {
    class: "t-b1"
}
  , yu = {
    class: "t-b1-l w"
}
  , hu = {
    class: "t-b1-l"
}
  , bu = {
    class: "t-b1-l-n"
}
  , wu = {
    class: "t-b1-l"
}
  , $u = {
    class: "t-b1-l-n"
}
  , Cu = {
    class: "t-b1-l"
}
  , ku = {
    class: "t-b1-l-n"
}
  , Tu = {
    class: "t-b1-l"
}
  , Su = {
    class: "t-b1-l-n"
}
  , Au = {
    class: "t-new"
}
  , Lu = {
    class: "Trend__C-head"
}
  , Iu = {
    class: "t-b2"
}
  , Bu = ["IssueNumber", "Number", "Colour", "rowId"]
  , Pu = {
    class: "t-b2-i"
}
  , Du = {
    class: "t-b2-Num"
}
  , xu = ["id"]
  , Nu = {
    key: 0,
    class: "flex-center t-b2-loading",
    style: {
        height: "100%"
    }
}
  , Mu = {
    key: 1,
    class: "t-b2-empty flex-center"
}
  , Ru = {
    key: 0,
    class: "t-foot"
}
  , Ou = {
    class: "t-foot-page"
}
  , Eu = Y({
    __name: "Trend",
    setup(s) {
        const {historyIssues: i, gameCode: t, historyIssuesTotalPage: r} = _u()
          , l = B([])
          , d = B(1)
          , c = B(10)
          , b = B(!1)
          , p = B(r.value)
          , y = B(["A", "B", "C", "D", "E"])
          , $ = B({
            name: y.value[0],
            index: 1
        })
          , e = async (A, M) => {
            $.value.name = A,
            $.value.index = M + 1,
            await S($.value.index)
        }
          , n = B([])
          , o = x( () => (n.value.length ? n.value : i.value).map(M => {
            var P;
            return {
                ...M,
                number: (P = M == null ? void 0 : M.premium) == null ? void 0 : P.split("")[$.value.index - 1]
            }
        }
        ));
        function u() {
            Ke( () => {
                for (let A = 0; A < o.value.length; A++)
                    o.value[A + 1] && _(A, o.value[A], o.value[A + 1])
            }
            )
        }
        function _(A, M, P) {
            const g = parseInt(M.number)
              , D = parseInt(P.number)
              , E = document.getElementById("myCanvas" + A);
            if (E && E.getContext) {
                const I = E.getContext("2d");
                I.clearRect(0, 0, E.width, E.height),
                I.beginPath(),
                I.moveTo(g == 0 ? 14 : g * 27 + 14, 0),
                I.lineTo(D == 0 ? 14 : D * 27 + 14, E.height),
                I.strokeStyle = "red",
                I.stroke(),
                I.closePath()
            }
        }
        const v = () => {
            d.value < 2 || (d.value--,
            h())
        }
          , m = () => {
            d.value++,
            !(d.value > p.value) && h()
        }
          , S = async A => {
            const {result: M, data: P} = await es({
                gameCode: t.value,
                pageNo: d.value,
                pageSize: 10
            });
            M && (l.value = P == null ? void 0 : P.filter(g => (g == null ? void 0 : g.position) === A))
        }
          , h = async () => {
            b.value = !0;
            try {
                const {result: A, data: M} = await en({
                    gameCode: t.value,
                    pageNo: d.value,
                    pageSize: c.value
                });
                A && (n.value = (M == null ? void 0 : M.list) || [],
                d.value = M.pageNo || 1,
                p.value = M.totalPage || 0)
            } catch {} finally {
                b.value = !1
            }
        }
        ;
        xe(async () => {
            o.value.length && u(),
            await S($.value.index)
        }
        ),
        mt( () => {
            Ke( () => u())
        }
        );
        const T = Wn(async () => {
            try {
                u(),
                await S($.value.index)
            } catch (A) {
                if ((A == null ? void 0 : A.name) === "CanceledError")
                    return;
                console.error("Error in watch handler:", A)
            }
        }
        , 300);
        return se(o, () => {
            T()
        }
        , {
            deep: !0
        }),
        (A, M) => {
            const P = Q("van-col")
              , g = Q("van-row")
              , D = Q("van-loading")
              , E = Q("van-icon");
            return w(),
            C("div", pu, [N(" 类型切换 "), a("div", fu, [a("div", vu, [(w(!0),
            C(q, null, K(y.value, (I, R) => (w(),
            C("div", {
                key: R,
                class: H({
                    active: $.value.name == `${I}`
                }),
                onClick: O => e(I, R)
            }, f(I), 11, mu))), 128))]), N("投注助手"), a("div", gu, [a("div", yu, [N(`            <span class="w">{{ $t('w8') }}</span>`), N("            <span>{{$t('w9')}}</span>"), a("span", null, f(A.$t("trendDesc1")), 1)]), N('        <div class="t-b1-l lottery">'), N("          <div>{{$t('w11')}}</div>"), N('          <div class="t-b1-l-n">'), N('            <div v-for="item in 10" :key="item">{{ item - 1 }}</div>'), N("          </div>"), N("        </div>"), a("div", hu, [a("div", null, f(A.$t("trendDesc3")), 1), a("div", bu, [(w(!0),
            C(q, null, K(l.value.slice(0, 10), (I, R) => (w(),
            C("div", {
                key: "4" + R
            }, f(I.missingCount), 1))), 128))])]), a("div", wu, [a("div", null, f(A.$t("trendDesc4")), 1), a("div", $u, [(w(!0),
            C(q, null, K(l.value.slice(0, 10), (I, R) => (w(),
            C("div", {
                key: "2" + R
            }, f(I.avgMissing), 1))), 128))])]), a("div", Cu, [a("div", null, f(A.$t("trendDesc5")), 1), a("div", ku, [(w(!0),
            C(q, null, K(l.value.slice(0, 10), (I, R) => (w(),
            C("div", {
                key: "5" + R
            }, f(I.openCount), 1))), 128))])]), a("div", Tu, [a("div", null, f(A.$t("trendDesc6")), 1), a("div", Su, [(w(!0),
            C(q, null, K(l.value.slice(0, 10), (I, R) => (w(),
            C("div", {
                key: "3" + R
            }, f(I.maxContinuous), 1))), 128))])])])]), a("div", Au, [a("div", Lu, [L(g, null, {
                default: F( () => [L(P, {
                    span: "9"
                }, {
                    default: F( () => [j(f(A.$t("betIssue")), 1)]),
                    _: 1
                }), L(P, {
                    span: "15"
                }, {
                    default: F( () => [j(f(A.$t("number")), 1)]),
                    _: 1
                })]),
                _: 1
            })]), a("div", Iu, [(w(!0),
            C(q, null, K(o.value, (I, R) => (w(),
            C("div", {
                key: R,
                IssueNumber: I.issueNumber,
                Number: I.number,
                Colour: I.colour,
                rowId: I.rowId,
                class: "t-b2-item"
            }, [L(g, null, {
                default: F( () => [L(P, {
                    span: "9"
                }, {
                    default: F( () => [a("div", Pu, f(I.issueNumber), 1)]),
                    _: 2
                }, 1024), L(P, {
                    span: "15"
                }, {
                    default: F( () => [a("div", Du, [a("canvas", {
                        canvas: "",
                        id: "myCanvas" + R,
                        ref_for: !0,
                        ref: "canvas",
                        class: "line-canvas"
                    }, null, 8, xu), (w(),
                    C(q, null, K(10, O => a("div", {
                        class: H(["t-b2-Num-item", {
                            action: Number(I.number) == O - 1
                        }]),
                        key: O
                    }, f(O - 1), 3)), 64)), a("div", {
                        class: H(["t-b2-Num-BS", {
                            isB: Number(I.number) > 4
                        }])
                    }, f(Number(I.number) > 4 ? "B" : "S"), 3), a("div", {
                        class: H(["t-b2-Num-OE", {
                            isE: Number(I.number) % 2
                        }])
                    }, f(Number(I.number) % 2 ? "O" : "E"), 3)])]),
                    _: 2
                }, 1024)]),
                _: 2
            }, 1024)], 8, Bu))), 128)), b.value ? (w(),
            C("div", Nu, [L(D, {
                type: "spinner",
                color: "#FD565C"
            })])) : N("v-if", !0), o.value.length === 0 && !b.value ? (w(),
            C("div", Mu, [L(k(an))])) : N("v-if", !0)])]), o.value.length ? (w(),
            C("div", Ru, [a("div", {
                class: H(["t-foot-previous", {
                    disabled: d.value <= 1
                }]),
                onClick: v
            }, [L(E, {
                name: "arrow-left",
                class: "t-icon",
                size: "20"
            })], 2), a("div", Ou, f(d.value) + "/" + f(p.value), 1), a("div", {
                class: H(["t-foot-next", {
                    disabled: d.value >= p.value
                }]),
                onClick: m
            }, [L(E, {
                name: "arrow",
                class: "t-icon",
                size: "20"
            })], 2)])) : N("v-if", !0)])
        }
    }
});
const Gu = X(Eu, [["__scopeId", "data-v-3e84b000"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/Trend.vue"]])
  , Fu = "/assets/mp3/di1-0f3d86cb.mp3"
  , Hu = "/assets/mp3/di2-ad9aa8fb.mp3"
  , Vu = ["muted"]
  , qu = a("source", {
    src: Fu,
    type: "audio/mpeg"
}, null, -1)
  , Wu = [qu]
  , ju = ["muted"]
  , Uu = a("source", {
    src: Hu,
    type: "audio/mpeg"
}, null, -1)
  , zu = [Uu]
  , Xu = Y({
    __name: "audio",
    setup(s) {
        const i = B(!1)
          , t = () => {
            i.value = !0,
            Ke( () => {
                const r = document.getElementById("voice1")
                  , l = document.getElementById("voice2");
                r.play(),
                l.play(),
                r.pause(),
                l.pause(),
                i.value = !1,
                document.removeEventListener("touchstart", t)
            }
            )
        }
        ;
        return xe( () => {
            document.addEventListener("touchstart", t)
        }
        ),
        (r, l) => (w(),
        C(q, null, [a("audio", {
            id: "voice1",
            muted: i.value
        }, Wu, 8, Vu), a("audio", {
            id: "voice2",
            muted: i.value
        }, zu, 8, ju)], 64))
    }
})
  , Yu = X(Xu, [["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/components/Audio/audio.vue"]])
  , pn = s => (fe("data-v-04581d81"),
s = s(),
ve(),
s)
  , Zu = {
    class: "my_r"
}
  , Ju = {
    class: "my_r-body"
}
  , Ku = {
    key: 0,
    class: "list"
}
  , Qu = ["onClick"]
  , ed = {
    class: "list-item-m"
}
  , td = {
    class: "list-item-m-top"
}
  , nd = pn( () => a("path", {
    d: "M5.21907 7.57895C4.89494 8.14035 4.08463 8.14035 3.7605 7.57895L0.114077 1.26316C-0.210049 0.701754 0.195109 -5.66721e-08 0.843362 0L8.13621 6.37561e-07C8.78446 6.94233e-07 9.18962 0.701755 8.86549 1.26316L5.21907 7.57895Z",
    fill: "#323536"
}, null, -1))
  , od = [nd]
  , sd = {
    class: "list-item-m-bottom"
}
  , ad = {
    key: 0,
    class: "list-detail"
}
  , rd = {
    class: "list-detail-text"
}
  , ld = {
    class: "list-detail-line"
}
  , id = ["onClick"]
  , cd = pn( () => a("svg", {
    width: "40",
    height: "40",
    viewBox: "0 0 40 40",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg"
}, [a("path", {
    d: "M13 12V6H34V29H28",
    stroke: "#929292",
    "stroke-width": "2",
    "stroke-linejoin": "round"
}), a("rect", {
    x: "6",
    y: "12",
    width: "22",
    height: "22",
    stroke: "#929292",
    "stroke-width": "2",
    "stroke-linejoin": "round"
})], -1))
  , ud = {
    class: "list-detail-line"
}
  , dd = {
    class: "list-detail-line"
}
  , _d = {
    class: "list-detail-line"
}
  , pd = {
    class: "list-detail-line"
}
  , fd = {
    class: "red"
}
  , vd = {
    class: "list-detail-line"
}
  , md = {
    class: "list-detail-line"
}
  , gd = {
    key: 0
}
  , yd = {
    key: 1
}
  , hd = {
    class: "list-detail-line"
}
  , bd = {
    class: "list-detail-line"
}
  , wd = {
    key: 1
}
  , $d = {
    class: "list-detail-line"
}
  , Cd = {
    key: 1
}
  , kd = {
    class: "list-detail-line"
}
  , Td = {
    key: 1,
    class: "my_r-body-empty"
}
  , Sd = Y({
    __name: "MayrecordList",
    props: {
        gameCode: {
            type: null,
            required: !0
        },
        mayrecord: {
            type: null,
            required: !0
        }
    },
    setup(s) {
        const i = s
          , {t} = ke()
          , r = B(i.mayrecord || []);
        se( () => i.mayrecord, e => {
            e && (r.value = i.mayrecord)
        }
        );
        const l = (e, n=!1) => {
            var u;
            if (!e.betContent)
                return "";
            const o = e.betContent.split(",");
            return n ? o[0].split("_")[1] : ["Big", "Small", "Even", "Odd"].includes(o[0].split("_")[1]) ? (u = $[o[0].split("_")[1]]) == null ? void 0 : u.name : o[0].split("_")[1]
        }
          , d = e => {
            if (!e.betContent)
                return "";
            const o = (e == null ? void 0 : e.betContent.split(",")).slice(0, 2).map(u => {
                const _ = u.match(/_(\d+)$/);
                return _ ? _[1] : null
            }
            );
            return o[0] + o[1]
        }
          , c = e => ({
            First: "A",
            Second: "B",
            Third: "C",
            Fourth: "D",
            Fifth: "E",
            Sum: "Sum"
        })[e == null ? void 0 : e.replace(/Num|OddEven|BigSmall/g, "")] || e
          , b = e => {
            var n, o, u, _;
            return e.betContent ? e.betContent.indexOf(",") !== -1 ? e.betContent.split(",").map(m => {
                const S = m.split("_");
                return S[S.length - 1]
            }
            ) : ["Big", "Small", "Even", "Odd"].includes((n = e.betContent) == null ? void 0 : n.split("_")[1]) ? (u = $[(o = e.betContent) == null ? void 0 : o.split("_")[1]]) == null ? void 0 : u.name : (_ = e.betContent) == null ? void 0 : _.split("_")[1] : ""
        }
          , p = B(-1)
          , y = e => {
            p.value == e ? p.value = -1 : p.value = e
        }
          , $ = {
            Odd: {
                name: t("betOdd"),
                code: "Odd"
            },
            Even: {
                name: t("betEven"),
                code: "Even"
            },
            Big: {
                name: t("betBig"),
                code: "Big"
            },
            Small: {
                name: t("betSmall"),
                code: "Small"
            }
        };
        return (e, n) => (w(),
        C("div", Zu, [a("div", Ju, [r.value.length ? (w(),
        C("div", Ku, [(w(!0),
        C(q, null, K(r.value, (o, u) => {
            var _;
            return w(),
            C("div", {
                key: u
            }, [a("div", {
                class: "list-item",
                onClick: De(v => y(u), ["stop", "prevent"])
            }, [a("div", {
                class: H(`list-item-l list-item-l-${l(o, !0)}`)
            }, [a("div", {
                class: H(`list-item-l-${l(o)}`)
            }, f((_ = o == null ? void 0 : o.betContent) != null && _.includes(",") ? d(o) : l(o)), 3)], 2), a("div", ed, [a("div", td, [j(f(o.issueNumber) + " ", 1), (w(),
            C("svg", {
                xmlns: "http://www.w3.org/2000/svg",
                class: H({
                    r: u == p.value
                }),
                width: "9",
                height: "8",
                viewBox: "0 0 9 8",
                fill: "none"
            }, od, 2))]), a("div", sd, f(k(Qe)(o.betTime)), 1)]), o.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H(["list-item-r", {
                    success: o.state == 1
                }])
            }, [a("div", {
                class: H({
                    success: o.state == 1
                })
            }, f(o.state == 1 ? e.$t("success") : e.$t("fail")), 3), a("div", null, f(`${o.state == 1 ? "+" : ""} ${k(re)(o.state ? o.winLoseAmount + o.amount : o.winLoseAmount)}`), 1)], 2)) : N("v-if", !0)], 8, Qu), u == p.value ? (w(),
            C("div", ad, [a("div", rd, f(e.$t("detailMay")), 1), N('            <div class="list-detail-line" v-if="item.orderNo">'), N("              <span>{{ $t('orderNoMay') }}</span>"), N("            </div>"), a("div", ld, [a("span", null, f(e.$t("orderNoMay")), 1), a("div", {
                class: "list-detail-copy",
                onClick: v => k(Ro)(o.orderNo)
            }, [j(f(o.orderNo) + " ", 1), cd], 8, id)]), a("div", ud, [a("span", null, f(e.$t("issueMay")), 1), a("div", null, f(o.issueNumber), 1)]), a("div", dd, [a("span", null, f(e.$t("amountMay")), 1), a("div", null, f(k(re)(o.amount)), 1)]), a("div", _d, [a("span", null, f(e.$t("numMay")), 1), a("div", null, f(o.betMultiple), 1)]), a("div", pd, [a("span", null, f(e.$t("afterTaxAmount")), 1), a("div", fd, f(k(re)(o.realAmount)), 1)]), a("div", vd, [a("span", null, f(e.$t("tax")), 1), a("div", null, f(k(re)(o.fee)), 1)]), a("div", md, [a("span", null, f(e.$t("resultMay")), 1), o.premium ? (w(),
            C("div", gd, [(w(!0),
            C(q, null, K([...o.premium], (v, m) => (w(),
            C("div", {
                class: "numList",
                key: m
            }, f(v), 1))), 128))])) : (w(),
            C("div", yd, "--"))]), a("div", hd, [a("span", null, f(e.$t("selectMay")), 1), a("div", null, f(k(t)(`${c(o == null ? void 0 : o.playType)}：` + b(o))), 1)]), a("div", bd, [a("span", null, f(e.$t("statusMay")), 1), o.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H([o.state ? "green" : "red"])
            }, f(o.state == 1 ? e.$t("success") : e.$t("fail")), 3)) : (w(),
            C("div", wd, f(e.$t("unsettled")), 1))]), a("div", $d, [a("span", null, f(e.$t("winOrLose")), 1), o.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H([o.state ? "green" : "red"])
            }, f(`${o.state ? "+" : ""}${k(re)(o.state ? o.winLoseAmount + o.amount : o.winLoseAmount)}`), 3)) : (w(),
            C("div", Cd, "--"))]), a("div", kd, [a("span", null, f(e.$t("createTime")), 1), a("div", null, f(k(Qe)(o.betTime)), 1)])])) : N("v-if", !0)])
        }
        ), 128))])) : (w(),
        C("div", Td, [L(k(an))]))])]))
    }
});
const Ad = X(Sd, [["__scopeId", "data-v-04581d81"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/MayrecordList.vue"]])
  , Ld = {
    class: "MyGameRecord__C"
}
  , Id = {
    class: "MyGameRecord__C-body"
}
  , Bd = {
    key: 1,
    class: "MyGameRecord__C-body-empty"
}
  , Pd = {
    key: 2,
    class: "flex-center",
    style: {
        height: "4rem"
    }
}
  , Dd = {
    key: 0,
    class: "MyGameRecord__C-foot"
}
  , xd = {
    class: "MyGameRecord__C-foot-page"
}
  , Nd = Y({
    __name: "MyGameRecord",
    setup(s) {
        const {trigger: i, gameCode: t} = Te()
          , r = B(4)
          , l = B(10)
          , d = B(1)
          , c = B([])
          , b = B(!1)
          , p = () => {
            d.value--,
            $()
        }
          , y = () => {
            d.value++,
            $()
        }
          , $ = async (o=!1) => {
            var u, _;
            if (t.value != null)
                try {
                    b.value = !0;
                    const v = await Qo({
                        pageSize: l.value,
                        pageNo: d.value,
                        gameCode: t.value
                    });
                    v.result && (c.value = ((u = v == null ? void 0 : v.data) == null ? void 0 : u.list) || [],
                    r.value = ((_ = v == null ? void 0 : v.data) == null ? void 0 : _.totalPage) || 0,
                    d.value = o ? 1 : d.value)
                } catch {} finally {
                    b.value = !1
                }
        }
          , e = B(1)
          , n = B(!1);
        return se( () => e.value, o => {
            if (o > 0) {
                if (n.value)
                    return;
                $()
            }
        }
        ),
        se( () => t.value, o => {
            o && $(!0)
        }
        ),
        jn( () => {
            n.value = !0,
            i.reset()
        }
        ),
        mt( () => {
            n.value = !1,
            $(),
            i.on( () => {
                $()
            }
            )
        }
        ),
        xe( () => {
            $()
        }
        ),
        (o, u) => {
            const _ = Q("van-loading")
              , v = Q("van-icon");
            return w(),
            C("div", Ld, [a("div", Id, [c.value.length ? (w(),
            ye(Ad, {
                key: 0,
                mayrecord: c.value,
                gameCode: k(t)
            }, null, 8, ["mayrecord", "gameCode"])) : N("v-if", !0), !c.value.length && !b.value ? (w(),
            C("div", Bd, [L(jt)])) : N("v-if", !0), b.value ? (w(),
            C("section", Pd, [L(_, {
                type: "spinner",
                color: "var(--main-color)"
            })])) : N("v-if", !0)]), c.value.length ? (w(),
            C("div", Dd, [a("div", {
                class: H(["MyGameRecord__C-foot-previous", {
                    disabled: d.value <= 1
                }]),
                onClick: p
            }, [L(v, {
                name: "arrow-left",
                class: "MyGameRecord__C-icon",
                size: "20"
            })], 2), a("div", xd, f(d.value) + "/" + f(r.value), 1), a("div", {
                class: H(["MyGameRecord__C-foot-next", {
                    disabled: d.value >= r.value
                }]),
                onClick: y
            }, [L(v, {
                name: "arrow",
                class: "MyGameRecord__C-icon",
                size: "20"
            })], 2)])) : N("v-if", !0)])
        }
    }
});
const Md = X(Nd, [["__scopeId", "data-v-3d282755"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/components/D5_3/MyGameRecord.vue"]])
  , Rd = s => (fe("data-v-9e1f63cd"),
s = s(),
ve(),
s)
  , Od = {
    class: "FD_3"
}
  , Ed = {
    class: "FDB__C"
}
  , Gd = {
    class: "FDB__C-mark"
}
  , Fd = {
    class: "WinningTip__C-body-l2"
}
  , Hd = {
    class: "line1"
}
  , Vd = {
    class: "title"
}
  , qd = {
    class: "num"
}
  , Wd = Rd( () => a("div", {
    class: "title sum"
}, "SUM", -1))
  , jd = {
    class: "num"
}
  , Ud = {
    key: 0,
    class: "flex-center",
    style: {
        height: "100%"
    }
}
  , zd = ["innerHTML"]
  , Xd = Y({
    __name: "index",
    setup(s) {
        const {setVoice: i, bigSmallEven: t, numList: r, issueData: l, VoiceType: d, onClearBet: c, newBetting: b, useProvide: p, getlotteryissue: y, getIntroduce: $, onSwitchIntroduce: e, introduceDialog: n, introduceHtml: o, introduceLoading: u, lastResultSum: _, lastResult: v, issue: m, countdownTime: S, countdown: h, winner: T, isShowMark: A, secondsStr: M} = bs()
          , {gameInfo: P, gameCode: g, updateBalance: D, onBetTrigger: E, onLotteryJump: I} = Te()
          , R = B()
          , O = {
            GameRecord: du,
            Trend: Gu,
            MyGameRecord: Md
        }
          , V = B("GameRecord")
          , te = B(["A", "B", "C", "D", "E", "SUM"])
          , Z = B()
          , le = B(!1);
        p(),
        xe(async () => {
            await y()
        }
        );
        const ge = async ae => {
            var U;
            if (!le.value)
                try {
                    le.value = !0,
                    c(!0),
                    I(ae),
                    await y(),
                    (U = Z.value) == null || U.control()
                } catch {} finally {
                    le.value = !1
                }
        }
        ;
        se( () => h.value.seconds, ae => {
            var U;
            ae === 0 && ((U = Z.value) == null || U.animationShow())
        }
        );
        const pe = () => {
            E(),
            D(),
            b()
        }
        ;
        return (ae, U) => {
            const Re = Q("van-loading")
              , Se = Q("van-popup");
            return w(),
            C(q, null, [a("div", Od, [L(k(Oa), {
                onChangeSelectGame: ge,
                onSetVoice: k(i),
                VoiceType: k(d)
            }, null, 8, ["onSetVoice", "VoiceType"]), N("上期开奖结果"), L(po, {
                premium: k(v),
                sumCount: k(_)
            }, null, 8, ["premium", "sumCount"]), L(Ao, {
                ref_key: "actionLoad",
                ref: Z,
                handleRule: k(e),
                issue: k(m),
                premium: k(v),
                countdownTime: k(S)
            }, null, 8, ["handleRule", "issue", "premium", "countdownTime"]), a("div", Ed, [N(" 倒计时蒙层 "), vt(a("div", Gd, [(w(!0),
            C(q, null, K(k(M), me => (w(),
            C("div", null, f(me), 1))), 256))], 512), [[qt, k(A)]]), N("投注列表栏"), L(Zs, {
                currentGame: k(P),
                issueNum: k(m),
                gameCode: k(g),
                time: k(h),
                issueData: k(l),
                onBetting: pe,
                bigSmallEven: k(t),
                numList: k(r)
            }, null, 8, ["currentGame", "issueNum", "gameCode", "time", "issueData", "bigSmallEven", "numList"])]), N("游戏记录导航 "), L(tu, {
                record: V.value,
                onChangeC: U[0] || (U[0] = me => V.value = me)
            }, null, 8, ["record"]), N(" 动态展示对应的组件 "), (w(),
            ye(zn, null, [(w(),
            ye(Un(O[V.value]), {
                ref_key: "RecordComponent",
                ref: R,
                gameCode: k(g)
            }, null, 8, ["gameCode"]))], 1024))]), N("开奖中奖弹窗"), L(k(Ja), {
                ref_key: "winner",
                ref: T
            }, {
                default: F( ({data: me}) => [a("div", Fd, [a("p", null, f(ae.$t("betResult")), 1), a("div", Hd, [(w(!0),
                C(q, null, K(me.premium, (Ae, Ce) => (w(),
                C("div", {
                    key: Ce
                }, [a("div", Vd, f(te.value[Ce]), 1), a("div", qd, f(Ae), 1)]))), 128)), a("div", null, [Wd, a("div", jd, f(k(_) || 0), 1)])])])]),
                _: 1
            }, 512), N("声音文件"), L(Yu), N("玩法说明规则弹层 begin"), L(Se, {
                onOpen: k($),
                show: k(n),
                "onUpdate:show": U[1] || (U[1] = me => ze(n) ? n.value = me : null),
                "close-on-click-overlay": !1,
                round: ""
            }, {
                default: F( () => {
                    var me;
                    return [L(k(da), {
                        title: (me = k(o)) == null ? void 0 : me.title,
                        onClose: k(e)
                    }, {
                        default: F( () => {
                            var Ae;
                            return [k(u) ? (w(),
                            C("div", Ud, [L(Re, {
                                type: "spinner",
                                color: "#FD565C"
                            })])) : (w(),
                            C("div", {
                                key: 1,
                                innerHTML: (Ae = k(o)) == null ? void 0 : Ae.content
                            }, null, 8, zd))]
                        }
                        ),
                        _: 1
                    }, 8, ["title", "onClose"])]
                }
                ),
                _: 1
            }, 8, ["onOpen", "show"])], 64)
        }
    }
});
const Yd = X(Xd, [["__scopeId", "data-v-9e1f63cd"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/saasLottery/game/D5/views/D5_3/index.vue"]])
  , Zd = Y({
    __name: "ChangLong",
    setup(s) {
        const {isAlowGame: i, goChangLong: t} = eo()
          , r = async () => {
            i("", t)
        }
        ;
        return (l, d) => (w(),
        C("div", {
            class: "changlongEnter changlong",
            onClick: r
        }))
    }
});
const Jd = X(Zd, [["__scopeId", "data-v-0ac3de13"], ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/common/ChangLong.vue"]])
  , Kd = Y({
    __name: "index",
    setup(s) {
        const {useProvide: i, getWebData: t, setLotteryCode: r} = ys()
          , d = Xn().query.gameCode;
        i(),
        r(d);
        const c = to()
          , b = x( () => c.getIsShowLotteryDragon);
        return xe(async () => {
            await t()
        }
        ),
        (p, y) => (w(),
        C(q, null, [L(Yd), b.value ? (w(),
        ye(Jd, {
            key: 0
        })) : N("v-if", !0)], 64))
    }
})
  , Qd = X(Kd, [["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/views/saasLottery/D5/index.vue"]])
  , f_ = Object.freeze(Object.defineProperty({
    __proto__: null,
    default: Qd
}, Symbol.toStringTag, {
    value: "Module"
}));
export {ht as A, Yt as B, Jd as C, Md as D, an as E, Fo as F, No as G, Zo as H, nt as I, ps as J, Jo as K, Oa as L, Ko as M, He as N, r_ as O, ds as P, us as Q, es as R, At as S, __ as T, i_ as U, f_ as V, Ja as W, hs as a, Lt as b, gt as c, xt as d, Rt as e, l_ as f, ts as g, et as h, _s as i, tt as j, Vo as k, Ho as l, da as m, u_ as n, Yu as o, ys as p, Qe as q, Ro as r, Qo as s, p_ as t, Te as u, en as v, fs as w, lt as x, d_ as y, c_ as z};
