var wn = Object.defineProperty;
var $n = (o, i, t) => i in o ? wn(o, i, {
    enumerable: !0,
    configurable: !0,
    writable: !0,
    value: t
}) : o[i] = t;
var qe = (o, i, t) => ($n(o, typeof i != "symbol" ? i + "" : i, t),
t);
import {G as Y, B as R, r as B, N as w, I as C, J as a, P as f, K as q, M as K, aC as fe, aD as ve, $ as oe, aB as j, ap as H, aq as Cn, C as Re, X as Et, a8 as kn, b6 as Tn, aM as Sn, b7 as ot, b8 as at, a_ as An, b9 as Ln, ba as kt, v as In, S as Bn, w as it, ak as Je, bb as Pn, a3 as Gt, al as Dn, A as $e, a6 as Ft, aT as Xe, o as Rn, p as _e, q as xn, bc as We, z as ke, E as Nn, bd as Mn, ao as x, O as k, H as Q, Q as L, av as F, ar as Pe, Z as ze, a$ as De, V as Ke, u as Tt, R as Ht, aA as On, ax as vt, au as ye, aE as En, n as Vt, ay as qt, be as Gn, bf as Fn, bg as we, az as Hn, bh as Wt, bi as Ue, bj as Vn, bk as qn, bl as Fe, W as mt, a2 as Wn, Y as jn, aY as Un, bm as zn, T as Xn} from "./common.modules-f9fa5dc7.js";
import {_ as X, N as Yn, aD as Zn, cU as Jn, G as Kn, c as re, g as St, a1 as Qn, i as es, y as ts} from "./page-activity-ActivityDetail-0d51a056.js";
import {N as ns} from "./page-home-other-6e2f6e99.js";
import {E as jt} from "./page-activity-Bonus-f5229d51.js";
const ss = o => (fe("data-v-468343ea"),
o = o(),
ve(),
o)
  , os = {
    class: "FDP__C"
}
  , as = {
    class: "FDP__C-text"
}
  , rs = {
    class: "FDP__C-list"
}
  , ls = {
    class: "num"
}
  , is = {
    class: "letter"
}
  , cs = ss( () => a("div", {
    class: "FDP__C-symbol"
}, "=", -1))
  , us = {
    class: "FDP__C-sum"
}
  , ds = Y({
    __name: "LotteryResult",
    props: {
        sumCount: {
            type: Number,
            default: 0
        },
        premium: {
            type: Array,
            default: ["0", "0", "0", "0", "0"]
        }
    },
    setup(o) {
        const i = o
          , t = R( () => [...i.premium])
          , r = B(["A", "B", "C", "D", "E"]);
        return (l, d) => (w(),
        C("div", os, [a("div", as, f(l.$t("betResult")), 1), a("div", rs, [(w(!0),
        C(q, null, K(t.value, (c, b) => (w(),
        C("div", {
            key: b
        }, [a("div", ls, f(c), 1), a("div", is, f(r.value[b]), 1)]))), 128))]), cs, a("div", us, f(o.sumCount), 1)]))
    }
});
const _s = X(ds, [["__scopeId", "data-v-468343ea"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/LotteryResult.vue"]])
  , Ut = o => (fe("data-v-c6036253"),
o = o(),
ve(),
o)
  , ps = {
    class: "FDTL__C"
}
  , fs = {
    class: "FDTL__C-l1"
}
  , vs = {
    class: "left"
}
  , ms = 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))
  , gs = {
    class: "FDTL__C-l2"
}
  , ys = {
    class: "FDTL__C-time"
}
  , hs = Ut( () => a("div", null, ":", -1))
  , bs = {
    class: "FDTL__C-l3"
}
  , ws = {
    class: "box"
}
  , $s = ["num"]
  , Cs = 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)
  , ks = ["num"]
  , Ts = 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(o, {expose: i}) {
        const t = o
          , r = B([{
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }, {
            arr: []
        }])
          , l = B(0);
        oe( () => 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", ps, [a("div", fs, [a("div", vs, [a("div", null, f(p.$t("betIssue")), 1), a("div", {
            class: "FDTL__C-rule",
            onClick: y[0] || (y[0] = $ => o.handleRule())
        }, [ms, j(" " + f(p.$t("winTrxIndicate")), 1)])]), a("div", null, f(p.$t("k3TimeLeftToBuy")), 1)]), a("div", gs, [a("div", null, f(o.issue), 1), a("div", ys, [a("div", null, f(o.countdownTime[0] || 0), 1), a("div", null, f(o.countdownTime[1] || 0), 1), hs, a("div", null, f(o.countdownTime[3] || 0), 1), a("div", null, f(o.countdownTime[4] || 0), 1)])]), a("div", bs, [a("div", ws, [(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, s) => (w(),
        C("div", {
            class: "slot-num",
            num: $,
            key: "2" + s
        }, f(n), 9, $s))), 128)), Cs, (w(!0),
        C(q, null, K($.arr, (n, s) => (w(),
        C("div", {
            class: "slot-num",
            num: $,
            key: "2" + s
        }, f(n), 9, ks))), 128))], 2)]))), 128))])])]))
    }
});
const Ss = X(Ts, [["__scopeId", "data-v-c6036253"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/LotteryOpen.vue"]])
  , As = "en"
  , He = "ar_token"
  , Ls = "ar_lang"
  , Is = "ar_url"
  , Bs = "__DATA__"
  , Ps = "__APP__"
  , At = "ar_sound_bg"
  , Lt = "ar_sound_ef"
  , It = "ar_skin"
  , Ds = "isOpenFollow";
function Rs(o, 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 Re( () => {
        l = d(),
        l.onmessage = y => {
            y.data === "tick" && o()
        }
        ,
        t.immediate && c()
    }
    ),
    Et( () => {
        b(),
        l == null || l.terminate(),
        l = null
    }
    ),
    {
        start: c,
        pause: b,
        resume: p,
        isActive: r
    }
}
const Bt = "ping";
function rt(o) {
    return o === !0 ? {} : o
}
function r_(o, 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(o);
    let s, u, _ = !1, v = 0, g = [], S, h;
    const T = () => {
        if (g.length && e.value && $.value === "OPEN") {
            for (const I of g)
                e.value.send(I);
            g = []
        }
    }
      , A = () => {
        S != null && (clearTimeout(S),
        S = void 0)
    }
      , N = () => {
        clearTimeout(h),
        h = void 0
    }
      , P = (I=1e3, M) => {
        A(),
        !(!at && !kt || !e.value) && (_ = !0,
        N(),
        s == null || s(),
        e.value.close(I, M),
        e.value = void 0)
    }
      , m = (I, M=!0) => !e.value || $.value !== "OPEN" ? (M && g.push(I),
    !1) : (T(),
    e.value.send(I),
    !0)
      , D = () => {
        if (_ || typeof n.value > "u")
            return;
        let I = "";
        typeof o == "function" ? I = o() || "" : I = ot(o);
        const M = new WebSocket(I,p);
        e.value = M,
        $.value = "CONNECTING",
        M.onopen = () => {
            $.value = "OPEN",
            v = 0,
            t == null || t(M),
            u == null || u(),
            T()
        }
        ,
        M.onclose = O => {
            if ($.value = "CLOSED",
            N(),
            s == null || s(),
            r == null || r(M, O),
            !_ && i.autoReconnect && (e.value == null || M === 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()
            }
        }
        ,
        M.onerror = O => {
            l == null || l(M, O)
        }
        ,
        M.onmessage = O => {
            if (i.heartbeat) {
                N();
                const {message: V=Bt, responseMessage: te=V} = rt(i.heartbeat);
                if (O.data === ot(te))
                    return
            }
            y.value = O.data,
            d == null || d(M, O)
        }
    }
    ;
    if (i.heartbeat) {
        const {message: I=Bt, interval: M=1e3, pongTimeout: O=1e3} = rt(i.heartbeat)
          , {pause: V, resume: te} = Sn( () => {
            m(ot(I), !1),
            h == null && (h = setTimeout( () => {
                P(),
                _ = !1
            }
            , O))
        }
        , M, {
            immediate: !1
        });
        s = 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: m,
        open: E,
        ws: e
    }
}
function gt() {
    const o = {
        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() ? (o.remove(t),
                null) : l.value
            }
            return null
        },
        remove(t) {
            window.localStorage.removeItem(t)
        }
    };
    return {
        localStore: o,
        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 xs {
    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 xs
  , Ns = o => {
    if (!o)
        return;
    const i = document.createElement("input");
    i.setAttribute("readonly", "readonly"),
    i.setAttribute("value", o.toLocaleString()),
    document.body.appendChild(i),
    i.select(),
    document.execCommand("Copy"),
    document.body.removeChild(i),
    In.showSuccessToast("copySuccess")
}
  , Ms = o => Bn.hash(o).toString().toUpperCase().slice(0, 32);
function zt(o) {
    if (o <= 0)
        return -1;
    const i = Math.pow(10, o);
    let t = Math.floor(Math.random() * i);
    return t < i / 10 && t !== 0 ? zt(o) : t
}
const Os = o => o && typeof o == "object" && !Array.isArray(o)
  , Es = o => Array.isArray(o)
  , Pt = o => {
    o.random = zt(12);
    const i = JSON.parse(JSON.stringify(o))
      , r = Object.keys(i).filter(c => !(Os(i[c]) || Es(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])
    }
    ),
    o.signature = Ms(JSON.stringify(l)),
    o.timestamp = Math.floor(Date.now() / 1e3),
    o
}
;
function lt(o) {
    if (o == null)
        return "";
    const i = o.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 Gs(o) {
    const i = Math.floor(o / Dt)
      , t = Math.floor(o % Dt / _t)
      , r = Math.floor(o % _t / dt)
      , l = Math.floor(o % dt / ut)
      , d = Math.floor(o % ut);
    return {
        total: o,
        days: i,
        hours: t,
        minutes: r,
        seconds: l,
        milliseconds: d
    }
}
function Qe(o, i="YYYY-MM-DD HH:mm:ss") {
    if (!o)
        return "";
    const t = it(o).format(i);
    return t === "Invalid Date" ? o : t
}
function Fs(o) {
    let i = null;
    return () => (i === null && (i = o().catch(t => {
        throw i = null,
        t
    }
    )),
    i)
}
function Rt(o) {
    return new Promise(i => setTimeout(i, o))
}
function l_(o, i) {
    return Math.floor(Math.random() * i) + o
}
const Hs = o => o >= 1e6 ? (o / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : o >= 1e3 ? (o / 1e3).toFixed(1).replace(/\.0$/, "") + "K" : o + ""
  , Xt = o => {
    const i = {};
    for (const t in o)
        typeof o[t] == "string" && !isNaN(Number(o[t])) ? i[t] = Number(o[t]) : typeof o[t] == "object" && o[t] !== null ? i[t] = Xt(o[t]) : i[t] = o[t];
    return i
}
;
var Yt = (o => (o.Small = "betSmall",
o.Big = "betBig",
o.Even = "betEven",
o.Odd = "betOdd",
o))(Yt || {})
  , Ee = (o => (o.ReverseDirection = "against",
o.SameDirection = "follow",
o))(Ee || {})
  , Ve = (o => (o.Json = "application/json",
o.FormURLEncoded = "application/x-www-form-urlencoded",
o.FormData = "multipart/form-data",
o))(Ve || {});
function Ie(o) {
    return typeof o == "function"
}
function Vs(o) {
    return typeof o == "string"
}
function qs(o, i) {
    let t;
    return function() {
        const r = arguments
          , l = this;
        t || (o.apply(l, r),
        t = !0,
        setTimeout( () => t = !1, i))
    }
}
function Ws(o, i) {
    let t;
    return function() {
        const r = this
          , l = arguments;
        clearTimeout(t),
        t = setTimeout( () => o.apply(r, l), i)
    }
}
let Le = new Map;
const xt = o => [o.method, o.url].join("&");
class js {
    addPending(i) {
        this.removePending(i);
        const t = xt(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 = xt(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 js;
        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 Vs(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 => {
            qs( () => c(this.synthesisRequest(i, t)), l == null ? void 0 : l.delay)
        }
        ) : r.debounce && r.debounce.delay !== 0 ? new Promise(c => {
            Ws( () => 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 s = y(n, c);
                        $(s)
                    } catch (s) {
                        e(s || 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
  , Us = "https://h5.ar-lottery06.com"
  , zs = "https://draw.ar-lottery06.com"
  , Nt = o => {
    je.remove(He),
    Jt.error({
        message: `${pt(o ? "common.tokenExpired" : "common.token")}`,
        onClose() {}
    }),
    Zn.push({
        path: "/"
    })
}
  , Kt = {
    transformRequestHook: (o, i) => {
        var p;
        const {isTransformResponse: t, isReturnNativeResponse: r} = i
          , l = (p = o.config.method) == null ? void 0 : p.toLowerCase();
        if (o.status === 204 && ["put", "patch", "delete"].includes(l || "") || r)
            return o;
        if (!t)
            return o.data;
        const {data: d} = o;
        if (!d)
            throw new Error("请求接口错误");
        const {code: c} = d;
        if (d && c === 0)
            return d.data;
        throw new Error(`请求接口错误, 错误码: ${c}`)
    }
    ,
    requestInterceptors: (o, i) => {
        var d;
        if ((d = o.url) != null && d.endsWith(".json"))
            return o.baseURL = je.get("ar_api_json") || zs,
            o.url = o.url + "?ts=" + Date.now(),
            o;
        o.baseURL = `${je.get("ar_api") || Us}/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 o.method === "get" ? o.params = Pt(Object.assign(o.params || {}, {
            language: l
        })) : Pt(Object.assign(o.data || {}, {
            language: l
        })),
        o
    }
    ,
    beforeRequestHook: (o, i) => {
        var r;
        const {apiUrl: t} = i;
        return i.ts = Date.now(),
        o.url = `${t || o.baseURL || ""}${o.url}`,
        o.headers || (o.headers = {}),
        (r = o.url) != null && r.includes(".json") || (o.headers.Authorization = `Bearer ${je.get(He)}`),
        o
    }
    ,
    responseInterceptors: o => {
        var p;
        const {data: i, headers: t, config: r} = o
          , {requestOptions: l} = r
          , d = Date.now() - ((l == null ? void 0 : l.ts) || 0)
          , c = t.authorization || ""
          , b = i.code || o.status;
        return i.serviceTime && !((p = r.url) != null && p.includes(".json")) && ct.syncTime(i.serviceTime + d / 2),
        [401].includes(b) && Nt(t.hasOwnProperty("token-expired")),
        c && ![401].includes(i.code || o.status) && je.set(He, c.replace("Bearer ", "")),
        [0].includes(i.code) ? o.data.result = !0 : (o.data && (o.data.result = !1),
        o.data.msgCode && ![401].includes(b) && Jt.error(`${o.data.msgCode} ${pt(`common.code_${o.data.msgCode}`)}`)),
        o
    }
    ,
    responseInterceptorsCatch: async (o, i) => {
        var c;
        const {config: t, response: r={}} = o
          , {headers: l={}} = r;
        if (console.log("error>>", o),
        [401].includes(((c = r.data) == null ? void 0 : c.code) || r.status) && Nt(l.hasOwnProperty("token-expired")),
        !t || !t.requestOptions.retry || (t.retryCount = t.retryCount || 0,
        t.retryCount >= t.requestOptions.retry.count))
            return Promise.reject(o);
        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 Xs(o) {
    return ee.get("/Lottery/GetGameInfo", o)
}
function Ys({lotteryCode: o, gameCode: i}) {
    return Qt.get(`/${o}/${i}.json`)
}
function Zs(o) {
    return ee.get("/Lottery/GetBetLimit", {
        gameCode: o
    })
}
function Js(o) {
    return ee.get("/Lottery/GetGameIntroduce", {
        gameCode: o
    })
}
function Ks(o) {
    return ee.get("/Lottery/GetRecordPage", o)
}
function en(o) {
    return ee.get("/Lottery/GetHistoryIssuePage", o)
}
function Mt({lotteryCode: o, gameCode: i}) {
    return Qt.get(`/${o}/${i}/GetHistoryIssuePage.json`)
}
function Qs(o) {
    return ee.get("/Lottery/GetTrendStatistics", o)
}
function eo(o) {
    return ee.get("/Lottery/GetWinLossResult", o)
}
function to() {
    return ee.get("/Lottery/GetGameList")
}
function no(o) {
    return ee.get("/Lottery/GetFollowPlanList", o)
}
function so(o) {
    return ee.post("/Lottery/AddFollowRecord", o)
}
function oo(o) {
    return ee.post("/Lottery/StopFollowRecord", o)
}
function ao(o) {
    return ee.get("/Lottery/GetHistoryFollowRecordPageList", o)
}
function ro(o) {
    return ee.get("/Lottery/GetFollowRule", o)
}
function lo(o) {
    return ee.get("/Lottery/GetFollowRecord", o)
}
function i_(o) {
    return ee.get("/Lottery/GetWingoLiveUrl", o)
}
function io(o) {
    return ee.get("/Lottery/GetDragonList", o)
}
function co(o) {
    return ee.post("/Lottery/WinGoBet", o)
}
function uo(o) {
    return ee.post("/Lottery/VideoWinGoBet", o)
}
function _o(o) {
    return ee.post("/Lottery/K3Bet", o)
}
function yt(o) {
    return ee.post("/Lottery/D5Bet", o)
}
function po(o) {
    return ee.post("/Lottery/TrxWinGoBet", o)
}
function fo(o) {
    return ee.post("/Lottery/MotoRaceBet", o)
}
function vo() {
    return ee.get("/Lottery/GetUserInfo")
}
function mo() {
    return ee.get("/Lottery/GetBalance")
}
const tn = Symbol("GLOBAL_INJECT")
  , {localStore: Be} = gt()
  , go = Gt("stop")
  , ht = Dn( () => {
    const o = window[Ps] || {}
      , i = window[Bs] || {}
      , t = !1
      , r = o.Lang || Be.get(Ls)
      , l = o.RedirectUrl
      , d = $e({
        user: i == null ? void 0 : i.info,
        balance: 0,
        token: Be.get(He) || o.Token,
        gameInfo: i == null ? void 0 : i.game,
        gameCode: "",
        lotteryCode: "",
        lang: r || As,
        gameList: [],
        redirectUrl: l || Be.get(Is) || "",
        skin: o.Skin || Be.get(It),
        skincolor: o.SkinColor
    })
      , c = B(0)
      , b = R( () => d.user)
      , p = R( () => d.balance || 0)
      , y = R( () => d.gameInfo || {})
      , $ = R( () => d.gameCode)
      , e = R( () => d.lotteryCode)
      , n = R( () => d.lang)
      , s = R( () => d.redirectUrl)
      , u = R( () => ct.getCurrentTime())
      , _ = R( () => d.gameList || [])
      , v = R( () => d.skin)
      , g = R( () => d.skincolor)
      , S = R( () => {
        let m = [];
        return d.gameList.forEach(E => {
            m.push(...E.gameList)
        }
        ),
        m.find(E => E.gameCode === $.value)
    }
    );
    function h(m) {
        d.user = m,
        d.skin = m.skin,
        d.skincolor = m.skinColor,
        Be.set(Ds, m.isOpenFollow === !0),
        Be.set(It, m.skin)
    }
    function T(m) {
        d.balance = m
    }
    const A = (m=null) => {
        typeof m == "number" ? c.value = m : (typeof c.value == "number" && (c.value += 1),
        console.log("visibility333", c.value))
    }
    ;
    return {
        skin: v,
        skincolor: g,
        triggerTimer: go,
        synchronizer: ct,
        redirectUrl: s,
        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" ? (console.log("visible"),
            A()) : (console.log("hidden"),
            A(0))
        }
        ,
        setUser: h,
        setBalance: T,
        setLotteryCode: m => {
            const D = m == null ? void 0 : m.split("_")[0];
            d.gameCode = m,
            d.lotteryCode = D
        }
    }
}
)
  , yo = () => {
    const o = 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: s, setBalance: u, setLotteryCode: _} = ht()
      , v = R( () => n.token || Be.get(He) || "")
      , g = B(!1)
      , S = B(p)
      , h = R( () => {
        var O;
        return (O = y.value) == null ? void 0 : O.sysCurrency
    }
    )
      , T = async O => {
        O.state !== 2 && O.gameCode !== e.value && (_(O.gameCode),
        await Rt(600),
        o.emit("bets"))
    }
      , A = T
      , N = async () => {
        try {
            if (!Be.get(He))
                return;
            const O = await vo();
            O.result && s(O.data)
        } catch {}
    }
      , P = async () => {
        if (!g.value)
            try {
                g.value = !0;
                const {result: O, data: V, serviceTime: te} = await mo();
                return O && u((V == null ? void 0 : V.balance) || 0),
                {
                    serviceTime: te
                }
            } catch {
                return {
                    serviceTime: 0
                }
            } finally {
                g.value = !1
            }
    }
      , m = async () => {
        if (n.gameCode)
            try {
                const O = await Xs({
                    gameCode: n.gameCode
                });
                console.log("data>>>>>>>>>", O),
                O.result && (n.gameInfo = O.data)
            } catch {}
    }
      , D = async (O=!1) => {
        if (!(n.gameList.length && !O))
            try {
                const V = await to();
                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 Rt(2e3),
        o.emit("bets")
    }
      , I = async () => {
        S.value = !0,
        await Promise.all([N(), m()]),
        S.value = !1,
        D(),
        setTimeout( () => {
            P()
        }
        , 1e3)
    }
    ;
    return {
        prerender: p,
        balance: d,
        user: y,
        token: v,
        gameInfo: $,
        balanceLoading: g,
        dollarSign: h,
        gameCode: e,
        globalLoading: S,
        gameList: c,
        currentGame: b,
        skin: t,
        skincolor: r,
        lotteryCode: i,
        trigger: o,
        useProvide: () => {
            Ft(tn, {
                balance: d,
                user: y,
                token: v,
                gameInfo: $,
                balanceLoading: g,
                dollarSign: h,
                gameCode: e,
                globalLoading: S,
                gameList: c,
                currentGame: b,
                redirectUrl: l,
                trigger: o,
                skin: t,
                skincolor: r,
                updateBalance: P,
                getGameList: D,
                onBetTrigger: E,
                getUserInfo: N,
                getWebData: I,
                getGameInfo: m,
                onLotteryJump: T,
                changeSelectGame: A,
                lotteryCode: i
            })
        }
        ,
        updateBalance: P,
        getUserInfo: N,
        getWebData: I,
        getGameInfo: m,
        onLotteryJump: T,
        getGameList: D,
        changeSelectGame: A,
        setLotteryCode: _
    }
}
  , Te = () => Xe(tn, {});
Rn({
    duration: 3500,
    zIndex: 4e3
});
function tt() {
    const o = _e
      , i = o
      , t = o;
    return {
        text: o,
        success: i,
        error: t,
        loading: xn,
        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(o) {
    (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 s = 0; s < n._howls.length; s++)
                        if (!n._howls[s]._webAudio)
                            for (var u = n._howls[s]._getSoundIds(), _ = 0; _ < u.length; _++) {
                                var v = n._howls[s]._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 s = 0; s < n._howls.length; s++)
                    if (!n._howls[s]._webAudio)
                        for (var u = n._howls[s]._getSoundIds(), _ = 0; _ < u.length; _++) {
                            var v = n._howls[s]._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 s = n.canPlayType("audio/mpeg;").replace(/^no$/, "")
                  , u = e._navigator ? e._navigator.userAgent : ""
                  , _ = u.match(/OPR\/(\d+)/g)
                  , v = _ && parseInt(_[0].split("/")[1], 10) < 33
                  , g = u.indexOf("Safari") !== -1 && u.indexOf("Chrome") === -1
                  , S = u.match(/Version\/(.*?) /)
                  , h = g && S && parseInt(S[1], 10) < 15;
                return e._codecs = {
                    mp3: !!(!v && (s || n.canPlayType("audio/mp3;").replace(/^no$/, ""))),
                    mpeg: !!s,
                    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(s) {
                        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(), g = 0; g < v.length; g++) {
                                    var S = e._howls[_]._soundById(v[g]);
                                    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 s = 0; s < e._howls[n]._sounds.length; s++)
                                if (!e._howls[n]._sounds[s]._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 s = 0; s < e._src.length; s++) {
                    var u, _;
                    if (e._format && e._format[s])
                        u = e._format[s];
                    else {
                        if (_ = e._src[s],
                        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[s];
                        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 s = this
                  , u = null;
                if (typeof e == "number")
                    u = e,
                    e = null;
                else {
                    if (typeof e == "string" && s._state === "loaded" && !s._sprite[e])
                        return null;
                    if (typeof e > "u" && (e = "__default",
                    !s._playLock)) {
                        for (var _ = 0, v = 0; v < s._sounds.length; v++)
                            s._sounds[v]._paused && !s._sounds[v]._ended && (_++,
                            u = s._sounds[v]._id);
                        _ === 1 ? e = null : u = null
                    }
                }
                var g = u ? s._soundById(u) : s._inactiveSound();
                if (!g)
                    return null;
                if (u && !e && (e = g._sprite || "__default"),
                s._state !== "loaded") {
                    g._sprite = e,
                    g._ended = !1;
                    var S = g._id;
                    return s._queue.push({
                        event: "play",
                        action: function() {
                            s.play(S)
                        }
                    }),
                    S
                }
                if (u && !g._paused)
                    return n || s._loadQueue("play"),
                    g._id;
                s._webAudio && t._autoResume();
                var h = Math.max(0, g._seek > 0 ? g._seek : s._sprite[e][0] / 1e3)
                  , T = Math.max(0, (s._sprite[e][0] + s._sprite[e][1]) / 1e3 - h)
                  , A = T * 1e3 / Math.abs(g._rate)
                  , N = s._sprite[e][0] / 1e3
                  , P = (s._sprite[e][0] + s._sprite[e][1]) / 1e3;
                g._sprite = e,
                g._ended = !1;
                var m = function() {
                    g._paused = !1,
                    g._seek = h,
                    g._start = N,
                    g._stop = P,
                    g._loop = !!(g._loop || s._sprite[e][2])
                };
                if (h >= P) {
                    s._ended(g);
                    return
                }
                var D = g._node;
                if (s._webAudio) {
                    var E = function() {
                        s._playLock = !1,
                        m(),
                        s._refreshBuffer(g);
                        var V = g._muted || s._muted ? 0 : g._volume;
                        D.gain.setValueAtTime(V, t.ctx.currentTime),
                        g._playStart = t.ctx.currentTime,
                        typeof D.bufferSource.start > "u" ? g._loop ? D.bufferSource.noteGrainOn(0, h, 86400) : D.bufferSource.noteGrainOn(0, h, T) : g._loop ? D.bufferSource.start(0, h, 86400) : D.bufferSource.start(0, h, T),
                        A !== 1 / 0 && (s._endTimers[g._id] = setTimeout(s._ended.bind(s, g), A)),
                        n || setTimeout(function() {
                            s._emit("play", g._id),
                            s._loadQueue()
                        }, 0)
                    };
                    t.state === "running" && t.ctx.state !== "interrupted" ? E() : (s._playLock = !0,
                    s.once("resume", E),
                    s._clearTimer(g._id))
                } else {
                    var I = function() {
                        D.currentTime = h,
                        D.muted = g._muted || s._muted || t._muted || D.muted,
                        D.volume = g._volume * t.volume(),
                        D.playbackRate = g._rate;
                        try {
                            var V = D.play();
                            if (V && typeof Promise < "u" && (V instanceof Promise || typeof V.then == "function") ? (s._playLock = !0,
                            m(),
                            V.then(function() {
                                s._playLock = !1,
                                D._unlocked = !0,
                                n ? s._loadQueue() : s._emit("play", g._id)
                            }).catch(function() {
                                s._playLock = !1,
                                s._emit("playerror", g._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."),
                                g._ended = !0,
                                g._paused = !0
                            })) : n || (s._playLock = !1,
                            m(),
                            s._emit("play", g._id)),
                            D.playbackRate = g._rate,
                            D.paused) {
                                s._emit("playerror", g._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" || g._loop ? s._endTimers[g._id] = setTimeout(s._ended.bind(s, g), A) : (s._endTimers[g._id] = function() {
                                s._ended(g),
                                D.removeEventListener("ended", s._endTimers[g._id], !1)
                            }
                            ,
                            D.addEventListener("ended", s._endTimers[g._id], !1))
                        } catch (te) {
                            s._emit("playerror", g._id, te)
                        }
                    };
                    D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src = s._src,
                    D.load());
                    var M = window && window.ejecta || !D.readyState && t._navigator.isCocoonJS;
                    if (D.readyState >= 3 || M)
                        I();
                    else {
                        s._playLock = !0,
                        s._state = "loading";
                        var O = function() {
                            s._state = "loaded",
                            I(),
                            D.removeEventListener(t._canPlayEvent, O, !1)
                        };
                        D.addEventListener(t._canPlayEvent, O, !1),
                        s._clearTimer(g._id)
                    }
                }
                return g._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 s = n._getSoundIds(e), u = 0; u < s.length; u++) {
                    n._clearTimer(s[u]);
                    var _ = n._soundById(s[u]);
                    if (_ && !_._paused && (_._seek = n.seek(s[u]),
                    _._rateSeek = 0,
                    _._paused = !0,
                    n._stopFade(s[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 s = this;
                if (s._state !== "loaded" || s._playLock)
                    return s._queue.push({
                        event: "stop",
                        action: function() {
                            s.stop(e)
                        }
                    }),
                    s;
                for (var u = s._getSoundIds(e), _ = 0; _ < u.length; _++) {
                    s._clearTimer(u[_]);
                    var v = s._soundById(u[_]);
                    v && (v._seek = v._start || 0,
                    v._rateSeek = 0,
                    v._paused = !0,
                    v._ended = !0,
                    s._stopFade(u[_]),
                    v._node && (s._webAudio ? v._node.bufferSource && (typeof v._node.bufferSource.stop > "u" ? v._node.bufferSource.noteOff(0) : v._node.bufferSource.stop(0),
                    s._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 && s._clearSound(v._node))),
                    n || s._emit("stop", v._id))
                }
                return s
            },
            mute: function(e, n) {
                var s = this;
                if (s._state !== "loaded" || s._playLock)
                    return s._queue.push({
                        event: "mute",
                        action: function() {
                            s.mute(e, n)
                        }
                    }),
                    s;
                if (typeof n > "u")
                    if (typeof e == "boolean")
                        s._muted = e;
                    else
                        return s._muted;
                for (var u = s._getSoundIds(n), _ = 0; _ < u.length; _++) {
                    var v = s._soundById(u[_]);
                    v && (v._muted = e,
                    v._interval && s._stopFade(v._id),
                    s._webAudio && v._node ? v._node.gain.setValueAtTime(e ? 0 : v._volume, t.ctx.currentTime) : v._node && (v._node.muted = t._muted ? !0 : e),
                    s._emit("mute", v._id))
                }
                return s
            },
            volume: function() {
                var e = this, n = arguments, s, 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) : s = parseFloat(n[0])
                } else
                    n.length >= 2 && (s = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                var g;
                if (typeof s < "u" && s >= 0 && s <= 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 = s),
                    u = e._getSoundIds(u);
                    for (var S = 0; S < u.length; S++)
                        g = e._soundById(u[S]),
                        g && (g._volume = s,
                        n[2] || e._stopFade(u[S]),
                        e._webAudio && g._node && !g._muted ? g._node.gain.setValueAtTime(s, t.ctx.currentTime) : g._node && !g._muted && (g._node.volume = s * t.volume()),
                        e._emit("volume", g._id))
                } else
                    return g = u ? e._soundById(u) : e._sounds[0],
                    g ? g._volume : 0;
                return e
            },
            fade: function(e, n, s, u) {
                var _ = this;
                if (_._state !== "loaded" || _._playLock)
                    return _._queue.push({
                        event: "fade",
                        action: function() {
                            _.fade(e, n, s, u)
                        }
                    }),
                    _;
                e = Math.min(Math.max(0, parseFloat(e)), 1),
                n = Math.min(Math.max(0, parseFloat(n)), 1),
                s = parseFloat(s),
                _.volume(e, u);
                for (var v = _._getSoundIds(u), g = 0; g < v.length; g++) {
                    var S = _._soundById(v[g]);
                    if (S) {
                        if (u || _._stopFade(v[g]),
                        _._webAudio && !S._muted) {
                            var h = t.ctx.currentTime
                              , T = h + s / 1e3;
                            S._volume = e,
                            S._node.gain.setValueAtTime(e, h),
                            S._node.gain.linearRampToValueAtTime(n, T)
                        }
                        _._startFadeInterval(S, e, n, s, v[g], typeof u > "u")
                    }
                }
                return _
            },
            _startFadeInterval: function(e, n, s, u, _, v) {
                var g = this
                  , S = n
                  , h = s - n
                  , T = Math.abs(h / .01)
                  , A = Math.max(4, T > 0 ? u / T : u)
                  , N = Date.now();
                e._fadeTo = s,
                e._interval = setInterval(function() {
                    var P = (Date.now() - N) / u;
                    N = Date.now(),
                    S += h * P,
                    S = Math.round(S * 100) / 100,
                    h < 0 ? S = Math.max(s, S) : S = Math.min(s, S),
                    g._webAudio ? e._volume = S : g.volume(S, e._id, !0),
                    v && (g._volume = S),
                    (s < n && S <= s || s > n && S >= s) && (clearInterval(e._interval),
                    e._interval = null,
                    e._fadeTo = null,
                    g.volume(s, e._id),
                    g._emit("fade", e._id))
                }, A)
            },
            _stopFade: function(e) {
                var n = this
                  , s = n._soundById(e);
                return s && s._interval && (n._webAudio && s._node.gain.cancelScheduledValues(t.ctx.currentTime),
                clearInterval(s._interval),
                s._interval = null,
                n.volume(s._fadeTo, e),
                s._fadeTo = null,
                n._emit("fade", e)),
                n
            },
            loop: function() {
                var e = this, n = arguments, s, u, _;
                if (n.length === 0)
                    return e._loop;
                if (n.length === 1)
                    if (typeof n[0] == "boolean")
                        s = n[0],
                        e._loop = s;
                    else
                        return _ = e._soundById(parseInt(n[0], 10)),
                        _ ? _._loop : !1;
                else
                    n.length === 2 && (s = n[0],
                    u = parseInt(n[1], 10));
                for (var v = e._getSoundIds(u), g = 0; g < v.length; g++)
                    _ = e._soundById(v[g]),
                    _ && (_._loop = s,
                    e._webAudio && _._node && _._node.bufferSource && (_._node.bufferSource.loop = s,
                    s && (_._node.bufferSource.loopStart = _._start || 0,
                    _._node.bufferSource.loopEnd = _._stop,
                    e.playing(v[g]) && (e.pause(v[g], !0),
                    e.play(v[g], !0)))));
                return e
            },
            rate: function() {
                var e = this, n = arguments, s, 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) : s = parseFloat(n[0])
                } else
                    n.length === 2 && (s = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                var g;
                if (typeof s == "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 = s),
                    u = e._getSoundIds(u);
                    for (var S = 0; S < u.length; S++)
                        if (g = e._soundById(u[S]),
                        g) {
                            e.playing(u[S]) && (g._rateSeek = e.seek(u[S]),
                            g._playStart = e._webAudio ? t.ctx.currentTime : g._playStart),
                            g._rate = s,
                            e._webAudio && g._node && g._node.bufferSource ? g._node.bufferSource.playbackRate.setValueAtTime(s, t.ctx.currentTime) : g._node && (g._node.playbackRate = s);
                            var h = e.seek(u[S])
                              , T = (e._sprite[g._sprite][0] + e._sprite[g._sprite][1]) / 1e3 - h
                              , A = T * 1e3 / Math.abs(g._rate);
                            (e._endTimers[u[S]] || !g._paused) && (e._clearTimer(u[S]),
                            e._endTimers[u[S]] = setTimeout(e._ended.bind(e, g), A)),
                            e._emit("rate", g._id)
                        }
                } else
                    return g = e._soundById(u),
                    g ? g._rate : e._rate;
                return e
            },
            seek: function() {
                var e = this, n = arguments, s, 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,
                    s = parseFloat(n[0]))
                } else
                    n.length === 2 && (s = parseFloat(n[0]),
                    u = parseInt(n[1], 10));
                if (typeof u > "u")
                    return 0;
                if (typeof s == "number" && (e._state !== "loaded" || e._playLock))
                    return e._queue.push({
                        event: "seek",
                        action: function() {
                            e.seek.apply(e, n)
                        }
                    }),
                    e;
                var g = e._soundById(u);
                if (g)
                    if (typeof s == "number" && s >= 0) {
                        var S = e.playing(u);
                        S && e.pause(u, !0),
                        g._seek = s,
                        g._ended = !1,
                        e._clearTimer(u),
                        !e._webAudio && g._node && !isNaN(g._node.duration) && (g._node.currentTime = s);
                        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 - g._playStart : 0
                          , N = g._rateSeek ? g._rateSeek - g._seek : 0;
                        return g._seek + (N + A * Math.abs(g._rate))
                    } else
                        return g._node.currentTime;
                return e
            },
            playing: function(e) {
                var n = this;
                if (typeof e == "number") {
                    var s = n._soundById(e);
                    return s ? !s._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
                  , s = n._duration
                  , u = n._soundById(e);
                return u && (s = n._sprite[u._sprite][1] / 1e3),
                s
            },
            state: function() {
                return this._state
            },
            unload: function() {
                for (var e = this, n = e._sounds, s = 0; s < n.length; s++)
                    n[s]._paused || e.stop(n[s]._id),
                    e._webAudio || (e._clearSound(n[s]._node),
                    n[s]._node.removeEventListener("error", n[s]._errorFn, !1),
                    n[s]._node.removeEventListener(t._canPlayEvent, n[s]._loadFn, !1),
                    n[s]._node.removeEventListener("ended", n[s]._endFn, !1),
                    t._releaseHtml5Audio(n[s]._node)),
                    delete n[s]._node,
                    e._clearTimer(n[s]._id);
                var u = t._howls.indexOf(e);
                u >= 0 && t._howls.splice(u, 1);
                var _ = !0;
                for (s = 0; s < t._howls.length; s++)
                    if (t._howls[s]._src === e._src || e._src.indexOf(t._howls[s]._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, s, u) {
                var _ = this
                  , v = _["_on" + e];
                return typeof n == "function" && v.push(u ? {
                    id: s,
                    fn: n,
                    once: u
                } : {
                    id: s,
                    fn: n
                }),
                _
            },
            off: function(e, n, s) {
                var u = this
                  , _ = u["_on" + e]
                  , v = 0;
                if (typeof n == "number" && (s = n,
                n = null),
                n || s)
                    for (v = 0; v < _.length; v++) {
                        var g = s === _[v].id;
                        if (n === _[v].fn && g || !n && g) {
                            _.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, s) {
                var u = this;
                return u.on(e, n, s, 1),
                u
            },
            _emit: function(e, n, s) {
                for (var u = this, _ = u["_on" + e], v = _.length - 1; v >= 0; v--)
                    (!_[v].id || _[v].id === n || e === "load") && (setTimeout((function(g) {
                        g.call(this, n, s)
                    }
                    ).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 s = n._queue[0];
                    s.event === e && (n._queue.shift(),
                    n._loadQueue()),
                    e || s.action()
                }
                return n
            },
            _ended: function(e) {
                var n = this
                  , s = 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[s][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 s = n._soundById(e);
                        s && s._node && s._node.removeEventListener("ended", n._endTimers[e], !1)
                    }
                    delete n._endTimers[e]
                }
                return n
            },
            _soundById: function(e) {
                for (var n = this, s = 0; s < n._sounds.length; s++)
                    if (e === n._sounds[s]._id)
                        return n._sounds[s];
                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
                  , s = 0
                  , u = 0;
                if (!(e._sounds.length < n)) {
                    for (u = 0; u < e._sounds.length; u++)
                        e._sounds[u]._ended && s++;
                    for (u = e._sounds.length - 1; u >= 0; u--) {
                        if (s <= n)
                            return;
                        e._sounds[u]._ended && (e._webAudio && e._sounds[u]._node && e._sounds[u]._node.disconnect(0),
                        e._sounds.splice(u, 1),
                        s--)
                    }
                }
            },
            _getSoundIds: function(e) {
                var n = this;
                if (typeof e > "u") {
                    for (var s = [], u = 0; u < n._sounds.length; u++)
                        s.push(n._sounds[u]._id);
                    return s
                } 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
                  , s = 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),
                s))
                    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
                  , s = 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(s, 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 = s * 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 s = atob(n.split(",")[1]), u = new Uint8Array(s.length), _ = 0; _ < s.length; ++_)
                    u[_] = s.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(g) {
                    v.setRequestHeader(g, e._xhr.headers[g])
                }),
                v.onload = function() {
                    var g = (v.status + "")[0];
                    if (g !== "0" && g !== "2" && g !== "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 s = function() {
                n._emit("loaderror", null, "Decoding audio data failed.")
            }
              , u = function(_) {
                _ && n._sounds.length > 0 ? (d[n._src] = _,
                y(n, _)) : s()
            };
            typeof Promise < "u" && t.ctx.decodeAudioData.length === 1 ? t.ctx.decodeAudioData(e).then(u).catch(s) : t.ctx.decodeAudioData(e, u, s)
        }
          , 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+)?/)
                  , s = n ? parseInt(n[1], 10) : null;
                if (e && s && s < 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()
            }
        };
        o.Howler = t,
        o.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 ho(o) {
    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: o ? [o.bg] : [""],
        loop: !0,
        volume: 1,
        preload: !1
    })
      , n = B(!1)
      , s = B(!1)
      , u = B(!1)
      , _ = R( () => p.issue)
      , v = R( () => p.issueData || {})
      , g = R( () => ({
        interval: p.interval || 0,
        ...Gs(p.countdown * 1e3)
    }))
      , S = R( () => {
        const G = `${g.value.minutes}`.padStart(2, "0")
          , ie = `${g.value.seconds}`.padStart(2, "0");
        return [...G.split(""), ":", ...ie.split("")]
    }
    )
      , h = R( () => g.value.seconds > 5)
      , T = R( () => {
        var G;
        return p.maintain ? !0 : ((G = d.value) == null ? void 0 : G.state) !== 1
    }
    )
      , A = R( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.betScopes) || []
    }
    )
      , N = R( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.betMultiples) || []
    }
    )
      , P = R( () => {
        var G;
        return ((G = d.value) == null ? void 0 : G.rates) || []
    }
    )
      , m = R( () => p.betLimit || [])
      , D = R({
        get() {
            return p.sound
        },
        set(G) {
            p.sound = G
        }
    })
      , E = R({
        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 = R({
        get() {
            return p.soundEffects
        },
        set(G) {
            G ? i.set(Lt, 1) : i.set(Lt, 0),
            p.soundEffects = G
        }
    })
      , M = R( () => p.introduceHtml || {})
      , O = R({
        get() {
            return p.agreePreSale
        },
        set(G) {
            p.agreePreSale = G
        }
    })
      , V = R({
        get() {
            return p.introduceDialog
        },
        set(G) {
            p.introduceDialog = G
        }
    })
      , te = B(!1)
      , {pause: Z, resume: le} = Rs(async () => {
        var G, ie;
        if (p.countdown < 1) {
            Z();
            const ce = ((G = p.issueData) == null ? void 0 : G.next) || null
              , {useNext: xe=!0} = o || {};
            ce && xe ? (await ge(ce, p.interval),
            p.issueData.next = null) : await U();
            return
        }
        p.countdown -= 1,
        o && ((ie = o == null ? void 0 : o.processSound) == null || ie.call(o, p.countdown))
    }
    , 1e3, {
        immediate: !1
    })
      , ge = async (G, ie) => {
        p.issue = G.issueNumber;
        const ce = it(G.endTime).valueOf() - it(t.getCurrentTime()).valueOf();
        p.countdown = Math.floor(ce / 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 ce = await Ys({
                gameCode: r.value,
                lotteryCode: l.value
            });
            if (!ce.current)
                return Z();
            const xe = ce.intervalMinute * 60
              , st = ce.current
              , Ne = ((ie = d.value) == null ? void 0 : ie.state) === 2
              , Me = ce.state === 2;
            if (p.issueData) {
                const Oe = p.issueData.state == 2;
                Ne && Oe && Me || !Ne && !Oe && Me ? p.maintain = !0 : (!Ne && !Oe && !Me || !Ne && Oe && !Me) && (p.maintain = !1),
                console.log(Ne, Oe, Me, "data")
            }
            p.issueData = ce,
            p.interval = xe,
            console.log(),
            await ge(st, xe)
        } catch (ce) {
            console.log(ce, "errr"),
            Z()
        } finally {
            u.value = !1
        }
    }
      , Ge = async () => {
        try {
            n.value = !0;
            const {result: G, data: ie} = await Js(r.value);
            if (!G)
                return;
            p.introduceHtml = ie
        } catch {} finally {
            n.value = !1
        }
    }
      , Se = async () => {
        if (!s.value)
            try {
                s.value = !0;
                const {result: G, data: ie} = await Zs(r.value);
                if (!G)
                    return;
                p.betLimit = ie
            } catch {} finally {
                s.value = !1
            }
    }
      , me = async G => {
        const ie = G || (o ? o.bg : "");
        if (!ie)
            return !1;
        const ce = new Audio;
        ce.src = ie,
        ce.muted = !0;
        try {
            return await ce.play(),
            console.log("自动播放允许"),
            !0
        } catch {
            return console.log("自动播放被阻止"),
            !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 Re( () => {
        Ce(),
        c.on( () => {
            Z()
        }
        ),
        document.addEventListener("visibilitychange", Ye)
    }
    ),
    Et( () => {
        Ce(!0),
        document.removeEventListener("visibilitychange", Ye)
    }
    ),
    oe( () => $.value, G => {
        G ? setTimeout( () => {
            U()
        }
        , 500) : Z()
    }
    ),
    {
        betScopes: A,
        betMultiples: N,
        rates: P,
        canBet: h,
        issue: _,
        countdown: g,
        countdownTime: S,
        soundEffects: I,
        soundBg: E,
        sound: D,
        gameCode: r,
        agreePreSale: O,
        introduceDialog: V,
        introduceLoading: n,
        betLimitLoading: s,
        introduceHtml: M,
        bgSound: e,
        issueLoading: u,
        lotteryCode: l,
        betLimit: m,
        issueData: v,
        closeGame: T,
        getIssue: U,
        updataCurrentIssue: ge,
        pause: Z,
        onSwitchSound: pe,
        onSwitchIntroduce: ae,
        getIntroduce: Ge,
        getBetLimit: Se,
        canAutoPlay: me,
        setLotteryCode: b,
        visibilityStatus: $
    }
}
function nn() {
    return Xe(nt, {})
}
const bt = () => {
    const {gameCode: o} = ht()
      , {t: i} = ke()
      , t = $e({
        totalCount: 0,
        totalPage: 0,
        pageNo: 1,
        pageSize: 10,
        strategiesList: [],
        historyStrategiesList: [],
        currentStrategy: [],
        orderNo: "",
        followRule: {}
    })
      , r = R( () => t.pageNo)
      , l = R( () => t.pageSize)
      , d = R( () => t.totalPage)
      , c = R( () => t.totalCount)
      , b = R( () => t.strategiesList)
      , p = R( () => t.historyStrategiesList)
      , y = R( () => t.currentStrategy)
      , $ = R( () => {
        var h;
        return ((h = t.currentStrategy[0]) == null ? void 0 : h.orderNo) || ""
    }
    )
      , e = R( () => t.followRule)
      , n = async () => {
        const {data: h, code: T, msgCode: A} = await no({
            gameCode: o == null ? void 0 : o.value
        });
        if (T === 0) {
            t.strategiesList = h || [];
            const N = h == null ? void 0 : h.find(D => D.orderNo !== null);
            N && (t.currentStrategy = [N]);
            const P = h == null ? void 0 : h.find(D => D.orderNo === $.value)
              , m = t.currentStrategy[0] || {};
            if (!P)
                return;
            (P == null ? void 0 : P.orderNo) === (m == null ? void 0 : m.orderNo) && (t.currentStrategy = [Object.assign(m, {
                ...P
            })])
        } else
            _e({
                message: i(`code${A}`)
            })
    }
    ;
    return {
        getStrategiesList: n,
        getHistoryStrategiesList: async h => {
            const {data: T, code: A, msgCode: N} = await ao({
                gameCode: o == null ? void 0 : o.value,
                ...h
            });
            A === 0 ? (t.totalCount = T.totalCount,
            t.totalPage = T.totalPage,
            t.historyStrategiesList = T.list) : _e({
                message: i(`code${N}`)
            })
        }
        ,
        addStrategy: async h => {
            try {
                const {data: T, code: A, msgCode: N} = await so(h);
                A === 0 ? (t.currentStrategy = [{
                    ...T
                }],
                _e({
                    message: i("hint7")
                })) : _e({
                    message: i(`code${N}`)
                })
            } catch {}
        }
        ,
        stopStrategy: async h => {
            const {code: T, msgCode: A} = await oo({
                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 ro({
                gameCode: o == null ? void 0 : o.value
            });
            T === 0 ? t.followRule = h || {} : _e({
                message: i(`code${A}`)
            })
        }
        ,
        getCurrentStrategy: async h => {
            if (!h)
                return;
            const {data: T, code: A, msgCode: N} = await lo({
                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${N}`)
                })
        }
        ,
        historyStrategiesList: p,
        strategiesList: b,
        orderNo: $,
        currentStrategy: y,
        pageNo: r,
        totalPage: d,
        pageSize: l,
        totalCount: c,
        followRule: e
    }
}
;
function c_() {
    const {t: o} = 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 = R( () => r.betMultiples)
      , n = R( () => r.betMultiples)
      , s = m => m.startsWith("MotoRace") ? 23 : m.startsWith("TrxWinGo") ? 10 : 5
      , u = m => {
        switch (m) {
        case 1:
            r.count > 1 && r.count--;
            break;
        case 2:
            r.count++;
            break
        }
    }
      , _ = m => {
        m > 0 && (r.count = parseInt(m))
    }
      , v = m => {
        r.count = m
    }
      , g = m => {
        r.coin = m
    }
      , 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(o("agreePresaleRules"));
        const m = r.gameCode.split("_")[0];
        if (!m)
            return i.error(o("common.code_403"));
        if (!r.issueNumber)
            return i.error(o("common.noIssueNumber"));
        if (!r.playType)
            return i.error(o("common.code_403"));
        $.value = !0;
        let D = async M => ({})
          , 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 (m) {
        case "MotoRace":
            D = fo;
            break;
        case "D5":
            D = yt,
            I = [`${r.playType}_${lt(E)}`];
            break;
        case "TrxWinGo":
            D = po;
            break;
        case "K3":
            D = _o,
            I = [`${r.playType}_${lt(E)}`];
            break;
        case "WinGo":
            D = co;
            break;
        case "VideoWinGo":
            D = uo;
            break
        }
        try {
            const {result: M} = await D({
                gameCode: r.gameCode,
                issueNumber: r.issueNumber,
                amount: r.coin,
                betMultiple: Number(r.count),
                betContent: I
            });
            if (!M)
                return;
            h(),
            i.success(o("common.betSuccessful"))
        } catch (M) {
            console.log(M)
        } finally {
            $.value = !1
        }
    }
      , A = async () => {
        try {
            if (d && clearInterval(d),
            y.value)
                return;
            y.value = !0;
            const {data: m, result: D, serviceTime: E} = await io({});
            D && (t.value = m || [],
            N(E),
            d = setInterval( () => {
                N()
            }
            , 1e3),
            m && m.length ? clearInterval(c) : (c && clearInterval(c),
            c = setInterval( () => {
                A()
            }
            , 10 * 1e3)))
        } catch {} finally {
            y.value = !1
        }
    }
      , N = m => {
        let D = !1;
        for (let E = 0; E < t.value.length; E++) {
            const I = t.value[E];
            if (m) {
                I.passTime = Math.floor((I.endTime - m) / 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 M = [];
                I.playType === "SumBigSmall" ? M = [{
                    ...I.playBetList,
                    playBet: "Small"
                }, {
                    ...I.playBetList,
                    playBet: "Big"
                }] : I.playType === "SumOddEven" ? M = [{
                    ...I.playBetList,
                    playBet: "Even"
                }, {
                    ...I.playBetList,
                    playBet: "Odd"
                }] : M = Object.keys(I.playBetList).map(O => ({
                    playBet: O,
                    odds: I.playBetList[O]
                })),
                I.playBetList = M.sort( (O, V) => O.playBet.localeCompare(V.playBet))
            } else {
                if (I.passTime < s(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
            }
        }
        Mn(t),
        D && (console.log("xxx", A),
        clearInterval(d),
        A())
    }
      , P = (m, D) => {
        r.coin = m.betMultiples[0] || 1,
        r.count = m.betScopes[0] || 1,
        r.issueNumber = m.issueNumber,
        r.gameName = m.gameName,
        r.betMultiples = m.betMultiples,
        r.betScopes = m.betScopes,
        r.playType = m.playType,
        r.playBet = D.playBet,
        r.gameCode = m.gameCode,
        l.value = !0
    }
    ;
    return Nn( () => {
        clearInterval(d),
        clearInterval(c)
    }
    ),
    oe( () => Kn().visibility, m => {
        A()
    }
    ),
    {
        betlist: t,
        prohibitBuyTime: s,
        bettingPopupShow: l,
        isShowPreSale: b,
        isCheckPreSale: p,
        selectInfo: r,
        betTypeList: e,
        multipleList: n,
        loading: $,
        lock: y,
        Stepper: u,
        changeStep: _,
        TaskCount: v,
        changeCoin: g,
        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
})
  , sn = () => {
    const o = R( () => J.numberList)
      , i = R( () => J.initContainer)
      , t = R( () => J.navList)
      , r = R( () => J.actNav)
      , l = y => {
        console.log("彩种类型切换", y),
        J.actNav = y
    }
      , d = y => {
        console.log("大小切换", 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),
        console.log("选择的奇偶大小", J.initContainer)
    }
      , 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),
        console.log("数字选择的值", o)
    }
    ;
    return {
        bettingPopupShow: R({
            get() {
                return J.show || !1
            },
            set(y) {
                J.show = y
            }
        }),
        numberList: o,
        navList: t,
        actNav: r,
        initContainer: i,
        showType: l,
        toggleItem: c,
        clearBetting: () => {
            J.show && (J.show = !1,
            J.initContainer = [],
            J.numberList = [])
        }
        ,
        selectBox: d
    }
}
;
function bo() {
    const o = 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: s, numberList: u} = sn()
      , _ = B(localStorage.getItem("volumeShow") || "1")
      , {rates: v, betScopes: g, betMultiples: S, gameCode: h, canBet: T, issue: A, introduceHtml: N, introduceDialog: P, introduceLoading: m, lotteryCode: D, countdownTime: E, betLimitLoading: I, betLimit: M, agreePreSale: O, issueData: V, getIntroduce: te, getIssue: Z, onSwitchIntroduce: le, onSwitchSound: ge, getBetLimit: pe, countdown: ae} = ho()
      , U = $e({
        amount: 1,
        betMultiple: 1,
        playType: "",
        playBet: null,
        playRate: 0,
        historyIssues: [],
        historyIssuesTotalPage: 0
    })
      , Ge = R( () => U.historyIssuesTotalPage)
      , Se = R( () => U.historyIssues)
      , me = R( () => U.playRate)
      , Ae = R( () => U.playBet)
      , Ce = R( () => {
        var W, z;
        return ((z = (W = U.historyIssues[0]) == null ? void 0 : W.premium) == null ? void 0 : z.split("")) || []
    }
    )
      , Ye = R( () => {
        var W;
        return ((W = U.historyIssues[0]) == null ? void 0 : W.sum) || 0
    }
    )
      , G = R({
        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 = g.value[0] || 1,
        W && i.clear(),
        e()
    }
      , ce = async () => {
        var Ze;
        if ($.value)
            return;
        if (!O.value)
            return o.error(r("common.agreePreSale"));
        if (!A.value)
            return o.error(r("common.noIssueNumber"));
        const z = (u == null ? void 0 : u.value.sort( (se, be) => ((se == null ? void 0 : se.playBet) ?? 0) - ((be == null ? void 0 : be.playBet) ?? 0))).map(se => {
            var be;
            return {
                ...se,
                playType: `${(be = n.value) == null ? void 0 : be.code}Num`
            }
        }
        )
          , ue = se => se.replace(/^.*?(BigSmall|OddEven)/, "$1")
          , ne = [...(Ze = s.value) == null ? void 0 : Ze.map(se => {
            var be;
            return {
                ...se,
                playType: `${(be = n.value) == null ? void 0 : be.code}${ue(se == null ? void 0 : se.playType)}`
            }
        }
        ), ...z]
          , he = ne == null ? void 0 : ne.map(se => `${se.playType}_${se.playBet}`);
        try {
            $.value = !0;
            const {result: se} = await yt({
                gameCode: h.value,
                issueNumber: A.value,
                amount: U.amount,
                betMultiple: b.value,
                betContent: he
            });
            if (!se)
                return;
            i.set(A.value, 1),
            ie(),
            o.success(r("common.betSuccessful")),
            d(),
            await l()
        } catch {} finally {
            $.value = !1
        }
    }
      , xe = R( () => {
        const W = Array.from({
            length: 10
        }, (ue, de) => de)
          , z = v.value.find( ({playType: ue}) => {
            var de;
            return ue === `${(de = n.value) == null ? void 0 : de.code}Num`
        }
        );
        return z ? W.map(ue => {
            var de;
            return {
                playType: `${(de = n.value) == null ? void 0 : de.code}Num`,
                playBet: ue,
                playRate: z.playRate
            }
        }
        ) : W.map(ue => {
            var de;
            return {
                playType: `${(de = n.value) == null ? void 0 : de.code}Num`,
                playBet: ue,
                playRate: 0
            }
        }
        )
    }
    )
      , st = W => {
        switch (W) {
        case "H":
            return "Big";
        case "L":
            return "Small";
        case "O":
            return "Odd";
        case "E":
            return "Even";
        default:
            return W
        }
    }
      , Ne = W => {
        switch (W) {
        case "H":
            return "#F8B460";
        case "L":
            return "#609DEC";
        case "O":
            return "#F04848";
        case "E":
            return "#13C164";
        default:
            return W
        }
    }
      , Me = R( () => {
        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`
        }
        )
          , ue = [...W, ...z].sort( (ne, he) => ne.playTypeId - he.playTypeId);
        return ue == null ? void 0 : ue.map(ne => ({
            playType: ne.playType,
            playBet: st(ne.playBet),
            playRate: ne.playRate,
            playTypeId: ne.playTypeId,
            color: Ne(ne.playBet)
        }))
    }
    )
      , Oe = R( () => ae.value.minutes === 0 && ae.value.seconds < 6)
      , fn = R( () => 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(se => se.issueNumber === z) > 0)
                return i.clear();
            const {result: de, data: ne} = await eo({
                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(se => se.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 Mt({
                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: ue} = await Mt({
                gameCode: h.value,
                lotteryCode: D.value
            });
            if (!z)
                return;
            const de = ue.list || [];
            U.historyIssuesTotalPage = ue.totalPage || 0;
            const ne = de[0];
            return ne.issueNumber !== W ? {
                list: ue.list,
                item: null
            } : {
                item: ne,
                list: ue.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 oe( () => ae.value.seconds, W => {
        _.value == "1" && (ae.value.seconds <= 5 && ae.value.seconds > 0 ? Ct(1) : ae.value.seconds == 0 && Ct(2))
    }
    , {
        immediate: !1
    }),
    oe( () => A.value, async W => {
        const z = await yn(W);
        U.historyIssues = (z == null ? void 0 : z.list) || [],
        await mn()
    }
    ),
    {
        betScopes: g,
        betMultiples: S,
        betMultiple: b,
        issue: A,
        canBet: T,
        introduceHtml: N,
        introduceDialog: P,
        introduceLoading: m,
        historyIssues: Se,
        countdownTime: E,
        rates: v,
        betLimitLoading: I,
        betLimit: M,
        animationRoll: y,
        lottieEl: p,
        lastResultSum: Ye,
        lastResult: Ce,
        winner: t,
        countdown: ae,
        issueData: V,
        onClearBet: ie,
        numList: xe,
        bigSmallEven: Me,
        useProvide: () => {
            Ft(nt, {
                betScopes: g,
                betMultiples: S,
                betMultiple: b,
                amount: G,
                playRate: me,
                playBet: Ae,
                loading: $,
                agreePreSale: O,
                betLimitLoading: I,
                betLimit: M,
                issue: A,
                canBet: T,
                historyIssues: Se,
                gameCode: h,
                historyIssuesTotalPage: Ge,
                onClearBet: ie,
                onBetting: ce,
                getBetLimit: pe,
                onSwitchSound: ge
            })
        }
        ,
        getIntroduce: te,
        onSwitchIntroduce: le,
        onSwitchSound: ge,
        getHistoryIssues: gn,
        getIssue: Z,
        isShowMark: Oe,
        secondsStr: fn,
        newBetting: vn,
        setVoice: bn,
        VoiceType: _,
        getlotteryissue: hn
    }
}
function on() {
    return Xe(nt, {})
}
const wo = {
    class: "FDB__C-nav"
}
  , $o = ["onClick"]
  , Co = {
    class: "FDB__C-H"
}
  , ko = ["onClick"]
  , To = {
    class: "FDB__C-Num"
}
  , So = ["txt", "onClick"]
  , Ao = {
    class: "round"
}
  , Lo = {
    class: "rate"
}
  , Io = 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(o, {emit: i}) {
        return (t, r) => {
            var l;
            return w(),
            C(q, null, [x(" 彩种类型选择 "), a("div", wo, [(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, $o))), 128))]), x(" 大小奇偶选择 "), a("div", Co, [(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), x("<span>{{ item?.playBet }}</span>"), x("<span>{{ item?.playRate }}</span>")], 10, ko))), 128))]), x(" 球选择 "), a("div", To, [((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", Ao, f(c), 1), a("div", Lo, f(d.playRate) + "X ", 1)], 10, So))), 128)) : x("v-if", !0)])], 64)
        }
    }
});
const Ot = X(Io, [["__scopeId", "data-v-9361d4f4"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/BettingBody.vue"]])
  , Bo = o => (fe("data-v-3d16f58a"),
o = o(),
ve(),
o)
  , Po = {
    class: "bet_p-body"
}
  , Do = {
    class: "bet_p-body-line"
}
  , Ro = {
    class: "bet_p-body-line-list"
}
  , xo = ["onClick"]
  , No = {
    class: "bet_p-body-line"
}
  , Mo = {
    class: "bet_p-body-line-btnL"
}
  , Oo = {
    class: "bet_p-body-line"
}
  , Eo = Bo( () => a("div", null, null, -1))
  , Go = {
    class: "bet_p-body-line-list"
}
  , Fo = ["onClick"]
  , Ho = {
    class: "bet_p-body-line"
}
  , Vo = {
    class: "bet_p-foot"
}
  , qo = {
    class: "bet_p-PreSale"
}
  , Wo = {
    class: "bet_p-PreSale-head"
}
  , jo = {
    class: "bet_p-PreSale-body"
}
  , Uo = {
    class: "bet_p-PreSale-foot"
}
  , zo = 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(o, {emit: i}) {
        const t = o
          , {t: r} = ke()
          , {agreePreSale: l} = on()
          , d = tt()
          , c = B(!1)
          , b = R( () => {
            var _;
            return (_ = t.currentGame) == null ? void 0 : _.betMultiples
        }
        );
        oe( () => b, () => {
            var _;
            t.selectInfo.count = (_ = b == null ? void 0 : b.value) == null ? void 0 : _[0]
        }
        , {
            deep: !0,
            immediate: !0
        });
        let p = R({
            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")
        }
          , s = () => {
            c.value = !1
        }
          , u = () => {
            if (!l.value)
                return d.error(r("agreePresaleRules"));
            i("submitBetting")
        }
        ;
        return (_, v) => {
            const g = Q("van-field")
              , S = Q("van-checkbox")
              , h = Q("van-popup");
            return w(),
            C(q, null, [x(" 投注内容 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", Po, [Pe(_.$slots, "default", {}, void 0, !0), a("div", Do, [j(f(k(r)("amount")) + " ", 1), a("div", Ro, [(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: N => n(T)
                }, f(k(Hs)(T)), 11, xo))), 128))])]), a("div", No, [j(f(k(r)("numbers")) + " ", 1), a("div", Mo, [a("div", {
                    class: H(["bet_p-btn", {
                        bgcolor: t.selectInfo.count > 0
                    }]),
                    onClick: v[0] || (v[0] = T => y(1))
                }, "-", 2), L(g, {
                    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", Oo, [Eo, a("div", Go, [(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: N => e(T)
                }, " X" + f(T), 11, Fo))), 128))])]), a("div", Ho, [x(` <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", Vo, [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"]), x(" 预售规则弹层 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", qo, [a("div", Wo, f(k(r)("presaleRules")), 1), a("div", jo, f(_.$t("betPopTXT")), 1), a("div", Uo, [a("div", {
                    class: "bet_p-PreSale-foot-btn",
                    onClick: s
                }, f(k(r)("iKonw")), 1)])])]),
                _: 1
            }, 8, ["show"])], 64)
        }
    }
});
const Xo = X(zo, [["__scopeId", "data-v-3d16f58a"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/BettingPopup.vue"]])
  , Yo = 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(o, {expose: i, emit: t}) {
        const r = o
          , {actNav: l, navList: d, showType: c} = sn()
          , {t: b} = ke()
          , p = B(!1);
        oe( () => p.value, P => {
            P && (_.value.coin = v.value[0])
        }
        ),
        oe( () => r.time.seconds, async () => {
            r.time.seconds == 5 && T()
        }
        );
        const y = B(0)
          , $ = (P, m) => {
            console.log("点击奇偶大小", P, m),
            h(),
            y.value == P ? (y.value = 0,
            p.value = !0) : (y.value = P,
            p.value = !0),
            console.log("获取当前选中的值", l.value, m),
            S()
        }
          , e = (P, m) => {
            if (y.value = 0,
            u.value[P]) {
                u.value[P] = !1;
                const D = s.value.indexOf(P);
                D > -1 && s.value.splice(D, 1),
                p.value = !0
            } else
                s.value.push(P),
                u.value[P] = !0,
                p.value = !0;
            console.log("点击选中数字球", P, m, s.value),
            S()
        }
          , n = B(0)
          , s = 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 = R( () => {
            var P, m;
            return (P = r.currentGame) != null && P.betScopes ? (m = r.currentGame) == null ? void 0 : m.betScopes.map(D => Number(D)) : []
        }
        )
          , g = (P, m) => {
            console.log("拿到的切换的彩种的值", P),
            n.value = P,
            c(m),
            P == 5 && h()
        }
          , S = () => {
            Ke( () => {
                s.value.length > 0 ? _.value.allCoin = _.value.coin * _.value.count * s.value.length : y.value ? _.value.allCoin = _.value.coin * _.value.count : _.value.allCoin = 0
            }
            )
        }
          , h = () => {
            s.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 = () => {
            s.value = [],
            u.value = [!1, !1, !1, !1, !1, !1, !1, !1],
            y.value = 0
        }
          , N = 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 (s.value.length > 0)
                P = s.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 m = {
                issueNumber: r.issueNum,
                gameCode: r.gameCode,
                amount: _.value.coin,
                betMultiple: Number(_.value.count),
                betContent: P
            }
              , D = await yt(m);
            (D == null ? void 0 : D.code) === 0 && (_e(b("common.betSuccessful")),
            p.value = !1,
            A(),
            t("betting", D.data))
        }
        ;
        return i({
            bettingPopupShow: p
        }),
        (P, m) => (w(),
        C(q, null, [L(Ot, {
            navList: k(d),
            actNav: k(l),
            bigSmallEven: o.bigSmallEven,
            numList: o.numList,
            onChangeType: g,
            numberChack: u.value,
            onTabID: y.value,
            onOnTab: $,
            onNumberTab: e
        }, null, 8, ["navList", "actNav", "bigSmallEven", "numList", "numberChack", "onTabID"]), L(Xo, {
            currentGame: o.currentGame,
            bettingPopupShow: p.value,
            betTypeList: v.value,
            selectInfo: _.value,
            onComputedCoin: S,
            onClearBetting: T,
            onSubmitBetting: N
        }, {
            default: F( () => [L(Ot, {
                navList: k(d),
                actNav: k(l),
                bigSmallEven: o.bigSmallEven,
                numList: o.numList,
                onChangeType: g,
                onTabID: y.value,
                numberChack: u.value,
                onNumberTab: e,
                onOnTab: $
            }, null, 8, ["navList", "actNav", "bigSmallEven", "numList", "onTabID", "numberChack"])]),
            _: 1
        }, 8, ["currentGame", "bettingPopupShow", "betTypeList", "selectInfo"])], 64))
    }
})
  , Zo = X(Yo, [["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/BetListColumn.vue"]]);
const Jo = {}
  , Ko = {
    class: "empty__container"
};
function Qo(o, i) {
    const t = Q("svg-icon");
    return w(),
    C("div", Ko, [L(t, {
        name: "empty"
    }), Pe(o.$slots, "text", {}, () => [a("p", null, f(o.$t("noData")), 1)], !0)])
}
const an = X(Jo, [["render", Qo], ["__scopeId", "data-v-b6e9536c"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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"
  , sa = "/assets/json/win_animation-7d5b66f8.json";
const rn = o => (fe("data-v-a2883285"),
o = o(),
ve(),
o)
  , oa = {
    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(o, {emit: i}) {
        return (t, r) => (w(),
        C("div", oa, [a("div", aa, [ra, a("span", null, "· " + f(o.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/AR079-Pages-india-tashanwin/src/saasLottery/components/Rule/BetRule.vue"]])
  , ln = o => (fe("data-v-7004d918"),
o = o(),
ve(),
o)
  , _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(o, {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/AR079-Pages-india-tashanwin/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(o, {emit: i}) {
        const {gameList: t, currentGame: r, lotteryCode: l} = Te()
          , d = R( () => {
            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/AR079-Pages-india-tashanwin/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(o) {
        const i = o
          , {dollarSign: t, balance: r, updateBalance: l} = Te();
        oe( () => 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/AR079-Pages-india-tashanwin/src/saasLottery/components/LotteryInfo/Wallet.vue"]])
  , Ra = {
    key: 0,
    class: "bg"
}
  , xa = {
    class: "more"
}
  , Na = {
    key: 1
}
  , Ma = Y({
    __name: "main",
    props: {
        VoiceType: {
            type: String,
            default: ""
        },
        countdown: {
            type: Object,
            default: {}
        },
        showNav: {
            type: Boolean,
            default: !0
        }
    },
    emits: ["change-select-game", "setVoice"],
    setup(o, {emit: i}) {
        const t = En( () => Vt( () => import("./VideoPlayer-735ed603.js"), ["assets/js/VideoPlayer-735ed603.js", "assets/js/common.modules-f9fa5dc7.js", "assets/css/common-05d2aa17.css", "assets/js/chunk.veplayer-b004266e.js", "assets/css/chunk-d236df01.css", "assets/js/page-activity-ActivityDetail-0d51a056.js", "assets/js/page-turntable-assets-d6267459.js", "assets/js/native/index-eb46cb93.js", "assets/js/en-0806f032.js", "assets/css/page-activity-ActivityDetail-a597c4a3.css", "assets/js/page-home-other-6e2f6e99.js", "assets/css/page-home-other-06432bae.css", "assets/js/page-activity-Bonus-f5229d51.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: o.showNav
                }])
            }, [o.showNav ? (w(),
            C("div", Ra)) : x("v-if", !0), L($, {
                "left-arrow": "",
                onClickLeft: b,
                class: "main",
                headLogo: !0
            }, {
                right: F( () => [a("div", xa, [a("div", {
                    onClick: y[0] || (y[0] = e => c("CustomerService"))
                }), a("div", {
                    class: H({
                        disableVoice: o.VoiceType == "2"
                    }),
                    onClick: y[1] || (y[1] = e => i("setVoice"))
                }, null, 2)])]),
                _: 1
            }), o.showNav ? (w(),
            C("div", Na, [L(Da, {
                countdown: o.countdown
            }, null, 8, ["countdown"]), L(ns, {
                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(Ma, [["__scopeId", "data-v-63b58aab"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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(o, {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 s = null
          , u = null;
        const _ = Fs(async () => Vt( () => import("./lottie-f7701945.js").then(h => h.l), ["assets/js/lottie-f7701945.js", "assets/js/common.modules-f9fa5dc7.js", "assets/css/common-05d2aa17.css"]))
          , v = () => {
            y.value = !y.value,
            y.value ? (clearTimeout($.value),
            $.value = setTimeout( () => {
                y.value = !1,
                c.value = !1,
                s.stop(),
                u.stop()
            }
            , 3e3)) : clearTimeout($.value)
        }
          , g = async () => {
            if (s)
                return s;
            b.load(),
            p.load();
            const h = await _();
            try {
                s = 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: sa
                })
            } catch (T) {
                console.log(T)
            }
        }
        ;
        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 g(),
                h.isWin ? (s.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) : x("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(N => c.value = !1, ["stop"]))
                })], 2)], 512), [[qt, c.value]])]
            }
            ),
            _: 3
        }))
    }
});
const Ja = X(Za, [["__scopeId", "data-v-baa1fbd1"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/components/WinningTips/Winning.vue"]])
  , Ka = o => (fe("data-v-ad929f00"),
o = o(),
ve(),
o)
  , Qa = {
    key: 0,
    class: "title"
}
  , er = {
    key: 1,
    class: "noWin_title"
}
  , tr = {
    key: 2,
    class: "amount"
}
  , nr = {
    key: 3,
    class: "amount"
}
  , sr = {
    class: "result_txt"
}
  , or = {
    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(o, {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", sr, f($.$t("motoTip3")), 1), b.result ? (w(),
                C("div", or, [Pe($.$slots, "result", {
                    data: {
                        result: b.result,
                        isWin: l.value
                    }
                }, void 0, !0)])) : x("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(s => 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/AR079-Pages-india-tashanwin/src/saasLottery/components/Winning3/Winning.vue"]])
  , cr = "/assets/png/empty-state-465716d6.png"
  , ur = o => (fe("data-v-564de1be"),
o = o(),
ve(),
o)
  , 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(o) {
        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/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/EmptyState.vue"]])
  , un = "/assets/png/try-f58fb39f.png"
  , dn = o => (fe("data-v-a14b4791"),
o = o(),
ve(),
o)
  , 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"
}
  , Rr = {
    class: "info-row"
}
  , xr = {
    class: "info-item"
}
  , Nr = {
    class: "info-label"
}
  , Mr = {
    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(o) {
        return (i, t) => {
            var r;
            return w(),
            C("div", vr, [x(" 策略列表 "), a("div", mr, [((r = o.list) == null ? void 0 : r.length) !== 0 ? (w(!0),
            C(q, {
                key: 0
            }, K(o.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(Ee)[l.followPlayType]])
            }, f(l.playBet || k(Ee)[l.followPlayType]), 3), (l == null ? void 0 : l.isOpenDoubleBet) === 1 ? (w(),
            C("div", kr, f(l.doubleBetMultiple), 1)) : x("v-if", !0), l.orderType === 0 ? (w(),
            C("div", Tr, "Try it")) : x("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", Rr, [a("div", xr, [a("div", Nr, f(i.$t("Treve")) + ":", 1)]), a("div", Mr, [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)) : x("v-if", !0)])])]))), 128)) : (w(),
            ye(cn, {
                key: 1
            }))])])
        }
    }
});
const Kr = X(Jr, [["__scopeId", "data-v-a14b4791"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/History.vue"]])
  , Qr = o => (fe("data-v-17f6c92c"),
o = o(),
ve(),
o)
  , el = {
    class: "strategy-content"
}
  , tl = {
    class: "title"
}
  , nl = {
    class: "label"
}
  , sl = {
    class: "value"
}
  , ol = {
    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"
}
  , Rl = {
    class: "detail-value top1"
}
  , xl = {
    class: "detail-row"
}
  , Nl = {
    class: "detail-label"
}
  , Ml = {
    class: "detail-value top2"
}
  , Ol = {
    class: "stop-button-container"
}
  , El = Y({
    __name: "BetStrategy",
    props: {
        info: {
            type: Object,
            required: !0
        }
    },
    emits: ["prohibit"],
    setup(o, {emit: i}) {
        const t = o
          , {stopStrategy: r} = bt()
          , l = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.preIssueCount
        }
        )
          , d = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.winIssueCount
        }
        )
          , c = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.lossIssueCount
        }
        )
          , b = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.totalWinLossAmount
        }
        )
          , p = R( () => l.value - d.value - c.value)
          , y = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.betAmount
        }
        )
          , $ = R( () => y.value)
          , e = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.isOpenDoubleBet
        }
        )
          , n = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.currentMarginAmount
        }
        )
          , s = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.stopProfitAmount
        }
        )
          , u = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.stopLossAmount
        }
        )
          , _ = R( () => {
            var m;
            return (m = t.info) == null ? void 0 : m.betAmountAfterLose
        }
        )
          , v = B(!1)
          , g = R( () => {
            const m = d.value + c.value;
            return m > 0 ? d.value / m * 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)
        }
          , N = R( () => {
            var D;
            const m = (D = t.info.playBet) == null ? void 0 : D.toLowerCase();
            return m != null && m.includes("red") ? "red" : m != null && m.includes("big") ? "big" : m != null && m.includes("small") ? "small" : m != null && m.includes("green") ? "green" : m != null && m.includes("violet") ? "violet" : ""
        }
        )
          , P = R( () => {
            const m = Ee[t.info.followPlayType];
            return m != null && m.includes("purple") ? "purple" : m != null && m.includes("against") ? "against" : m != null && m.includes("follow") ? "follow" : ""
        }
        );
        return (m, D) => {
            var M, 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((M = t.info) == null ? void 0 : M.name), 1), a("div", sl, f((O = t.info) == null ? void 0 : O.playType), 1), a("div", {
                class: H(["bet", (V = t.info) != null && V.playBet ? N.value : P.value])
            }, f(((te = t.info) == null ? void 0 : te.playBet) || k(Ee)[(Z = t.info) == null ? void 0 : Z.followPlayType]), 3), ((le = t.info) == null ? void 0 : le.orderType) === 0 ? (w(),
            C("div", ol, f(m.$t("tryIt")), 1)) : x("v-if", !0)]), a("div", al, [a("div", {
                class: "progressBox",
                style: Hn({
                    width: g.value + "%"
                })
            }, null, 4)]), a("div", rl, [a("div", ll, [a("h2", null, f(m.$t("stWin")) + " " + f(d.value), 1)]), a("div", il, [a("h2", null, f(m.$t("stLose")) + " " + f(c.value), 1)])]), a("div", cl, [a("div", ul, f(m.$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, [x(" 试玩标识 "), ((pe = o.info) == null ? void 0 : pe.orderType) === 0 ? (w(),
                    C("div", pl, vl)) : x("v-if", !0), a("div", ml, [a("div", gl, [a("span", yl, f(m.$t("bron")), 1), a("span", hl, f(p.value), 1)]), a("div", bl, [a("span", wl, f(m.$t("waaw")), 1), a("span", $l, f(k(re)(y.value)), 1)]), ((ae = o.info) == null ? void 0 : ae.isOpenDoubleBet) === 1 ? (w(),
                    C("div", Cl, [a("span", kl, f(m.$t("waal")), 1), a("span", Tl, [x("{ currency(wagerAfterLoss) }}"), j(" " + f(e.value === 1 ? k(re)(_.value) : k(re)($.value)), 1)])])) : x("v-if", !0), a("div", Sl, [a("span", Al, f(m.$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(m.$t("margin")), 1), a("span", Bl, f(k(re)(n.value)), 1)]), a("div", Pl, [a("span", Dl, f(m.$t("tpa")), 1), a("span", Rl, "+" + f(k(re)(s.value)), 1)]), a("div", xl, [a("span", Nl, f(m.$t("sla")), 1), a("span", Ml, "-" + f(k(re)(u.value)), 1)])]),
                        _: 1
                    })]), a("div", {
                        class: "expand-more",
                        onClick: A
                    }, [j(f(v.value ? m.$t("pickUp") : m.$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 = o.info) == null ? void 0 : ge.state) === 2,
                class: "stop-button",
                onClick: S
            }, {
                default: F( () => {
                    var pe;
                    return [j(f(((pe = o.info) == null ? void 0 : pe.state) === 2 ? m.$t("hint6") : m.$t("stopStrage")), 1)]
                }
                ),
                _: 1
            }, 8, ["disabled"])])])
        }
    }
});
const Gl = X(El, [["__scopeId", "data-v-17f6c92c"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/BetStrategy.vue"]])
  , Fl = "/assets/png/close-32ada670.png"
  , wt = o => (fe("data-v-fc78d8ff"),
o = o(),
ve(),
o)
  , 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(o, {emit: i}) {
        const t = B(1);
        return (r, l) => {
            const d = Q("van-popup");
            return w(),
            ye(d, {
                show: o.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(o.title) + " ·", 1), Wl]), a("div", {
                    class: H(["bet-rule-conent", o.isPagina ? "" : "noPagtion"])
                }, [Pe(r.$slots, "default", {}, void 0, !0)], 2), o.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": o.totalCount,
                    "page-count": o.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)])) : x("v-if", !0), x(" 关闭按钮图标 "), o.isClose ? (w(),
                C("div", {
                    key: 1,
                    class: "closeIcon",
                    onClick: l[2] || (l[2] = c => i("close"))
                }, zl)) : x("v-if", !0)])]),
                _: 3
            }, 8, ["show"])
        }
    }
});
const ft = X(Xl, [["__scopeId", "data-v-fc78d8ff"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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"]
  , si = Y({
    __name: "PageHeader",
    props: {
        title: {
            type: String,
            required: !0
        },
        currentStrategy: {
            type: Array,
            required: !0
        }
    },
    emits: ["stopBet"],
    setup(o, {emit: i}) {
        const t = o
          , {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)
          , s = R( () => {
            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)
        }
        );
        oe( () => t.currentStrategy, () => {
            n.value = !0,
            setTimeout( () => {
                n.value = !1
            }
            , 100)
        }
        , {
            immediate: !0
        }),
        Re( () => {
            setTimeout( () => {
                n.value = !1
            }
            , 200)
        }
        );
        const u = B(!0);
        oe( () => $.value, () => {
            c({
                pageSize: 10,
                pageNo: $.value
            })
        }
        );
        const _ = async () => {
            await c({
                pageSize: 10,
                pageNo: 1
            }),
            i("stopBet")
        }
          , v = B(!1)
          , g = () => {
            v.value = !0,
            c({
                pageSize: 10,
                pageNo: 1
            })
        }
        ;
        oe( () => b.value, () => {
            b.value && (u.value = !1)
        }
        );
        const S = B(!1)
          , h = () => {
            p(),
            S.value = !S.value
        }
        ;
        return (T, A) => {
            const N = Q("van-loading");
            return w(),
            C(q, null, [a("div", Yl, [a("div", Zl, [a("div", Jl, [a("h1", Kl, f(o.title), 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: h
            })]), a("div", {
                class: "history-btn",
                onClick: g
            }, [L(k(we), {
                name: "clock-o",
                class: "history-icon"
            }), a("span", null, f(T.$t("strategyHistory")), 1)])]), x(" 加载中提示组件 "), n.value ? (w(),
            C("div", Ql, [L(N, {
                type: "spinner",
                color: "#FD565C"
            })])) : s.value ? (w(),
            C(q, {
                key: 1
            }, [x(" 空状态提示组件 "), L(cn)], 2112)) : (w(),
            C(q, {
                key: 2
            }, [x("当前跟投的信息"), L(Gl, {
                info: o.currentStrategy[0],
                onProhibit: _
            }, null, 8, ["info"])], 2112))]), x("历史记录弹框 "), 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(N, {
                    type: "spinner",
                    color: "#FD565C"
                })])) : (w(),
                ye(Kr, {
                    key: 1,
                    list: k(b)
                }, null, 8, ["list"]))]),
                _: 1
            }, 8, ["show", "title", "totalCount", "totalPage", "pageNo"]), x("跟单规则"), 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(N, {
                    type: "spinner",
                    color: "#FD565C"
                })]))]),
                _: 1
            }, 8, ["show", "title"])], 64)
        }
    }
});
const oi = X(si, [["__scopeId", "data-v-29779131"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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(o, 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(o, 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(o, 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(o, 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(o, 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(o, 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(o, 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 = o => (fe("data-v-3b9458ad"),
o = o(),
ve(),
o)
  , 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"
}
  , Ri = {
    class: "action-buttons"
}
  , xi = {
    class: "form-item"
}
  , Ni = {
    class: "label-container"
}
  , Mi = {
    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"
}
  , sc = {
    class: "parameter-value win-value"
}
  , oc = {
    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(o, {expose: i, emit: t}) {
        const r = o
          , {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()
        }
          , s = () => {
            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( () => {
                g()
            }
            ).catch(A => {
                console.log(A)
            }
            )
        }
          , g = () => {
            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")
              , N = Q("van-collapse");
            return w(),
            C("div", Ai, [L(N, {
                modelValue: y.value,
                "onUpdate:modelValue": T[10] || (T[10] = P => y.value = P),
                ref_key: "collapse",
                ref: $
            }, {
                default: F( () => [L(k(qn), {
                    onSubmit: g,
                    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] = m => c.betAmount = m),
                            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", Ri, [L(k(Ue), {
                            class: "half-button",
                            onClick: n
                        }, {
                            default: F( () => [j("1/2")]),
                            _: 1
                        }), L(k(Ue), {
                            class: "double-button",
                            onClick: s
                        }, {
                            default: F( () => [j("2X")]),
                            _: 1
                        })])])]), a("div", xi, [a("div", Ni, [L(k(di), {
                            class: "icon clock-icon"
                        }), a("span", Mi, [j(f(h.$t("betR")), 1), Oi])]), L(k(Fe), {
                            modelValue: c.preIssueCount,
                            "onUpdate:modelValue": T[1] || (T[1] = m => c.preIssueCount = m),
                            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] = m => c.initMarginAmount = m),
                                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] = m => c.stopProfitAmount = m),
                                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] = m => c.stopLossAmount = m),
                                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] = m => c.doubleBetMultiple = m),
                                type: "number",
                                placeholder: h.$t("hint9"),
                                class: "round-input",
                                onInput: T[6] || (T[6] = m => S(m.target.value))
                            }, null, 8, ["modelValue", "placeholder"])])) : x("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", sc, f(k(re)(c.betAmount)), 1)]), a("div", oc, [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")) : x("v-if", !0)])) : x("v-if", !0)])]), ((P = o.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] = m => c.isOpenDoubleBet = m),
                            size: "24"
                        }, null, 8, ["modelValue"])])) : x("v-if", !0)])]), a("div", dc, [a("div", {
                            class: "try-button",
                            onClick: T[8] || (T[8] = De(m => 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(m => 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/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/FollowSetForm.vue"]])
  , fc = o => (fe("data-v-bcfdab7a"),
o = o(),
ve(),
o)
  , 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"
}
  , Rc = {
    class: "stat-item"
}
  , xc = {
    class: "stat-label"
}
  , Nc = {
    class: "stat-value"
}
  , Mc = {
    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(o, {emit: i}) {
        const t = o
          , {t: r} = ke()
          , l = B(null)
          , d = () => {
            var s;
            $.value = !1,
            (s = l.value) == null || s.show()
        }
          , c = B({
            ...t.strategy,
            defineAmount: t.defineAmount,
            minAmount: t.minAmount
        })
          , b = R( () => {
            const s = c.value.playBet.toLowerCase();
            return s.includes("red") ? "red" : s.includes("big") ? "big" : s.includes("small") ? "small" : s.includes("green") ? "green" : s.includes("violet") ? "violet" : ""
        }
        )
          , p = R( () => {
            const s = Ee[c.value.followPlayType];
            return s != null && s.includes("purple") ? "purple" : s != null && s.includes("against") ? "against" : s != null && s.includes("follow") ? "follow" : ""
        }
        )
          , y = s => {
            s === 1 ? _e(r("ruleT21")) : s === 2 ? _e(r("ruleT31")) : s === 3 && _e(r("ruleT11"))
        }
          , $ = B(!1)
          , e = () => {
            t.orderNo ? i("cancelBet") : $.value = !0
        }
          , n = async s => {
            var _;
            const u = Xt({
                ...s,
                followPlanId: c.value.id
            });
            i("follow", u),
            $.value = !1,
            (_ = l.value) == null || _.show()
        }
        ;
        return (s, 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(s.$t(c.value.playType)), 1), a("div", Cc, [kc, a("span", Tc, f(c.value.followUserCount), 1), a("span", Sc, f(s.$t("followed")), 1)]), a("div", Ac, [a("div", {
                class: H(["tag type-tag", c.value.playBet ? b.value : p.value])
            }, f(c.value.playBet ? s.$t(c.value.playBet) : s.$t(k(Ee)[c.value.followPlayType])), 3), c.value.isSupportDoubleBet === 1 ? (w(),
            C("div", {
                key: 0,
                class: "tag method-tag",
                textContent: f(s.$t("martingale"))
            }, null, 8, Lc)) : x("v-if", !0)])])]), a("div", Ic, [a("div", Bc, [a("div", Pc, [j(f(s.$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", Rc, [a("div", xc, [j(f(s.$t("tp")) + " ", 1), L(k(we), {
                name: "question-o",
                class: "info-icon",
                onClick: u[1] || (u[1] = v => y(2))
            })]), a("div", Nc, f(k(re)(c.value.actualTotalProfitAmount)), 1)]), a("div", Mc, [a("div", Oc, [j(f(s.$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)])]), x("跟单按钮"), L(k(Ue), {
                disabled: c.value.orderNo == o.orderNo,
                block: "",
                type: "primary",
                class: "follow-btn",
                onClick: e
            }, {
                default: F( () => [j(f(s.$t("fts")), 1)]),
                _: 1
            }, 8, ["disabled"])]), x(" 新增跟投设置弹窗 "), L(ft, {
                show: $.value,
                "destroy-on-close": !0,
                title: s.$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/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/StrategyCard.vue"]])
  , $t = o => (fe("data-v-49506d41"),
o = o(),
ve(),
o)
  , 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(o, {emit: i}) {
        return (t, r) => {
            const l = Q("van-button")
              , d = Q("van-popup");
            return w(),
            ye(d, {
                show: o.showPop,
                round: "",
                "close-on-click-overlay": !1,
                class: "boxPop"
            }, {
                default: F( () => [a("div", Hc, [a("div", Vc, [qc, a("span", null, "· " + f(o.title) + " ·", 1), Wc]), a("div", jc, [x(" <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/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/ConfirmPromptPop.vue"]])
  , Zc = {
    class: "content12"
}
  , Jc = Y({
    __name: "main",
    setup(o) {
        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: s} = e || {
            countdown: B({}),
            betScopes: B([])
        };
        oe( () => 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)
          , g = async () => {
            v.value = !v.value,
            p.value && (await b(p.value),
            await _())
        }
        ;
        return oe( () => y.value, async () => {
            await d()
        }
        ),
        mt(async () => {
            await t()
        }
        ),
        (S, h) => (w(),
        C("div", Zc, [x(" 头部及空状态组件 "), L(oi, {
            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(s)[1],
            minAmount: k(s)[0],
            orderNo: k(p),
            onFollow: u,
            onCancelBet: h[0] || (h[0] = A => v.value = !0)
        }, null, 8, ["strategy", "defineAmount", "minAmount", "orderNo"]))), 128)), x("跟单更换确认弹框"), L(Yc, {
            show: v.value,
            title: S.$t("promptT"),
            onCancel: h[1] || (h[1] = T => v.value = !1),
            onConfirm: g
        }, null, 8, ["show", "title"])]))
    }
});
const __ = X(Jc, [["__scopeId", "data-v-d3b4a951"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/components/FollowBet/main.vue"]])
  , Kc = {
    class: "RecordNav__C"
}
  , Qc = ["onClick"]
  , eu = Y({
    __name: "RecordNav",
    props: {
        record: {
            type: String,
            default: "GameRecord"
        }
    },
    setup(o) {
        const i = o
          , {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/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/RecordNav.vue"]])
  , nu = {
    class: "GameRecord__C"
}
  , su = {
    class: "GameRecord__C-head"
}
  , ou = {
    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(o) {
        const i = o
          , {historyIssues: t, historyIssuesTotalPage: r} = on()
          , l = B([])
          , d = R( () => 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 (s=!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 = s ? 1 : y.value,
                b.value = _.totalPage || 0)
            } catch {
                c.value = !1
            }
        }
        ;
        return oe(t, () => {
            l.value = [],
            y.value = 1
        }
        ),
        oe(r, () => {
            b.value = r.value
        }
        ),
        oe(i.gameCode, () => {
            n(!0)
        }
        ),
        (s, u) => {
            var S;
            const _ = Q("van-col")
              , v = Q("van-row")
              , g = Q("van-icon");
            return w(),
            C("div", nu, [a("div", su, [L(v, null, {
                default: F( () => [L(_, {
                    span: "10"
                }, {
                    default: F( () => [j(f(s.$t("FDNumber")), 1)]),
                    _: 1
                }), L(_, {
                    span: "10"
                }, {
                    default: F( () => [j(f(s.$t("FDResult")), 1)]),
                    _: 1
                }), L(_, {
                    span: "4"
                }, {
                    default: F( () => [j(f(s.$t("FDTotal")), 1)]),
                    _: 1
                })]),
                _: 1
            })]), a("div", ou, [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, N) => (w(),
                    C("div", {
                        class: "numItem",
                        key: N
                    }, f(A), 1))), 128))])]),
                    _: 2
                }, 1024), L(_, {
                    span: "4"
                }, {
                    default: F( () => [a("div", ru, f(h.sum), 1)]),
                    _: 2
                }, 1024)]),
                _: 2
            }, 1024))), 128)) : x("v-if", !0), ((S = d.value) == null ? void 0 : S.length) == 0 && !c.value ? (w(),
            C("div", lu, [L(jt)])) : x("v-if", !0)]), d.value.length ? (w(),
            C("div", iu, [a("div", {
                class: H(["GameRecord__C-foot-previous", {
                    disabled: y.value <= 1
                }]),
                onClick: $
            }, [L(g, {
                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(g, {
                name: "arrow",
                class: "GameRecord__C-icon",
                size: "20"
            })], 2)])) : x("v-if", !0)])
        }
    }
});
const du = X(uu, [["__scopeId", "data-v-59fd933e"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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"
}
  , Ru = ["id"]
  , xu = {
    key: 0,
    class: "flex-center t-b2-loading",
    style: {
        height: "100%"
    }
}
  , Nu = {
    key: 1,
    class: "t-b2-empty flex-center"
}
  , Mu = {
    key: 0,
    class: "t-foot"
}
  , Ou = {
    class: "t-foot-page"
}
  , Eu = Y({
    __name: "Trend",
    setup(o) {
        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, N) => {
            $.value.name = A,
            $.value.index = N + 1,
            await S($.value.index)
        }
          , n = B([])
          , s = R( () => (n.value.length ? n.value : i.value).map(N => {
            var P;
            return {
                ...N,
                number: (P = N == null ? void 0 : N.premium) == null ? void 0 : P.split("")[$.value.index - 1]
            }
        }
        ));
        function u() {
            Ke( () => {
                for (let A = 0; A < s.value.length; A++)
                    s.value[A + 1] && _(A, s.value[A], s.value[A + 1])
            }
            )
        }
        function _(A, N, P) {
            const m = parseInt(N.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(m == 0 ? 14 : m * 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())
        }
          , g = () => {
            d.value++,
            !(d.value > p.value) && h()
        }
          , S = async A => {
            const {result: N, data: P} = await Qs({
                gameCode: t.value,
                pageNo: d.value,
                pageSize: 10
            });
            N && (l.value = P == null ? void 0 : P.filter(m => (m == null ? void 0 : m.position) === A))
        }
          , h = async () => {
            b.value = !0;
            try {
                const {result: A, data: N} = await en({
                    gameCode: t.value,
                    pageNo: d.value,
                    pageSize: c.value
                });
                A && (n.value = (N == null ? void 0 : N.list) || [],
                d.value = N.pageNo || 1,
                p.value = N.totalPage || 0)
            } catch {} finally {
                b.value = !1
            }
        }
        ;
        Re(async () => {
            s.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") {
                    console.log("Request canceled");
                    return
                }
                console.error("Error in watch handler:", A)
            }
        }
        , 300);
        return oe(s, () => {
            T()
        }
        , {
            deep: !0
        }),
        (A, N) => {
            const P = Q("van-col")
              , m = Q("van-row")
              , D = Q("van-loading")
              , E = Q("van-icon");
            return w(),
            C("div", pu, [x(" 类型切换 "), a("div", fu, [a("div", vu, [(w(!0),
            C(q, null, K(y.value, (I, M) => (w(),
            C("div", {
                key: M,
                class: H({
                    active: $.value.name == `${I}`
                }),
                onClick: O => e(I, M)
            }, f(I), 11, mu))), 128))]), x("投注助手"), a("div", gu, [a("div", yu, [x(`            <span class="w">{{ $t('w8') }}</span>`), x("            <span>{{$t('w9')}}</span>"), a("span", null, f(A.$t("trendDesc1")), 1)]), x('        <div class="t-b1-l lottery">'), x("          <div>{{$t('w11')}}</div>"), x('          <div class="t-b1-l-n">'), x('            <div v-for="item in 10" :key="item">{{ item - 1 }}</div>'), x("          </div>"), x("        </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, M) => (w(),
            C("div", {
                key: "4" + M
            }, 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, M) => (w(),
            C("div", {
                key: "2" + M
            }, 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, M) => (w(),
            C("div", {
                key: "5" + M
            }, 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, M) => (w(),
            C("div", {
                key: "3" + M
            }, f(I.maxContinuous), 1))), 128))])])])]), a("div", Au, [a("div", Lu, [L(m, 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(s.value, (I, M) => (w(),
            C("div", {
                key: M,
                IssueNumber: I.issueNumber,
                Number: I.number,
                Colour: I.colour,
                rowId: I.rowId,
                class: "t-b2-item"
            }, [L(m, 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" + M,
                        ref_for: !0,
                        ref: "canvas",
                        class: "line-canvas"
                    }, null, 8, Ru), (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", xu, [L(D, {
                type: "spinner",
                color: "#FD565C"
            })])) : x("v-if", !0), s.value.length === 0 && !b.value ? (w(),
            C("div", Nu, [L(k(an))])) : x("v-if", !0)])]), s.value.length ? (w(),
            C("div", Mu, [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: g
            }, [L(E, {
                name: "arrow",
                class: "t-icon",
                size: "20"
            })], 2)])) : x("v-if", !0)])
        }
    }
});
const Gu = X(Eu, [["__scopeId", "data-v-3e84b000"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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(o) {
        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 Re( () => {
            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/AR079-Pages-india-tashanwin/src/saasLottery/components/Audio/audio.vue"]])
  , pn = o => (fe("data-v-04581d81"),
o = o(),
ve(),
o)
  , 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))
  , sd = [nd]
  , od = {
    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(o) {
        const i = o
          , {t} = ke()
          , r = B(i.mayrecord || []);
        oe( () => i.mayrecord, e => {
            e && (r.value = i.mayrecord)
        }
        );
        const l = (e, n=!1) => {
            var u;
            if (!e.betContent)
                return "";
            const s = e.betContent.split(",");
            return n ? s[0].split("_")[1] : ["Big", "Small", "Even", "Odd"].includes(s[0].split("_")[1]) ? (u = $[s[0].split("_")[1]]) == null ? void 0 : u.name : s[0].split("_")[1]
        }
          , d = e => {
            if (!e.betContent)
                return "";
            const s = (e == null ? void 0 : e.betContent.split(",")).slice(0, 2).map(u => {
                const _ = u.match(/_(\d+)$/);
                return _ ? _[1] : null
            }
            );
            return s[0] + s[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, s, u, _;
            return e.betContent ? e.betContent.indexOf(",") !== -1 ? e.betContent.split(",").map(g => {
                const S = g.split("_");
                return S[S.length - 1]
            }
            ) : ["Big", "Small", "Even", "Odd"].includes((n = e.betContent) == null ? void 0 : n.split("_")[1]) ? (u = $[(s = e.betContent) == null ? void 0 : s.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, (s, 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(s, !0)}`)
            }, [a("div", {
                class: H(`list-item-l-${l(s)}`)
            }, f((_ = s == null ? void 0 : s.betContent) != null && _.includes(",") ? d(s) : l(s)), 3)], 2), a("div", ed, [a("div", td, [j(f(s.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"
            }, sd, 2))]), a("div", od, f(k(Qe)(s.betTime)), 1)]), s.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H(["list-item-r", {
                    success: s.state == 1
                }])
            }, [a("div", {
                class: H({
                    success: s.state == 1
                })
            }, f(s.state == 1 ? e.$t("success") : e.$t("fail")), 3), a("div", null, f(`${s.state == 1 ? "+" : ""} ${k(re)(s.state ? s.winLoseAmount + s.amount : s.winLoseAmount)}`), 1)], 2)) : x("v-if", !0)], 8, Qu), u == p.value ? (w(),
            C("div", ad, [a("div", rd, f(e.$t("detailMay")), 1), x('            <div class="list-detail-line" v-if="item.orderNo">'), x("              <span>{{ $t('orderNoMay') }}</span>"), x("            </div>"), a("div", ld, [a("span", null, f(e.$t("orderNoMay")), 1), a("div", {
                class: "list-detail-copy",
                onClick: v => k(Ns)(s.orderNo)
            }, [j(f(s.orderNo) + " ", 1), cd], 8, id)]), a("div", ud, [a("span", null, f(e.$t("issueMay")), 1), a("div", null, f(s.issueNumber), 1)]), a("div", dd, [a("span", null, f(e.$t("amountMay")), 1), a("div", null, f(k(re)(s.amount)), 1)]), a("div", _d, [a("span", null, f(e.$t("numMay")), 1), a("div", null, f(s.betMultiple), 1)]), a("div", pd, [a("span", null, f(e.$t("afterTaxAmount")), 1), a("div", fd, f(k(re)(s.realAmount)), 1)]), a("div", vd, [a("span", null, f(e.$t("tax")), 1), a("div", null, f(k(re)(s.fee)), 1)]), a("div", md, [a("span", null, f(e.$t("resultMay")), 1), s.premium ? (w(),
            C("div", gd, [(w(!0),
            C(q, null, K([...s.premium], (v, g) => (w(),
            C("div", {
                class: "numList",
                key: g
            }, 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(s == null ? void 0 : s.playType)}：` + b(s))), 1)]), a("div", bd, [a("span", null, f(e.$t("statusMay")), 1), s.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H([s.state ? "green" : "red"])
            }, f(s.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), s.state != 2 ? (w(),
            C("div", {
                key: 0,
                class: H([s.state ? "green" : "red"])
            }, f(`${s.state ? "+" : ""}${k(re)(s.state ? s.winLoseAmount + s.amount : s.winLoseAmount)}`), 3)) : (w(),
            C("div", Cd, "--"))]), a("div", kd, [a("span", null, f(e.$t("createTime")), 1), a("div", null, f(k(Qe)(s.betTime)), 1)])])) : x("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/AR079-Pages-india-tashanwin/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"
}
  , Rd = {
    class: "MyGameRecord__C-foot-page"
}
  , xd = Y({
    __name: "MyGameRecord",
    setup(o) {
        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 (s=!1) => {
            var u, _;
            if (t.value != null)
                try {
                    b.value = !0;
                    const v = await Ks({
                        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 = s ? 1 : d.value)
                } catch {} finally {
                    b.value = !1
                }
        }
          , e = B(1)
          , n = B(!1);
        return oe( () => e.value, s => {
            if (s > 0) {
                if (n.value)
                    return;
                $()
            }
        }
        ),
        oe( () => t.value, s => {
            s && $(!0)
        }
        ),
        jn( () => {
            n.value = !0,
            i.reset()
        }
        ),
        mt( () => {
            n.value = !1,
            $(),
            i.on( () => {
                $()
            }
            )
        }
        ),
        Re( () => {
            $()
        }
        ),
        (s, 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"])) : x("v-if", !0), !c.value.length && !b.value ? (w(),
            C("div", Bd, [L(jt)])) : x("v-if", !0), b.value ? (w(),
            C("section", Pd, [L(_, {
                type: "spinner",
                color: "var(--main-color)"
            })])) : x("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", Rd, 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)])) : x("v-if", !0)])
        }
    }
});
const Nd = X(xd, [["__scopeId", "data-v-3d282755"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/components/D5_3/MyGameRecord.vue"]])
  , Md = o => (fe("data-v-9e1f63cd"),
o = o(),
ve(),
o)
  , 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 = Md( () => 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(o) {
        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: s, introduceLoading: u, lastResultSum: _, lastResult: v, issue: g, countdownTime: S, countdown: h, winner: T, isShowMark: A, secondsStr: N} = bo()
          , {gameInfo: P, gameCode: m, updateBalance: D, onBetTrigger: E, onLotteryJump: I} = Te()
          , M = B()
          , O = {
            GameRecord: du,
            Trend: Gu,
            MyGameRecord: Nd
        }
          , V = B("GameRecord")
          , te = B(["A", "B", "C", "D", "E", "SUM"])
          , Z = B()
          , le = B(!1);
        p(),
        Re(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
                }
        }
        ;
        oe( () => h.value.seconds, ae => {
            var U;
            ae === 0 && ((U = Z.value) == null || U.animationShow())
        }
        );
        const pe = () => {
            E(),
            D(),
            b()
        }
        ;
        return (ae, U) => {
            const Ge = 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"]), x("上期开奖结果"), L(_s, {
                premium: k(v),
                sumCount: k(_)
            }, null, 8, ["premium", "sumCount"]), L(Ss, {
                ref_key: "actionLoad",
                ref: Z,
                handleRule: k(e),
                issue: k(g),
                premium: k(v),
                countdownTime: k(S)
            }, null, 8, ["handleRule", "issue", "premium", "countdownTime"]), a("div", Ed, [x(" 倒计时蒙层 "), vt(a("div", Gd, [(w(!0),
            C(q, null, K(k(N), me => (w(),
            C("div", null, f(me), 1))), 256))], 512), [[qt, k(A)]]), x("投注列表栏"), L(Zo, {
                currentGame: k(P),
                issueNum: k(g),
                gameCode: k(m),
                time: k(h),
                issueData: k(l),
                onBetting: pe,
                bigSmallEven: k(t),
                numList: k(r)
            }, null, 8, ["currentGame", "issueNum", "gameCode", "time", "issueData", "bigSmallEven", "numList"])]), x("游戏记录导航 "), L(tu, {
                record: V.value,
                onChangeC: U[0] || (U[0] = me => V.value = me)
            }, null, 8, ["record"]), x(" 动态展示对应的组件 "), (w(),
            ye(zn, null, [(w(),
            ye(Un(O[V.value]), {
                ref_key: "RecordComponent",
                ref: M,
                gameCode: k(m)
            }, null, 8, ["gameCode"]))], 1024))]), x("开奖中奖弹窗"), 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), x("声音文件"), L(Yu), x("玩法说明规则弹层 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(s)) == null ? void 0 : me.title,
                        onClose: k(e)
                    }, {
                        default: F( () => {
                            var Ae;
                            return [k(u) ? (w(),
                            C("div", Ud, [L(Ge, {
                                type: "spinner",
                                color: "#FD565C"
                            })])) : (w(),
                            C("div", {
                                key: 1,
                                innerHTML: (Ae = k(s)) == 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/AR079-Pages-india-tashanwin/src/saasLottery/game/D5/views/D5_3/index.vue"]])
  , Zd = Y({
    __name: "ChangLong",
    setup(o) {
        const {isAlowGame: i, goChangLong: t} = es()
          , 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/AR079-Pages-india-tashanwin/src/components/common/ChangLong.vue"]])
  , Kd = Y({
    __name: "index",
    setup(o) {
        const {useProvide: i, getWebData: t, setLotteryCode: r} = yo()
          , d = Xn().query.gameCode;
        i(),
        r(d);
        const c = ts()
          , b = R( () => c.getIsShowLotteryDragon);
        return Re(async () => {
            await t()
        }
        ),
        (p, y) => (w(),
        C(q, null, [L(Yd), b.value ? (w(),
        ye(Jd, {
            key: 0
        })) : x("v-if", !0)], 64))
    }
})
  , Qd = X(Kd, [["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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, Nd as D, an as E, Gs as F, Rs as G, Ys as H, nt as I, po as J, Zs as K, Oa as L, Js as M, He as N, r_ as O, uo as P, co as Q, Qs as R, At as S, __ as T, i_ as U, f_ as V, Ja as W, ho as a, Lt as b, gt as c, Rt as d, Mt as e, l_ as f, eo as g, et as h, _o as i, tt as j, Hs as k, Fs as l, da as m, u_ as n, Yu as o, yo as p, Qe as q, Ns as r, Ks as s, p_ as t, Te as u, en as v, fo as w, lt as x, d_ as y, c_ as z};
