<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">! function() {
    "use strict";
    var e, t = Laya.ClassUtils.regClass;
    ! function(e) {
        ! function(e) {
            class i extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/BanPingFlows");
                }
            }
            e.BanPingFlowsUI = i, t("ui.scenes.BanPingFlowsUI", i);
            class s extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/CheKu");
                }
            }
            e.CheKuUI = s, t("ui.scenes.CheKuUI", s);
            class n extends Laya.Scene {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/DaTing");
                }
            }
            e.DaTingUI = n, t("ui.scenes.DaTingUI", n);
            class a extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/FreeCoin");
                }
            }
            e.FreeCoinUI = a, t("ui.scenes.FreeCoinUI", a);
            class o extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/Fuhuo");
                }
            }
            e.FuhuoUI = o, t("ui.scenes.FuhuoUI", o);
            class r extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/FullSceneFlows");
                }
            }
            e.FullSceneFlowsUI = r, t("ui.scenes.FullSceneFlowsUI", r);
            class h extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/JieSuan");
                }
            }
            e.JieSuanUI = h, t("ui.scenes.JieSuanUI", h);
            class l extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/SpeedTrial");
                }
            }
            e.SpeedTrialUI = l, t("ui.scenes.SpeedTrialUI", l);
            class c extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/Tooltip");
                }
            }
            e.TooltipUI = c, t("ui.scenes.TooltipUI", c);
            class d extends Laya.Dialog {
                constructor() {
                    super();
                }
                createChildren() {
                    super.createChildren(), this.loadScene("scenes/WuDian");
                }
            }
            e.WuDianUI = d, t("ui.scenes.WuDianUI", d);
        }(e.scenes || (e.scenes = {}));
    }(e || (e = {}));
    class i {
        constructor() {
            this.events = [];
        }
        on(e, t, i) {
            this.events.push({
                eventName: e,
                fun: t,
                target: i
            });
        }
        off(e, t, i) {
            if ("object" == typeof e) return this.removeAllListeners(e);
            this.events = this.events.filter(s =&gt; s.eventName != e || s.fun !== t || s.target != i);
        }
        emit(e, ...t) {
            this.events.filter(t =&gt; t.eventName == e).map(e =&gt; {
                e.fun.apply(e.target, t);
            }), this.events = this.events.filter(t =&gt; t.eventName != e || t.eventName == e &amp;&amp; !t.isOnce);
        }
        removeAllListeners(e) {
            this.events = "object" == typeof e ? this.events.filter(t =&gt; t.target != e) : this.events.filter(t =&gt; t.eventName != e);
        }
        once(e, t, i) {
            this.events.push({
                eventName: e,
                fun: t,
                target: i,
                isOnce: !0
            });
        }
        clean() {
            this.events = [];
        }
    }
    class s {
        constructor(e) {
            this.__className__ = "Platform", this.isWeb = !1, this.isWechat = !1, this.isTouTiao = !1,
                this.isQuTouTiao = !1, this.isVivo = !1, this.isOppo = !1, this.isQQ = !1, this.Event = null,
                this.config = {}, this.bannerAD = null, this.videoAd = null, this.bannerCfg = {},
                this.adCfg = {}, this.config = e, this.isWeb = !0, this.Event = new i();
        }
        getLaunchData() {
            return {};
        }
        getReferrer() {
            return {};
        }
        autoLogin(e) {
            e({
                openid: Math.floor(1e5 * Math.random()) + 899999
            });
        }
        updateVersion() {}
        getUserInfo(e, t, i, s, n, a) {}
        destroyLoginButton() {}
        share(e, t) {}
        vibrateLong() {}
        vibrateShort() {}
        reportData(e) {}
        showBanner(e, t, i) {}
        destroyBanner(e = "") {}
        watchVideo(e, t, i) {
            L.Event.emit("VideoSuccess"), t(!0);
        }
        startRecord(e = 0) {
            setTimeout(() =&gt; {
                L.Event.emit("recordEnd");
            }, 3e4);
        }
        stopRecord() {}
        createAppBox(e) {}
    }
    let n = (() =&gt; {
            class t extends e.scenes.TooltipUI {
                constructor() {
                    super(), this.createChildren();
                }
                onAwake() {
                    this.x = Laya.stage.width / 2 - 100, this.y = Laya.stage.height / 2 + t.showY, this.label.text = t.showMsg,
                        this.lbBg.width = this.label.width + 50;
                }
                static Show(e, t = 0, i = 1500) {
                    // this.showMsg = e, this.showTime = i, this.showY = t, Laya.Scene.close("scenes/Tooltip.scene"), 
                    // Laya.Scene.open("scenes/Tooltip.scene", !1);
                }
                onOpened(e) {
                    Laya.Tween.to(this, {}, t.showTime, null, new Laya.Handler(this, function() {
                        Laya.Tween.to(this, {
                            y: this.y - 30
                        }, 300, null, new Laya.Handler(this, function() {
                            Laya.Scene.close("scenes/Tooltip.scene");
                        }));
                    }));
                }
            }
            return t.showMsg = "", t.showTime = 0, t.showY = 0, t;
        })(),
        a = {
            "adunit-ca6df2f341ffb9cb": "è¡¥å……é‡‘å¸",
            "adunit-7384b7997fee8f5a": "å¤šå€é¢†å–",
            "adunit-b541d44469922b07": "revival"
        };
    class o extends s {
        constructor(e) {
            super(e), this.__className__ = "PlatformWechat", this.isWechat = !0, this.isWeb = !1,
                this.isEnterFromMyApp = !1, this.luanchData = null, this.referrerInfo = null, this.videoCB = null,
                this.videoFailCB = null, this.onVideoError = null, this.onVideoClose = null, this.autoLoginCB = null,
                this.isCheckNewVersion = !1, this.btnLogin = null, this.bannerCanShow = !1, this.videoName = "",
                this.shareListener = null, this.isWeb = !1, this.adCfg = e;
            var t = wx.getLaunchOptionsSync();
            this.luanchData = t.query, this.referrerInfo = t.referrerInfo || {}, wx.onShareAppMessage(() =&gt; {
                    var e = Math.floor(Math.random() * this.config.shareCfg.length),
                        t = this.config.shareCfg[e];
                    return {
                        title: t.title,
                        imageUrl: t.imageUrl,
                        imageUrlId: t.imageUrlId,
                        query: {}
                    };
                }), wx.showShareMenu(null), wx.setKeepScreenOn &amp;&amp; wx.setKeepScreenOn({
                    keepScreenOn: !0
                }), this._consoleAppIdList(), setTimeout(this._checkNewVersion.bind(this), 1e3),
                1089 == t.scene ? (L.Event.emit("enterFromMyApp"), this.isEnterFromMyApp = !0) : 1038 == t.scene &amp;&amp; L.Event.emit("backOtherApp", t.referrerInfo),
                wx.onShow(function(e) {
                    L.Event.emit("onShow", e);
                    var t = wx.getLaunchOptionsSync();
                    1089 == e.scene ? (L.Event.emit("enterFromMyApp"), this.isEnterFromMyApp = !0) : 1038 == t.scene &amp;&amp; L.Event.emit("backOtherApp", t.referrerInfo),
                        this.shareListener &amp;&amp; this.shareListener.cb(L.Data.isCheck || Date.now() - this.shareListener.time &gt;= 3e3),
                        this.shareListener = null, this._checkNewVersion();
                }.bind(this)), wx.onHide(function() {
                    L.Event.emit("onHide");
                });
        }
        autoLogin(e) {
            wx.cloudLogin(e);
        }
        _consoleAppIdList() {}
        _checkNewVersion() {
            if (this.isCheckNewVersion) return;
            let e = wx.getUpdateManager();
            e.onCheckForUpdate(t =&gt; {
                t.hasUpdate &amp;&amp; (this.isCheckNewVersion = !0, wx.showLoading({
                    title: "åº”ç”¨æ›´æ–°ä¸­"
                }), e.onUpdateReady(t =&gt; {
                    wx.hideLoading(), e.applyUpdate();
                }));
            }), e.onUpdateFailed(() =&gt; {
                wx.showToast({
                    title: "æ–°ç‰ˆæœ¬ä¸‹è½½å¤±è´¥"
                }), wx.hideLoading();
            });
        }
        getUserInfo(e, t, i, s, n, a) {
            console.log("getUserInfo:", e, t, i, s), this.btnLogin &amp;&amp; this.btnLogin.destroy();
            let o = !0;
            wx.getSystemInfoSync();
            this.btnLogin = wx.createUserInfoButton({
                type: "image",
                imgage: n,
                style: {
                    left: e,
                    top: t,
                    width: i,
                    height: s
                },
                withCredentials: !0
            });
            let r = this,
                h = "";
            wx.login({
                success: function(e) {
                    h = e.code;
                },
                fail: function() {
                    r.destroyLoginButton(), r.getUserInfo(e, t, i, s, n, a);
                }
            }), this.btnLogin.onTap(function(e) {
                if (!e.iv) return o &amp;&amp; a(e), void(o = !1);
                let t = {
                    code: h,
                    iv: encodeURIComponent(e.iv),
                    encryptedData: encodeURIComponent(e.encryptedData),
                    signature: e.signature
                };
                o &amp;&amp; a(t), o = !1;
            }), this.btnLogin.show();
        }
        destroyLoginButton() {
            this.btnLogin &amp;&amp; this.btnLogin.destroy(), this.btnLogin = null;
        }
        share(e, t) {
            let i = {};
            "number" == typeof e ? i = this.config.shareCfg[e] : "object" == typeof e ? i = e : (e = Math.floor(Math.random() * this.config.shareCfg.length),
                i = this.config.shareCfg[e]), wx.shareAppMessage(i), this.shareListener = t ? {
                cb: t,
                time: Date.now()
            } : null;
        }
        showBanner(e, t, i) {
            let s = this.adCfg.banner[e];
            console.log("showBanner:", e, "-&gt;", s), this.bannerCfg = {
                adName: e,
                wwidth: t,
                hheight: i
            }, this.bannerCanShow = !0;
            var n = wx.getSystemInfoSync(),
                a = i || .17 * n.screenHeight,
                o = t || n.screenWidth;
            let r = wx.createBannerAd({
                adUnitId: s,
                style: {
                    left: 0,
                    top: 0,
                    width: o,
                    height: a
                }
            });
            this.bannerAD = r;
            let h = this;
            this.bannerAD.onResize(e =&gt; {
                if (!h.bannerAD) return r &amp;&amp; r.destroy(), void(h.bannerAD = null);
                h.bannerAD.style.top = n.screenHeight - e.height, h.bannerAD.style.left = (n.screenWidth - e.width) / 2,
                    L.Event.emit("bannershow", e);
            }), this.bannerAD.onError(t =&gt; {
                L.Event.emit("bannerError", e, t);
            }), this.bannerAD.onLoad(t =&gt; {
                L.Event.emit("banneronload", e, r, {
                    width: h.bannerAD.style.width,
                    height: h.bannerAD.style.height
                });
            });
        }
        vibrateLong() {
            let e = function() {};
            wx.vibrateLong({
                success: e,
                fail: e,
                complete: e
            });
        }
        vibrateShort() {
            let e = function() {};
            wx.vibrateShort({
                success: e,
                fail: e,
                complete: e
            });
        }
        destroyBanner(e = "") {
            this.bannerCanShow = !1, console.log("destroyBanner:", this.bannerAD, ",scene:", e),
                this.bannerAD &amp;&amp; this.bannerAD.destroy(), this.bannerAD = null, this.bannerCfg = null;
        }
        _onVideoClose(e) {
            e.isEnded ? (L.Event.emit("VideoSuccess"), wx.aldSendEvent &amp;&amp; wx.aldSendEvent("è§†é¢‘æ’­æ”¾æˆåŠŸ", {
                name: this.videoName
            })) : wx.aldSendEvent &amp;&amp; wx.aldSendEvent("è§†é¢‘æ’­æ”¾ä¸­æ­¢", {
                name: this.videoName
            }), e.isEnded ? this.videoCB &amp;&amp; this.videoCB() : this.videoFailCB ? this.videoFailCB() : n.Show("è§‚çœ‹å®Œæ•´è§†é¢‘æ‰èƒ½èŽ·å¾—å¥–åŠ±å“¦!");
        }
        _onVideoError() {
            this.videoFailCB &amp;&amp; this.videoFailCB(null), n.Show("æš‚æ—¶æ²¡æœ‰è§†é¢‘,è¿‡ä¸€æ®µæ—¶é—´å†æ¥è¯•è¯•!");
        }
        watchVideo(e, t, i) {
            let s = this.adCfg.video[e];
            this.videoCB = t, this.videoFailCB = i, this.videoName = a[s], console.log("showBanner:", e, "-&gt;", s),
                wx.aldSendEvent &amp;&amp; wx.aldSendEvent("ç‚¹å‡»è§†é¢‘", {
                    name: this.videoName
                }), this.onVideoError || (this.onVideoError = this._onVideoError.bind(this), this.onVideoClose = this._onVideoClose.bind(this)),
                this.videoAd &amp;&amp; (this.videoAd.offError(this.onVideoError), this.videoAd.offClose(this.onVideoClose)),
                this.videoAd = wx.createRewardedVideoAd({
                    adUnitId: s
                }), this.videoAd.load().then(() =&gt; {
                    this.videoAd.show(), wx.aldSendEvent &amp;&amp; wx.aldSendEvent("æ‹‰å–è§†é¢‘æˆåŠŸ", {
                        name: this.videoName
                    });
                }), this.videoAd.onError(this.onVideoError), this.videoAd.onClose(this.onVideoClose);
        }
    }

    function convertString(e) {
        var t = "";
        for (let i in e) t &amp;&amp; (t += "&amp;"), t += i + "=" + e[i];
        return t;
    }
    let r = {
        _id: "",
        token: ""
    };
    class h {
        static setData(e, t) {
            r = {
                _id: e,
                token: t
            };
        }
        get(e, t, i, s, n = "/user") {
            var a = new Laya.HttpRequest();
            a.http.timeout = 1e4, a.once(Laya.Event.COMPLETE, this, function(e) {
                    s &amp;&amp; s(null, JSON.parse(e).data);
                }), a.once(Laya.Event.ERROR, this, function(e) {
                    console.warn("request " + t + " error:", e), s &amp;&amp; s(e, null);
                }), a.on(Laya.Event.PROGRESS, this, function(e) {}), r._id &amp;&amp; (i._id = r._id, i.token = encodeURIComponent(r.token)),
                i.route = t;
            let o = convertString(i);
            a.send(e + n + "?" + o, "", "get", "text");
        }
        post(e, t, i, s, n = "/user") {
            var a = new Laya.HttpRequest();
            a.http.timeout = 1e4, a.once(Laya.Event.COMPLETE, this, function(e) {
                    s &amp;&amp; s(null, JSON.parse(e).data);
                }), a.once(Laya.Event.ERROR, this, function(e) {
                    console.warn("request " + t + " error:", e), s &amp;&amp; s(e, null);
                }), a.on(Laya.Event.PROGRESS, this, function(e) {}), r._id &amp;&amp; (i._id = r._id, i.token = encodeURIComponent(r.token)),
                i.router = t;
            let o = convertString(i);
            a.send(e + n, o, "POST", "text");
        }
    }
    let l = {};
    class c extends o {
        constructor(e) {
            super(e), this.isWechat = !0, this.isQQ = !1, this.appBox = null, this.interstitialAd = null,
                this.isQQ = !0, this.isWechat = !1, console.log("QQå¹³å°åˆå§‹åŒ–");
            let t = window.qq;
            t.createInterstitialAd &amp;&amp; (this.interstitialAd = window.qq.createInterstitialAd({
                adUnitId: this.adCfg.interstitial.lobby
            }), this.interstitialAd.load()), t = window.qq;
        }
        autoLogin(e) {
            wx.cloudLogin(e);
        }
        showBanner(e, t, i) {
            let s = this.adCfg.banner[e];
            this.bannerAD &amp;&amp; this.destroyBanner("showBanner"), this.bannerCfg = {
                adName: e,
                wwidth: t,
                hheight: i
            }, console.log("showBanner:", e, "-&gt;", s), this.bannerCanShow = !0;
            var n = wx.getSystemInfoSync(),
                a = i || .17 * n.screenHeight,
                o = t || n.screenWidth;
            let r = wx.createBannerAd({
                adUnitId: s,
                style: {
                    left: 0,
                    top: 0,
                    width: o,
                    height: a
                }
            });
            this.bannerAD = r;
            let h = this;
            this.bannerAD.onResize(e =&gt; {
                if (!h.bannerAD) return r &amp;&amp; r.destroy(), void(h.bannerAD = null);
                h.bannerAD.style.top = n.screenHeight - e.height, h.bannerAD.style.left = (n.screenWidth - e.width) / 2,
                    L.Event.emit("bannershow", e);
            }), this.bannerAD.onError(e =&gt; {
                console.log("onError:", e);
            }), this.bannerAD.onLoad(e =&gt; {
                console.log("bannerad onload:", e), this.bannerAD;
            });
        }
        createAppBox(e) {
            this.appBoxCB = e, this.appBox ? this.appBox.show() : (console.log("appBoxId", this.adCfg.appBox.lobby),
                this.appBox = l.createAppBox({
                    adUnitId: this.adCfg.appBox.lobby
                }), this.appBox.load().then((e, t) =&gt; {
                    this.appBox.show();
                }), this.appBox.onClose(() =&gt; {
                    this.appBoxCB &amp;&amp; this.appBoxCB();
                }));
        }
    }
    let d = null;
    class u extends s {
        constructor(e) {
            super(e), this.isWeb = !1, this.isVivo = !1, this.videoCB = null, this.videoFailCB = null,
                this.videoName = "", this.onVideoError = null, this.onVideoClose = null, this.nativeAd = null,
                this.nativeCache = [], this.lastVideoTime = 0, this.isWeb = !1, this.isVivo = !0,
                d = window.qg, console.log("vivoå¹³å°åˆå§‹åŒ–"), this.adCfg = this.config;
        }
        autoLogin(e) {
            e({
                openid: Math.floor(1e5 * Math.random()) + 899999
            });
        }
        _onVideoClose(e) {
            e.isEnded &amp;&amp; L.Event.emit("VideoSuccess"), e.isEnded ? this.videoCB &amp;&amp; this.videoCB() : this.videoFailCB ? this.videoFailCB() : L.Event.emit("UIæç¤º", {
                content: "è§†é¢‘æœªçœ‹å®Œä¸èƒ½èŽ·å¾—å¥–åŠ±"
            }), Laya.stage.event(Laya.Event.BLUR), this.lastVideoTime = Date.now();
        }
        _onVideoError(e) {
            console.log("_onVideoError:", e), this.videoFailCB &amp;&amp; this.videoFailCB(null), L.Event.emit("UIæç¤º", {
                content: "å¹¿å‘Šèµ„æºä¸è¶³ï¼Œè¯·ç¨åŽå†è¯•"
            });
        }
        showBannerPos(e, t, i, s, n) {
            var a = this;
            let o = this.adCfg.banner[e];
            this.bannerCfg = {
                adName: e,
                wwidth: t,
                hheight: i
            };
            d.getSystemInfoSync();
            this.bannerAD ? this.bannerAD.show() : (this.bannerAD = d.createBannerAd({
                posId: o,
                style: {
                    left: s,
                    top: n,
                    width: t,
                    height: i
                }
            }), this.bannerAD.onSize(e =&gt; {
                if (!a.bannerAD) return a.bannerAD &amp;&amp; a.bannerAD.destroy(), void(a.bannerAD = null);
                L.Event.emit("bannershow", e);
            }), this.bannerAD.onError(e =&gt; {
                console.log("onError:", e);
            }), this.bannerAD.show());
        }
        destroyBanner(e = "") {
            console.log("destroyBanner:", this.bannerAD, ",scene:", e), this.bannerAD &amp;&amp; this.bannerAD.destroy(),
                this.bannerAD = null, this.bannerCfg = null;
        }
        watchVideo(e, t, i) {
            if (Date.now() - this.lastVideoTime &lt; 1e4) return L.Event.emit("UIæç¤º", {
                content: "å¹¿å‘Šèµ„æºä¸è¶³ï¼Œè¯·ç¨åŽå†è¯•"
            });
            let s = this.adCfg.video[e];
            if (this.videoCB = t, this.videoFailCB = i, this.onVideoError || (this.onVideoError = this._onVideoError.bind(this),
                    this.onVideoClose = this._onVideoClose.bind(this)), this.videoAd) return this.videoAd.load();
            let n = d.createRewardedVideoAd({
                posId: s
            });
            this.videoAd = n, this.videoAd.onLoad(function() {
                setTimeout(() =&gt; {
                    n.show();
                }, 50);
            }), n.load(), n.onError(this.onVideoError), n.onClose(this.onVideoClose);
        }
        _getNativeAd(e) {
            e(this.nativeCache.pop());
        }
        showNativeAD(e, t = null) {
            let i = this;
            if (this.nativeAd &amp;&amp; this.nativeCache.length &gt; 0) return void(t &amp;&amp; this._getNativeAd(t));
            let s = this.config.native[e];
            console.log("showNativeAD:", s, Date.now());
            let n = d.createNativeAd({
                posId: s
            });
            n.onLoad(function(e) {
                console.log("åŽŸç”Ÿå¹¿å‘ŠåŠ&nbsp;è½½å®Œæˆ-onloadè§¦å‘", e), e &amp;&amp; e.adList &amp;&amp; e.adList.length &amp;&amp; (i.nativeCache = e.adList,
                    t &amp;&amp; i._getNativeAd(t));
            }), n.onError(e =&gt; {
                console.log("åŽŸç”Ÿå¹¿å‘ŠåŠ&nbsp;è½½å¼‚å¸¸", e);
            }), this.nativeAd = n;
        }
    }
    var g = "";
    const m = 18,
        p = "5ab2b648955d71c66da5fa68c131fd60";
    let f = (() =&gt; {
            class e {
                static register(e, t, i, s) {
                    this.openid = e, this.version = i;
                    let n = this;
                    this.get("", {
                        openid: e,
                        referrerInfoAppId: t
                    }, (e, t) =&gt; {
                        if (console.log("æ³¨å†Œç»“æžœ:", t), t &amp;&amp; (n.flows = t.flows, n.subscribe = t.subscribe,
                                n.registerTimeTick = t.registerTimeTick, L.Event.emit("updateFlows"), t.dictionary))
                            for (let e = 0; e &lt; t.dictionary.length; e++) t.dictionary[e].version == i &amp;&amp; (n.dictionary[t.dictionary[e].key] = t.dictionary[e].value);
                        s(e, t);
                    }, "/gameRegister");
                }
                static login(e, t, i) {
                    this.openid = e, this.version = t;
                    var s = this;
                    this.get("login", {
                        openid: e,
                        version: t
                    }, (e, n) =&gt; {
                        if (console.log("ç»Ÿè®¡æœåŠ¡å™¨ç™»é™†ç»“æžœ:", n), n &amp;&amp; (s.flows = n.flows, s.registerTimeTick = n.registerTimeTick,
                                s.subscribe = n.subscribe, L.Event.emit("updateFlows"), n.dictionary))
                            for (let e = 0; e &lt; n.dictionary.length; e++) n.dictionary[e].version == t &amp;&amp; (s.dictionary[n.dictionary[e].key] = n.dictionary[e].value);
                        i &amp;&amp; i(e, n);
                    });
                }
                static addFlowCount(e) {
                    e.openid = this.openid, this.get("addFlowCount", e, (e, t) =&gt; {
                        console.log("addFlowCount:", t);
                    });
                }
                static addFlowOpenCount(e) {
                    e.openid = this.openid, this.get("addFlowOpenCount", e, (e, t) =&gt; {
                        console.log("addFlowCount:", t);
                    });
                }
                static addEvent(e) {
                    var t = {
                        eventName: e
                    };
                    this.get("addEvent", t, (e, t) =&gt; {
                        console.log("addEvent:", t);
                    });
                }
                static userEvent(e) {
                    this.get("userEvent", {
                        eventName: e
                    }, (e, t) =&gt; {
                        console.log("userEvent:", t);
                    });
                }
                static requestSubscribeMessage(e) {
                    this.get("subscribeSuccss", {}, (e, t) =&gt; {
                        this.subscribe = t.subscribe;
                    });
                }
                static saveCacheData(e) {
                    this.get("saveData", {
                        cacheData: e
                    }, (e, t) =&gt; {
                        console.log("æ•°æ®ä¿å­˜ç»“æžœ:", t);
                    });
                }
                static get(e, t, i, s = "/game") {
                    t.secret = p, t.gameid = m, t.openid = this.openid, L.Http.get(g, e, t, i, s);
                }
            }
            return e.dictionary = {}, e.subscribe = !1, e.openid = "", e.version = "", e.flows = [],
                e.registerTimeTick = 0, e;
        })(),
        C = !1;
    class y {
        constructor() {
            this.openid = "", this._coin = 1e3, this.registerTimeTick = 0, this.isCheck = 0,
                this.isClick = 0, this.canClick = !1, this.carVideo = [0, 0, 0, 0, 0, 0], this.cars = [1, 0, 0, 0, 0, 0],
                this.currentCar = 0, this.maxGate = 0;
            let e = Laya.LocalStorage.getItem("global_data");
            if (e) {
                let t = JSON.parse(e);
                for (let e in t) this[e] = t[e];
            } else C = !0;
            L.Event.on("onShow", this.subToAdmin, this);
        }
        get coin() {
            return this._coin;
        }
        set coin(e) {
            this._coin = Math.floor(e);
        }
        get openId() {
            return this.openid;
        }
        set openId(e) {
            this.openid = e;
        }
        parseData(e) {
            if (C &amp;&amp; e.length &gt; 2) {
                let t = JSON.parse(e);
                for (let e in t) this[e] = t[e];
            }
        }
        subToAdmin() {
            let e = JSON.stringify(this);
            f.saveCacheData(e);
        }
        save() {
            let e = JSON.stringify(this);
            Laya.LocalStorage.setItem("global_data", e);
        }
    }
    class w {
        clamp(e, t, i) {
            return Math.min(i, Math.max(e, t));
        }
        assign(e, t) {
            for (let i in t) e[i] = t[i];
            return e;
        }
        subSectionString(e, t) {
            for (var i = 0, s = "", n = 0, a = 0; a &lt; e.length; a++) {
                var o = e.charCodeAt(a);
                o &gt; 127 || 94 == o ? n += 2 : n++, n &gt; t &amp;&amp; (s += e.substring(i, a) + "\n", n = 0,
                    i = a);
            }
            return s += e.substring(i, e.length);
        }
        deepCopy(e, t) {
            if (null == e || null == e) return null;
            t = t || {};
            for (let i in e) e[i] &amp;&amp; "object" == typeof e[i] ? (e[i].constructor === Array ? t[i] = [] : t[i] = {},
                this.deepCopy(e[i], t[i])) : t[i] = e[i];
            return t;
        }
        stringFormat(e, ...t) {
            var i = e;
            if (t.length &gt; 0)
                for (var s = 0; s &lt; t.length; s++)
                    if (null != t[s]) {
                        var n = new RegExp("({)" + s + "(})", "g");
                        i = i.replace(n, t[s]);
                    }
            return i;
        }
        arrayFind(e, t) {
            for (let i = 0; i &lt; e.length; i++) {
                let s = e[i],
                    n = !0;
                if ("function" == typeof t) {
                    if (t(s)) return i;
                } else {
                    for (let e in t)
                        if (t[e] != s[e]) {
                            n = !1;
                            break;
                        }
                    if (n) return i;
                }
            }
            return -1;
        }
        readJson(e) {
            if ("object" == typeof e) return e.json;
            var t = e;
            if (!t) return console.warn("æ²¡æœ‰æ•°æ®å•Š:", t), null;
            for (var i = "", s = 0;;) {
                t.substring(0, s + 1);
                var n = t.indexOf("//", s),
                    a = t.indexOf("/*", s),
                    o = 0;
                if (n &gt;= 0) o = a &gt;= 0 ? Math.min(n, a) : n;
                else {
                    if (!(a &gt;= 0)) {
                        i += t.substring(s);
                        break;
                    }
                    o = a;
                }
                if (o == n) {
                    e = t.indexOf("\n", n + 2);
                    i += t.substring(s, n), s = e + 2;
                } else if (o == a) {
                    e = t.indexOf("*/", a + 2);
                    i += t.substring(s, a), s = e + 2;
                }
            }
            try {
                return JSON.parse(i);
            } catch (e) {
                return console.error("json parseerror:", e, i), null;
            }
        }
        calcDetailDay(e, t) {
            var i = new Date(e.getFullYear() + "/" + (e.getMonth() + 1) + "/" + e.getDate()).getTime(),
                s = new Date(t.getFullYear() + "/" + (t.getMonth() + 1) + "/" + t.getDate()).getTime();
            return Math.floor((s - i) / 864e5);
        }
        getRandom(e, t) {
            return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1)) + e;
        }
        NoToChinese(e) {
            var t = "";
            if (e &lt; 0 &amp;&amp; (e = -e, t = "è´Ÿ"), !/^\d*(\.\d*)?$/.test("" + e)) return console.warn("æ•°å­—é”™è¯¯"),
                "æ•°å­—é”™è¯¯";
            var i = new Array("é›¶", "ä¸€", "äºŒ", "ä¸‰", "å››", "äº”", "å…­", "ä¸ƒ", "å…«", "ä¹"),
                s = new Array("", "å", "ç™¾", "åƒ", "ä¸‡", "äº¿", "ç‚¹", ""),
                n = "",
                a = ("" + e).replace(/(^0*)/g, "").split(".");
            e = Math.floor(e);
            let o = e =&gt; {
                let t = e.toString().split("").reverse(),
                    n = "";
                for (var a = 0; a &lt; t.length; a++) n = (0 == a &amp;&amp; 0 == t[a] ? "" : a &gt; 0 &amp;&amp; 0 == t[a] &amp;&amp; 0 == t[a - 1] ? "" : i[t[a]] + (0 == t[a] ? s[0] : s[a])) + n;
                return n;
            };
            for (var r = a[0].length - 1; r &gt;= 0; r--) {
                let t = Math.floor(e / 1e4),
                    i = e % 1e4;
                i.toString().length &lt; 4 &amp;&amp; (i = "0" + i), n = t ? o(t) + "ä¸‡" + o(i) : o(e);
            }
            if ("" == n &amp;&amp; (n = i[0]), a.length &gt; 1) {
                n += s[6];
                for (r = 0; r &lt; a[1].length; r++) n += i[a[1].charAt(r)];
            }
            return t + n;
        }
    }
    let L = (() =&gt; {
            class e {
                static _init(e) {
                    this.Data = new y();
                    Laya.Browser.userAgent.indexOf("Mozilla");
                    if (Laya.Browser.onMiniGame) console.log("å¾®ä¿¡å¹³å°åˆå§‹åŒ–"), this.PingTai = new o(e.wechat);
                    else if (Laya.Browser.onQQBrowser) console.log("qqå¹³å°åˆå§‹åŒ–"),
                        this.PingTai = new c(e.qq);
                    else if (Laya.Browser.onMiniGame) console.log("å¾®ä¿¡å¹³å°åˆå§‹åŒ–"),
                        this.PingTai = new o(e.wechat);
                    else if (window.qg) {
                        let t = qg.getSystemInfoSync();
                        "vivo" == t.brand &amp;&amp; (this.PingTai = new u(e[t.brand]));
                    } else console.log("webå¹³å°åˆå§‹åŒ–"), this.PingTai = new s(e.web);
                }
                static isNewUser() {
                    return !!this.Data.registerTimeTick &amp;&amp; (Date.now() - this.Data.registerTimeTick &lt; 864e5 || void 0);
                }
            }
            return e.PingTai = null, e.Data = null, e.Event = new i(), e.Http = new h(), e.Common = new w(),
                e;
        })(),
        b = (() =&gt; {
            class e extends Laya.Script {
                constructor() {
                    super(...arguments), this.useOld = !1, this.autoShow = !0, this.alginBottom = !0;
                }
                static onBannerOnload(e, t) {
                    this.bannerCaches.push(t);
                }
                static onBannerError(e, t, i) {
                    let s = this.bannerCaches.indexOf(t);
                    this.bannerCaches[s] &amp;&amp; (this.bannerCaches[s].destroy(), this.bannerCaches.splice(s, 1)),
                        Laya.timer.frameOnce(60, this, () =&gt; {
                            this.preload(1);
                        });
                }
                static init() {
                    L.Event.on("banneronload", this.onBannerOnload, this), L.Event.on("bannerError", this.onBannerError, this);
                }
                static preload(e) {
                    if (!Laya.Browser.onMiniGame) return;
                    var t = wx.getSystemInfoSync();
                    let i = t.windowWidth,
                        s = 200 / Laya.stage.height * t.screenHeight,
                        n = L.PingTai.config,
                        a = Object.keys(n.banner),
                        o = Math.min(e + this.preIndex, a.length);
                    for (let e = this.preIndex; e &lt; o; e++) L.PingTai.showBanner(a[e], i, s);
                    this.preIndex = o % a.length;
                }
                static getTopBanner() {
                    return this.nodeQueue.length ? this.nodeQueue[this.nodeQueue.length - 1] : null;
                }
                onAwake() {
                    e.nodeQueue.push(this);
                }
                onEnable() {
                    this.autoShow ? this.Show() : this.Hide(), this.owner.skin = "";
                }
                onDisable() {
                    console.log("banner ------------------ onDisable -------------------"), this.autoShow = !1,
                        this.Hide(), L.Event.off(this);
                }
                onDestroy() {
                    L.Event.off(this);
                    let t = e.nodeQueue.indexOf(this);
                    t &amp;&amp; e.nodeQueue.splice(t, 1);
                    let i = e.getTopBanner();
                    i &amp;&amp; i.autoShow &amp;&amp; i.Show();
                }
                _showLoop() {
                    if (Laya.Browser.onMiniGame &amp;&amp; Object.keys(e.bannerCaches).length) {
                        e.currentName &amp;&amp; e.bannerCaches[e.currentName] &amp;&amp; e.bannerCaches[e.currentName].hide();
                        let s = Object.keys(e.bannerCaches);
                        e.currentName = this.useOld ? "0" : "" + Math.min(e.showIndex, s.length - 1);
                        let n = e.bannerCaches[e.currentName];
                        console.log("keys:", s, e.currentName), n.show(), this.owner.clearTimer(this, this._showLoop);
                        var t = wx.getSystemInfoSync();
                        let a = this.owner,
                            o = n.style;
                        a.width = o.realWidth / t.screenWidth * Laya.stage.width, a.height = o.realHeight / t.screenHeight * Laya.stage.height;
                        let r = 0,
                            h = 0;
                        a.x + a.width &gt; Laya.stage.width &amp;&amp; (r += Laya.stage.width - a.width - a.x), a.y + a.height &gt; Laya.stage.height &amp;&amp; (h += Laya.stage.height - a.height - a.y);
                        let l = {
                                x: a.x,
                                y: a.y
                            },
                            c = (l.x + r) * t.screenWidth / Laya.stage.width;
                        var i = (l.y + h) * t.screenHeight / Laya.stage.height;
                        n.style.left = c, n.style.top = this.alginBottom ? t.screenHeight - o.realHeight : t.screenHeight - i,
                            a.y = n.style.top / t.screenHeight * Laya.stage.height, L.Event.emit("bannerresize"),
                            e.showIndex = (e.showIndex + 1) % e.bannerCaches.length, e.lastShow = this;
                    }
                }
                Show() {
                    this.autoShow = !0, this.owner.frameLoop(1, this, this._showLoop);
                }
                Hide() {
                    console.log("BannerNode Hide:", e.currentName), this.useOld ? (e.bannerCaches[0] &amp;&amp; (e.bannerCaches[0].destroy(),
                            e.bannerCaches.splice(0, 1)), e.preload(1)) : e.currentName &amp;&amp; e.bannerCaches[e.currentName] &amp;&amp; e.bannerCaches[e.currentName].hide(),
                        e.currentName = "", e.lastShow = null;
                }
            }
            return e.bannerCaches = [], e.preIndex = 0, e.currentName = "", e.showIndex = 0,
                e.lastShow = null, e.nodeQueue = [], e;
        })();
    class v extends e.scenes.BanPingFlowsUI {
        constructor() {
            super(...arguments), this.closeCb = null;
        }
        onAwake() {
            if (this.width = Laya.stage.width, this.height = Laya.stage.height, L.Data.isCheck) this.banner.getComponent(b).Show(),
                this.btnClose.on(Laya.Event.CLICK, this, this.onClickClose);
            else {
                this.btnClose.on(Laya.Event.CLICK, this, this.onClickClose);
            }
        }
        onOpened(e) {
            this.closeCb = e;
        }
        onClosed() {
            this.closeCb &amp;&amp; this.closeCb();
        }
        onClickClose() {
            this.close();
        }
    }
    class S extends Laya.Script {
        constructor() {
            super(), this.sceneName = "", this.line = -1, this.column = -1, this.width = 100,
                this.height = 100, this.spaceX = 10, this.spaceY = 10, this.canelScene = "", this.scrollY = 0,
                this.friendArr = null, this.scrollBar = null, this.pic = 1;
        }
        onEnable() {
            this.onGetFlows() || L.Event.on("flows", this.onGetFlows, this);
        }
        onGetFlows() {
            // let e = f.flows;
            // if (!e) return !1;
            // var t = e.filter(function(e) {
            //     return e.sceneName == this.sceneName;
            // }.bind(this));
            // this.friendArr = t;
            // let i = this.owner, s = t.length, n = 1;
            // -1 != this.line &amp;&amp; -1 != this.column ? (s = this.line, n = this.column) : -1 != this.line ? (s = this.line, 
            // n = Math.ceil(t.length / s)) : -1 != this.column &amp;&amp; (n = this.column, s = Math.ceil(t.length / n)), 
            // i.repeatX = s, i.repeatY = n, i.array = t, i.spaceX = this.spaceX, i.spaceY = this.spaceY, 
            // i.selectHandler = new Laya.Handler(this, this.onClickImg), i.selectEnable = !0, 
            // i.renderHandler = new Laya.Handler(this, this.onListRender);
            // let a = (this.width + this.spaceX) * i.repeatX &gt; i.width + 5, o = (this.height + this.spaceY) * i.repeatY &gt; i.height + 5;
            // return console.log("overstepy:", n, (this.height + this.spaceY) * i.repeatY, i.height), 
            // a &amp;&amp; (i.hScrollBarSkin = ""), o &amp;&amp; (i.vScrollBarSkin = ""), a || o ? (this.scrollBar = i.scrollBar, 
            // this.scrollBar.isVertical = o, i.timerLoop(16, this, this.autoScroll)) : this.scrollY &amp;&amp; (i.vScrollBarSkin = "", 
            // this.scrollBar = i.scrollBar, this.scrollBar.isVertical = !0, i.timerLoop(16, this, this.autoScroll)), 
            // !0;
        }
        onDestroy() {
            L.Event.off("flows", this.onGetFlows, this);
        }
        onClickImg(e) {
            if (-1 == e) return;
            console.log("onClick:", this.owner.scene.name);
            let t = this.friendArr[e],
                i = {
                    fid: t.fid,
                    appId: t.appId,
                    path: t.path,
                    sceneName: t.sceneName
                };
            S.navigateToMiniProgram(i, this.sceneName), this.owner.selectedIndex = -1;
        }
        static navigateToMiniProgram(e, t) {
            f.addFlowCount(e), L.PingTai.isWechat &amp;&amp; wx.aldSendEvent &amp;&amp; wx.aldSendEvent("ç‚¹å‡»å¯¼æµ", e);
            if (Laya.Browser.onMiniGame) {
                let i = {
                    appId: e.appId,
                    envVersion: "release",
                    path: e.path,
                    extraData: {},
                    fail: function() {
                        console.log("è·³è½¬å¤±è´¥:"), "top" != t &amp;&amp; "center" != t &amp;&amp; "fcenter" != t &amp;&amp; "ftop" != t &amp;&amp; Laya.Scene.open("scenes/FullSceneFlows.scene", !1);
                    },
                    success: function() {
                        console.log("è·³è½¬æˆåŠŸ"), f.addFlowOpenCount(e), wx.aldSendEvent &amp;&amp; wx.aldSendEvent("æ‰“å¼€å¯¼æµ", e);
                    },
                    complete: function() {}
                };
                console.log("navigateToMiniProgram", i), wx.navigateToMiniProgram(i);
            } else "top" != t &amp;&amp; "center" != t &amp;&amp; "fcenter" != t &amp;&amp; "ftop" != t &amp;&amp; Laya.Scene.open("scenes/FullSceneFlows.scene", !1);
        }
        autoScroll() {
            if (this.pic + this.scrollBar.value &gt;= this.scrollBar.max || this.pic + this.scrollBar.value &lt;= 0) {
                this.pic *= -1;
                let e = this.owner;
                e.clearTimer(this, this.autoScroll), e.timerOnce(2e3, this, function() {
                    e.timerLoop(16, this, this.autoScroll);
                });
            } else this.scrollBar.value += this.pic;
        }
        onListRender(e, t) {
            let i = e,
                s = i.getChildByName("icon");
            (s = s || i).skin = e.dataSource.imgUrl, s.width = this.width, s.height = this.height;
            let n = i.getChildByName("name");
            n &amp;&amp; (n.text = e.dataSource.showName);
            let a = i.getChildByName("player");
            a &amp;&amp; (a.text = Math.floor(100 * Math.random()) + "ä¸‡äººåœ¨çŽ©");
        }
        onDisable() {}
    }
    class D extends Laya.Script {
        constructor() {
            super(...arguments), this.scene3D = null, this.models = null, this.selectIndex = 0,
                this.nextIndex = 0, this.lastMouseX = 0, this.moveCB = null;
        }
        onAwake() {
            Laya.Scene3D.load("res/LayaScene_Preview/Conventional/Preview.ls", new Laya.Handler(this, function(e) {
                this.owner.addChild(e), this.scene3D = e;
                let t = e.getChildByName("Main Camera");
                t.clearFlag = Laya.BaseCamera.CLEARFLAG_DEPTHONLY, t.enableHDR = !1,
                    Laya.Sprite3D.load("res/LayaScene_Main/Conventional/selfcars.lh", new Laya.Handler(this, function(t) {
                        t.transform.position = new Laya.Vector3(0, 0, 0), e.addChild(t), this.initScene(t);
                    }));
            }));
        }
        setDefaultIndex(e) {
            this.nextIndex = e, this.owner.frameLoop(10, this, this.checkMove);
        }
        setMoveCB(e) {
            this.moveCB = e;
        }
        checkMove() {
            this.models &amp;&amp; (this.moveIndex(this.nextIndex), this.owner.clearTimer(this, this.checkMove));
        }
        initScene(e) {
            this.models = e, this.updateShow();
        }
        onMouseDown() {
            this.lastMouseX = Laya.stage.mouseX;
        }
        onMouseMove() {
            // let e = Laya.stage.mouseX - this.lastMouseX;
            // if(!this.models)
            // return;
            // this.models.getChildByName("" + this.selectIndex).transform.localRotationEulerY += .5 * e, 
            // this.lastMouseX = Laya.stage.mouseX;
        }
        moveIndex(e) {
            return this.selectIndex + e &lt; 0 ? n.Show("The First", -150) : this.selectIndex + e &gt; 5 ? n.Show("The Last", -150) : (this.selectIndex += e,
                this.models.getChildByName("" + (5 - this.selectIndex)).active = !0, void Laya.Tween.to(this.models.transform, {
                    localPositionX: 10 * -this.selectIndex
                }, 200, null, new Laya.Handler(this, function() {
                    this.destroyed || (this.updateShow(), this.moveCB(this.selectIndex));
                })));
        }
        onDestroy() {}
        destroy3d() {
            this.scene3D &amp;&amp; this.scene3D.destroy();
        }
        updateShow() {
            for (let e = 0; e &lt; 6; e++) {
                if (!this.models) continue;
                const m = this.models.getChildByName("" + e);
                if (m) {
                    m.active = e == this.selectIndex;
                }
            }
        }
    }
    class x extends Laya.Script3D {
        constructor() {
            super(...arguments), this.target = null, this.transform = null, this.rigidbody = null,
                this.animator = null;
        }
        onAwake() {
            this.target = this.owner, this.transform = this.target.transform, this.rigidbody = this.owner.getComponent(Laya.Rigidbody3D),
                this.animator = this.owner.getComponent(Laya.Animator);
        }
        FindChild(e) {
            let t = e.split("/"),
                i = this.target;
            for (let e = 0; e &lt; t.length &amp;&amp; (i = i.getChildByName(t[e])); e++);
            return i;
        }
        toUpdate(e) {}
    }
    class I extends x {
        constructor() {
            super(...arguments), this.isPlayer = !1, this.road = 0, this.speed = 0, this.firstMingdi = !1,
                this.firstRunPass = !1;
        }
        toUpdate(e) {
            this.transform.localPositionZ += this.speed * e;
            if (!this.isPlayer &amp;&amp; 0 == this.road) {
                let e = N.Instance.roleCar.transform.localPositionZ,
                    t = this.transform.localPositionZ;
                0 == N.Instance.roleCar.road &amp;&amp; !this.firstMingdi &amp;&amp; t &gt; e &amp;&amp; t &lt; e + 50 ? (Laya.SoundManager.playSound("audio/mingdi.mp3"),
                    this.firstMingdi = !0) : 1 == N.Instance.roleCar.road &amp;&amp; !this.firstRunPass &amp;&amp; t &lt; e + 40 &amp;&amp; (N.Instance.roleCar.æ­£åœ¨æŽ§åˆ¶ &amp;&amp; Laya.SoundManager.playSound("audio/runpass.mp3"),
                    this.firstRunPass = !0);
            }
        }
    }
    let A = (() =&gt; {
        class e {}
        return e.CAR_BOX_HEIGHT = 7, e.DAOLU_0_X = 2.73, e.DAOLU_0_SPEED_MIN = -25, e.DAOLU_0_SPEED_MAX = -40,
            e.DAOLU_1_X = -2.73, e.DAOLU_1_SPEED = 12, e.DAOLU_1_CAR_DISTANCE = 45, e.CAMERA_MAX_FAR_Z = 2,
            e.CAMERA_MAX_FAR_Y = 1, e.TRIM_TO_AFTER_CAR_SPEED_SCALE = 2, e.PLAYER_MAX_SPEEDZ = 40,
            e.PLAYER_MIN_SPEEDZ = 15, e;
    })();
    var _;
    ! function(e) {
        e[e.Normal = 0] = "Normal", e[e.Quicken = 1] = "Quicken", e[e.Slow = 2] = "Slow",
            e[e.HighSpeed = 3] = "HighSpeed", e[e.Stop = 4] = "Stop";
    }(_ || (_ = {}));
    class E extends I {
        constructor() {
            super(...arguments), this.isTouching = !1, this.speedTween = null, this.xpos = 0,
                this.æ­£åœ¨æŽ§åˆ¶ = !1, this._status = _.Stop, this.åŠ&nbsp;é€Ÿç²’å­ = null, this.é‡‘å¸ç²’å­ = null, this.å¤šå€åŠ&nbsp;é€Ÿ = null,
                this.runSoundChannel = null, this.addSpeed = 0, this.maxSpeed = 0;
        }
        get status() {
            return this._status;
        }
        set status(e) {
            this.setStatus(e);
        }
        onAwake() {
            super.onAwake(), this.isPlayer = !0, this.speed = 10, this.xpos = this.transform.localPositionX,
                this.åŠ&nbsp;é€Ÿç²’å­ = this.owner.getChildByName("TurboEffect"), this.åŠ&nbsp;é€Ÿç²’å­.active = !1, this.addSpeed = 5 * L.Data.currentCar,
                this.é‡‘å¸ç²’å­ = this.owner.getChildByName("coinParticle2"), this.é‡‘å¸ç²’å­.transform.localPositionZ -= .3,
                this.å¤šå€åŠ&nbsp;é€Ÿ = this.owner.getChildByName("fx"), L.Event.on("onHide", this.onPlatformHide, this),
                this.maxSpeed = A.PLAYER_MAX_SPEEDZ;
        }
        onPlatformHide() {
            console.log("onPlatformHide"), Laya.SoundManager.stopSound("audio/runing.mp3");
        }
        startTouch() {
            Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.OnMouseDown), Laya.stage.on(Laya.Event.MOUSE_UP, this, this.OnMouseUp),
                this.æ­£åœ¨æŽ§åˆ¶ = !0, this.status = _.Normal;
        }
        setSpeedTrial(e) {
            this.maxSpeed = A.PLAYER_MAX_SPEEDZ * (e ? 1.2 : 1), this.å¤šå€åŠ&nbsp;é€Ÿ.active = e;
        }
        OnMouseDown() {
            this.isTouching = !0;
        }
        OnMouseUp() {
            this.isTouching = !1, this.æ­£åœ¨æŽ§åˆ¶ &amp;&amp; N.Instance.isRuning &amp;&amp; Laya.SoundManager.playSound("audio/shache.mp3");
        }
        runingSoundLoop() {
            this._status != _.Normal &amp;&amp; this._status != _.HighSpeed || Laya.SoundManager.playSound("audio/runing.mp3", 1, new Laya.Handler(this, this.runingSoundLoop));
        }
        setStatus(e) {
            if (e != this._status) {
                switch (this._status == _.HighSpeed ? Laya.SoundManager.stopSound("audio/jiasurun.mp3") : this._status == _.Normal &amp;&amp; Laya.SoundManager.stopSound("audio/runing.mp3"),
                    Laya.SoundManager.stopSound("audio/runing.mp3"), e) {
                    case _.Normal:
                        this.runingSoundLoop();
                        break;

                    case _.Quicken:
                        Laya.SoundManager.playSound("audio/accel3.mp3");
                        break;

                    case _.HighSpeed:
                        this.runingSoundLoop();
                        break;

                    case _.Slow:
                        Laya.SoundManager.playSound("audio/shache.mp3");
                }
                this._status = e;
            }
        }
        stop() {
            this.status = _.Stop, this.åŠ&nbsp;é€Ÿç²’å­.active = !1, this.æ­£åœ¨æŽ§åˆ¶ = !1;
        }
        onDestroy() {
            L.Event.off(this);
        }
        playGetCoinEffect() {
            this.é‡‘å¸ç²’å­.particleSystem.play(), Laya.SoundManager.playSound("audio/coin_get.mp3");
        }
        checkCollisionRoad1() {
            let e = N.Instance.roadMgr.car_road1;
            for (let t = 0; t &lt; e.length; t++) {
                let i = e[t].transform.localPositionZ;
                if (Math.abs(i - (this.transform.localPositionZ - 2)) &lt; A.CAR_BOX_HEIGHT) return t + 1;
            }
            return 0;
        }
        getNearRoad1() {
            A.DAOLU_1_CAR_DISTANCE;
            let e = N.Instance.roadMgr.car_road1;
            return e[0].transform.localPositionZ &lt; this.transform.localPositionZ ? e[1] : e[0];
        }
        toUpdate(e) {
            let t = this.checkCollisionRoad1();
            if (this.isTouching) {
                if (this.transform.localPositionX &lt; A.DAOLU_0_X) {
                    this.transform.localPositionX = Math.min(this.transform.localPositionX + 20 * e, A.DAOLU_0_X)
                }
            } else {
                if (this.transform.localPositionX &gt; A.DAOLU_1_X) {
                    this.transform.localPositionX = Math.max(this.transform.localPositionX - 20 * e, A.DAOLU_1_X)
                }
                // t.transform.localPositionZ = 13;
            }
            let i = A.PLAYER_MIN_SPEEDZ,
                s = Math.abs(this.transform.localPositionX - 2.7) &lt; .1;
            if (this.road = s ? 0 : 1, this.åŠ&nbsp;é€Ÿç²’å­.active = this.isTouching &amp;&amp; s, s &amp;&amp; this.isTouching)
                this.speed &lt; 30 ? (this.speed += e * (this.maxSpeed + this.addSpeed) / 1,
                    this.status = _.Quicken) : this.status = _.HighSpeed;
            else if (t) this.speed = Math.max(this.speed - e * (this.maxSpeed + this.addSpeed) * 3, 8);
            else {
                let t = this.getNearRoad1();
                if (this.æ­£åœ¨æŽ§åˆ¶) {
                    let e = t.transform.localPositionZ - (this.transform.localPositionZ - 2);
                    if (e &lt; 13 &amp;&amp; e &gt;= A.CAR_BOX_HEIGHT + 1) {
                        let e = (t.transform.localPositionZ - (this.transform.localPositionZ - 2) - A.CAR_BOX_HEIGHT - 1) / (13 - A.CAR_BOX_HEIGHT);
                        i = (A.PLAYER_MIN_SPEEDZ - t.speed) * e * A.TRIM_TO_AFTER_CAR_SPEED_SCALE + t.speed;
                    } else e &lt;= A.CAR_BOX_HEIGHT + 1 &amp;&amp; (i = t.speed);
                } else i = A.DAOLU_1_SPEED;
                this.status = _.Normal, Math.abs(this.speed - A.PLAYER_MIN_SPEEDZ) &gt; .5 ?
                    this.speed &gt; A.PLAYER_MIN_SPEEDZ ?
                    this.speed = Math.max(this.speed - e * (this.maxSpeed + this.addSpeed) / 1, i) :
                    this.speed = Math.min(this.speed + e * (this.maxSpeed + this.addSpeed) / 1, this.maxSpeed + this.addSpeed) : this.speed = A.PLAYER_MIN_SPEEDZ,
                    this.speed = Math.min(this.speed, i);
            }
            super.toUpdate(e);
        }
    }
    class P extends x {
        constructor() {
            super(...arguments), this.road = 0;
        }
        onAwake() {
            super.onAwake(), this.transform.localRotationY = Math.random();
        }
        onUpdate() {
            if (this.transform.localRotationY = (.05 + this.transform.localRotationY) % 1, N.Instance.isRuning &amp;&amp; N.Instance.roleCar.road == this.road) {
                let e = N.Instance.roleCar.transform.localPositionZ;
                this.transform.localPositionZ - e &lt; 3 &amp;&amp; (N.Instance.addCoin(this.owner), this.owner.destroy());
            }
        }
    }
    class B extends x {
        constructor() {
            super(...arguments), this.roads = [], this.carPrefabs = [], this.coinPrefab = null,
                this.car_road0 = [], this.car_road1 = [], this.nextRoadDistance = 0, this.nextCoinDistance = 0;
        }
        onAwake() {
            super.onAwake();
            for (let e = 0; e &lt; 10; e++) this.roads.push(this.owner.getChildAt(e));
        }
        initPrefabs(e, t) {
            let i = 0;
            for (;;) {
                let t = e.getChildAt(i);
                if (!t) break;
                this.carPrefabs.push(t), i++;
            }
            this.coinPrefab = t.getChildByName("coin"), this.initRightCars(), this.nextRoadDistance = 50 * Math.random() + 200,
                this.nextCoinDistance = 10 * Math.random() + 30;
        }
        initRightCars() {
            let e = N.Instance.roleCar.transform.localPositionZ,
                t = 0;
            for (let e = 0; e &lt; this.car_road1.length; e++) {
                let i = this.car_road1[e].transform.localPositionZ;
                t = Math.max(t, i);
            }
            let i = !1;
            for (; t &lt; e + 4 * A.DAOLU_1_CAR_DISTANCE;) {
                !i &amp;&amp; Math.random() &lt; .2 + .02 * L.Data.maxGate ? (t += 8, i = !0) : (t += A.DAOLU_1_CAR_DISTANCE + e,
                    i = !1);
                let s = Math.floor(Math.random() * this.carPrefabs.length),
                    n = Laya.Sprite3D.instantiate(this.carPrefabs[s]),
                    a = n.addComponent(I);
                this.target.addChildren(n), a.transform.localPositionX = A.DAOLU_1_X, a.transform.localPositionZ = t,
                    a.speed = A.DAOLU_1_SPEED, a.road = 1, this.car_road1.push(a);
            }
        }
        removeCar0(e) {
            let t = this.car_road0.indexOf(e);
            t &gt;= 0 &amp;&amp; (this.car_road0.splice(t), e.owner.destroy());
        }
        coinRotation(e) {
            N.Instance.roleCar.æ­£åœ¨æŽ§åˆ¶ &amp;&amp; Laya.Tween.to(e.transform, {
                localRotationY: e.transform.localRotationY + 150
            }, 1e3, null, new Laya.Handler(this, function() {
                this.coinRotation(e);
            }));
        }
        updateItems(e) {
            let t = N.Instance.camera.transform.position;
            if (N.Instance.startDistance + this.nextCoinDistance &lt; t.z) {
                let e = N.Instance.roleCar.transform.position,
                    t = Math.random() &lt; .5 ? 1 : 0,
                    i = 50,
                    s = Math.ceil(5 * Math.random());
                for (let n = 0; n &lt; s; n++) {
                    let s = Laya.Sprite3D.instantiate(this.coinPrefab, N.Instance.scene3D);
                    s.transform.localPosition = new Laya.Vector3(0 == t ? A.DAOLU_0_X : A.DAOLU_1_X, e.y + 1.5, e.z + i),
                        s.addComponent(P).road = t, i += 5;
                }
                this.nextCoinDistance += 10 * Math.random() + 30;
            }
        }
        toUpdate(e) {
            let t = N.Instance.camera.transform.position;
            for (let e = 0; e &lt; this.roads.length; e++) {
                let i = this.roads[e];
                i.transform.position.z &lt; t.z - 15 &amp;&amp; (i.transform.localPositionZ += 150);
            }
            let i = N.Instance.roleCar.transform.localPositionZ - 2;
            for (; this.car_road1.length &gt; 0 &amp;&amp; i &gt; this.car_road1[0].transform.localPositionZ &amp;&amp; i - this.car_road1[0].transform.localPositionZ &gt; A.CAR_BOX_HEIGHT - 4;) this.car_road1[0].target.destroy(),
                this.car_road1.splice(0, 1);
            this.initRightCars();
            for (let t = 0; t &lt; this.car_road1.length; t++) this.car_road1[t].toUpdate(e);
            if (this.nextRoadDistance-- &lt; 0) {
                this.nextRoadDistance = Math.random() * Math.max(0, 200 - 5 * L.Data.maxGate) + 50;
                let e = Math.floor(Math.random() * this.carPrefabs.length),
                    t = Laya.Sprite3D.instantiate(this.carPrefabs[e]),
                    s = t.addComponent(I);
                this.target.addChildren(t), this.car_road0.push(s), s.transform.localPositionX = A.DAOLU_0_X,
                    s.transform.localPositionZ = i + 80, s.speed = Math.random() * (A.DAOLU_0_SPEED_MAX - A.DAOLU_0_SPEED_MIN) + A.DAOLU_0_SPEED_MIN - 2 * L.Data.maxGate,
                    s.transform.localScaleZ = -1, s.road = 0;
            }
            let s = 0;
            for (; s &lt; this.car_road0.length;) {
                let t = this.car_road0[s];
                t.toUpdate(e), t.transform.localPositionZ &lt; i - 30 ? (t.target.destroy(), this.car_road0.splice(s, 1)) : s++;
            }
            N.Instance.roleCar.æ­£åœ¨æŽ§åˆ¶ &amp;&amp; this.updateItems(e);
        }
    }
    class T extends x {
        constructor() {
            super(...arguments), this.delta = null, this.fary = 0, this.farz = 0, this.viewy = 0,
                this.viewz = 0, this.cy = 0, this.cz = 0;
        }
        init() {
            let e = N.Instance.roleCar.transform.position,
                t = this.transform.position;
            this.delta = new Laya.Vector3(e.x - t.x, e.y - t.y, e.z - t.z);
        }
        toUpdate(e) {
            let t = N.Instance.roleCar,
                i = t.transform.position;
            // if (t.æ­£åœ¨æŽ§åˆ¶) {
            0 == t.road ? (this.cy = Math.min(this.cy + 5 * e, 5), this.cz = Math.min(this.cz + 7 * e, 8)) : (this.cy = Math.max(this.cy - 7 * e, 0),
                    this.cz = Math.max(this.cz - 15 * e, 0)),
                this.transform.position = new Laya.Vector3(i.x - this.delta.x, i.y - this.delta.y + this.cy, i.z - this.delta.z - this.cz);
            // } 
            // else 
            this.transform.position = new Laya.Vector3(i.x - this.delta.x, i.y - this.delta.y - this.viewy, i.z - this.delta.z - this.viewz);
        }
    }
    class k {
        constructor() {
            this.arrays = [], this.isOver = !1, this.callback = null, this.waterIndex = -1,
                this.results = {}, this._waterfallNext = function(e = 0, t = 0) {
                    if (this.waterIndex++, !(this.waterIndex &gt;= this.arrays.length))
                        if (e) {
                            this.arrays.pop()(e);
                        } else {
                            var i = this.arrays[this.waterIndex];
                            0 == this.waterIndex ? i(this._waterfallNext.bind(this)) : this.waterIndex == this.arrays.length - 1 ? i(null, t) : i(t, this._waterfallNext.bind(this));
                        }
                };
        }
        parallel(e, t) {
            if (0 == this.arrays.length) {
                if (0 == e.length) return t(null, null);
                this.isOver = !1, this.arrays = e, this.callback = t, this.results = [];
                try {
                    for (let i = 0; i &lt; e.length; i++) {
                        this.results.push(null), (t = e[i])(this._parallelOver.bind(this, i));
                    }
                } catch (e) {
                    this._parallelOver(-1, e, null);
                }
            } else console.error("ä¸å…è®¸å†æ¬¡ä½¿ç”¨");
        }
        _parallelOver(e, t, i) {
            if (!this.isOver)
                if (t) this.isOver = !0, this.callback(t, this.results);
                else {
                    this.results[e] = i;
                    for (var s = 0; s &lt; this.arrays.length; s++)
                        if (null == this.results[s]) return;
                    this.isOver = !0, this.callback(null, this.results);
                }
        }
        waterfall(e) {
            if (e &amp;&amp; 0 != e.length) {
                var t = null;
                for (var i in t = e instanceof Array ? e : Array.prototype.slice.call(arguments))
                    if (t[i] instanceof Function == 0) return void console.warn("ä¸æ˜¯æ–¹æ³•ä¸èƒ½æ·»åŠ&nbsp;è¿›å›žè°ƒ");
                this.arrays = t, this.isOver = !1, this.waterIndex = -1, this._waterfallNext();
            } else console.warn("waterfall func arr is zero");
        }
    }
    class M extends Laya.Script {
        constructor() {
            super(...arguments), this.coinPrefab = null, this.progressBar = null, this.timeText = null,
                this.gateText = null, this.coinLabel = null, this.proWidth = 310;
        }
        onAwake() {
            this.timeText = this.owner.getChildByName("timeText"), this.gateText = this.owner.getChildByName("gateText"),
                this.coinLabel = this.owner.getChildByName("coinbg").getChildByName("coin"), this.progressBar = this.owner.getChildByName("progress").getChildByName("bar");
        }
        setGate(e, t) {
            this.gateText.text = "City" + e;
        }
        setTime(e) {
            this.timeText.text = Math.floor(e) + "s";
        }
        setProgress(e) {
            let t = L.Common.clamp(e, 0, 1);
            this.progressBar.width = this.proWidth * t;
        }
        addCoin(e) {
            let t = this.coinPrefab.create();
            this.owner.addChild(t), t.pos(Laya.stage.width / 2, Laya.stage.height / 2), t.scale(3, 3),
                Laya.Tween.to(t, {
                    x: 80,
                    y: Laya.stage.height / 2 - 533,
                    scaleX: 1,
                    scaleY: 1
                }, 300, null, new Laya.Handler(this, function() {
                    this.coinLabel.text = "" + L.Data.coin;
                    t.destroy();
                }));
        }
    }
    let N = (() =&gt; {
        class e extends Laya.Script {
            constructor() {
                super(), this.camera = null, this.roadMgr = null, this.roleCar = null, this.isRuning = !1,
                    this.reliveCount = 1, this.collisionCar = null, this.terrain = null, this.remainTime = 0,
                    this.gameUI = null, this.scene3D = null, this.aimPoint = null, this.watingCB = null,
                    this._changeCar = null, this.startTime = 0, this.startDistance = 0, this.missionTime = 0,
                    this.missionDistance = 0, e._sInstance = this;
            }
            static get Instance() {
                return e._sInstance;
            }
            onAwake() {
                this.gameUI = this.owner.parent.parent.getComponent(M),
                    Laya.Scene3D.load("res/LayaScene_Main/Conventional/Main.ls", Laya.Handler.create(this, function(t) {
                        this.owner.addChild(t), this.scene3D = t, e.prefabCaches.length ? this.initScenePrefab() : this.loadPrefab();
                    })), this.owner.frameLoop(1, this, this.onGameUpdate);
            }
            resetScene() {
                this.isRuning = !1, this.scene3D.destroy(),
                    Laya.Scene3D.load("res/LayaScene_Main/Conventional/Main.ls", Laya.Handler.create(this, function(e) {
                        this.owner.addChild(e), this.scene3D = e, this.initScenePrefab();
                    }));
            }
            resetUI() {}
            loadPrefab() {
                let t = this,
                    i = new k(),
                    s = ["car0.lh", "cars.lh", "over.lh", "plane.lh", "road.lh", "items.lh"],
                    n = [];
                for (let e = 0; e &lt; s.length; e++) n.push(function(t) {
                    Laya.Sprite3D.load("res/LayaScene_Main/Conventional/" + s[e], Laya.Handler.create(this, function(i) {
                        i ? t(null, i) : t({
                            msg: s[e] + "åŠ&nbsp;è½½å¤±è´¥"
                        }, null);
                    }));
                });
                i.parallel(n, function(i, s) {
                    i ? console.error("åŠ&nbsp;è½½å¤±è´¥:", i) : console.log(""), e.prefabCaches = s, t.initScenePrefab();
                });
            }
            initScenePrefab() {
                for (let t = 0; t &lt; e.prefabCaches.length; t++) Laya.Sprite3D.instantiate(e.prefabCaches[t], this.scene3D);
                this.initScene(this.scene3D);
            }
            initScene(e) {
                e.enableFog = !0, e.fogColor = new Laya.Vector3(8 / 255, 197 / 255, 69 / 288), e.fogStart = 70,
                    e.fogRange = 100, e.getChildByName("Main Camera").enableHDR = !1, this.camera = e.getChildByName("Main Camera").addComponent(T),
                    this.roadMgr = e.getChildByName("road").addComponent(B), this.roleCar = e.getChildByName("car0").addComponent(E),
                    this.aimPoint = e.getChildByName("over"), this.owner.frameOnce(1, this, function() {
                        this.roadMgr.initPrefabs(e.getChildByName("cars"), e.getChildByName("items")), this.camera.init(),
                            this.camera.viewy = -5, this.camera.viewz = 6, this.terrain = e.getChildByName("plane"),
                            this.isRuning = !0;
                    });
                e.getChildByName("Directional Light");
                Laya.Sprite3D.load("res/LayaScene_Main/Conventional/selfcars.lh", new Laya.Handler(this, function(e) {
                        this.changeCar(e.getChildByName("" + L.Data.currentCar));

                        Laya.timer.once(0.1e3, this, () =&gt; {
                            Z.Instance.anCheKu.disabled = false;
                            Z.Instance.btnStart.disabled = false;
                        })

                    })),
                    this.missionTime = 15 + L.Data.maxGate,
                    this.missionDistance = 200 + 20 * L.Data.maxGate,
                    this.gameUI.setGate(L.Data.maxGate + 1,
                        this.missionDistance), this.gameUI.setTime(this.missionTime),
                    this.gameUI.setProgress(0),
                    this.aimPoint.transform.localPositionZ = this.missionDistance,
                    this.aimPoint.active = !1, this.reliveCount = 1;

            }
            addCoin(e) {
                this.roleCar.playGetCoinEffect(), L.Data.coin += 3, this.gameUI.addCoin(e);
            }
            startGame(e) {
                if (!this.watingCB) {
                    this.watingCB = e;
                    if (this.roleCar &amp;&amp; this.roleCar.owner) {
                        this.owner.timerOnce(0.1e3, this, this._showSpeedTrail)
                    } else {
                        this._enterGame(0);
                    }
                }
            }
            _showSpeedTrail() {
                Laya.Scene.open("scenes/SpeedTrial.scene", !1, this._enterGame.bind(this));
            }
            _enterGame(e) {
                if (this.camera) {
                    let t = this;
                    Laya.Tween.to(t.camera, {
                        viewy: -5,
                        viewz: 6
                    }, 500, null, new Laya.Handler(null, function() {
                        t.roleCar.startTouch(), t.watingCB &amp;&amp; t.watingCB(), t.watingCB = null, t.startTime = Date.now(),
                            t.startDistance = t.camera.transform.localPositionZ,
                            t.aimPoint.transform.localPositionZ = t.startDistance + t.missionDistance + 4,
                            t.aimPoint.active = !0;
                    })), this.roleCar.setSpeedTrial(e);
                }
            }
            changeCar(e) {
                if (this.camera) {
                    const before = this.roleCar.owner.getChildByName("0");
                    if (before) {
                        before.active = false
                        before.destroy();
                    }

                    let t = Laya.Sprite3D.instantiate(e);
                    t.name = "0",
                        t.active = !0,
                        t.transform.localPosition = new Laya.Vector3(0, 0, 0);
                    this.roleCar.owner.addChild(t);

                    // this.roleCar.owner.getChildByName("0").destroy();
                }
            }
            checkCollision() {
                for (let e = 0; e &lt; this.roadMgr.car_road0.length; e++) {
                    let t = this.roadMgr.car_road0[e],
                        i = t.transform.localPositionZ - (this.roleCar.transform.localPositionZ - 2);
                    if (i &lt; A.CAR_BOX_HEIGHT &amp;&amp; i &gt; .3 * -A.CAR_BOX_HEIGHT) return t;
                }
                return null;
            }
            checkCollisionRoad1() {
                let car_road1 = N.Instance.roadMgr.car_road1;
                for (let e = 0; e &lt; car_road1.length; e++) {
                    let t = car_road1[e],
                        i = t.transform.localPositionZ - (this.roleCar.transform.localPositionZ - 2);
                    if (i &lt; A.CAR_BOX_HEIGHT &amp;&amp; i &gt; .3 * -A.CAR_BOX_HEIGHT) return t;
                }
                return null;
            }
            onRelive() {
                if (this.reliveCount) {
                    this.reliveCount--;
                    Laya.Scene.open("scenes/Fuhuo.scene", !1, e =&gt; {
                        if (e) {
                            this.roadMgr.removeCar0(this.collisionCar),
                                this.isRuning = !0,
                                this.roleCar.æ­£åœ¨æŽ§åˆ¶ = !0;
                        } else {
                            this.gameOver(!1)
                        }
                    })
                } else {
                    this.gameOver(!1);
                }
            }
            gameOver(e) {
                this.isRuning = false;
                let t = this.camera.transform.localPositionZ - this.startDistance,
                    i = 0;
                e ? (i = 30 * Math.floor(this.missionTime), n.Show("GameWin", -150)) : (
                    i = Math.floor(100 * t / this.missionDistance),
                    n.Show("GameLose", -150));
                let s = this.missionTime;
                this.owner.frameOnce(30, this, function() {
                    Laya.Scene.open("scenes/JieSuan.scene", !1, {
                        win: e,
                        time: Math.floor(s),
                        coin: i
                    });
                }), e &amp;&amp; Laya.Tween.to(this.roleCar.transform, {
                    localPositionz: this.roleCar.transform.position.z + 20
                }, 1e3);
            }

            runCollisionTween(e) {
                let t = this.roleCar.transform.position,
                    i = {
                        localPositionX: 2 * (e.transform.localPositionX - t.x),
                        localPositionY: e.transform.localPositionY + 10,
                        localPositionZ: e.transform.localPositionZ + 50,
                        localRotationX: 540
                    };
                Laya.Tween.to(e.transform, i, 1500, null, new Laya.Handler(this, this.onRelive));
            }
            onGameUpdate() {
                if (this.isRuning) {
                    this.roadMgr.toUpdate(.016), this.roleCar.toUpdate(.016), this.camera.toUpdate(.016);
                    this.terrain.transform.localPositionZ = this.camera.transform.localPositionZ;
                    if (this.roleCar.transform.localPositionX &gt; 1) {
                        let e = this.checkCollision();
                        if (e) return this.collisionCar = e, console.log("æ¸¸æˆç»“æŸ"), this.isRuning = !1, Laya.SoundManager.playSound("audio/carsColl.mp3"),
                            this.roleCar.stop(), void this.runCollisionTween(e);
                    }
                    if (this.roleCar.transform.localPositionX &lt; -2) {
                        let e = this.checkCollisionRoad1();
                        if (e) return this.collisionCar = e, console.log("æ¸¸æˆç»“æŸ"), this.isRuning = !1, Laya.SoundManager.playSound("audio/carsColl.mp3"),
                            this.roleCar.stop(), void this.runCollisionTween(e);
                    }

                    if (this.roleCar &amp;&amp; this.roleCar.æ­£åœ¨æŽ§åˆ¶) {
                        let e = Math.floor(this.missionTime);
                        this.missionTime -= .016;
                        let t = Math.floor(this.missionTime);
                        e != t &amp;&amp; this.gameUI.setTime(t);
                        let i = this.camera.transform.localPositionZ - this.startDistance;
                        this.gameUI.setProgress(i / this.missionDistance);
                        if (i &gt; this.missionDistance - 0.01) return void this.gameOver(!0);
                        this.missionTime &lt;= 0 &amp;&amp; this.gameOver(!1);
                    }
                }
            }
        }
        return e.prefabCaches = [], e._sInstance = null, e;
    })();


    const O = [0, 3e2, 5e2, 1e3, 3e3, 9999],
        R = [0, 1, 3, 5, 7, 9],
        U = ["SeniorCar", "SmallTruck", "PoliceCar", "Ambulance", "SUV", "SuperTank"];
    class F extends e.scenes.CheKuUI {
        constructor() {
            super(...arguments), this.carPreView = null, this.selectIndex = 0, this.lastUseCar = 0;
        }
        onAwake() {
            this.anVideo.clickHandler = new Laya.Handler(this, this.onClick, [0]),
                this.anBuy.clickHandler = new Laya.Handler(this, this.onClick, [1]),
                this.btnUse.clickHandler = new Laya.Handler(this, this.onClick, [2]),
                this.lastUseCar = L.Data.currentCar,
                this.anLeft.on(Laya.Event.CLICK, this, this.onClickDir, [-1]),
                this.anRight.on(Laya.Event.CLICK, this, this.onClickDir, [1]),
                this.carPreView = this.scene3d.getComponent(D),
                this.carPreView.setMoveCB(this.onChangeCar.bind(this)),
                this.onChangeCar(0);
            this.btnClose.on(Laya.Event.CLICK, this, this.onCloseClick, [3]);
        }
        onChangeCar(e) {
            this.selectIndex = e,
                this.cheName.text = U[e],
                this.anVideo.getChildAt(0).text = L.Data.carVideo[e] + "/" + R[e],
                this.anVideo.visible = 0 == L.Data.cars[e],
                this.coinBuy.text = "" + O[e],
                this.anBuy.visible = 0 == L.Data.cars[e],
                this.btnUse.visible = L.Data.currentCar != e;
        }
        onOpened(e) {
            e &amp;&amp; this.carPreView.setDefaultIndex(e.car);
        }
        onClickDir(e) {
            this.carPreView.moveIndex(e);
        }

        onCloseClick() {
            this.carPreView.destroy3d(),
                this.close()
        }
        onClick(e) {

            let t = this;
            if (0 == e) {
                platform.getInstance().showReward(
                    () =&gt; {
                        L.Data.carVideo[t.selectIndex]++
                            if (Â&nbsp;L.Data.carVideo[t.selectIndex]Â&nbsp; &gt;= Â&nbsp;R[t.selectIndex]) {
                                L.Data.cars[t.selectIndex]Â&nbsp; = Â&nbsp;1;
                                L.Data.currentCarÂ&nbsp; = Â&nbsp;t.selectIndex, Â&nbsp;
                                    N.Instance.changeCar(this.carPreView.models.getChildByName("" + L.Data.currentCar));
                                t.onChangeCar(t.selectIndex)
                            } else {Â&nbsp;
                                t.anVideo.getChildAt(0).textÂ&nbsp; = Â&nbsp;L.Data.carVideo[t.selectIndex]Â&nbsp; + Â&nbsp;"/"Â&nbsp; + Â&nbsp;R[t.selectIndex]

                            }
                    })
            } else if (1 == e) {
                if (L.Data.coin &gt;= O[this.selectIndex]) {
                    L.Data.coin -= O[this.selectIndex];
                    Z.Instance.jinbiLabel.string = L.Data.coin;
                    L.Data.cars[this.selectIndex] = 1;
                    L.Data.currentCar = this.selectIndex;
                    N.Instance.changeCar(this.carPreView.models.getChildByName("" + L.Data.currentCar));
                    this.onChangeCar(this.selectIndex)
                } else {
                    Laya.Scene.open("scenes/FreeCoin.scene", !1)
                }
            } else if (e == 2) {
                L.Data.currentCar = this.selectIndex;
                N.Instance.changeCar(this.carPreView.models.getChildByName("" + L.Data.currentCar));
                this.onChangeCar(this.selectIndex);
            }

            // let t = this;
            // 0 == e ? L.PingTai.watchVideo("getCar", function() {
            //     L.Data.carVideo[t.selectIndex]++, L.Data.carVideo[t.selectIndex] &gt;= R[t.selectIndex] ? (L.Data.cars[t.selectIndex] = 1, 
            //     n.Show("è´­ä¹°æˆåŠŸ", -150), L.Data.currentCar = t.selectIndex, t.onChangeCar(t.selectIndex)) : (n.Show("è§‚çœ‹è§†é¢‘æˆåŠŸ", -150), 
            //     t.anVideo.getChildAt(0).text = L.Data.carVideo[t.selectIndex] + "/" + R[t.selectIndex]);
            // }) : 1 == e ? L.Data.coin &gt;= O[this.selectIndex] ? (L.Data.coin -= O[this.selectIndex], 
            // L.Data.cars[this.selectIndex] = 1, n.Show("è´­ä¹°æˆåŠŸ", -150), L.Data.currentCar = this.selectIndex, 
            // this.onChangeCar(this.selectIndex)) : (n.Show("é‡‘å¸ä¸è¶³", -150), Laya.Scene.open("scenes/FreeCoin.scene", !1)) : 1 == e ? L.Data.cars[this.selectIndex] &amp;&amp; (L.Data.currentCar = this.selectIndex, 
            // this.onChangeCar(this.selectIndex), n.Show("ä½¿ç”¨æˆåŠŸ", -150)) : (N.Instance.changeCar(this.carPreView.models.getChildByName("" + L.Data.currentCar)), 
            // this.carPreView.destroy3d(), this.close());
        }

        onDisable() {
            L.Data.save();
        }

        onDestroy() {}
    }
    var H;
    ! function(e) {
        e[e.HORIZONTAL = 0] = "HORIZONTAL", e[e.VECTIACAL = 1] = "VECTIACAL", e[e.RADIAN = 2] = "RADIAN";
    }(H || (H = {}));
    class V extends Laya.Script {
        constructor() {
            super(), this._progress = .5, this.alginWidth = 10, this._type = H.HORIZONTAL, this._bar = null;
        }
        onAwake() {
            this._bar = this.owner.getChildByName("bar"), console.log("UIProgress:", this._progress, "type:", this._type),
                this._bar.x = this.alginWidth / 2;
        }
        get progress() {
            return this._progress;
        }
        set progress(e) {
            this._progress = Math.max(Math.min(1, e), 0);
            let t = this.owner;
            this._type == H.HORIZONTAL ? this._bar.width = this._progress * (t.width - this.alginWidth) : this._type == H.VECTIACAL ? this._bar.height = this._progress * t.height : (this._type,
                H.RADIAN);
        }
    }
    class X extends e.scenes.WuDianUI {
        constructor() {
            super(), this.isClicking = !0, this._currentProgress = 0, this.clickCB = null, this.isRuning = !0,
                this.endAim = 0, this.lastPoint = 0;
        }
        static canShow() {
            return !L.Data.isClick &amp;&amp; L.Data.canClick;
        }
        onAwake() {
            this.progress = this.click.getChildByName("progress").getComponent(V), this.bg.height = Laya.stage.height,
                this.button.y += Laya.stage.height - 1280, this.shou.y += Laya.stage.height - 1280,
                this.button.clickHandler = new Laya.Handler(this, this.onClickOpen), this.timerLoop(1, this, this.onUpdate);
            let e = this;
            L.Event.on("onShow", () =&gt; {
                console.log("å·²åˆ‡å‡ºåŽ»ï¼Œåˆ·æ–°å¹¿å‘Š"), e.showReward();
            }, this), this.handMove(), this.endAim = 50 * Math.random() + 30, this.lastPoint = 30 * Math.random() + 40;
        }
        handMove() {
            let e = this.shou.y;
            Laya.Tween.to(this.shou, {
                y: e + 40
            }, 1e3, null, new Laya.Handler(this, function() {
                Laya.Tween.to(this.shou, {
                    y: e
                }, 1e3, null, new Laya.Handler(this, this.handMove));
            }));
        }
        onOpened(e) {
            this.clickCB = e;
        }
        showReward() {
            this.isRuning = !1, n.Show("ä¿®ç†æˆåŠŸ"), this.frameOnce(60, this, this.onClickClose);
        }
        onClickOpen() {
            let e = this._currentProgress;
            this._currentProgress += 12, this.progress.progress = this._currentProgress / 100,
                e &lt; this.lastPoint &amp;&amp; this._currentProgress &gt; this.lastPoint &amp;&amp; (this.banner.getComponent(b).Show(),
                    this.timerOnce(2e3, this, () =&gt; {
                        this.isClicking &amp;&amp; this.banner.getComponent(b).Hide();
                    })), this._currentProgress &gt;= 100 &amp;&amp; this.showReward();
        }
        onClickClose() {
            L.PingTai.Event.off(this), this.clickCB &amp;&amp; this.clickCB();
            new Date();
            this.close();
        }
        onUpdate() {
            this.isRuning &amp;&amp; this.isClicking &amp;&amp; this._currentProgress &gt; 0 &amp;&amp; (this._currentProgress -= .4,
                this.progress.progress = this._currentProgress / 100);
        }
    }
    let G = !0,
        Z = (() =&gt; {
            class t extends e.scenes.DaTingUI {
                constructor() {
                    super(), this.bannerNode = null, t._sInstance = this;
                }
                static get Instance() {
                    return t._sInstance;
                }
                onAwake() {
                    this.btnStart.on(Laya.Event.CLICK, this, this.onClickStart),
                        this.anCheKu.clickHandler = new Laya.Handler(this, this.onClickGarage),
                        this.jinbiLabel.string = L.Data.coin,
                        this.uiPanel.height = Laya.stage.height;
                    Laya.SoundManager.playMusic("audio/bgm.mp3")


                    this.anCheKu.disabled = true;
                    this.btnStart.disabled = true;
                }

                // oncoinchange(){
                //     this.jinbiLabel.string = L.Data.coin; 
                // }

                onUpdateLobbyBanner() {}
                onClickEmail() {
                    Laya.Scene.open("scenes/Email.scene", !1);
                }
                onClickStart() {
                    platform.getInstance().showInterstitial(() =&gt; {
                        this.uiPanel.visible = !1,
                            N.Instance.startGame();
                    })
                }
                backLobby() {
                    this.uiPanel.visible = !0;
                    // Laya.Scene.open("scenes/BanPingFlows.scene", !1, () =&gt; {
                    //     this.bannerNode.Show();
                    // });
                }
                onBannerResize() {}
                onClickGarage() {
                    Laya.Scene.open("scenes/CheKu.scene", !1);
                }
                onClickMore() {}
            }
            return t._sInstance = null, t;
        })();
    class W extends Laya.Label {
        constructor() {
            super(...arguments), this.format = "{0}", this._string = 0, this.start1 = 0, this.max = 0,
                this.end = 0, this.time = 0, this.delta = 0, this.delayTime = 0, this.runing = !1;
        }
        get string() {
            return this._string;
        }
        set string(e) {
            e != this._string &amp;&amp; this._setText(this._string, e);
        }
        onAwake() {
            this.start1 = 0, this.runing = !1, this.max = 1e4, this._string = parseInt(this.text) || 0,
                this.frameLoop(1, this, this.onUpdateText);
        }
        _setText(e, t, i) {
            var s, n;
            if (void 0 !== t ? (s = e, n = t) : (s = this.runing ? this.end : this.start1, n = e),
                this.start1 = s, this.end = n, this.end - this.start1 &lt; 5) return this.text = L.Common.stringFormat(this.format, this.end),
                void(this.runing = !1);
            this.runing = !0, this.time = 0, this.delta = 0, this.delayTime = i || 1.5, this._string = t;
        }
        onUpdateText() {
            if (this.runing)
                if (this.time &gt; 0) this.time -= .016;
                else {
                    var e = Math.floor(this.delta / this.delayTime * (this.end - this.start1) + this.start1);
                    this.delta += .016, this.delta &gt;= this.delayTime ? (this.runing = !1, this.text = L.Common.stringFormat(this.format, this.end)) : this.delta &gt;= this.delayTime - .15 ? (this.time = .03 * Math.pow(10 * (.15 + this.delta - this.delayTime), 3),
                        this.text = L.Common.stringFormat(this.format, e)) : this.text = L.Common.stringFormat(this.format, e);
                }
        }
    }
    class Y extends Laya.Script {
        constructor() {
            super(...arguments), this.sceneName = "", this.canelScene = "", this.interval = 5,
                this.friendArr = [], this.friendIndex = [], this.runTime = 0, this.isReturn = !1;
        }
        onEnable() {
            let e = 0;
            for (;;) {
                let t = this.owner.getChildAt(e);
                if (!t) break;
                let i = t.getChildByName("button");
                i &amp;&amp; i.on(Laya.Event.CLICK, this, this.onClickImg, [e]), e++;
            }
            this.onGetFlows() || L.Event.on("flows", this.onGetFlows, this);
        }
        onDestroy() {
            L.Event.off("flows", this.onGetFlows, this);
        }
        onGetFlows() {
            let e = f.flows;
            if (!e) return !1;
            var t = e.filter(function(e) {
                return e.sceneName == this.sceneName;
            }.bind(this));
            this.friendArr = t;
        }
        updateChild() {
            let e = [];
            for (let t = 0; t &lt; this.friendArr.length; t++) e.push(t);
            e.sort(function(e, t) {
                return Math.random() - .5;
            }), this.friendIndex = e;
            let t = 0;
            for (;;) {
                let i = this.owner.getChildAt(t);
                if (!i) break;
                let s = e[t];
                if (t &gt;= this.friendArr.length) break;
                let n = this.friendArr[s];
                this.friendIndex.push(s), (i = i.getChildByName("icon") || i).skin = n.imgUrl, t++;
            }
        }
        onClickImg(e, t) {
            if (t.stopPropagation(), -1 == e) return;
            let i = this.friendArr[this.friendIndex[e]];
            console.log("onClick:", this.canelScene);
            let s = {
                fid: i.fid,
                appId: i.appId,
                path: i.path,
                sceneName: i.sceneName
            };
            S.navigateToMiniProgram(s, this.sceneName);
        }
        onUpdate() {
            if (this.isReturn) return;
            let e = Laya.timer.delta / 1e3;
            this.runTime -= e, this.runTime &lt;= 0 &amp;&amp; (this.updateChild(), this.runTime = this.interval,
                0 == this.interval &amp;&amp; (this.isReturn = !0));
        }
    }
    class z extends Laya.Scene {
        constructor() {
            super(), this.loadSuccess = !1, this.loginSuccess = !1, this.sdkSuccess = !1;
        }
        onEnable() {
            this.bgImg.height = Laya.stage.height;
            this.bgImg.filters = [new Laya.ColorFilter([61 / 255, 0, 0, 0, 0, 103 / 255, 0, 0, 0, 0, 201 / 255, 0, 0, 0, 0, 0, 0, 0, 1, 0])],
                L.Data.parseData(""), b.init(), b.preload(4), this.checkJoinScene(), this.enterLobby();
        }
        checkJoinScene() {
            if (L.PingTai.isWechat) {
                var e = wx.getLaunchOptionsSync();
                let t = e.query.channel ? e.query.channel : "";
                L.Data.canClick = 1037 == e.scene || 1089 == e.scene || "5f51f6ca5cf3311086296096" == t,
                    console.log("canClick:", L.Data.canClick, ",æ¥æº:", e.scene, t);
            }
        }
        "è‡ªåŠ¨ç™»é™†" () {
            let e = Laya.LocalStorage.getItem("wei_openid");
            e ? (L.Data.openId = e, L.PingTai.reportData({
                type: "login"
            }), (L.PingTai.isWechat || L.PingTai.isQQ || L.PingTai.isWeb) &amp;&amp; this.sdkLogin(e, !0)) : L.PingTai.autoLogin(e =&gt; {
                console.log("åŽå°æ³¨å†Œç»“æžœ:--------------", e), Laya.LocalStorage.setItem("wei_openid", e.openid),
                    L.Data.openId = e.openid, L.PingTai.reportData({
                        type: "login"
                    }), (L.PingTai.isWechat || L.PingTai.isQQ || L.PingTai.isWeb) &amp;&amp; this.sdkLogin(e.openid, !1);
            });
        }
        enterLobby() {Â&nbsp;
            platform.getInstance().cargamesstartup("Perfect-Cut-In", () =&gt; {Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; //æˆåŠŸå›žè°ƒ
                Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; //åœ¨åˆé€‚ä½ç½®æ·»åŠ&nbsp;å…¬å¸logo
                Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                constÂ&nbsp; sideLogoÂ&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; = Â&nbsp;newÂ&nbsp; Laya.Image();Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.scale(0.8, 0.8);Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.skinÂ&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; = Â&nbsp;"login/yad.png"Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.zOrderÂ&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; = Â&nbsp;1e3;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.right = Â&nbsp;10;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.topÂ&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; = 40;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                Laya.stage.addChild(sideLogo);Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                sideLogo.on(Laya.Event.MOUSE_DOWN, sideLogo, () =&gt; {Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                    platform.getInstance().navigate("GAME", "LOGO");Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                })Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp; //è¿›å…¥æ¸¸æˆä¸»åœºæ™¯
                Laya.Scene.open("scenes/DaTing.scene", !0);Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
                window.adsGameCon.recordOpen();Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;Â&nbsp;
            })

        }
        sdkLogin(e, t) {
            let i = this,
                s = Laya.Browser.onMiniGame ? wx.getLaunchOptionsSync() : {
                    query: {},
                    referrerInfo: {}
                },
                n = s.query.channel ? s.query.channel : "",
                a = Laya.Browser.onMiniGame ? wx.dataversion : "1.0.50";
            f.register(e, n, a, function(t, s) {
                s ? (L.Data.isCheck = parseInt(f.dictionary.isCheck) || 0, L.Data.isClick = parseInt(f.dictionary.isClick) || 0,
                    L.Data.isCheck = !L.Data.canClick || L.Data.isCheck ? 1 : 0, i.enterLobby(), console.log("åŽå°æ³¨å†ŒæˆåŠŸ,isCheck:", L.Data.isCheck, L.Data.isClick)) : i.sdkLogin(e, !1);
            });
        }
        onDisable() {}
    }
    const Q = "";
    class q extends Laya.Scene {
        constructor() {
            super(...arguments), this.friendArr = [], this.friendIndex = 0, this.cb = null;
        }
        onAwake() {}
    }
    class K extends e.scenes.FreeCoinUI {
        onAwake() {
            this.btnBack.clickHandler = new Laya.Handler(this, this.onClickBack),
                this.btnGet.clickHandler = new Laya.Handler(this, this.onClickVideo);
        }
        onClickBack() {
            Laya.Scene.close("scenes/FreeCoin.scene");
        }
        onClickVideo() {
            platform.getInstance().showReward(
                () =&gt; {
                    console.log("onClickVideoonClickVideoonClickVideo")
                    //æˆåŠŸ  å‘æ”¾å¥–åŠ±
                    L.Data.coin += 1e3, n.Show("Gain Coins x1000");
                    Z.Instance.jinbiLabel.string = L.Data.coin;
                    L.Data.save()
                })
        }
    }
    class J extends e.scenes.FuhuoUI {
        constructor() {
            super(...arguments), this.closeCB = null;
        }
        onAwake() {
            this.btnRelive.disabled = true;
            this.btnCancel.disabled = true;

        }
        onOpened(e) {
            this.closeCB = e;
            this.btnRelive.on(Laya.Event.CLICK, this, this.onClick, [1]);
            this.btnCancel.on(Laya.Event.CLICK, this, this.onClick, [0]);
            this.btnRelive.disabled = false;
            this.btnCancel.disabled = false;

        }
        onClick(e) {
            if (0 == e) {
                Laya.Scene.close("scenes/Fuhuo.scene"), this.closeCB &amp;&amp; this.closeCB(0)
            } else {
                platform.getInstance().showReward(() =&gt; {
                    //æˆåŠŸ  å‘æ”¾å¥–åŠ±
                    Laya.Scene.close("scenes/Fuhuo.scene"), this.closeCB &amp;&amp; this.closeCB(1);
                });
            }
        }
    }
    class j extends e.scenes.FullSceneFlowsUI {
        constructor() {
            super(...arguments), this.clickCount = 0, this.closeCb = null;
        }
        onAwake() {
            this.width = Laya.stage.width, this.height = Laya.stage.height, this.bgImg.height = Laya.stage.height,
                this.btnClose.clickHandler = new Laya.Handler(this, this.onClickClose), this.btnBack.clickHandler = new Laya.Handler(this, this.onClickBack),
                this.btnClose.visible = !1, this.frameOnce(480, this, function() {
                    this.btnClose.visible = !0;
                });
        }
        onOpened(e) {
            this.closeCb = e;
        }
        onClosed() {
            this.closeCb &amp;&amp; this.closeCb();
        }
        onClickBack() {
            L.Data.isCheck ? this.close() : (this.clickCount++, console.log("this.clickCount:", this.clickCount),
                3 == this.clickCount &amp;&amp; (this.getChildByName("banner").getComponent(b).Show(), this.frameOnce(10, this, () =&gt; {
                    this.btnClose.visible = !0, this.btnBack.visible = !1;
                })));
        }
        onClickClose() {
            this.close();
        }
    }
    class $ extends e.scenes.JieSuanUI {
        constructor() {
            super(...arguments), this.closeCB = null;
        }
        onAwake() {
            this.title.text = "";
            this.coinLabel.text = "";
            this.btnContinue.on(Laya.Event.CLICK, this, this.onClick, ["continue"]),
                this.btnMore.on(Laya.Event.CLICKthis, this.onClick, ["more"]),

                this.frameOnce(60, this, function() {
                    this.banner.getComponent(b).Show();
                });
            const appList = this.getChildByName("appList");
            platform.getInstance().initList(appList);
            this.btnContinue.disabled = true;
            this.btnMore.disabled = true;

        }
        onOpened(e) {
            this.coinLabel.text = e.coin, this.title.text = e.win ? "Win" : "Lose", this.remainTime.text = e.time + " seconds remaining";
            if (e.win) {
                this.btnContinue.skin = "ui/continue.png"
            } else {
                this.btnContinue.skin = "ui/continue2.png"
            }
            L.Data.coin += e.coin, e.win &amp;&amp; L.Data.maxGate++, L.Data.save();
            this.btnContinue.disabled = false;
            this.btnMore.disabled = false;
        }
        onClick(e) {
            // "more" == e ? Laya.Scene.open("scenes/FullSceneFlows.scene", !1) : (this.banner.active = !1, 
            // X.canShow() ? Laya.Scene.open("scenes/WuDian.scene", !1, () =&gt; {
            //     this.close(), N.Instance.resetScene(), Z.Instance.backLobby();
            // }) : (this.close(), N.Instance.resetScene(), Z.Instance.backLobby()));
            this.close(), N.Instance.resetScene(), Z.Instance.backLobby();
        }
    }
    class ee extends e.scenes.SpeedTrialUI {
        constructor() {
            super(...arguments), this.scene3D = null, this.closeCb = null, this.particleFx = null,
                this.isShow = !1;
        }
        onAwake() {
            this.anVideo.disabled = true;
            this.btnClose.disabled = true;
            Laya.Scene3D.load("res/LayaScene_Preview/Conventional/Preview.ls", new Laya.Handler(this, function(e) {
                this.scenePanel.addChild(e), this.scene3D = e;
                let t = e.getChildByName("Main Camera");
                t.clearFlag = Laya.BaseCamera.CLEARFLAG_DEPTHONLY, t.enableHDR = !1,
                    Laya.Sprite3D.load("res/LayaScene_Main/Conventional/car0.lh", new Laya.Handler(this, function(t) {
                        const before = N.Instance.roleCar.owner.getChildByName("0");
                        if (before) {
                            const car = Laya.Sprite3D.instantiate(before);
                            car.transform.position = new Laya.Vector3(0, 0, 0);
                            // L.Data.cars
                            let i = Laya.Sprite3D.instantiate(t);
                            e.addChild(i),
                                i.addChild(car),
                                i.getChildByName("TurboEffect").destroy(),
                                i.getChildByName("coinParticle2").destroy(),
                                i.transform.position = new Laya.Vector3(1.54, 1, 4.1),
                                i.transform.rotation = new Laya.Quaternion(.044, .952, .163, -.25),
                                this.particleFx = i.getChildByName("fx"),
                                this.particleFx.active = !1, this.frameLoop(120, this, this.playFx);
                        } else {
                            this.onCloseScene(0)
                        }
                    }));
            }))
        }
        playFx() {
            this.isShow = !this.isShow, this.particleFx.active = this.isShow, this.isShow &amp;&amp; Laya.SoundManager.playSound("audio/jiasu.mp3");
        }
        onCloseScene() {
            this.scene3D &amp;&amp; this.scene3D.destroy(), this.closeCb &amp;&amp; this.closeCb(0), this.close();
        }
        onOpened(e) {
            this.closeCb = e;
            this.anVideo.on(Laya.Event.CLICK, this, this.onBuy, [0])
            this.btnClose.on(Laya.Event.CLICK, this, this.onCloseScene, [0])
            this.anVideo.disabled = false;
            this.btnClose.disabled = false;
        }
        onClosed() {
            this.clearTimer(this, this.playFx);
        }
        onBuy() {
            // let e = this;
            // L.PingTai.watchVideo("speed", function() {
            //     e.close(), e.closeCb &amp;&amp; e.closeCb(1);
            // });
            platform.getInstance().showReward(
                () =&gt; {
                    //æˆåŠŸ  å‘æ”¾å¥–åŠ±
                    let e = this;
                    this.scene3D &amp;&amp; this.scene3D.destroy &amp;&amp; this.scene3D.destroy();
                    e.close(), e.closeCb &amp;&amp; e.closeCb(1);
                })

        }
    }
    class te extends Laya.Script {
        constructor() {
            super(), this.format = "", this.formatStep = "", this.frames = [], this.autoPlay = !0,
                this.delayTime = .15, this.repeat = -1, this.autoRemove = !1, this.isRun = !1, this.runtime = -1,
                this.index = -1, this.sprite = null, this.endCB = null, this.stepCB = null, this.loadname = null,
                this.loadBegin = null, this.loadEnd = null, this.isRemove = !1;
        }
        onAwake() {
            let e = this.formatStep.split(","),
                t = [];
            for (let i = 0; i &lt; e.length; i++) {
                let s = L.Common.stringFormat(this.format + ".png", e[i]);
                t.push(s);
            }
            this.setFrames(t), this.sprite = this.owner, this.autoPlay &amp;&amp; (this.setDelayTime(this.delayTime),
                this.startAnimate(this.repeat));
        }
        setFrames(e, t = 0, i = -1) {
            -1 == i &amp;&amp; (i = e.length), this.frames = e;
        }
        startAnimate(e, t = null, i = null) {
            this.endCB = t, this.stepCB = i, this.index = -1, this.isRun = !0, this.repeat = e || -1,
                this.sprite.skin = this.frames[0];
        }
        stop() {
            this.isRun = !1;
        }
        setDelayTime(e) {
            this.delayTime = e, this.runtime = this.delayTime;
        }
        reset() {
            this.isRun = !1, this.index = -1, this.frames = [];
        }
        updateFrame() {
            this.index;
            if (this.index += 1, this.index = this.index % this.frames.length, this.stepCB &amp;&amp; this.stepCB(this.index),
                0 == this.index) {
                if (0 == this.repeat) return this.isRun = !1, this.endCB &amp;&amp; this.endCB(), void(this.autoRemove &amp;&amp; (this.owner.destroy(),
                    this.isRemove = !0, this.sprite.skin = "")); -
                1 != this.repeat &amp;&amp; this.repeat--;
            }
            this.index;
            this.sprite.skin = this.frames[this.index];
        }
        onUpdate() {
            if (!this.sprite.visible || this.isRemove) return;
            let e = Laya.timer.delta / 1e3;
            if (this.isRun) {
                if (this.runtime &lt; 0) return this.runtime = this.delayTime, void this.updateFrame();
                this.runtime -= e;
            }
        }
    }
    let ie = (() =&gt; {
        class e {
            constructor() {}
            static init() {
                var e = Laya.ClassUtils.regClass;
                e("flow/BanPingFlows.ts", v), e("flow/FlowManager.ts", S), e("module/platform/ui/WxBanner.ts", b),
                    e("script/CheKu.ts", F), e("core/CarPreview.ts", D), e("script/DaTing.ts", Z), e("core/YouXi.ts", N),
                    e("core/JumpText.ts", W), e("script/GUI.ts", M), e("flow/FlowTeamChange.ts", Y),
                    e("script/DengLu.ts", z), e("script/UIProgress.ts", V), e("script/Message.ts", q),
                    e("script/FreeCoin.ts", K), e("script/Fuhuo.ts", J), e("flow/FullSceneFlows.ts", j),
                    e("script/JieSuan.ts", $), e("script/SpeedTrial.ts", ee), e("script/Tooltip.ts", n),
                    e("script/WuDian.ts", X), e("core/UIFrameAnimate.ts", te);
            }
        }
        return e.width = 750, e.height = 1334, e.scaleMode = "showall", e.screenMode = "none",
            e.alignV = "middle", e.alignH = "center", e.startScene = "scenes/DengLu.scene",
            e.sceneRoot = "", e.debug = !1, e.stat = !1, e.physicsDebug = !1, e.exportSceneToJson = !0,
            e;
    })();
    ie.init();
    let se = (() =&gt; {
        class e {}
        return e.wechat = {
            banner: {
                lobby: "adunit-253e7b644d4053ec",
                relive: "adunit-85f182baac5565b1",
                result: "adunit-c7e6815f97cb74f8",
                "å¤‡ç”¨1": "adunit-a64106e1f1ce4977",
                "å¤‡ç”¨2": "adunit-de254408f3f31fc9",
                "å¤‡ç”¨3": "adunit-9ea918b400b5dae7",
                "å¤‡ç”¨4": "adunit-5f845e06e3603f5f",
                "å¤‡ç”¨5": "adunit-496f879896cc305e",
                "å¤‡ç”¨6": "adunit-9105c245fc6c766e",
                "å¤‡ç”¨7": "adunit-557c6b4c9bd2bb97",
                "å¤‡ç”¨8": "adunit-b9bf419560bc1c39",
                "å¤‡ç”¨9": "adunit-10aa00376ffc5e13",
                "å¤‡ç”¨10": "adunit-ccc293c441c8ec01"
            },
            video: {
                freecoin: "adunit-a069d4a453eca59b",
                relive: "adunit-c521b95de4a12bdf",
                getCar: "adunit-591e188f1112329f",
                speed: "adunit-3d1e09dcfd3a9061"
            }
        }, e;
    })();
    new class {
        constructor() {
            window.Laya3D ? Laya3D.init(ie.width, ie.height) : Laya.init(ie.width, ie.height, Laya.WebGL),
                Laya.Physics &amp;&amp; Laya.Physics.enable(), Laya.DebugPanel &amp;&amp; Laya.DebugPanel.enable(),
                Laya.stage.scaleMode = ie.scaleMode, Laya.stage.screenMode = ie.screenMode, Laya.stage.alignV = ie.alignV,
                Laya.stage.alignH = ie.alignH, Laya.URL.exportSceneToJson = ie.exportSceneToJson,
                (ie.debug || "true" == Laya.Utils.getQueryString("debug")) &amp;&amp; Laya.enableDebugPanel(),
                ie.physicsDebug &amp;&amp; Laya.PhysicsDebugDraw &amp;&amp; Laya.PhysicsDebugDraw.enable(), ie.stat &amp;&amp; Laya.Stat.show(),
                Laya.alertGlobalError(!0), Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);
        }
        onVersionLoaded() {
            Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded));
        }
        onConfigLoaded() {
            L._init(se), ie.startScene &amp;&amp; Laya.Scene.open(ie.startScene);
        }
    }();
}();
</pre></body></html>