Greasy Fork is available in English.

网课视频辅助学习助手

支持:【河南教师培训网】【浙里学习】【石家庄铁道大学】【宁夏专业技术人员继续教育在线培训平台】【河南华夏基础教育学院】【师学通】【东奥会计继续教育】【河南专技在线】【上海开放大学】【国家开放大学】【兰州理工大学】【兰州大学】【北京教师学习网】【青岛市专业技术人员】【兰州资源环境职业技术大学】【漯河学院】【华北电力大学】【河南省新闻出版学校】【东奥会计继续教育】【梦想在线】【广东远程职业培训平台】【黑龙江省网络助学平台】【S云课堂网校】【河北机电职业技术学院】【贵州省专业技术人员继续教育平台】【和学在线】【河南华夏基础】【职教云】【河北教师教育网】【山东干部网络学院】等

// ==UserScript==
// @name         网课视频辅助学习助手
// @namespace    http://tampermonkey.net/
// @version      6.4.8
// @description  支持:【河南教师培训网】【浙里学习】【石家庄铁道大学】【宁夏专业技术人员继续教育在线培训平台】【河南华夏基础教育学院】【师学通】【东奥会计继续教育】【河南专技在线】【上海开放大学】【国家开放大学】【兰州理工大学】【兰州大学】【北京教师学习网】【青岛市专业技术人员】【兰州资源环境职业技术大学】【漯河学院】【华北电力大学】【河南省新闻出版学校】【东奥会计继续教育】【梦想在线】【广东远程职业培训平台】【黑龙江省网络助学平台】【S云课堂网校】【河北机电职业技术学院】【贵州省专业技术人员继续教育平台】【和学在线】【河南华夏基础】【职教云】【河北教师教育网】【山东干部网络学院】等
// @author
// @match        *://*/*
// @grant        GM_xmlhttpRequest
// @grant        GM_openInTab
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        window.close
// @grant        window.onurlchange
// @antifeature  payment
// @noframes
// @connect      www.gaozhiwang.top
// @connect      localhost
// @antifeature  payment  学习辅助付费
// @license      MIT
// ==/UserScript==



"use strict";
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
    function adopt(value) {
        return value instanceof P ? value : new P(function (resolve) {
            resolve(value);
        });
    }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) {
            try {
                step(generator.next(value));
            } catch (e) {
                reject(e);
            }
        }
        function rejected(value) {
            try {
                step(generator["throw"](value));
            } catch (e) {
                reject(e);
            }
        }
        function step(result) {
            result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
        }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
(function () {
    let basehost = 'http://47.115.205.88';
    let bserUrl = 'http://www.gaozhiwang.top:7001';
    const panelcss = `
        .myTool{
            background: #fff;
            width: 234px;
            font-size: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: fixed;
            z-index: 9999;
            top: 70px;
            left: 44px;
            box-sizing: border-box;
            padding: 15px 9px;
            border-radius: 5px;
            box-shadow: 0 0 9px rgba(0,0,0,.5);
        }
        .controls{
            position: absolute;
            right: 12px;
            font-size: 27px;
            top: 9px;
            cursor: pointer;
            transition: all 0.4s;
        }
        .controls:hover{
            color: #1f74c;
            transform: rotate(360deg);
        }
        
        .myTool-content{
            transition: all 0.4s;
            overflow: hidden;
        }
        .mytoolkeyipt{
            width: 130px;
            height: 22px !important;
            outline: none;
            padding: 0px 3px;
            border: 1px solid #757575FF;
            border-radius: 3px;
            font-size: 13px;
            padding: 0px 3px;
            margin-right: 5px;
            margin-top: 2px;
        }
        .addkey-btn{
            color: #fff;
            background: #1f74ca;
        }
        .removkey-btn{
            color: #000;
            display: none;
            background: #eee;
        }
        .handleKeyBtn{
            width: 54px;
            height: 24px;
            margin-top: 2px;
            border: none;
            font-size: 12px;
            border-radius: 2px;
            cursor: pointer;
        }
        
        .handleSpeedUp{
            background: orange;
            font-size: 12px;
            color: #fff;
            padding: 4px 15px;
            border-radius: 5px;
            margin: 0 auto;
            max-width: 80px;
            margin-top: 10px;
            cursor: pointer;
            text-align: center;
        }
        .ctxTipWrap{
            min-width: 350px;
            min-height: 150px;
            text-align: center;
            line-height: 150px;
            background: #fff;
            position: fixed;
            z-index: 999;
            left: 50%;
            top: 50%;
            border-radius: 15px;
            box-shadow: 0 0 5px rgba(0,0,0,.6);
            display:none;
        }
        .cxtsection{
          width: 100%;
          box-sizing: border-box;
          padding: 0 5px;
          margin-bottom: 2px;
        }
        .cxtsection .ctx-title{
          text-align: left;
          margin-top: 12px;
          font-size: 12px;
          color: #4e5969;
          border-left: 2px solid #1f74ca;
          border-radius: 2px;
          padding-left: 3px;
          line-height: 16px;
        }
        .ctxsection2{
          display: flex;
          justify-content: space-between;
        }
        .ctxsection2 .speed-select{
          width: 50%;
          height: 22px !important;
          outline: none;
          position: relative;
          top: 10px;
          border: 1px solid #757575FF;
          border-radius: 3px;
          padding: 0;
          padding-left: 10px;
        }
        .ctxsection3{
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .feedbackBtn{
            font-size: 13px;
            position: relative;
            top: 5px;
            cursor: pointer;
            color: #000;
        }
        a{
            text-decoration: none;
        }
    `;
    class GMTool {
        constructor() {
        }
        getValue(key) {
            let result = GM_getValue(key, null);
            return result;
        }
        setValue(key, value) {
            GM_setValue(key, value);
        }
        openInTab(url) {
            GM_openInTab(url, {active: true});
        }
    }
    const MyTool = new GMTool();
    let ElementObj = {};
    let Internetcourse = {
        zhihuishu: {id: 1, mainClass: 'zhihuishu', name: '\u667a\u6167\u6811', host: ['zhihuishu.com']},
        uxueyuan: {
            id: 2,
            mainClass: 'CTXCommon',
            name: 'U\u5b66\u9662',
            host: ['ua.ulearning.cn'],
            option: {'nodeListClass': '.page-name', 'activeClass': 'active'}
        },
        ningmengwencai: {
            id: 3,
            mainClass: 'ningmengwencai',
            name: '\u67e0\u6aac\u6587\u624d',
            host: ['www.wencaischool.net', 'study.wencaischool.net', 'learning.wencaischool.net']
        },
        xuexitong: {id: 4, mainClass: 'xuexitong', name: '\u5b66\u4e60\u901a', host: []},
        henanxinxueyuan: {
            id: 5,
            mainClass: 'henanxinxueyuan',
            name: '\u6cb3\u5357\u65b0\u95fb\u51fa\u7248\u5b66\u6821',
            host: ['218.29.91.122:81']
        },
        fujianshifan: {
            id: 6,
            mainClass: 'fujianshifan',
            name: '\u798f\u5efa\u5e08\u8303\u7ee7\u7eed\u6559\u80b2',
            host: ['neo.fjnu.cn']
        },
        gxcic: {
            id: 7,
            mainClass: 'gxcic',
            name: '\u5e7f\u897f\u4f4f\u623f\u57ce\u4e61\u5efa\u8bbe\u884c\u4e1a\u4e13\u4e1a\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u5e73\u53f0',
            host: ['jxjy.gxcic.net:9092']
        },
        luohexueyuan: {
            id: 8,
            mainClass: 'CTXCommon',
            name: '\u6f2f\u6cb3\u5b66\u9662',
            host: ['xxpt1.cloudwis.tech', 'lhycjy.cloudwis.tech', 'ycjy.cloudwis.tech'],
            option: {'nodeListClass': "li.catalog-box", 'activeClass': 'activeCss'}
        },
        mengxiangzaixian: {
            id: 9, mainClass: 'CTXCommon', name: '\u68a6\u60f3\u5728\u7ebf', host: ['www.mxdxedu.com'], option: {
                nodeListClass: '', _init: () => {
                    return new Promise(resolve => {
                        let interval = setInterval(() => {
                            ElementObj.$allTask = document.querySelectorAll('.el-card__body button i');
                            if (ElementObj.$allTask.length) {
                                void 0;
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                toolOption.CtxMain.getCurrentIndex();
                            }
                        }, 1000);
                    });
                }, getCurrentIndexByOption: () => {
                    return new Promise(resolve => {
                        let $addClass = document.querySelectorAll('.el-progress');
                        for (let i = 0; i < $addClass.length; i++) {
                            let item = $addClass[i];
                            let status = item.getAttribute('aria-valuenow');
                            if (parseInt(status) <= 99) {
                                item.click();
                                resolve(i);
                                break;
                            }
                        }
                    });
                }
            }
        },
        fjsf2: {id: 6, mainClass: 'fjsf2', name: 'fjnu', host: ['nto.fjnu.cn']},
        liangyijiaoyu: {
            id: 11,
            mainClass: 'liangyijiaoyu',
            name: '\u826f\u533b\u6559\u80b2',
            host: ['www.sclyedu.com']
        },
        zjzx: {
            id: 12,
            mainClass: 'zjzx',
            name: '\u5b89\u5fbd\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u5728\u7ebf',
            host: ['www.zjzx.ah.cn']
        },
        zxpxmr: {
            id: 13,
            mainClass: 'zxpxmr',
            name: '\u5168\u56fd\u6587\u5316\u548c\u65c5\u6e38\u5e02\u573a\u5728\u7ebf\u57f9\u8bad\u7cfb\u7edf',
            host: ['zxpx.mr.mct.gov.cn']
        },
        ggfw: {
            id: 14,
            mainClass: 'ggfw',
            name: '\u5e7f\u4e1c\u8fdc\u7a0b\u804c\u4e1a\u57f9\u8bad\u5e73\u53f0',
            host: ['ggfw.hrss.gd.gov.cn']
        },
        liangshizaixian: {id: 15, mainClass: 'liangshizaixian', name: '\u826f\u5e08\u5728\u7ebf', host: []},
        gzjxjy: {
            id: 16,
            mainClass: 'gzjxjy',
            name: '\u8d35\u5dde\u7701\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u5e73\u53f0',
            host: ['gzjxjy.gzsrs.cn', 'www.gzjxjy.gzsrs.cn'],
            runtype: -1
        },
        mingshiclass: {
            id: 17,
            mainClass: 'mingshiclass',
            name: '\u540d\u5e08\u8bfe\u5802',
            host: ['saas.mingshiclass.com']
        },
        qiangshi: {
            id: 18,
            mainClass: 'qiangshi',
            name: '\u5f3a\u5e08',
            host: ['zjdx-kfkc.webtrn.cn/', 'zjdx-kfkc.webtrn.cn']
        },
        lanzhgoulgjs: {
            id: 19,
            mainClass: 'lanzhgoulgjs',
            name: '\u5170\u5dde\u7406\u5de5\u5927\u5b66\u6559\u5e08',
            host: ['gs.chinamde.cn', 'gansu.chinamde.cn', 'jilin.chinamde.cn', 'ahptc.chinamde.cn', 'gc.chinamde.cn']
        },
        beijingjiaoshi: {
            id: 20,
            mainClass: 'beijingjiaoshi',
            name: '\u5317\u4eac\u6559\u5e08\u5b66\u4e60\u7f51',
            host: []
        },
        qingyangzgzjzj: {
            id: 21,
            mainClass: 'qingyangzgzjzj',
            name: '\u7518\u8083\u5e86\u9633\u7ee7\u7eed\u6559\u80b2',
            host: ['wws.zgzjzj.com', 'gsmtdzj.zgzjzj.com', 'qingyang.zgzjzj.com/', 'lzksj.zgzjzj.com', 'pl.zgzjzj.com', 'www.zgzjzj.com', 'bys.zgzjzj.com', 'www.zgzjzj.com']
        },
        lanzhouwenli: {
            id: 22,
            mainClass: 'lanzhouwenli',
            name: '\u5170\u5dde\u6587\u7406\u5b66\u9662\u7ee7\u7eed\u6559\u80b2',
            host: ['jxjypt.luas.edu.cn']
        },
        xuexituqiang: {id: 23, mainClass: 'xuexituqiang', name: '\u5b66\u4e60\u56fe\u5f3a', host: ['user.hzboolan.cn']},
        guojiazhihuijiaoyu: {
            id: 24,
            mainClass: 'guojiazhihuijiaoyu',
            name: '\u56fd\u5bb6\u667a\u6167\u6559\u80b2\u516c\u5171\u670d\u52a1\u5e73\u53f0',
            host: ['teacher.vocational.smartedu.cn', 'core.teacher.vocational.smartedu.cn']
        },
        lanzhouchengren: {
            id: 25,
            mainClass: 'lanzhouchengren',
            name: '\u5170\u5dde\u5927\u5b66\u6210\u4eba\u6559\u80b2',
            host: ['lms.hactcm.edu.cn', 'lzjtujxjyxylms.sccchina.net', 'zgkydxlms.sccchina.net', 'courseresource.zhihuishu.com', 'lzulms.chinaedu.net', 'cjlzulms.sccchina.net', 'cjlzu.sccchina.net']
        },
        tsbtchinamde: {
            id: 26,
            mainClass: 'tsbtchinamde',
            name: '\u5929\u6c34\u535a\u901a\u804c\u4e1a\u6280\u672f\u57f9\u8bad\u5b66\u6821',
            host: ['tsbt.chinamde.cn', 'btzjc.tsbtgs.cn', 'www.tsbtgs.cn']
        },
        henangongshe: {
            id: 27,
            mainClass: 'henangongshe',
            name: '\u6cb3\u5357\u7701\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u5b66\u4e60\u516c\u793e',
            host: [],
            remark: '\u548c\u5317\u4eac\u6559\u5e08\u4e00\u6837\u7684'
        },
        zjzjsrc: {
            id: 28,
            mainClass: 'zjzjsrc',
            name: '\u6d59\u6c5f\u7701\u4f4f\u623f\u548c\u57ce\u4e61\u5efa\u8bbe\u884c\u4e1a\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u7cfb\u7edf',
            host: ['zj.zjjsrc.cn']
        },
        lzrejxjy: {
            id: 29,
            mainClass: 'lzrejxjy',
            name: '\u5170\u5dde\u8d44\u6e90\u73af\u5883\u804c\u4e1a\u6280\u672f\u5927\u5b66',
            host: ['ddwh-kfkc.webtrn.cn', 'learn.courshare.cn', 'sfrz.cug.edu.cn', 'lzrejxjy.webtrn.cn', 'zjyxldpx-kfkc.webtrn.cn', 'ttedu-kfkc.webtrn.cn', 'hnssydw-kfkc.webtrn.cn', 'ptucjrc-kfkc.cep.webtrn.cn']
        },
        xuzhouyikedaxue: {
            id: 30,
            mainClass: 'xuzhouyikedaxue',
            name: '\u5f90\u5dde\u533b\u79d1\u5927\u5b66',
            host: ['cjyxljy.xzhmu.edu.cn', 'cj1047-kfkc.webtrn.cn']
        },
        xibeisfzyjy: {
            id: 31,
            mainClass: 'xibeisfzyjy',
            name: '\u897f\u5317\u5e08\u8303\u5927\u5b66\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u57fa\u5730',
            host: ['sdzj.nweduline.com', 'xbsd.lt-edu.net', 'preview.dccloud.com.cn']
        },
        zgrtvu: {
            id: 32,
            mainClass: 'zgrtvu',
            name: '\u81ea\u8d21\u5f00\u53d1\u5927\u5b66',
            host: ['zgrtvu.peixunyun.cn', 'ua.peixunyun.cn']
        },
        henandikuang: {
            id: 33,
            mainClass: 'henandikuang',
            name: '\u90d1\u5dde\u5e02\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u4e13',
            host: ['dkgc.zyk.ghlearning.com', 'zzszyk.user.hnhhlearning.com']
        },
        tazhuanjipx: {
            id: 34,
            mainClass: 'tazhuanjipx',
            name: '\u6cf0\u5b89\u5e02\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7eed\u6559\u80b2\u57f9\u8bad\u5e73\u53f0',
            host: ["ta.zhuanjipx.com", "sdta-zyk.yxlearning.com", "sdta-gxk.yxlearning.com"]
        },
        henanzhuanjipeixun: {
            id: 35,
            mainClass: 'henanzhuanjipeixun',
            name: '\u6cb3\u5357\u4e13\u6280\u57f9\u8bad',
            host: ['www.jxjyedu.org.cn']
        },
        zhejiangtjj: {
            id: 32,
            mainClass: 'zhejiangtjj',
            name: '\u6d59\u6c5f\u7edf\u8ba1\u6559\u80b2\u57f9\u8bad\u5728\u7ebf\u5b66\u4e60\u4e2d\u5fc3',
            host: ['edu.tjj.zj.gov.cn']
        },
        guizhouzxjxjy: {
            id: 37,
            mainClass: 'CTXCommon',
            name: '\u8d35\u5dde\u7ee7\u7eed\u6559\u80b2\u7f51',
            host: ['guizhou.zxjxjy.com'],
            option: {'nodeListClass': '.lcml_djj_list li', 'activeClass': 'on'}
        },
        jiangxizhipeizaixian: {
            id: 38,
            mainClass: 'jiangxizhipeizaixian',
            name: ' \u6c5f\u897f\u804c\u4e1a\u57f9\u8bad',
            host: ['jiangxi.zhipeizaixian.com']
        },
        anhuijixujyzx: {
            id: 39,
            mainClass: 'anhuijixujyzx',
            name: ' \u5b89\u5fbd\u7ee7\u7eed\u6559\u80b2\u5728\u7ebf',
            host: ['main.ahjxjy.cn']
        },
        lanzhoudxgs: {
            id: 40,
            mainClass: 'lanzhoudxgs',
            name: ' \u5170\u5dde\u5927\u5b66\u6559\u80b2\u57f9\u8bad',
            host: ['gsjzlzu.sccchina.net']
        },
        jidianshejijiaoyu: {
            id: 41,
            mainClass: 'jidianshejijiaoyu',
            name: '\u7ee7\u7eed\u6559\u80b2\u5b66\u4e60\u5e73\u53f0',
            host: ['sdjj.ct-edu.com.cn', 'scjylearning.o-learn.cn', 'gzmtulearning.o-learn.cn', 'xueyastu.o-learn.cn']
        },
        henanzhujianjy: {
            id: 42,
            mainClass: 'henanzhujianjy',
            name: '\u6cb3\u5357\u7701\u4f4f\u5efa\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2',
            host: ['zjpx.icitpower.com:8080']
        },
        sipingnengcun: {
            id: 43,
            mainClass: 'CTXCommon',
            name: '\u56db\u5e73\u519c\u6751\u6210\u4eba\u9ad8\u7b49\u4e13\u79d1\u5b66\u6821',
            host: ['www.jxuxue.com'],
            option: {
                'nodeListClass': '.videolist_item', openListenPlayTime: false, getCurrentIndexByOption() {
                    return new Promise(resolve => {
                        let activeClass = 'is-success';
                        let currentIndex = -1;
                        for (var i = 0; i < ElementObj.$allTask.length; i++) {
                            let item = ElementObj.$allTask[i];
                            let $pregress = item.querySelector('.el-progress');
                            if (!$pregress.classList.contains(activeClass)) {
                                resolve(i);
                                break;
                            }
                        }
                        if (currentIndex == -1) {
                            void 0;
                            return;
                        }
                        ElementObj.$allTask[currentIndex].click();
                    });
                }
            }
        },
        ycjyluteducn: {
            id: 44,
            mainClass: 'ycjyluteducn',
            name: '\u5170\u5dde\u7406\u5de5\u5927\u5b66\u73b0\u4ee3\u8fdc\u7a0b\u6559\u80b2\u5b66\u4e60\u5e73\u53f0',
            host: ['ycjy.lut.edu.cn', 'gdou.scnu.edu.cn', 'bjtudx-kfkc.webtrn.cn']
        },
        gdrcjxjyw: {
            id: 45,
            mainClass: 'gdrcjxjyw',
            name: '\u5e7f\u4e1c\u4eba\u624d\u7ee7\u7eed\u6559\u80b2\u7f51',
            host: ['gdjyw.ahsjxjy.com', 'www.rcjxjy.com']
        },
        shandongqlteacher: {
            id: 46,
            mainClass: 'CTXCommon',
            name: '\u5c71\u4e1c\u7701\u6559\u5e08\u6559\u80b2\u7f51',
            host: ['player.qlteacher.com'],
            option: {
                'nodeListClass': 'app-course-catalogue.ng-star-inserted .ant-list-items li',
                getCurrentIndexByOption() {
                    return new Promise(resolve => {
                        for (let i = 0; i < ElementObj.$allTask.length; i++) {
                            let item = ElementObj.$allTask[i];
                            let $icon = item.querySelector('div.align-items-center');
                            if (!$icon) {
                                resolve(i);
                            }
                        }
                    });
                }
            }
        },
        shixuetong: {
            id: 47,
            mainClass: 'shixuetong',
            name: '\u5e08\u5b66\u901a',
            host: ['cn202443009.stu.teacher.com.cn', 'tr202364028.stu.teacher.com.cn', 'pn202313066.stu.teacher.com.cn', 'tn202361055.stu.teacher.com.cn', 'cn202334050.stu.teacher.com.cn', 'pr202341083.stu.teacher.com.cn', 'cr202353008.stu.teacher.com.cn', 'cn202321002.stu.teacher.com.cn', 'pn202333116.stu.teacher.com.cn', 'cn202343141.stu.teacher.com.cn', 'cr202343116.stu.teacher.com.cn', 'cn202343132.stu.teacher.com.cn', 'cn202337049.stu.teacher.com.cn', 'tn202346009.stu.teacher.com.cn', 'tn202343108.stu.teacher.com.cn', "qr202310001.stu.teacher.com.cn"]
        },
        shandongenhualvyou: {
            id: 48,
            mainClass: 'shandongenhualvyou',
            name: '\u5c71\u4e1c\u7701\u6587\u5316\u548c\u65c5\u6e38\u5385\u7ee7\u7eed\u6559\u80b2\u516c\u5171\u670d\u52a1\u5e73\u53f0',
            host: ['123.232.43.194:8088']
        },
        gansugongwuyuan: {
            id: 49,
            mainClass: 'gansugongwuyuan',
            name: '\u7518\u8083\u7701\u516c\u52a1\u5458\u7f51\u7edc\u57f9\u8bad\u7f51',
            host: ['gsgwypx.com.cn', 'www.gsgwypx.com.cn:83', 'www.gsgwypx.com.cn:86', 'www.gsgwypx.com.cn:89', 'www.gsgwypx.com.cn:90', 'www.gsgwypx.com.cn:92', 'www.gsgwypx.com.cn:91']
        },
        wlmqcol: {
            id: 50,
            mainClass: 'wlmqcol',
            name: '\u4e4c\u9c81\u6728\u9f50\u5efa\u8bbe\u804c\u4e1a\u57f9\u8bad\u4e2d\u5fc3',
            host: ['www.wlmqcol.com']
        },
        shandongzhuanyejisu: {
            id: 51,
            mainClass: 'shandongzhuanyejisu',
            name: '\u5c71\u4e1c\u7701\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u516c\u9700\u8bfe\u5e73\u53f0',
            host: ['zjshpx-kfkc.webtrn.cn']
        },
        chongqingzhuanye: {
            id: 52,
            mainClass: 'chongqingzhuanye',
            name: '\u91cd\u5e86\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2',
            host: ['mooc1.cqrspx.cn', 'cqrl.21tb.com']
        },
        jiaoyuganbuwang: {
            id: 53,
            mainClass: 'jiaoyuganbuwang',
            name: '\u4e2d\u56fd\u6559\u80b2\u5e72\u90e8\u7f51\u7edc\u5b66\u9662',
            host: ['study.enaea.edu.cn']
        },
        zhijiaoyun: {
            id: 54,
            mainClass: 'shandongzhuanyejisu',
            name: '\u804c\u6559\u4e91',
            host: ['course.icve.com.cn']
        },
        zhijiaoyun2: {
            id: 54,
            mainClass: 'zhijiaoyun2',
            name: '\u804c\u6559\u4e91 \u7248\u672c2',
            host: ['zjy2.icve.com.cn']
        },
        zaixianxuexi: {
            id: 55,
            mainClass: 'zaixianxuexi',
            name: '\u5728\u7ebf\u5b66\u4e60',
            host: ['rsjapp.mianyang.cn']
        },
        anquanshengchanzx: {
            id: 56,
            mainClass: 'anquanshengchanzx',
            name: '\u5317\u4eac\u5e02\u5e94\u7528\u804c\u4e1a\u6280\u80fd\u57f9\u8bad',
            host: ['www.zaixian100f.com']
        },
        guojiakaifangdaxue: {
            id: 57,
            mainClass: 'guojiakaifangdaxue',
            name: '\u56fd\u5bb6\u5f00\u653e\u5927\u5b66',
            host: ['lms.ouchn.cn', 'xczxzdbf.moodle.qwbx.ouchn.cn', 'moodle.syxy.ouchn.cn']
        },
        jjjxjy: {
            id: 58,
            mainClass: 'jjjxjy',
            name: '\u4e5d\u6c5f\u5b66\u9662\u7ee7\u7eed\u6559\u80b2\u5b66\u9662\u6210\u6559\u5e73\u53f0',
            host: ['hunau.web2.superchutou.com', 'jjxy.web2.superchutou.com', 'fskjxy.web2.superchutou.com']
        },
        csustcj: {
            id: 59,
            mainClass: 'CTXCommon',
            name: '\u6c5f\u897f\u79d1\u6280\u5b66\u9662,\u957f\u6c99\u7406\u5de5\u5927\u5b66\u9ad8\u7b49\u5b66\u5386\u7ee7\u7eed\u6559\u80b2\u6559\u5b66\u7ba1\u7406\u5e73\u53f0',
            host: ['csustcj.edu-edu.com.cn', 'cws.edu-edu.com'],
            option: {'nodeListClass': '.ivu-tree-children .render-content__video', 'activeClass': 'activeVideo'}
        },
        xiangongyedx: {
            id: 60,
            mainClass: 'xiangongyedx',
            name: '\u897f\u5b89\u5de5\u4e1a\u5927\u5b66',
            host: ['nwu.168wangxiao.com', 'xatu.168wangxiao.com', 'md.168wangxiao.com', 'xawl.168wangxiao.com']
        },
        hebeiganbu: {
            id: 62,
            mainClass: 'hebeiganbu',
            name: '\u6cb3\u5317\u5e72\u90e8\u7f51\u7edc\u5b66\u9662',
            host: ['hebgb.gwypx.com.cn', 'www.hebgb.gov.cn']
        },
        gdedujsxx: {
            id: 63,
            mainClass: 'gdedujsxx',
            name: '\u5e7f\u4e1c\u7701\u6559\u5e08\u7ee7\u7eed\u6559\u80b2\u4fe1\u606f\u7ba1\u7406\u5e73\u53f0',
            host: ['jsglpt.gdedu.gov.cn', 'jsxx.gdedu.gov.cn']
        },
        wsjkrczyjn: {
            id: 57,
            mainClass: 'CTXCommon',
            name: '\u536b\u751f\u5065\u5eb7\u4eba\u624d\u804c\u4e1a\u6280\u80fd\u57f9\u517b\u5b66\u4e60\u5e73\u53f0',
            host: ['learn.wjrc.shjy.ouchn.edu.cn'],
            option: {'nodeListClass': '.setionItem', 'activeClass': 'active'}
        },
        zhuzhouteacher: {
            id: 64,
            mainClass: 'zhuzhouteacher',
            name: '\u682a\u6d32\u6559\u5e08\u6559\u80b2\u7f51\u7edc\u5b66\u9662',
            host: ['www.zhuzhouteacher.com']
        },
        zhuanyejishuryjxjy: {
            id: 65,
            mainClass: 'zhuanyejishuryjxjy',
            name: '\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u7f51',
            host: ['gp.chinahrt.com']
        },
        yinghuaxuetang: {
            id: 65,
            mainClass: 'yinghuaxuetang',
            name: '\u82f1\u534e\u5b66\u5802',
            host: ['mooc.ycust.com', 'mooc.wuhues.com']
        },
        yidiantong: {
            id: 66,
            mainClass: 'CTXCommon',
            name: '\u4e00\u70b9\u901a',
            host: ['www.yidiankai.net'],
            option: {
                'nodeListClass': '.keshi', openListenPlayTime: false, getCurrentIndexByOption() {
                    return new Promise(resolve => {
                        for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                            let isDone = ElementObj.$allTask[i];
                            if (isDone.classList.contains('active')) {
                                resolve(i);
                                break;
                            }
                        }
                    });
                }, nextClass: 'a'
            }
        },
        shanghaikaifangdx: {
            id: 67,
            mainClass: 'shanghaikaifangdx',
            name: '\u4e0a\u6d77\u5f00\u653e\u5927\u5b66',
            host: ['l.shou.org.cn']
        },
        gzgbjy: {
            id: 68,
            mainClass: 'gzgbjy',
            name: '\u5e7f\u5dde\u5e02\u5e72\u90e8\u57f9\u8bad\u7f51\u7edc\u5b66\u9662',
            host: ['gzgbjy.gzswdx.gov.cn']
        },
        jixujiaoyuzaixian: {
            id: 69,
            mainClass: 'jixujiaoyuzaixian',
            name: '\u7ee7\u7eed\u6559\u80b2\u5728\u7ebf',
            host: ['ce.jllpa.cn']
        },
        guizhoujianshezyjs: {
            id: 70,
            mainClass: 'guizhoujianshezyjs',
            name: '\u8d35\u5dde\u7701\u5efa\u8bbe\u884c\u4e1a\u804c\u4e1a\u6280\u80fd\u7ba1\u7406\u4e2d\u5fc3\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u57fa\u5730',
            host: ['ware.cdeledu.com']
        },
        zaixian100f: {
            id: 71,
            mainClass: 'anquanshengchanzx',
            name: '\u5728\u7ebf\u58f9\u4f70\u5206',
            host: ['www.zaixian100f.com']
        },
        gzteacher: {
            id: 72,
            mainClass: 'gzteacher',
            name: '\u5e7f\u5dde\u5e02\u4e2d\u5c0f\u5b66\u6559\u5e08\u7ee7\u7eed\u6559\u80b2\u7f51',
            host: ['study.gzteacher.com']
        },
        moocxinyingzao: {id: 73, mainClass: 'moocxinyingzao', name: '\u65b0\u8425\u9020', host: ['mooc.xinyingzao.cn']},
        zhejiangzjelib: {
            id: 74,
            mainClass: 'zhejiangzjelib',
            name: '\u6d59\u6c5f\u6587\u5316\u5e72\u90e8\u7f51\u7edc\u5b66\u9662',
            host: ['train.wht.zjelib.cn']
        },
        jlnkylllnet: {
            id: 77,
            mainClass: 'jlnkylllnet',
            name: '\u5409\u6797\u7701\u519c\u79d1\u9662\u4e13\u4e1a\u6280\u672f\u4eba\u5458',
            host: ['jlnky.lllnet.cn']
        },
        dongbeishifandaxue: {
            id: 76,
            mainClass: 'dongbeishifandaxue',
            name: '\u4e1c\u5317\u5e08\u8303\u5927\u5b66\u4e2d\u5c0f\u5b66\u6559\u5e08\u7f51\u7edc\u57f9\u8bad\u5e73\u53f0',
            host: ['cn202341126.stu.t-px.cn', 'cn202341125.stu.t-px.cn']
        },
        quanguomeotan: {
            id: 78,
            mainClass: 'CTXCommon',
            name: '\u5168\u56fd\u7164\u70ad\u884c\u4e1a\u73b0\u4ee3\u8fdc\u7a0b\u6559\u80b2\u57f9\u8bad\u7f51',
            host: ['www.coaledu.net'],
            option: {'nodeListClass': '.row1 a.subset-class', 'activeClass': 'on'}
        },
        qzjystudy: {
            id: 79,
            mainClass: 'qzjystudy',
            name: '\u6d4e\u5b81\u5e02\u9ad8\u7ea7\u804c\u4e1a\u5b66\u6821(\u7701\u7ea7\u7ee7\u7eed\u6559\u80b2\u57fa\u5730)',
            host: ['jnrcpx.qzjystudy.com']
        },
        jsjxjypt: {
            id: 80,
            mainClass: 'CTXCommon',
            name: '\u57fa\u7840\u6559\u80b2\u8fdb\u4fee\u7f51',
            host: ['www.jsjxjypt.com'],
            option: {'nodeListClass': '.videoRight ul li', 'activeClass': 'li1'}
        },
        GlivePro: {
            id: 81,
            mainClass: 'GlivePro',
            name: '\u57fa\u7840\u6559\u80b2\u8fdb\u4fee\u7f51',
            host: ['glivepro.gaodun.com', 'cloud.gaodun.com']
        },
        gaodengxueli: {
            id: 82,
            mainClass: 'gaodengxueli',
            name: '\u9ad8\u7b49\u5b66\u5386\u7ee7\u7eed\u6559\u80b2\u7f51\u7edc\u5b66\u4e60\u5e73\u53f0',
            host: ['kc.jxjypt.cn'],
            option: {'nodeListClass': '.course-list-txt dd i', 'activeClass': 'fa-youtube-play'}
        },
        henanzhuanjizaixian: {
            id: 83,
            mainClass: 'henanzhuanjizaixian',
            name: '\u6cb3\u5357\u4e13\u6280\u5728\u7ebf',
            host: ['hnzj.user.ghlearning.com']
        },
        hunannmdxs: {
            id: 84,
            mainClass: 'hunannmdxs',
            name: '\u6e56\u5357\u519c\u6c11\u5927\u5b66\u751f',
            host: ['study.ouchn.cn']
        },
        hexuezaixianjxjyzx: {
            id: 85,
            mainClass: 'CTXCommon',
            name: '\u548c\u5b66\u5728\u7ebf,\u9752\u5c9b\u5927\u5b66',
            host: ['student.jxjyzx.qdu.edu.cn', 'student.hexuezx.cn'],
            option: {
                'nodeListClass': '.list_text:not(.color_catalog)',
                'activeClass': 'bai_color_text_icon',
                'afterPlayEnd': () => {
                    return new Promise(resolve => {
                        setTimeout(() => {
                            let $btn = document.querySelector('.el-message-box .el-button--primary');
                            $btn === null || $btn === void 0 ? void 0 : $btn.click();
                            resolve(true);
                        }, 3000);
                    });
                }
            }
        },
        shenixue: {
            id: 86,
            mainClass: 'CTXCommon',
            name: '\u6df1i\u5b66',
            host: ['www.zhi-niao.com'],
            option: {
                'nodeListClass': '.jss299', 'activeClass': 'jss300', 'playNext': () => {
                    return new Promise(resolve => {
                        setTimeout(() => {
                            ElementObj.$allTask = document.querySelectorAll('.jss299');
                            for (let item of ElementObj.$allTask) {
                                let isdone = item.querySelector('.jss303');
                                if (!isdone) {
                                    item.click();
                                    void 0;
                                    setTimeout(() => {
                                        toolOption.CtxMain.handleClickSpeedUp();
                                    }, 3000);
                                    break;
                                }
                            }
                        }, 3000);
                    });
                }
            }
        },
        dongaokauji: {
            id: 87,
            mainClass: 'dongaokauji',
            name: '\u4e1c\u5965\u4f1a\u8ba1\u7ee7\u7eed\u6559\u80b2',
            host: ['jxjycwweb.dongao.cn', 'study.dongao.cn']
        },
        btzjpx: {
            id: 88,
            mainClass: 'CTXCommon',
            name: '\u5305\u5934\u5e02\u4f4f\u5efa\u884c\u4e1a\u4ece\u4e1a\u4eba\u5458\u5728\u7ebf\u5b66\u4e60\u7cfb\u7edf',
            host: ['www.btzjpx.com'],
            option: {
                'nodeListClass': '.classBox', 'openListenPlayStatus': false, 'getCurrentIndexByOption': () => {
                    return new Promise(resolve => {
                        for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                            let item = ElementObj.$allTask[i];
                            if (item.style.background == 'rgb(240, 247, 254)') {
                                resolve(i);
                            }
                        }
                    });
                }
            }
        },
        bainianshuren: {id: 89, name: '\u767e\u5e74\u6811\u4eba', mainClass: "bainianshuren", host: ['js.cc-edu.cn']},
        dyyxlearning: {
            id: 90,
            name: '\u4e1c\u8425\u5e02\u7ee7\u7eed\u6559\u80b2\u7f51\u4e13\u4e1a\u79d1\u76ee\u57f9\u8bad\u5e73\u53f0',
            mainClass: "dyyxlearning",
            host: ['sddy.zyk.yxlearning.com']
        },
        hebeijiaoshijiaoyuwang: {
            id: 91,
            name: '\u6cb3\u5317\u6559\u5e08\u6559\u80b2\u7f51',
            mainClass: "hebeijiaoshijiaoyuwang",
            host: ['qy18.gpa.enetedu.com']
        },
        shangdongganbu: {
            id: 92,
            name: '\u5c71\u4e1c\u5e72\u90e8\u7f51\u7edc\u5b66\u9662',
            mainClass: "shangdongganbu",
            host: ['gbwlxy.dtdjzx.gov.cn']
        },
        yunketang: {
            id: 93,
            name: '\u4e91\u8bfe\u5802',
            mainClass: "yunketang",
            host: ['01wx.net', 'www.01wx.net'],
            option: {'nodeListClass': '.el-collapse-item__content div.file-item', 'activeClass': 'file-item-active'}
        },
        guojiazhongxiaoxue: {
            id: 94,
            name: '\u56fd\u5bb6\u4e2d\u5c0f\u5b66\u667a\u6167\u6559\u80b2\u5e73\u53f0',
            mainClass: "guojiazhongxiaoxue",
            host: ['basic.smartedu.cn']
        },
        huaxiajiaoshiyanpei: {
            id: 95,
            name: '\u6cb3\u5357\u534e\u590f\u57fa\u7840\u6559\u80b2\u5b66\u9662',
            mainClass: "huaxiajiaoshiyanpei",
            host: ['dc.huaxiajiaoshiyanpei.com']
        },
        zhelixuexi: {id: 96, name: '\u6d59\u91cc\u5b66\u4e60', mainClass: "zhelixuexi", host: ['www.zjce.gov.cn']},
        fhswifer: {id: 97, name: 'S\u4e91\u8bfe\u5802\u7f51\u6821', mainClass: "fhswifer", host: ['msykt.begowx.com']},
        shdfuruuwsor: {
            id: 98,
            name: '\u9752\u5c9b\u5e02\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u5e73\u53f0',
            mainClass: 'CTXCommon',
            host: ['www.qdjxjy.com.cn'],
            option: {
                'nodeListClass': '.simple-list li',
                'openListenPlayStatus': false,
                'openListenPlayTime': true,
                '_init': () => {
                    return new Promise(resolve => {
                        let interval = setInterval(() => {
                            let $elwrappe = document.querySelector('.el-message-box__wrapper');
                            if ($elwrappe && $elwrappe.style.display != 'none') {
                                let $elbtn = document.querySelector('.el-message-box__btns .el-button--primary');
                                $elbtn.click();
                            }
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            ElementObj.$allTask = document.querySelectorAll('.simple-list li');
                            if (ElementObj.$allTask.length > 0) {
                                clearInterval(interval);
                                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                                    let item = ElementObj.$allTask[i].querySelectorAll('div div')[2];
                                    if (item.innerText != '\u5b8c\u6210') {
                                        let $cur = ElementObj.$allTask[i].querySelector('.el-tooltip').style.color;
                                        if ($cur != 'rgb(255, 165, 0)') {
                                            ElementObj.$allTask[i].click();
                                        }
                                        toolOption.CtxMain.pdPlayFn(location.href);
                                        resolve(i);
                                        break;
                                    }
                                }
                            }
                        });
                    });
                },
                'playNext': () => {
                    return new Promise(resolve => {
                        for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                            let $cur = ElementObj.$allTask[i].querySelector('.el-tooltip').style.color;
                            if ($cur == 'rgb(255, 165, 0)') {
                                let item = ElementObj.$allTask[i].querySelectorAll('div div')[2];
                                if (item.innerText != '\u5b8c\u6210') {
                                    toolOption.CtxMain.pdPlayFn(location.href);
                                    return false;
                                }
                                ElementObj.$allTask[i + 1].click();
                                resolve(true);
                                break;
                            }
                        }
                    });
                },
                'listenRebortFn': () => {
                    let $status = document.querySelector('.el-tooltip[style]').parentElement.querySelectorAll('div div')[1];
                    if ($status.innerText == '\u5b8c\u6210') {
                        location.reload();
                    }
                }
            }
        },
        cnjiewhr34iuiehs: {
            id: 99,
            name: '\u9ed1\u9f99\u6c5f\u7701\u7f51\u7edc\u52a9\u5b66\u5e73\u53f0',
            mainClass: 'CTXCommon',
            host: ['hljzhuxue.zikao.com.cn', 'xh.hljzhuxue.com'],
            option: {
                'nodeListClass': '.menu ul>li dl', 'openListenPlayStatus': false,
                'getCurrentIndexByOption': () => {
                    return new Promise(resolve => {
                        resolve(1);
                    });
                }, 'playNext': () => {
                    return new Promise(resolve => {
                        let preVideoSrc = MyTool.getValue('preVideoSrc');
                        if (ElementObj.$video.src == preVideoSrc) {
                            toolOption.CtxMain.play();
                        } else {
                            MyTool.setValue('preVideoSrc', ElementObj.$video.src);
                            setTimeout(() => {
                                location.reload();
                            }, 3000);
                        }
                    });
                }
            }
        },
        rrhisdgf283y7jvdf: {
            id: 100,
            name: '\u5b81\u590f\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u5728\u7ebf\u57f9\u8bad\u5e73\u53f0',
            mainClass: 'rrhisdgf283y7jvdf',
            host: ['gp.chinahrt.com', 'videoadmin.chinahrt.com']
        },
        f6872: {
            id: 101,
            name: '\u9686\u6cf0\u8fbe\u57f9\u8bad',
            mainClass: 'f6872',
            host: ['study.tjtcact.com', 'www.tjtcact.com']
        },
        a782: {
            id: 102,
            name: '\u6cb3\u5317\u7701\u4e13\u4e1a\u6280\u672f\u4eba\u5458\u7ee7\u7eed\u6559\u80b2\u7ba1\u7406\u7cfb\u7edf',
            mainClass: 'rrhisdgf283y7jvdf',
            host: ['webzyjs.heb12333.cn', 'contentzyjs.heb12333.cn', 'edu.chinahrt.com']
        },
        su862v: {
            id: 103,
            name: '\u4e2d\u5c71\u6559\u5e08\u7814\u4fee\u7f51',
            mainClass: 'CTXCommon',
            host: ['m.zsjsjy.com'],
            option: {
                'nodeListClass': '#m-chapter-ul li a',
                'openListenPlayStatus': false,
                'openListenPlayTime': true,
                'activeClass': 'z-crt'
            }
        },
        bfuew28: {
            id: 105,
            name: '\u82cf\u5dde\u4e13\u4e1a\u6280\u672f\u4eba\u624d\u6559\u80b2\u7f51',
            mainClass: 'CTXCommon',
            host: ['zjjspx-kfkc.webtrn.cn'],
            option: {
                nodeListClass: '', openListenPlayStatus: false, videoEle: () => {
                    return new Promise(resolve => {
                        let count = 0;
                        let Timer = setInterval(() => {
                            count += 1;
                            ElementObj.$video = document.querySelectorAll('iframe')[2].contentDocument.querySelector('iframe').contentDocument.querySelector('video');
                            if (!!ElementObj.$video) {
                                clearInterval(Timer);
                                resolve(1);
                                return;
                            }
                            if (count >= 7) {
                                clearInterval(Timer);
                                resolve(2);
                            }
                        }, 1000);
                    });
                }, _init: () => {
                    return new Promise(resolve => {
                        let interval = setInterval(() => {
                            let $iframe = document.querySelectorAll('iframe')[2];
                            if ($iframe) {
                                ElementObj.$allTask = $iframe.contentDocument.querySelectorAll('.s_point');
                                if (ElementObj.$allTask.length > 0) {
                                    clearInterval(interval);
                                    ElementObj.$handleSpeedUp.style.display = 'none';
                                    toolOption.CtxMain.getCurrentIndex();
                                }
                            }
                        });
                    });
                }, getCurrentIndexByOption: () => {
                    return new Promise(resolve => {
                        for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                            let item = ElementObj.$allTask[i];
                            if (item.classList.contains('s_pointerct')) {
                                resolve(i);
                                break;
                            }
                        }
                    });
                }, listenRebortFn: () => {
                    let $btn = document.querySelector('.layui-layer-btn0');
                    $btn === null || $btn === void 0 ? void 0 : $btn.click();
                    ElementObj.$video.play();
                }
            }
        },
        sd199: {
            id: 104,
            name: '\u6c88\u9633\u5efa\u7b51\u5927\u5b66,\u9752\u4e66\u5b66\u5802',
            mainClass: 'CTXCommon',
            host: ['degree.qingshuxuetang.com'],
            option: {
                nodeListClass: '', openListenPlayStatus: false, videoEle: () => {
                    return new Promise(resolve => {
                        let count = 0;
                        let Timer = setInterval(() => {
                            count += 1;
                            ElementObj.$video = document.querySelectorAll('video')[1];
                            if (!!ElementObj.$video) {
                                clearInterval(Timer);
                                resolve(1);
                                return;
                            }
                            if (count >= 7) {
                                clearInterval(Timer);
                                resolve(2);
                            }
                        }, 1000);
                    });
                }, _init: () => {
                    return new Promise(resolve => {
                        let interval = setInterval(() => {
                            ElementObj.$allTask = document.querySelectorAll('#lessonList ul li ul li a');
                            if (ElementObj.$allTask.length > 0) {
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                toolOption.CtxMain.getCurrentIndex();
                            }
                        });
                    });
                }, getCurrentIndexByOption: () => {
                    return new Promise(resolve => {
                        let $cur = document.querySelector('.learn-title').innerText;
                        for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                            let item = ElementObj.$allTask[i];
                            if (item.innerText == $cur) {
                                resolve(i);
                                break;
                            }
                        }
                    });
                }
            }
        },
        f13v: {
            id: 106,
            mainClass: 'CTXCommon',
            name: '\u6cb3\u5317\u673a\u7535\u804c\u4e1a\u6280\u672f\u5b66\u9662',
            host: ['hbjd.cj-edu.com'],
            option: {nodeListClass: '.el-menu li', activeClass: 'is-active', openListenPlayStatus: false}
        },
        g32f: {
            id: 107,
            mainClass: 'CTXCommon',
            name: '\u534e\u5317\u7535\u529b\u5927\u5b66',
            host: ['hbdldxpx.sccchina.net'],
            option: {
                nodeListClass: '.bb_e8edf0_dash div[id]',
                activeClass: 'cur',
                openListenPlayStatus: false,
                _init: () => {
                    return new Promise(resolve => {
                        let interval = setInterval(() => {
                            ElementObj.$video = document.querySelector('video');
                            if (ElementObj.$video) {
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                toolOption.CtxMain.handleClickSpeedUp();
                            }
                        });
                    });
                },
                playNext: () => {
                    return new Promise(resolve => {
                        let $nextBtn = document.querySelector('a.btItem.Next');
                        $nextBtn.click();
                    });
                }
            }
        },
        ss10: {
            id: 107,
            mainClass: 'CTXCommon',
            name: '\u77f3\u5bb6\u5e84\u94c1\u9053\u5927\u5b66\u7ee7\u7eed\u6559\u80b2',
            host: ['jxjy.stdu.edu.cn'],
            option: {
                nodeListClass: '.menu_body span>a.chapter', _init: () => {
                    return new Promise(resolve => {
                        let timer = setInterval(() => {
                            var _a, _b, _c, _d;
                            ElementObj.$parentNodes = (_b = (_a = document.querySelector('iframe')) === null || _a === void 0 ? void 0 : _a.contentDocument) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.class-wrapper');
                            if (ElementObj.$parentNodes && ElementObj.$parentNodes.length) {
                                clearInterval(timer);
                                let old = localStorage.getItem('curClassName');
                                for (let i = 0; i < ElementObj.$parentNodes.length; i++) {
                                    let item = ElementObj.$parentNodes[i];
                                    let name = item.querySelector('.kcmc').innerText.trim();
                                    if (name == old) {
                                        let nextBtn = ElementObj.$parentNodes[i + 1].querySelector('input.btn');
                                        nextBtn.click();
                                        break;
                                    }
                                }
                                resolve(true);
                            }
                            if (location.pathname == '/student/IndexWlkc_BootStrap.aspx') {
                                clearInterval(timer);
                                ElementObj.$parentNodes = (_d = (_c = document.querySelector('iframe')) === null || _c === void 0 ? void 0 : _c.contentDocument) === null || _d === void 0 ? void 0 : _d.querySelectorAll('.menu_body span>a[title]');
                                if (ElementObj.$parentNodes && ElementObj.$parentNodes.length) {
                                    ElementObj.$parentNodes[0].click();
                                }
                                resolve(true);
                            }
                            ElementObj.$allTask = document.querySelectorAll('.menu_body span>a.chapter');
                            if (ElementObj.$allTask.length) {
                                clearInterval(timer);
                                let curClassName = document.querySelector('.glyphicon-home').innerText.trim();
                                localStorage.setItem('curClassName', curClassName);
                                toolOption.CtxMain.getCurrentIndex();
                                resolve(true);
                            }
                        }, 1000);
                    });
                }, getCurrentIndexByOption: () => {
                    return new Promise(resolve => {
                        for (let i = 0; i < ElementObj.$allTask.length; i++) {
                            let item = ElementObj.$allTask[i];
                            if (item.style.color == "rgb(51, 122, 183)") {
                                resolve(i);
                                break;
                            }
                        }
                    });
                }, playFn: that => __awaiter(this, void 0, void 0, function* () {
                    let wlkcID = /wlkcID=(.+)&wlk/.exec(location.search)[1];
                    let wlkckkID = /wlkckkID=(.+)&/.exec(location.search)[1];
                    let zjid = /zjid=(.+)/.exec(location.search)[1];
                    let learnTime = document.querySelector('#lbl_videoTime').innerText.trim();
                    let __VIEWSTATE = unsafeWindow.__VIEWSTATE.value;
                    let __VIEWSTATEGENERATOR = unsafeWindow.__VIEWSTATEGENERATOR.value;
                    let __EVENTVALIDATION = unsafeWindow.__EVENTVALIDATION.value;
                    if (!wlkcID || !wlkckkID || !zjid || !learnTime || !__VIEWSTATE || !__VIEWSTATEGENERATOR || !__EVENTVALIDATION) {
                        void 0;
                        void 0;
                        return;
                    }
                    yield fetch(`http://jxjy.stdu.edu.cn/student/BootStrap_Video.aspx?wlkcID=${wlkcID}&wlkckkID=${wlkckkID}&zjid=${zjid}`, {
                        "credentials": "include",
                        "headers": {
                            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0",
                            "Accept": "*/*",
                            "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
                            "X-Requested-With": "XMLHttpRequest",
                            "X-MicrosoftAjax": "Delta=true",
                            "Cache-Control": "no-cache",
                            "Content-Type": "application/x-www-form-urlencoded; charset=utf-8"
                        },
                        "body": `ScriptManager1=UpdatePanel%7CbtnYXXXSJ&__EVENTTARGET=&__EVENTARGUMENT=&postLearnTime=${Number(learnTime)}&shijiLearnTime=${Number(learnTime)}&learnTime=${Number(learnTime)}&videoState=pause&__VIEWSTATE=${encodeURIComponent(__VIEWSTATE)}&__VIEWSTATEGENERATOR=${__VIEWSTATEGENERATOR}&__EVENTVALIDATION=${encodeURIComponent(__EVENTVALIDATION)}&__ASYNCPOST=true&btnYXXXSJ=`,
                        "method": "POST",
                        "mode": "cors"
                    });
                    void 0;
                    toolOption.CtxMain.playNext(that);
                }), playNext: that => {
                    void 0;
                    return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                        if (that.currentIndex >= ElementObj.$allTask.length - 1) {
                            location.href = 'http://jxjy.stdu.edu.cn/student/IndexTemplate_BootStrap.aspx';
                            return;
                        }
                        yield sleep(2000);
                        that.currentIndex += 1;
                        let $nextBtn = ElementObj.$allTask[that.currentIndex];
                        $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                        setTimeout(() => {
                            that.handleClickSpeedUp();
                        }, 2000);
                    }));
                }
            }
        },
        rs01: {id: 108, mainClass: 'rs01', name: '\u4f18\u8bfe\u5728\u7ebf', host: ['www.uooc.net.cn']},
        das01: {
            id: 109,
            name: '\u534e\u4e2d\u5e08\u8303\u5927\u5b66\u6559\u5e08\u7814\u4fee\u5e73\u53f0',
            mainClass: 'CTXCommon',
            host: ['hzsdadmin.zhihuiteacher.com'],
            option: {
                nodeListClass: 'ul>li:first-child', activeClass: 'list', openListenPlayStatus: false, _init: () => {
                    return new Promise(resolve => {
                        let timer = setInterval(() => {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            if (location.pathname == '/online/learn') {
                                let $btn = document.querySelector('.toStudy');
                                if ($btn) {
                                    clearInterval(timer);
                                    setTimeout(() => {
                                        window.close();
                                    }, 1000 * 10);
                                    $btn.click();
                                    resolve(true);
                                    return;
                                }
                            }
                            if (location.pathname == '/admin/lock/Study') {
                                ElementObj.$allTask = document.querySelectorAll('ul>li:first-child');
                                if (ElementObj.$allTask.length) {
                                    clearInterval(timer);
                                    toolOption.CtxMain.getCurrentIndex();
                                    resolve(true);
                                    return;
                                }
                            }
                        }, 500);
                    });
                }, listenRebortFn: () => {
                    let $ipt = document.querySelector('.layui-input');
                    if ($ipt) {
                        let num = $ipt.getAttribute('data-num3');
                        $ipt.value = num;
                        document.querySelector('.layui-layer-btn0').click();
                    }
                }, playNext: that => {
                    return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                        void 0;
                        if (that.currentIndex >= ElementObj.$allTask.length - 1) {
                            location.href = 'http://hzsdadmin.zhihuiteacher.com/online/learn';
                            return;
                        }
                        yield sleep(2500);
                        that.currentIndex += 1;
                        let $nextBtn = ElementObj.$allTask[that.currentIndex];
                        $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                        setTimeout(() => {
                            that.handleClickSpeedUp();
                        }, 5000);
                    }));
                }
            }
        },
        aa101: {
            id: 110,
            name: '\u798f\u5efa\u5e08\u8303\u5927\u5b66\u9ad8\u7b49\u6559\u80b2\u81ea\u5b66\u8003\u8bd5\u7f51\u7edc\u52a9\u5b66\u5e73\u53f0',
            mainClass: 'CTXCommon',
            host: ['xuexi.zikao365.com'],
            option: {nodeListClass: '.level2>a', activeClass: 'cur'}
        },
        sdf1: {
            id: 111,
            name: '\u6cb3\u5357\u79d1\u6280\u804c\u4e1a\u5927\u5b66',
            mainClass: 'CTXCommon',
            host: ['havust.jijiaox.com'],
            option: {
                nodeListClass: '.ml_2 li',
                activeClass: 'cur',
                nextClass: '.littletit',
                openListenPlayTime: false,
                getCurrentIndexByOption: () => {
                    return new Promise(resolve => {
                        for (let i = 0; i < ElementObj.$allTask.length; i++) {
                            let item = ElementObj.$allTask[i].querySelector('.littlebot');
                            let $status = item.querySelector('.el-progress');
                            let title = ElementObj.$allTask[i].querySelector('.elli').innerText.trim();
                            if ($status && title.indexOf('\u5728\u7ebf\u4f5c\u4e1a') == -1 && title.indexOf('\u4e60\u9898\u6d4b\u9a8c') == -1 && title.indexOf('Test') == -1) {
                                resolve(i);
                                break;
                            }
                        }
                    });
                },
                listenRebortFn: () => {
                    var _a;
                    let $cur = document.querySelector('._active.elli');
                    let $parent = (_a = $cur === null || $cur === void 0 ? void 0 : $cur.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
                    let $icon = $parent.querySelector('.el-icon-circle-check');
                    let txt = $cur.innerText.trim();
                    if ($icon || txt == '\u5728\u7ebf\u4f5c\u4e1a' || txt.indexOf('\u4e60\u9898\u6d4b\u9a8c') != -1 || txt.indexOf('Test') != -1) {
                        toolOption.CtxMain.playNext();
                    }
                }
            }
        },
        sdf3: {
            id: 112,
            name: '\u5409\u6797\u7701\u4e13\u4e1a\u6280\u672f\u4eba\u5458',
            mainClass: 'CTXCommon',
            host: ['jlzj.ylxue.net'],
            option: {nodeListClass: '#classes li', activeClass: 'li_current_index', openListenPlayTime: false}
        },
        dsfs: {
            id: 112,
            name: '\u5317\u534e\u5927\u5b66\u515a\u6821\u6559\u80b2\u57f9\u8bad\u7cfb\u7edf',
            mainClass: 'CTXCommon',
            host: ['wldx.beihua.edu.cn'],
            option: {
                nodeListClass: '#content a', _init() {
                    return new Promise(resolve => {
                        let timer = setInterval(() => {
                            ElementObj.$allTask = document.querySelectorAll('#content a');
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            if (ElementObj.$allTask.length) {
                                clearInterval(timer);
                                let preClassName = MyTool.getValue('preClassName');
                                if (!preClassName) {
                                    MyTool.setValue('homeUrl', location.href);
                                    ElementObj.$allTask[0].click();
                                } else {
                                    for (let i = 0; i < ElementObj.$allTask.length; i++) {
                                        let item = ElementObj.$allTask[i];
                                        if (preClassName == item.innerText.trim()) {
                                            MyTool.setValue('homeUrl', location.href);
                                            ElementObj.$allTask[i + 1].click();
                                            break;
                                        }
                                    }
                                }
                                resolve(true);
                            }
                            let btn = document.querySelector('.item-title.label h1 a');
                            if (btn && location.pathname == '/m/Exam/Student/startStudy') {
                                clearInterval(timer);
                                btn.click();
                                resolve(true);
                            }
                            if (location.pathname == '/m/Exam/Student/startStudy') {
                                clearInterval(timer);
                                toolOption.CtxMain.pdPlayFn(location.href);
                                resolve(true);
                            }
                        }, 500);
                    });
                }, playNext(that) {
                    return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
                        let til = document.querySelector('.startStudy-title>p');
                        let curClassName = til === null || til === void 0 ? void 0 : til.innerText.trim();
                        MyTool.setValue('preClassName', curClassName);
                        let $btn = document.querySelector('.bottom-pc-btn button');
                        $btn.click();
                        yield sleep(2000);
                        setTimeout(() => {
                            location.reload();
                        }, 3000);
                        document.querySelector('.modal-button.modal-button-bold').click();
                    }));
                }
            }
        },
        bsd11: {
            id: 114,
            name: '\u6cb3\u5357\u6559\u5e08\u57f9\u8bad\u7f51',
            mainClass: 'CTXCommon',
            host: ['www.teachersedu.cn'],
            option: {
                nodeListClass: 'a.title', getCurrentIndexByOption() {
                    return new Promise((resolve, reject) => {
                        for (let i = 0; i < ElementObj.$allTask.length; i++) {
                            let item = ElementObj.$allTask[i];
                            if (item.parentElement.classList.contains('active')) {
                                resolve(i);
                                break;
                            }
                        }
                    });
                }
            }
        }
    };
    let speedArr = [1, 2, 3, 5, 10, 16];
    let toolOption = {accelerator: 1, CtxMain: null, SchoolType: -1};
    class Main {
        constructor() {
            this.studentType = 1;
            this.speedStatus = 0;
            this.isAdaptive = 1;
            this.listenVidoeStatusTimer = null;
            this.init();
        }
        init() {
            setTimeout(() => {
                let _schoolInfoColletion = localStorage.getItem('schoolInfoColletion');
                if (_schoolInfoColletion) {
                } else {
                    this.colletionSchoolData();
                }
            }, 2500);
        }
        updateSpeedElement(num) {
            if (this.speedStatus == 0) return;
            ElementObj.$video.playbackRate = num;
        }
        handleClickSpeedUp(callback, isOpenListen = true) {
            return __awaiter(this, void 0, void 0, function* () {
                let key = localStorage.getItem('mytoolkey') || MyTool.getValue('mytoolkey');
                if (key) {
                    this.speedStatus = 1;
                    let result = yield fetchData({
                        method: 'GET',
                        url: bserUrl + `/speedup?toolkey=${key}&canuse=${toolOption.SchoolType}`
                    });
                    if (result.code == 200) {
                        this.speedStatus = 1;
                        this.isAdaptive = 1;
                        toolOption.CtxMain.play();
                    } else {
                        this.isAdaptive = 0;
                        showTip(`🔉🔉🔉${result.message}`, 5000, true);
                        return;
                    }
                    if (isOpenListen) {
                        this.randomListen();
                    }
                } else if (!key) {
                    void 0;
                    window.open(basehost);
                } else {
                    void 0;
                }
            });
        }
        handleAddKey(callback) {
            return __awaiter(this, void 0, void 0, function* () {
                if (!ElementObj.$ipt.value) {
                    window.open(basehost);
                    return;
                }
                let result = yield fetchData({
                    method: 'GET',
                    url: bserUrl + '/vertifykey?toolkey=' + ElementObj.$ipt.value
                });
                if (result.data.count > 0) {
                    localStorage.setItem('mytoolkey', ElementObj.$ipt.value);
                    localStorage.setItem('_localSpeed', toolOption.accelerator.toString());
                    MyTool.setValue('mytoolkey', ElementObj.$ipt.value);
                    callback(ElementObj.$ipt.value);
                } else {
                    void 0;
                }
            });
        }
        handleRemoveKey() {
            MyTool.setValue('mytoolkey', null);
            localStorage.removeItem('mytoolkey');
            localStorage.removeItem('_localSpeed');
            ElementObj.$title3.innerText = '\u7ed1\u5b9akey:';
            ElementObj.$mytoolkey.style.display = 'none';
            ElementObj.$ctxsection2.style.display = 'none';
            ElementObj.$nokey.style.display = 'block';
            ElementObj.$ipt.style.display = 'block';
            ElementObj.$addKey.style.display = 'block';
            ElementObj.$removeKey.style.display = 'none';
            ElementObj.$handleSpeedUp.style.background = 'orange';
            ElementObj.$handleSpeedUp.innerText = '\u70b9\u51fb\u52a0\u901f';
            this.updateSpeedElement(1);
        }
        stopSpeedUp() {
            this.speedStatus = 0;
            toolOption.CtxMain.updateSpeedElement(1);
            ElementObj.$handleSpeedUp.style.background = 'orange';
            ElementObj.$handleSpeedUp.innerText = '\u70b9\u51fb\u52a0\u901f';
            showTip(`🔉\u505c\u6b62\u52a0\u901f\u6210\u529f`);
        }
        handleChangeCtxSpeed(e) {
            let key = localStorage.getItem('mytoolkey');
            if (key) {
                if (this.isAdaptive == 0) {
                    void 0;
                    return;
                }
                let whiteList = speedArr;
                let s = Number(e);
                if (e && whiteList.includes(s)) {
                    toolOption.accelerator = s;
                    localStorage.setItem('_localSpeed', s.toString());
                    if (ElementObj.$video) {
                        ElementObj.$video.playbackRate = s;
                    }
                }
            } else if (!key) {
                void 0;
                window.open(basehost);
            } else {
                void 0;
            }
        }
        colletionSchoolData() {
            return __awaiter(this, void 0, void 0, function* () {
                let result = yield fetchData({
                    method: 'GET',
                    url: bserUrl + '/colletionschool?schoolType=' + toolOption.SchoolType
                });
                if (result.code == 200) {
                    localStorage.setItem('schoolInfoColletion', `${new Date()}`);
                }
            });
        }
        randomListen() {
            setTimeout(() => {
                let key = localStorage.getItem('mytoolkey');
                if (ElementObj.$video) {
                    if (!ElementObj.$video.paused && !key) {
                        ElementObj.$video.pause();
                    }
                }
            }, 5000);
        }
        listenVidoeStatus($video, callback) {
            if (!$video) return;
            let count = 0;
            this.listenVidoeStatusTimer = setInterval(() => {
                if ($video.readyState < 4) {
                    void 0;
                    count += 1;
                    if (count >= 20) {
                        location.reload();
                    }
                }
                let status = $video.paused;
                if (status) {
                    count += 1;
                    void 0;
                    if (typeof callback == 'function') {
                        if (count >= 20) {
                            location.reload();
                        } else {
                            callback();
                        }
                    } else {
                        void 0;
                    }
                }
            }, 5000);
        }
        changeHtml($wrap) {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$ctxstatsbox = document.querySelector('.ctxstatsbox');
                if (!ElementObj.$ctxstatsbox) {
                    let _style = `
                width: 100%;
                height: 100%;
                background: #eae9e9;
                position: absolute;
                z-index: 999;
                overflow: scroll;
                top: 0;
                padding-left: 10px;
            `;
                    let dom = document.createElement('div');
                    dom.setAttribute('class', 'ctxstatsbox');
                    dom.setAttribute('style', _style);
                    $wrap.appendChild(dom);
                    yield sleep(300);
                    ElementObj.$ctxstatsbox = document.querySelector('.ctxstatsbox');
                }
                this.addInfo('🔉\u521d\u59cb\u5316\u5df2\u5b8c\u6210,\u6b63\u5728\u64ad\u653e');
            });
        }
        addInfo(str, type) {
            let $ctxstatsbox_lis = document.querySelectorAll('.ctxstatsbox_li');
            if ($ctxstatsbox_lis.length >= 15) {
                ElementObj.$ctxstatsbox.innerHTML = '';
            }
            let li = `<li class="ctxstatsbox_li" style="color: ${type == 0 ? '#f01414' : '#000'};line-height: 30px;font-size: 16px;list-style: none;">${str}</li>`;
            ElementObj.$ctxstatsbox.innerHTML += li;
        }
        listenPageHide() {
            let timer3;
            document.addEventListener("visibilitychange", () => {
                if (document.hidden) {
                    void 0;
                    let count = 0;
                    timer3 = setInterval(() => {
                        count += 1;
                        if (count >= 5) {
                            this.addInfo('⚠️⚠️⚠️\u8bf7\u52ff\u957f\u65f6\u95f4\u9690\u85cf\u8be5\u5b66\u4e60\u9875\u9762', 0);
                        }
                    }, 5000);
                } else {
                    clearInterval(timer3);
                    void 0;
                }
            });
        }
        pdPlayFn(className) {
            let localData = MyTool.getValue('spanClassName') || [];
            if (localData.indexOf(className) != -1) {
                toolOption.CtxMain.play();
            } else {
                localData.push(className);
                MyTool.setValue('spanClassName', localData);
                this.handleClickSpeedUp();
            }
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelectorAll('video')[0];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
    }
    class Answer {
        constructor() {
            this.EleObj = {};
            this.init();
        }
        init() {
            this.EleObj.$numbers = document.querySelectorAll('.number');
            this.EleObj.$close = document.querySelectorAll('.el-dialog__header>button')[4];
            if (this.EleObj.$numbers.length) {
                this.eachTopic();
            }
        }
        eachTopic() {
            return __awaiter(this, void 0, void 0, function* () {
                var $topicItems = document.querySelectorAll('.topic-item');
                $topicItems[1].click();
                sleep(1100);
                if (this.EleObj.$numbers.length > 1) {
                    this.EleObj.$numbers[1].click();
                    setTimeout(() => {
                        var $topicItems2 = document.querySelectorAll('.topic-item');
                        $topicItems2[1].click();
                        this.EleObj.$close.click();
                        ElementObj.$video.play();
                    }, 1000);
                } else {
                    this.EleObj.$close.click();
                    ElementObj.$video.play();
                }
            });
        }
    }
    class CTXCommon extends Main {
        constructor(options) {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.nodeListClass = options.nodeListClass;
            this.activeClass = options.activeClass || '';
            this.nextClass = options.nextClass || '';
            this.openListenPlayStatus = typeof options.openListenPlayStatus == 'boolean' ? options.openListenPlayStatus : true;
            this.openListenPlayTime = typeof options.openListenPlayTime == 'boolean' ? options.openListenPlayTime : false;
            this.afterPlayEnd = options.afterPlayEnd;
            this.getCurrentIndexByOption = options.getCurrentIndexByOption;
            this.playNext = options.playNext ? options.playNext : this.playNext;
            this.listenRebortFn = options.listenRebortFn;
            this.getVideoDom = typeof options.videoEle == 'function' ? options.videoEle : this.getVideoDom;
            this.playFn = options.playFn;
            options._init ? options._init() : this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll(this.nodeListClass);
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.getCurrentIndexByOption) {
                    this.currentIndex = yield this.getCurrentIndexByOption();
                } else {
                    for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let isDone = ElementObj.$allTask[i];
                        if (isDone.classList.contains(this.activeClass)) {
                            this.currentIndex = i;
                            break;
                        }
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelectorAll('video')[0];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (this.playFn) {
                    this.playFn(this);
                } else {
                    if (studyType == 1) {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        setTimeout(() => {
                            ElementObj.$video.playbackRate = toolOption.accelerator;
                        }, 3000);
                        if (this.openListenPlayStatus) {
                            this.listenVidoeStatus(ElementObj.$video, () => {
                                ElementObj.$video.volume = 0;
                                ElementObj.$video.play();
                            });
                        }
                        if (this.openListenPlayTime) {
                            yield this.changeHtml(ElementObj.$video.parentElement);
                            this.listenPlayTime();
                        }
                        this.listenRebort();
                        ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                            showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                            this.playNext(this);
                            void 0;
                        }));
                        ElementObj.$video.addEventListener('pause', () => {
                            setTimeout(() => {
                                ElementObj.$video.volume = 0;
                                ElementObj.$video.play();
                            }, 1500);
                        });
                    }
                    if (studyType == 2) {
                        showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                        yield sleep(3000);
                        this.playNext(this);
                    }
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                if (this.listenRebortFn && typeof this.listenRebortFn == 'function') {
                    this.listenRebortFn();
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                if (this.nextClass) {
                    $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector(this.nextClass);
                }
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                if (this.afterPlayEnd) {
                    yield this.afterPlayEnd();
                }
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
        listenPlayTime() {
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                var _a, _b;
                count += 1;
                let currentTime = (_a = ElementObj.$video) === null || _a === void 0 ? void 0 : _a.currentTime;
                let time = (currentTime / 60).toFixed(2);
                let durtion = (_b = ElementObj.$video) === null || _b === void 0 ? void 0 : _b.duration;
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${durtion / 60}\u5206\u949f`);
            }), 5000);
        }
    }
    class fujianshifan extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this.currentMidiaType = 'video';
            this._init();
        }
        _init() {
            let $allchapters = document.querySelectorAll('.section');
            new Promise(resolve => {
                $allchapters.forEach((item, index) => {
                    item.childNodes[0].click();
                    sleep(20);
                    if (index == $allchapters.length - 1) {
                        resolve(true);
                    }
                });
            }).then(res => {
                setTimeout(() => {
                    ElementObj.$allStudyTask = document.querySelectorAll('.section li');
                    this.getCurrentIndex();
                }, 2000);
            });
        }
        getCurrentIndex() {
            let $activeVideo = document.querySelector('.active');
            let currentId = $activeVideo.id;
            ElementObj.$allStudyTask.forEach((item, index) => {
                if (item.id == currentId) {
                    this.currentIndex = index;
                }
            });
        }
        play() {
            ElementObj.$allStudyTask[this.currentIndex].click();
            setTimeout(() => {
                ElementObj.$video = document.querySelector('video');
                if (ElementObj.$video) {
                    this.currentMidiaType = 'video';
                    this.handlePlayVideo();
                } else {
                    this.currentMidiaType = 'doc';
                    this.handlePlayDoc();
                }
            }, 2000);
        }
        nextPlay() {
            sleep(1000);
            this.currentIndex += 1;
            this.handleClickSpeedUp();
        }
        handlePlayVideo() {
            this.updateSpeedElement(toolOption.accelerator);
            ElementObj.$video.play();
            ElementObj.$handleSpeedUp.style.background = '#f01414';
            ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
            ElementObj.$video.addEventListener('ended', () => {
                this.nextPlay();
            }, false);
        }
        handlePlayDoc() {
            var _a;
            ElementObj.$handleSpeedUp.style.background = '#f01414';
            ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
            let totalDoc = (_a = document.querySelector('#lg-counter-all')) === null || _a === void 0 ? void 0 : _a.innerHTML;
            let $nextBtn = document.querySelector('.lg-actions>.lg-next');
            let downCount = Number(totalDoc);
            let interval = setInterval(() => {
                if (downCount <= 0 || !$nextBtn) {
                    clearInterval(interval);
                    this.nextPlay();
                    return;
                }
                $nextBtn.click();
                downCount -= 1;
            }, 1000);
        }
    }
    class henanxinxueyuan extends Main {
        constructor() {
            super();
            this.currentIndex = 0;
            this.taskLength = 0;
            this._init();
        }
        _init() {
            ElementObj.$allTask = document.querySelectorAll('.collapseCont');
            this.taskLength = ElementObj.$allTask.length;
            this.getCurrentIndex();
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(2000);
                ElementObj.$video.volume = 0;
                ElementObj.$video = document.querySelector('video');
                this.updateSpeedElement(toolOption.accelerator);
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => {
                    this.currentIndex += 1;
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 1500);
                }, false);
            });
        }
    }
    henanxinxueyuan.ctxname = '\u6cb3\u5357\u65b0\u95fb\u5b66\u9662';
    class ningmengwencai extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this._init();
        }
        _init() {
            ElementObj.$allTask = document.querySelectorAll('.childSection');
            this.taskLength = ElementObj.$allTask.length;
            this.getCurrentIndex();
        }
        getCurrentIndex() {
            ElementObj.$allTask.forEach((item, index) => {
                let hasClass = item.className.includes('active');
                if (hasClass) {
                    this.currentIndex = index;
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(2000);
                ElementObj.$video = document.querySelector('video');
                this.updateSpeedElement(toolOption.accelerator);
                let $tip1Btn = document.querySelector('.layui-layer-btn0');
                if ($tip1Btn) {
                    $tip1Btn.click();
                }
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => {
                    this.currentIndex += 1;
                    if (this.currentIndex > ElementObj.$allTask.length) {
                        return;
                    }
                    let $saveBtn = document.querySelector("#saveBtn");
                    $saveBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 2500);
                }, false);
            });
        }
    }
    class gxcic extends Main {
        constructor() {
            super();
            this.parentIndex = 0;
            this.currentIndex = 0;
            this.currentTaskEle = null;
            this.taskLength = 0;
            this.timer = null;
            this._init();
        }
        _init() {
            let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTaskParentNodes = document === null || document === void 0 ? void 0 : document.querySelectorAll('.ant-collapse-item');
                ElementObj.$allTask = document === null || document === void 0 ? void 0 : document.querySelectorAll('.course-detail-content-section-info-text');
                if (ElementObj.$allTask.length && ElementObj.$allTaskParentNodes.length) {
                    clearInterval(interval);
                    this.getCurrentIndex();
                }
            }), 1000);
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTaskParentNodes.forEach((item, index) => {
                    let hasClass = item.className.includes('ant-collapse-item-active');
                    if (hasClass) {
                        this.parentIndex = index;
                    }
                });
                ElementObj.$allTask.forEach((item, index) => {
                    let hasClass = item.className.includes('course-detail-current');
                    if (hasClass) {
                        this.currentIndex = index;
                        this.currentTaskEle = item;
                    }
                });
                if (!!this.currentTaskEle) {
                    showTip('\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u52a0\u901f');
                }
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.play();
                this.updateSpeedElement(toolOption.accelerator);
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.lisRebort();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    let nextTask = this.currentTaskEle.parentElement.parentElement.nextSibling;
                    if (nextTask) {
                        this.currentIndex += 1;
                        this.currentTaskEle = nextTask;
                        this.currentTaskEle.click();
                    } else {
                        this.parentIndex += 1;
                        this.currentIndex += 1;
                        var _$parentEle = ElementObj.$allTaskParentNodes[this.parentIndex].lastChild.firstChild.firstChild;
                        _$parentEle.click();
                        yield sleep(1500);
                        ElementObj.$allTask = document === null || document === void 0 ? void 0 : document.querySelectorAll('.course-detail-content-section-info-text');
                        this.currentTaskEle = ElementObj.$allTask[this.currentIndex];
                        this.currentTaskEle.click();
                    }
                    yield sleep(5000);
                    this.handleClickSpeedUp();
                }), false);
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.setAttribute('muted', 'muted');
                        ElementObj.$video.play();
                    }, 1500);
                });
            });
        }
        lisRebort() {
            this.timer = setInterval(() => {
                let $confirm1 = document.querySelector('.sdk-ia-message-confirm');
                $confirm1 === null || $confirm1 === void 0 ? void 0 : $confirm1.click();
                let $ver = document.querySelector('.sdk-ia-number-verify-image');
                if (!!$ver) {
                    let $ipt = document.querySelector('.sdk-ia-number-input input');
                    $ipt.value = $ver.innerText;
                    let $btn = document.querySelector('.sdk-ia-number-button');
                    $btn.click();
                }
            }, 1000 * 5);
        }
    }
    class fjsf2 extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = 0;
            this.currentIndex = 0;
            this.currentMidiaType = 'video';
            this._init();
        }
        _init() {
            ElementObj.$allTaskParentNodes = document === null || document === void 0 ? void 0 : document.querySelectorAll('.section');
            let $allchapters = document.querySelectorAll('.section');
            this.getCurrentIndex();
        }
        getCurrentIndex() {
            ElementObj.$allTaskParentNodes.forEach((item, index) => {
                let $lis = item.querySelectorAll('li');
                $lis === null || $lis === void 0 ? void 0 : $lis.forEach(($ele, key) => {
                    if ($ele.className.includes('active')) {
                        this.parentIndex = index;
                        this.currentIndex = key;
                        ElementObj.$allTask = $lis;
                    }
                });
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(2000);
                let $clseDocBtn = document.querySelector('.lg-close');
                if (!$clseDocBtn) {
                    this.currentMidiaType = 'video';
                    this.handlePlayVideo();
                } else {
                    this.currentMidiaType = 'doc';
                    this.handlePlayDoc();
                }
            });
        }
        nextPlay() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(1000);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    this.parentIndex += 1;
                    this.currentIndex = 0;
                    if (this.parentIndex >= ElementObj.$allTaskParentNodes.length) {
                        void 0;
                        return;
                    }
                    let $lis = ElementObj.$allTaskParentNodes[this.parentIndex].querySelectorAll('li');
                    if ($lis.length) {
                        ElementObj.$allTask = $lis;
                    } else {
                        ElementObj.$allTaskParentNodes[this.parentIndex].childNodes[0].click();
                        yield sleep(300);
                        ElementObj.$allTask = ElementObj.$allTaskParentNodes[this.parentIndex].querySelectorAll('li');
                    }
                } else {
                    this.currentIndex += 1;
                }
                this.handleClickSpeedUp();
            });
        }
        handlePlayVideo() {
            ElementObj.$video = document.querySelector('video');
            this.updateSpeedElement(toolOption.accelerator);
            ElementObj.$video.play();
            ElementObj.$handleSpeedUp.style.background = '#f01414';
            ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
            ElementObj.$video.addEventListener('ended', () => {
                this.nextPlay();
            }, false);
        }
        handlePlayDoc() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                yield sleep(1500);
                let $lgToggle = document.querySelector('.lg-toggle-thumb');
                let downCount = 1;
                let currentPlayIndex = 0;
                if ($lgToggle) {
                    $lgToggle.click();
                    let totalDoc = document.querySelectorAll('.lg-thumb-item');
                    downCount = totalDoc.length;
                }
                yield sleep(2000);
                let $cleseBtn = document.querySelector('.lg-close');
                $cleseBtn.click();
                this.nextPlay();
            });
        }
    }
    class zjzx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this._init();
        }
        _init() {
            ElementObj.$allTask = document.querySelectorAll('.nLi');
            this.getCurrentIndex();
        }
        getCurrentIndex() {
            ElementObj.$allTask.forEach((item, index) => {
                let $li = item.querySelector('li');
                if ($li.classList.contains('active')) {
                    this.currentIndex = index;
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$video = document.querySelector('video');
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => {
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                });
            });
        }
    }
    class zxpxmr extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this._init();
        }
        _init() {
            window.alert = function () {
                return false;
            };
            let interval = setInterval(() => {
                ElementObj.$allTask = document.querySelectorAll('.kecheng_play_mian_list_item');
                if (ElementObj.$allTask.length) {
                    showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u52a0\u901f', 3000);
                    clearInterval(interval);
                    this.getCurrentIndex();
                }
            }, 1000);
        }
        getCurrentIndex() {
            let activeClass = 'kecheng_play_mian_list_item_progress_playing';
            ElementObj.$allTask.forEach((item, index) => {
                if (item.classList.contains(activeClass)) {
                    this.currentIndex = index;
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$video = document.querySelector('video');
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.simulationClick();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    clearInterval(this.timer);
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextTaskBtn = document.querySelector("#btn-sure");
                    yield sleep(2000);
                    $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.play();
                    }, 1000);
                });
            });
        }
        simulationClick() {
            var e = new KeyboardEvent('keydown', {'keyCode': 8, 'which': 8});
            this.timer = setInterval(() => {
                try {
                    document.dispatchEvent(e);
                } catch (e) {
                }
            }, 1000 * 3);
        }
    }
    class ggfw extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this._init();
        }
        _init() {
            ElementObj.$parentNodes = document.querySelectorAll('.learnList');
            if (ElementObj.$parentNodes.length) {
                this.selectOneClass();
            }
            new Promise(resolve => {
                let interval = setInterval(() => {
                    ElementObj.$allTask = document.querySelectorAll('.courseItem');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                        resolve(true);
                    }
                }, 1000);
            }).then(res => {
                ElementObj.$handleSpeedUp.style.display = 'none';
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    ElementObj.$video = document.querySelector('video');
                    ElementObj.$video.setAttribute('muted', 'muted');
                    ElementObj.$video.setAttribute('autoplay', 'autoplay');
                    let $volumeicon = document.querySelector('.volume-icon');
                    $volumeicon.click();
                    yield sleep(500);
                    $volumeicon.click();
                    if (!!ElementObj.$video) {
                        clearInterval(interval);
                        showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u81ea\u52a8\u64ad\u653e', 3000);
                        yield sleep(300);
                        let $playBtn = document.querySelector('.prism-big-play-btn');
                        void 0;
                        $playBtn.click();
                        yield this.handleClickSpeedUp();
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            let activeClass = 'active';
            ElementObj.$allTask.forEach((item, index) => {
                if (item.classList.contains(activeClass)) {
                    this.currentIndex = index;
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(3000);
                localStorage.setItem('ctx-status', '');
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                }, 1500);
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    clearInterval(this.timer);
                    ElementObj.$allTask = document.querySelectorAll('.courseItem');
                    yield sleep(300);
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        localStorage.setItem('ctx-status', 'done');
                        let $saveBtn = document.querySelector('.sc-box');
                        $saveBtn.click();
                        yield sleep(1500);
                        let $backBtn = document.querySelectorAll('.menu-box ul li')[3];
                        $backBtn.click();
                        yield sleep(2000);
                        window.location.reload();
                        return;
                    }
                    this.currentIndex += 1;
                    this.handleClickSpeedUp();
                    yield sleep(2500);
                    ElementObj.$allTask[this.currentIndex].click();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.play();
                    }, 1000);
                });
            });
        }
        selectOneClass() {
            let T = setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                clearInterval(T);
                let $label1 = document.querySelector('#tab-second');
                $label1.click();
                yield sleep(2500);
                ElementObj.$parentNodes = document.querySelectorAll('.course_item');
                yield sleep(200);
                ElementObj.$parentNodes[0].click();
            }), 3000);
        }
    }
    class mingshiclass extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = 0;
            this.parentIndex = -1;
            this._init();
        }
        _init() {
            let isParent = document.querySelector('.title-box .setMealName');
            if (!!isParent) {
                this.selectOneClass();
            } else {
                this.initPlayPage();
            }
        }
        initPlayPage() {
            new Promise(resolve => {
                let interval = setInterval(() => {
                    ElementObj.$allTask = document.querySelectorAll('.course-list .course-item');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                        resolve(true);
                    }
                }, 1000);
            }).then(res => {
                return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                    ElementObj.$video = document.querySelector('video');
                    yield sleep(3000);
                    if (!!ElementObj.$video) {
                        showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,\u64ad\u653e\u5f00\u59cb', 3000);
                        resolve(true);
                    }
                }));
            }).then(res => {
                this.handleClickSpeedUp();
            });
        }
        getCurrentIndex() {
            let activeClass = 'play-status';
            ElementObj.$allTask.forEach((item, index) => {
                let $dom1 = item.querySelector('.course-name');
                if ($dom1.classList.contains(activeClass)) {
                    this.currentIndex = index;
                }
            });
            void 0;
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$video = document.querySelector('video');
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.setAttribute('autoplay', 'autoplay');
                ElementObj.$video.volume = 0;
                yield sleep(3500);
                let $play_btn = document.querySelector('.play_btn');
                $play_btn.click();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        let $back = document.querySelector('.back-img');
                        sleep(200);
                        $back.click();
                        setTimeout(() => {
                            location.reload();
                        }, 3000);
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextTaskBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(5000);
                    $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 2000);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.play();
                    }, 3000);
                });
            });
        }
        selectOneClass() {
            let T = setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                clearInterval(T);
                ElementObj.$parentNodes = document.querySelectorAll('.content-box>.course-list>div');
                yield sleep(200);
                ElementObj.$parentNodes.forEach((item, index) => {
                    let $course = item.querySelector('.course_item_brief');
                    let $lastChild = $course.lastChild;
                    let _innertext = $lastChild.innerText;
                    if (_innertext == '\u672a\u5b8c\u6210' && this.parentIndex == -1) {
                        this.parentIndex = index;
                        return true;
                    }
                });
                yield sleep(200);
                void 0;
                ElementObj.$parentNodes[this.parentIndex].click();
                setTimeout(() => {
                    this.initPlayPage();
                }, 2500);
            }), 1000);
        }
    }
    mingshiclass.ctxid = 17;
    class qiangshi extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            try {
                let _win1 = document.querySelectorAll('iframe')[2].contentWindow;
                let _win2 = _win1.document.querySelectorAll('iframe')[0].contentWindow;
                this._document = _win2.document;
            } catch (e) {
            }
            let interval = setInterval(() => {
                try {
                    let _win1 = document.querySelector('.contentIframe').contentWindow;
                    ElementObj.$allTask = _win1.document.querySelectorAll('.s_point');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                } catch (e) {
                }
            }, 1000);
        }
        getCurrentIndex() {
            let activeClass = 'done_icon_show';
            ElementObj.$allTask.forEach((item, index) => {
                let $item = item.querySelector('.item_done_icon');
                if (!$item.classList.contains(activeClass) && this.currentIndex == -1) {
                    this.currentIndex = index;
                }
            });
            void 0;
            if (this.currentIndex == -1) {
                void 0;
                return;
            }
            showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e', 3000);
            setTimeout(() => {
                this.handleClickSpeedUp();
            }, 4500);
            ElementObj.$handleSpeedUp.style.display = 'none';
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    try {
                        let _document = document.querySelectorAll('iframe')[2].contentDocument.querySelectorAll('iframe')[0].contentDocument;
                        ElementObj.$video = _document === null || _document === void 0 ? void 0 : _document.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(Timer);
                            resolve(true);
                        }
                    } catch (e) {
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(3500);
                yield this.getVideoDom();
                void 0;
                ElementObj.$video.volume = 0;
                let $playBtn = this._document.querySelector('#player_pause');
                $playBtn.click();
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = localStorage.getItem('_localSpeed') || toolOption.accelerator;
                }, 3000);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    this.currentIndex += 1;
                    showTip('⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 3500);
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4000);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        ElementObj.$video.playbackRate = localStorage.getItem('_localSpeed') || toolOption.accelerator;
                    }, 1500);
                });
            });
        }
    }
    qiangshi.ctxid = 18;
    class lanzhgoulgjs extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                let $nodes1 = document.querySelectorAll('.chapterlist .drop p');
                let $nodes2 = document.querySelectorAll('.chapterlist .videoList p');
                if ($nodes1.length || $nodes2.length) {
                    clearInterval(interval);
                    ElementObj.$allTask = $nodes1.length ? $nodes1 : $nodes2;
                    this.getCurrentIndex();
                }
            }), 1000);
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let arr = [];
                ElementObj.$allTask.forEach((item, index) => {
                    let $class_percent = item.querySelector('.class_percent');
                    if (!!$class_percent) {
                        let status = $class_percent.innerText;
                        arr.push(parseInt(status));
                    } else {
                        arr.push(0);
                    }
                });
                arr.reverse();
                for (var i = 0; i <= arr.length - 1; i++) {
                    if (arr[i] < 98) {
                        void 0;
                        this.currentIndex = arr.length - i - 1;
                        break;
                    }
                }
                void 0;
                if (this.currentIndex == 0) {
                    ElementObj.$allTask[1].querySelector('a').click();
                    yield sleep(4000);
                    ElementObj.$allTask = document.querySelectorAll('.chapterlist .drop p');
                    yield sleep(200);
                    let status = ElementObj.$allTask[0].querySelector('.class_percent').innerText;
                    if (parseInt(status) < 98) {
                        this.currentIndex = 0;
                    } else {
                        void 0;
                        return;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,5s\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                void 0;
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    let videosrc = ElementObj.$video.src;
                    let $iframe = document.querySelector('iframe');
                    void 0;
                    void 0;
                    if (!!videosrc) {
                        clearInterval(Timer);
                        resolve(1);
                    }
                    if ($iframe) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                let $nextP = ElementObj.$allTask[this.currentIndex];
                let $nextBtn = $nextP.querySelector('a');
                yield sleep(300);
                $nextBtn.click();
                yield sleep(3000);
                let result = yield this.getVideoDom();
                if (result == 1) {
                    clearInterval(this.listenVidoeStatusTimer);
                    ElementObj.$video.setAttribute('muted', 'muted');
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    ElementObj.$video.play();
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    let $wrap = document.querySelector('.ckplayer-ckplayer');
                    this.changeHtml($wrap);
                    this.reloadPage();
                    this.listenPageHide();
                    this.listenAbnormal(1);
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        location.reload();
                    }));
                }
                if (result == 2) {
                    let $thirdplayer = document.querySelector("#thirdplayer");
                    this.changeHtml($thirdplayer);
                    this.reloadPage();
                    this.listenPageHide();
                    this.listenAbnormal(0);
                }
            });
        }
        reloadPage() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        listenAbnormal(type) {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            setInterval(() => {
                count += 1;
                if (type == 0) {
                    this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60`);
                } else {
                    let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                    this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
                }
                let $layuilayerbtn0 = document.querySelector('.layui-layer-btn0');
                if (!!$layuilayerbtn0) {
                    location.reload();
                    return;
                }
            }, 5000);
        }
        changeHtml($wrap) {
            return __awaiter(this, void 0, void 0, function* () {
                let _style = `
                width: 796px;
                height: 545px;
                background: #eae9e9;
                position: absolute;
                z-index: 10;
                overflow: scroll;
                top: 0;
                padding-left: 10px;
            `;
                let dom = document.createElement('div');
                dom.setAttribute('class', 'ctxstatsbox');
                dom.setAttribute('style', _style);
                $wrap.appendChild(dom);
                yield sleep(300);
                ElementObj.$ctxstatsbox = document.querySelector('.ctxstatsbox');
                this.addInfo('🔉\u521d\u59cb\u5316\u5df2\u5b8c\u6210,\u6b63\u5728\u64ad\u653e');
                this.addInfo('⚠️⚠️⚠️\u8bfe\u7a0b\u91c7\u7528\u5012\u7740\u64ad\u653e,\u8bf7\u52ff\u624b\u52a8\u66f4\u6362\u8bfe\u7a0b', 0);
            });
        }
        addInfo(str, type) {
            let $ctxstatsbox_lis = document.querySelectorAll('.ctxstatsbox_li');
            if ($ctxstatsbox_lis.length >= 15) {
                ElementObj.$ctxstatsbox.innerHTML = '';
            }
            let li = `<li class="ctxstatsbox_li" style="color: ${type == 0 ? '#f01414' : '#000'};line-height: 30px;font-size: 16px;">${str}</li>`;
            ElementObj.$ctxstatsbox.innerHTML += li;
        }
        listenPageHide() {
            let timer3;
            document.addEventListener("visibilitychange", () => {
                if (document.hidden) {
                    void 0;
                    let count = 0;
                    timer3 = setInterval(() => {
                        count += 1;
                        if (count >= 5) {
                            this.addInfo('⚠️⚠️⚠️\u8bf7\u52ff\u957f\u65f6\u95f4\u9690\u85cf\u8be5\u5b66\u4e60\u9875\u9762', 0);
                        }
                    }, 5000);
                } else {
                    clearInterval(timer3);
                    void 0;
                }
            });
        }
    }
    class beijingjiaoshi extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.topIndex = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let $item_btn = document.querySelector('.item_btn');
                ElementObj.$topNode = document.querySelectorAll('.el-collapse-item');
                if (!!$item_btn) {
                    yield sleep(2000);
                    $item_btn.click();
                    setTimeout(() => {
                        window.close();
                    }, 1500);
                } else if (ElementObj.$topNode.length) {
                    let index = yield this.getDoing();
                    void 0;
                    ElementObj.statusEles[index].click();
                    yield sleep(3000);
                    this.getParentIndex();
                } else {
                    let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                        ElementObj.$allTask = document.querySelectorAll('.course-info .video-title');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    }), 1000);
                }
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                void 0;
                ElementObj.$topNode = document.querySelectorAll('.el-collapse-item');
                yield sleep(200);
                let len = ElementObj.$topNode.length;
                let _interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    if (this.topIndex >= len - 1) {
                        clearInterval(_interval);
                    }
                    yield sleep(2000);
                    let $item = ElementObj.$topNode[this.topIndex];
                    if (this.topIndex != 0) {
                        $item.querySelector('.item-title-col').click();
                    }
                    yield sleep(300);
                    ElementObj.$parentNodes = $item.querySelectorAll('.el-table__row');
                    yield sleep(300);
                    ElementObj.$parentNodes.forEach((item, index) => __awaiter(this, void 0, void 0, function* () {
                        let $course_num = item.querySelector('.course_num');
                        let _status = $course_num.innerText;
                        if (_status != '\u8bfe\u7a0b:100%' && this.parentIndex == -1) {
                            clearInterval(_interval);
                            this.parentIndex = index;
                            let $toStudyBtn = item.querySelector('.to-study');
                            yield sleep(200);
                            $toStudyBtn.click();
                            setTimeout(() => {
                                window.close();
                            }, 1500);
                        }
                    }));
                    this.topIndex += 1;
                }), 3000);
            });
        }
        getDoing() {
            return new Promise(resolve => {
                let isFirst = false;
                ElementObj.statusEles = document.querySelectorAll('.li-item .el-progress-bar__inner');
                ElementObj.statusEles.forEach((item, index) => {
                    let status = item.style.width;
                    void 0;
                    if (parseInt(status) <= 98 && isFirst == false) {
                        isFirst = true;
                        resolve(index);
                    }
                });
                if (!isFirst) {
                    resolve(0);
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let activeClass = 'on';
                ElementObj.$allTask.forEach((item, index) => {
                    let $fourEle = item.querySelector('.four');
                    let _status = $fourEle.innerText;
                    if (_status != '100%' && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                let $startBtn = document.querySelector('.xgplayer-start');
                yield sleep(200);
                $startBtn.click();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                this.punchCard();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenVidoeStatus();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        setTimeout(() => {
                            window.close();
                        }, 1500);
                        location.replace('https://www.ttcdw.cn/p/uc/project');
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                });
                ElementObj.$video.addEventListener('playing', () => {
                    void 0;
                });
                ElementObj.$video.addEventListener('waiting', () => {
                    void 0;
                });
            });
        }
        listenVidoeStatus() {
            this.timer = setInterval(() => {
                ElementObj.$video = document.querySelector('video');
                if (!!ElementObj.$video) {
                    let status = ElementObj.$video.paused;
                    void 0;
                    void 0;
                    if (status) {
                        ElementObj.$video.setAttribute('muted', 'muted');
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    } else {
                    }
                }
            }, 3000);
        }
        punchCard() {
            setInterval(() => {
                let $elem = document.querySelector('#comfirmClock');
                if (!!$elem) {
                    $elem.click();
                }
            }, 5000);
        }
    }
    class qingyangzgzjzj extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => {
                ElementObj.$parentNodes = document.querySelectorAll('.swiper-slide');
                if (ElementObj.$parentNodes.length) {
                    clearInterval(interval);
                    this.getParentIndex();
                }
            }, 1000);
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316', 1500);
                ElementObj.$parentNodes.forEach((item, index) => {
                    let $progresstext = item.querySelector('.progresstext');
                    let status = $progresstext.innerText;
                    if (parseInt(status) < 97 && this.parentIndex == -1) {
                        this.parentIndex = index;
                        void 0;
                        void 0;
                        ElementObj.$parentNodes[this.parentIndex].querySelector('.left-img').click();
                    }
                });
                if (this.parentIndex == -1) {
                    void 0;
                    return;
                }
                this.getCurrentIndex();
            });
        }
        _getParentIndex() {
            let result = 0;
            for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                let $progresstext = ElementObj.$parentNodes[i].querySelector('.progresstext');
                let status = $progresstext.innerText;
                if (parseInt(status) < 95) {
                    result = i;
                    break;
                }
            }
            return result;
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask = document.querySelectorAll(".class-catlog ul li ul li");
                yield sleep(2000);
                void 0;
                ElementObj.$allTask[0].click();
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 3000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video = document.querySelector('video');
                ElementObj.$video.volume = 0;
                ElementObj.$video.currentTime = 0;
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenVidoeStatus();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.playNext();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                });
                ElementObj.$video.addEventListener('playing', () => {
                    void 0;
                });
                ElementObj.$video.addEventListener('waiting', () => {
                    void 0;
                });
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        listenVidoeStatus() {
            this.timer = setInterval(() => {
                ElementObj.$video = document.querySelector('video');
                if (!!ElementObj.$video) {
                    let status = ElementObj.$video.paused;
                    void 0;
                    if (status) {
                        ElementObj.$video.setAttribute('muted', 'muted');
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    } else {
                    }
                }
            }, 3000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask = document.querySelectorAll(".class-catlog ul li ul li");
                yield sleep(1500);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    if (this.parentIndex >= ElementObj.$parentNodes.length - 1) {
                        void 0;
                        return;
                    }
                    this.parentIndex = this._getParentIndex();
                    yield sleep(200);
                    ElementObj.$parentNodes[this.parentIndex].querySelector('.left-img').click();
                    this.currentIndex = 0;
                    showTip('🔉\u6b63\u5728\u5207\u6362\u89c6\u9891,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                    return;
                }
                this.currentIndex += 1;
                let $nextTaskBtn = document.querySelector('.nextdontcheatorshit');
                yield sleep(200);
                $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
    }
    class lanzhouwenli extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => {
                ElementObj.$allTask = document.querySelectorAll('.video');
                if (ElementObj.$allTask.length) {
                    clearInterval(interval);
                    this.getCurrentIndex();
                }
            }, 1000);
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask.forEach((item, index) => {
                    let $progress = item.querySelector('.el-progress__text');
                    let status = $progress.innerText;
                    if (parseInt(status) < 96 && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e', 3000);
                yield sleep(2000);
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(2500);
                this.handleClickSpeedUp();
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                yield this.getVideoDom();
                let $volume = document.querySelector('.volume-icon');
                $volume.classList.add('mute');
                ElementObj.$video.volume = 0;
                yield sleep(200);
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    yield sleep(1500);
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        this.parentIndex += 1;
                        yield sleep(200);
                        ElementObj.$parentNodes[this.parentIndex].querySelector('.left-img').click();
                        if (this.parentIndex >= ElementObj.$parentNodes.length - 1) {
                            void 0;
                            return;
                        }
                    }
                    let $backBtn = document.querySelector('.videoleft img');
                    yield sleep(200);
                    $backBtn.click();
                    showTip('\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 3000);
                    setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                        this.currentIndex += 1;
                        let $nextTaskBtn = ElementObj.$allTask[this.currentIndex];
                        yield sleep(2000);
                        $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                        setTimeout(() => {
                            this.handleClickSpeedUp();
                        }, 5000);
                    }), 5500);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.play();
                    }, 4000);
                });
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
    }
    class xuexituqiang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => {
                ElementObj.$allTask = document.querySelectorAll('.lesson');
                if (ElementObj.$allTask.length) {
                    clearInterval(interval);
                    this.getCurrentIndex();
                }
            }, 1000);
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let activeClass = 'lesson-in';
                ElementObj.$allTask.forEach((item, index) => {
                    if (item.classList.contains(activeClass)) {
                        this.currentIndex = index;
                    }
                });
                showTip('🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u64ad\u653e', 3000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                yield this.getVideoDom();
                yield sleep(200);
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$video.play();
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    yield sleep(1500);
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    this.currentIndex += 1;
                    yield sleep(2000);
                    let $comfimbutton = document.querySelector('.el-message-box__btns button');
                    $comfimbutton === null || $comfimbutton === void 0 ? void 0 : $comfimbutton.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    void 0;
                    setTimeout(() => {
                        ElementObj.$video.play();
                    }, 3000);
                });
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
    }
    class guojiazhihuijiaoyu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                let $allTask1 = document.querySelectorAll('.video-title .four');
                if ($allTask1.length) {
                    clearInterval(interval);
                    ElementObj.$handleSpeedUp.style.display = 'none';
                    ElementObj.$allTask = $allTask1;
                    this.getCurrentIndex();
                }
            }), 1000);
        }
        getCurrentIndex() {
            ElementObj.$allTask.forEach((item, index) => {
                if (item.innerText != '100%' && this.currentIndex == -1) {
                    this.currentIndex = index;
                }
            });
            if (this.currentIndex == -1) {
                this.currentIndex = 0;
            }
            showTip('🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u81ea\u52a8\u64ad\u653e', 3000);
            this.handleClickSpeedUp();
            void 0;
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(300);
                $nextBtn.click();
                yield sleep(3000);
                document.querySelector('video').volume = 0;
                let $playBtn = document.querySelector('.xgplayer-icon-play');
                $playBtn.click();
                yield this.getVideoDom();
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                this.listenVidoeStatus();
                let $btn0 = document.querySelector('.layui-layer-btn0');
                if (!!$btn0) {
                    $btn0.click();
                }
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenTopic();
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 1500);
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    let $close = document.querySelector('.layui-layer-btn0');
                    yield sleep(3000);
                    if (!!$close) {
                        $close.click();
                    }
                    this.currentIndex += 1;
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }));
            });
        }
        listenTopic() {
            let inter = setInterval(() => {
                try {
                    let $submit = document.querySelector('#submit');
                    if (!!$submit) {
                        this.answerTopic();
                    }
                } catch (e) {
                }
            }, 1000 * 5);
        }
        answerTopic() {
            return __awaiter(this, void 0, void 0, function* () {
                let $choice = document.querySelectorAll('.choice li')[0];
                yield sleep(200);
                $choice.click();
                let $submit = document.querySelector('#submit');
                yield sleep(1000);
                $submit.click();
                yield sleep(2000);
                $submit = document.querySelector('#submit');
                yield sleep(200);
                $submit.click();
                yield sleep(4500);
                let $close = document.querySelector('.layui-layer-btn0');
                yield sleep(200);
                $close.click();
            });
        }
        listenVidoeStatus() {
            let count = 0;
            this.timer = setInterval(() => {
                ElementObj.$video = document.querySelector('video');
                if (!!ElementObj.$video) {
                    let status = ElementObj.$video.paused;
                    void 0;
                    if (status) {
                        ElementObj.$video.setAttribute('muted', 'muted');
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    } else {
                    }
                }
            }, 1000 * 10);
        }
    }
    class lanzhouchengren extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = 3;
            this.loadedCount = 0;
            this.type = 1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => {
                if (location.pathname == '/courseVideo/index') {
                    ElementObj.$allTask = document.querySelectorAll('.ant-tree-node-content-wrapper-normal .chapter-tree-level2');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                } else {
                    ElementObj.$allTask = document.querySelectorAll('.activity li');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                }
            }, 1000);
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                void 0;
                if (location.pathname == '/courseVideo/index') {
                    for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let $li = ElementObj.$allTask[i];
                        let $right = $li.querySelector('.right');
                        void 0;
                        if (!$right) {
                            this.currentIndex = i;
                            break;
                        } else {
                            let $status = $right.querySelector('.percent-text');
                            if ($status.innerText != '\u5df2\u5b8c\u6210') {
                                this.currentIndex = i;
                                break;
                            }
                        }
                    }
                    if (this.currentIndex == -1) {
                        void 0;
                        return;
                    }
                    ElementObj.$allTask[i].click();
                } else {
                    let activeClass = 'cur';
                    ElementObj.$allTask.forEach((item, index) => {
                        if (item.classList.contains(activeClass)) {
                            this.currentIndex = index;
                        }
                    });
                    if (this.currentIndex == -1) {
                        this.currentIndex = 0;
                    }
                    void 0;
                }
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                yield sleep(3000);
                this.handleClickSpeedUp();
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                let studyType = yield this.getVideoDom();
                void 0;
                yield sleep(200);
                if (studyType == 1) {
                    setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                        this.currentIndex += 1;
                        let $li = ElementObj.$allTask[this.currentIndex];
                        let $nextTaskBtn = $li === null || $li === void 0 ? void 0 : $li.querySelector('h3');
                        yield sleep(2000);
                        $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                    }), 3000);
                }
                if (studyType == 2) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    ElementObj.$video.play();
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                    if (location.pathname == '/venus/study/activity/video/study.do') {
                        this.listenVidoeStatus(ElementObj.$video, () => {
                            let $li = ElementObj.$allTask[this.currentIndex];
                            let $nextTaskBtn = $li === null || $li === void 0 ? void 0 : $li.querySelector('h3');
                            $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                        });
                        this.reloadPage();
                    }
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        this.playNext();
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        void 0;
                        this.videoplaying = 1;
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1000);
                    });
                    ElementObj.$video.addEventListener('playing', () => {
                        this.videoplaying = 2;
                        void 0;
                    });
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                this.videoplaying = 3;
                yield sleep(1500);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                this.currentIndex += 1;
                let $li = ElementObj.$allTask[this.currentIndex];
                let $nextTaskBtn;
                if (location.pathname == '/courseVideo/index') {
                    $nextTaskBtn = $li;
                    $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 3000);
                } else {
                    $nextTaskBtn = $li === null || $li === void 0 ? void 0 : $li.querySelector('h3');
                    yield sleep(2000);
                    $nextTaskBtn === null || $nextTaskBtn === void 0 ? void 0 : $nextTaskBtn.click();
                }
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    ElementObj.$myFrame = document.querySelector('#myFrame');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        this.type = 2;
                        resolve(2);
                    }
                    if (!!ElementObj.$myFrame) {
                        clearInterval(Timer);
                        this.type = 1;
                        resolve(1);
                    }
                }, 1000);
            });
        }
        reloadPage() {
            return __awaiter(this, void 0, void 0, function* () {
                let count = 10 * 60;
                let watch = 0;
                let studyInterval = setInterval(() => {
                    watch += 1;
                    if (watch % 15 == 0) {
                        void 0;
                        void 0;
                    }
                    if (watch % 5 == 0) {
                        void 0;
                    }
                    if (count <= 0) {
                        clearInterval(studyInterval);
                        location.reload();
                    }
                    count -= 1;
                }, 1000);
            });
        }
    }
    class tsbtchinamde extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.studyType = 1;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                let $allTask1 = document.querySelectorAll('.chapterlist .item p');
                let $allTask2 = document.querySelectorAll('.chapterlist .chapter-li .drop p');
                void 0;
                if ($allTask1.length || $allTask2.length) {
                    clearInterval(interval);
                    ElementObj.$allTask = $allTask2.length ? $allTask2 : $allTask1;
                    this.getCurrentIndex();
                    ElementObj.$handleSpeedUp.style.display = 'none';
                }
            }), 1000);
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let arr = [];
                ElementObj.$allTask.forEach((item, index) => {
                    let $class_percent = item.querySelector('.class_percent');
                    if (!!$class_percent) {
                        let status = $class_percent.innerText;
                        arr.push(parseInt(status));
                    } else {
                        arr.push(0);
                    }
                });
                arr.reverse();
                for (var i = 0; i <= arr.length - 1; i++) {
                    if (arr[i] < 98) {
                        void 0;
                        this.currentIndex = arr.length - i - 1;
                        break;
                    }
                }
                void 0;
                if (this.currentIndex == 0) {
                    ElementObj.$allTask[1].querySelector('a').click();
                    yield sleep(4000);
                    ElementObj.$allTask = document.querySelectorAll('.chapterlist .drop p');
                    yield sleep(200);
                    let status = ElementObj.$allTask[0].querySelector('.class_percent').innerText;
                    if (parseInt(status) < 98) {
                        this.currentIndex = 0;
                    } else {
                        void 0;
                        return;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉🔉🔉\u521d\u59cb\u5316\u5b8c\u6210,5s\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                void 0;
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    let videosrc = ElementObj.$video.src;
                    if (!!videosrc) {
                        clearInterval(Timer);
                        resolve(1);
                    } else {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                let $nextP = ElementObj.$allTask[this.currentIndex];
                let $nextBtn = $nextP.querySelector('a');
                yield sleep(300);
                $nextBtn.click();
                this.studyType = yield this.getVideoDom();
                if (this.studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.setAttribute('muted', 'muted');
                    yield sleep(200);
                    ElementObj.$video.play();
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                }
                let $wrap = this.studyType == 1 ? $el('#player') : $el('#thirdplayer');
                this.changeHtml($wrap);
                this.reloadPage();
                this.listenPageHide();
                this.studyType == 1 ? this.listenAbnormal(1) : this.listenAbnormal(0);
                setTimeout(() => {
                    this.addInfo('⚠️⚠️⚠️\u8bfe\u7a0b\u91c7\u7528\u5012\u7740\u64ad\u653e,\u8bf7\u52ff\u624b\u52a8\u66f4\u6362\u8bfe\u7a0b', 0);
                }, 1000);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    location.reload();
                }));
            });
        }
        reloadPage() {
            return __awaiter(this, void 0, void 0, function* () {
                let count = 6 * 60;
                let studyInterval = setInterval(() => {
                    if (count <= 0) {
                        clearInterval(studyInterval);
                        location.reload();
                    }
                    count -= 1;
                }, 1000);
            });
        }
        listenAbnormal(type) {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            setInterval(() => {
                count += 1;
                void 0;
                if (type == 0) {
                    this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60`);
                }
                if (type == 1) {
                    let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                    this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
                }
                let $layuilayerbtn0 = document.querySelector('.layui-layer-btn0');
                if (!!$layuilayerbtn0) {
                    location.reload();
                    return;
                }
            }, 5000);
        }
    }
    tsbtchinamde.ctxid = 26;
    class zjzjsrc extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.wrapParentIndex = 0;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    if (location.pathname == '/member/project_toMyCourseList.page') {
                        clearInterval(interval);
                        let $page1 = document.querySelectorAll('td .btn-xs')[this.wrapParentIndex];
                        $page1.click();
                        yield sleep(2000);
                        let index = yield this.getParentIndex();
                        let $parentTask = document.querySelectorAll('.panel-body')[0].querySelectorAll('tbody tr');
                        let $item = $parentTask[index];
                        let $openBtn = $item.querySelector(".btn-xs[name='btn1']");
                        $openBtn === null || $openBtn === void 0 ? void 0 : $openBtn.click();
                        void 0;
                        yield sleep(2000);
                        ElementObj.$allTask = document.querySelectorAll(".btn-xs[name='btn1']");
                        this.step2();
                    }
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(interval);
                        ElementObj.$handleSpeedUp.style.display = 'none';
                        this.handleClickSpeedUp();
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                let result = -1;
                let $parentTask = document.querySelectorAll('.panel-body')[0].querySelectorAll('tbody tr');
                for (var i = 0; i <= $parentTask.length - 1; i++) {
                    let $status = $parentTask[i].querySelectorAll('td')[6].innerText;
                    if ($status == '\u672a\u5f00\u59cb\u5b66\u4e60') {
                        result = i;
                        break;
                    }
                }
                if (result == -1) {
                    let $lastPageBtn = document.querySelector('#option1').lastChild;
                    let $nextBtn = (_a = document.querySelector('#option1')) === null || _a === void 0 ? void 0 : _a.querySelector("a[title='Go to next page']");
                    if (!$lastPageBtn.classList.contains('active')) {
                        $nextBtn.click();
                        yield sleep(2000);
                        result = yield this.getParentIndex();
                    } else {
                        return result;
                    }
                }
                return result;
            });
        }
        getCurrentIndex() {
            showTip('\u6b63\u5728\u521d\u59cb\u5316');
            ElementObj.$handleSpeedUp.style.display = 'none';
            let $progressNodes = document.querySelectorAll('.progress-bar');
            let result = -1;
            for (var i = 0; i <= $progressNodes.length - 1; i++) {
                let _ele = $progressNodes[i];
                let status = _ele.style.width;
                void 0;
                if (parseInt(status) != 100) {
                    result = i;
                    break;
                }
            }
            return result;
        }
        step2() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                let index = 0;
                let $items = (_a = document.querySelector('#myModal .panel-body')) === null || _a === void 0 ? void 0 : _a.querySelectorAll('tbody tr');
                let timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    let $openBtn = $items[index].querySelector(".btn-xs[name='btn2']");
                    $openBtn === null || $openBtn === void 0 ? void 0 : $openBtn.click();
                    yield sleep(500);
                    let result = this.getCurrentIndex();
                    void 0;
                    if (result != -1) {
                        clearInterval(timer);
                        let $progressNodes = document.querySelectorAll('#myModal1 tbody tr')[result];
                        let $a = $progressNodes.querySelector('a');
                        GM_openInTab($a.href, {active: true});
                        setTimeout(() => {
                            window.close();
                        }, 1000 * 15);
                    }
                    index++;
                }), 2000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.setAttribute('muted', 'muted');
                yield sleep(200);
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                this.changeHtml($el('#example_video_1'));
                this.listenPlayTime();
                this.listenPageHide();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.videoplaying = -1;
                    GM_openInTab('https://zj.zjjsrc.cn/member/project_toMyCourseList.page', {active: true});
                    setTimeout(() => {
                        window.close();
                    }, 1000 * 15);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    let timer;
                    clearInterval(timer);
                    timer = setTimeout(() => {
                        let $playBtn = document.querySelector('.vjs-play-control');
                        $playBtn.click();
                    }, 100);
                });
            });
        }
        listenPlayTime() {
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                var _a, _b;
                count += 1;
                let currentTime = (_a = ElementObj.$video) === null || _a === void 0 ? void 0 : _a.currentTime;
                let time = (currentTime / 60).toFixed(2);
                let durtion = (_b = ElementObj.$video) === null || _b === void 0 ? void 0 : _b.duration;
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${durtion / 60}\u5206\u949f`);
            }), 5000);
        }
    }
    zjzjsrc.ctxid = 26;
    class gzjxjy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            let interval = setInterval(() => {
                ElementObj.$allTask = document.querySelectorAll('.el-step');
                if (ElementObj.$allTask.length) {
                    clearInterval(interval);
                    this.getCurrentIndex();
                }
            }, 1000);
        }
        getCurrentIndex() {
            let _currentIndex = -1;
            let activeClass = 'active';
            ElementObj.$allTask.forEach((item, index) => {
                if (!item.querySelector('.status-tip') && this.currentIndex == -1) {
                    this.currentIndex = index;
                }
                if (item.classList.contains(activeClass)) {
                    _currentIndex = index;
                }
            });
            void 0;
            if (_currentIndex != this.currentIndex) {
                ElementObj.$allTask[this.currentIndex].querySelector('.step-title').click();
            }
            showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u81ea\u52a8\u64ad\u653e');
            ElementObj.$handleSpeedUp.style.display = 'none';
            this.handleClickSpeedUp();
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                }, 3000);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    clearInterval(this.timer);
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    this.currentIndex += 1;
                    yield sleep(500);
                    ElementObj.$allTask[this.currentIndex].querySelector('.step-title').click();
                    showTip('✅✅✅5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 4500);
                    setTimeout(() => {
                        location.reload();
                    }, 5000);
                }));
                ElementObj.$video.addEventListener('pause', () => __awaiter(this, void 0, void 0, function* () {
                    yield sleep(1000);
                    let $close = document.querySelector('.dialog-footer button');
                    if ($close) {
                        $close.click();
                    } else {
                        setTimeout(() => {
                            ElementObj.$video.play();
                        }, 1000);
                    }
                }));
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
    }
    class gzjxjy_Answer {
        constructor() {
            this.currentIndex = 0;
            this.$allTask = document.querySelectorAll('.question-title');
            this.currentTask = {type: 1, topicName: '', option: []};
            this.timer = 0;
            this._init();
        }
        _init() {
            let t = setInterval(() => {
                this.timer += 1;
                if (this.timer > 60 * 32) {
                    this.submit();
                    clearInterval(t);
                }
            }, 1000);
            let interval = setInterval(() => {
                this.$allTask = document.querySelectorAll('.question-title');
                if (this.$allTask.length) {
                    clearInterval(interval);
                    showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,\u53ef\u70b9\u51fb\u52a0\u901f', 3000);
                    this.play();
                }
            }, 1000);
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2000);
                let $currentTaskEle = this.$allTask[this.currentIndex];
                let _$showtext = $currentTaskEle.querySelector('.show-text');
                this.currentTask.topicName = _$showtext.innerText;
                ElementObj.$ctxTopicName = document.querySelector('.cxtsection3 .ctxtopic-name');
                ElementObj.$ctxTopicName.innerText = this.currentTask.topicName;
                this.currentTask.option = [];
                let _optionNodeList = $currentTaskEle.querySelectorAll('.el-radio__label');
                if (!!_optionNodeList.length) {
                    this.currentTask.type = 1;
                } else {
                    this.currentTask.type = 2;
                    _optionNodeList = $currentTaskEle.querySelectorAll('.el-checkbox__label');
                }
                _optionNodeList.forEach((item, index) => {
                    this.currentTask.option.push(item.innerText);
                });
                let result = yield this.searchDate(this.currentTask);
                void 0;
                let count = 0;
                let T = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    if (count >= _optionNodeList.length) {
                        clearInterval(T);
                        yield sleep(2000);
                        if (this.currentIndex >= this.$allTask.length - 1) {
                            return;
                        }
                        this.currentIndex += 1;
                        this.play();
                    }
                    if (result.indexOf(`${count}`) != -1) {
                        let $item = _optionNodeList[count];
                        $item.click();
                    }
                    count += 1;
                }), 500);
            });
        }
        searchDate(obj) {
            return __awaiter(this, void 0, void 0, function* () {
                let res = yield fetchData({url: bserUrl + `/searchtopic?topicname=${obj.topicName}`, method: 'GET'});
                let result = ['0'];
                if (res.result.topickey) {
                    result = res.result.topickey.split(',');
                } else {
                    if (obj.type == 2) {
                        result = ['0', '1', '2'];
                    }
                    let str = `
                <div class="cxtsection cxtsection4">
                      <div class="tag">\u672a\u641c\u7d22\u5230</div>
                      <div class="ctxtopic-name">${obj.topicName}</div>
                    </div>
                `;
                    ElementObj.$myTool.innerHTML += str;
                }
                return result;
            });
        }
        saveTopic() {
            new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let res = yield fetchData({
                    method: 'GET',
                    url: bserUrl + `/savetopic?topic=${JSON.stringify(this.currentTask)}`
                });
                resolve(res);
            }));
        }
        submit() {
            let $submit = document.querySelector('.btn-submit');
            $submit.click();
        }
    }
    class lzrejxjy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $trans2 = document.querySelectorAll('.my-center2RM .pull-left a.trans')[1];
                        void 0;
                        if (!!$trans2) {
                            clearInterval(interval);
                            GM_setValue("homeUrl", location.href);
                            $trans2 === null || $trans2 === void 0 ? void 0 : $trans2.click();
                            showTip('🔉\u6b63\u5728\u521d\u59cb\u5316');
                            yield sleep(2000);
                            ElementObj.$parentNodes = document.querySelectorAll('.class2Li');
                            this.findParentIndex();
                            return;
                        }
                        let $menus = document.querySelectorAll('.learn-menu-cell');
                        if ($menus.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                let $menu2 = document.querySelectorAll('.learn-menu-cell')[1];
                if (!$menu2.classList.contains('learn-menu-cur')) {
                    let $menu2_a = $menu2.querySelector('a');
                    $menu2_a.click();
                }
                yield sleep(3000);
                let $contentIframe = document.querySelector('.contentIframe');
                ElementObj._document = $contentIframe.contentWindow.document;
                ElementObj.$allTask = ElementObj._document.querySelectorAll('.s_point');
                showTip('\u6b63\u5728\u521d\u59cb\u5316');
                ElementObj.$handleSpeedUp.style.display = 'none';
                let activeClass = 'done_icon_show';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].querySelector('.item_done_icon');
                    if (!$item.classList.contains(activeClass)) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    let homeUrl = GM_getValue("homeUrl", null);
                    void 0;
                    GM_openInTab(homeUrl, {active: true});
                    setTimeout(() => {
                        window.close();
                    }, 1500);
                    return;
                }
                (_a = ElementObj.$allTask[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        findParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$handleSpeedUp.style.display = 'none';
                let $a;
                ElementObj.$parentNodes.forEach((item, index) => {
                    let $class2Li = item.querySelector('.color-theme');
                    let status = $class2Li.innerText;
                    if (parseInt(status) <= 98 && this.currentIndex == -1) {
                        this.currentIndex = index;
                        $a = item.querySelector('a.btn-theme');
                    }
                });
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                $a.click();
                setTimeout(() => {
                    window.close();
                }, 1500);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let _document = ElementObj._document.querySelector('#mainFrame').contentWindow.document;
                    ElementObj.$video = _document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.setAttribute('muted', 'muted');
                yield sleep(200);
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                this.listenRebort();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        let homeUrl = GM_getValue("homeUrl", null);
                        void 0;
                        GM_openInTab(homeUrl, {active: true});
                        setTimeout(() => {
                            window.close();
                        }, 1500);
                        return;
                    }
                    this.currentIndex += 1;
                    ElementObj.$allTask[this.currentIndex].click();
                    showTip('🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b');
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
            });
        }
        updateSpeedElement(num) {
            localStorage.setItem('_localSpeed', num.toString());
            ElementObj.$video.playbackRate = num;
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                void 0;
                let $btn = document.querySelector('.layui-layer-btn0');
                if (!!$btn) {
                    setTimeout(() => {
                        $btn.click();
                        ElementObj.$video.play();
                    }, 3000);
                }
            }, 10 * 1000);
        }
    }
    lzrejxjy.ctxid = 26;
    class xuzhouyikedaxue extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.parentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $menu = document.querySelector('#courseware_main_menu');
                        let $menu_a = $menu.querySelector('a');
                        if (!!$menu_a) {
                            clearInterval(interval);
                            $menu_a.click();
                            this.findParentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        findParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('🔉\u6b63\u5728\u521d\u59cb\u5316', 2500);
                yield sleep(4500);
                ElementObj.$handleSpeedUp.style.display = 'none';
                let $contentIframe = document.querySelector('.contentIframe');
                let _document = $contentIframe.contentWindow.document;
                ElementObj.$parentNodes = _document.querySelectorAll('.vcon li');
                ElementObj.$parentNodes.forEach((item, index) => {
                    let $span = item.querySelector('span');
                    if (($span.classList.contains('undo') || $span.classList.contains('doing')) && this.parentIndex == -1) {
                        this.parentIndex = index;
                    }
                });
                void 0;
                if (this.parentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$parentNodes[this.parentIndex].querySelector('a').click();
                this.getCurrentIndex();
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316', 2500);
                yield sleep(4500);
                let $contentIframe = document.querySelector('.contentIframe');
                ElementObj._document = $contentIframe.contentWindow.document;
                ElementObj.$allTask = ElementObj._document.querySelectorAll('.menub');
                this.currentIndex = 0;
                (_a = ElementObj.$allTask[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let $contentIframe = document.querySelector('.contentIframe');
                    ElementObj._document = $contentIframe.contentWindow.document;
                    let _document = ElementObj._document.querySelector('#mainFrame').contentDocument;
                    ElementObj.$video = _document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    let $doc = _document.querySelector('#content_frame');
                    if (!!$doc) {
                        clearInterval(Timer);
                        resolve(2);
                    } else {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer2);
                unsafeWindow.alert = () => {
                };
                let studytype = yield this.getVideoDom();
                void 0;
                this.listenRebort();
                if (studytype == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        setTimeout(() => {
                            ElementObj.$video.playbackRate = toolOption.accelerator;
                        }, 3000);
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        yield sleep(3000);
                        this.playNext();
                    }));
                }
                if (studytype == 2) {
                    this.timer2 = setTimeout(() => {
                        this.playNext();
                    }, 7000);
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.layui-layer-btn a');
                if (!!$btn) {
                    $btn.click();
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('✅✅✅\u64ad\u653e\u5b8c\u6210,\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 3500);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    this.parentIndex += 1;
                    ElementObj.$parentNodes[this.parentIndex].querySelector('a').click();
                    setTimeout(() => {
                        this.getCurrentIndex();
                    }, 4500);
                    return;
                }
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    xuzhouyikedaxue.ctxid = 26;
    class xibeisfzyjy extends Main {
        constructor() {
            super();
            this.studyType = 2;
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.swiperIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $allTask1 = document.querySelectorAll('.el-tree-node');
                        let $allTask2 = document.querySelectorAll('.m-chapterList .section');
                        if ($allTask1.length || $allTask2.length) {
                            this.studyType = $allTask1.length ? 2 : 1;
                            ElementObj.$allTask = $allTask1.length ? $allTask1 : $allTask2;
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$parentNodes = document.querySelectorAll('.project-courseBottom');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            this.getParentIndex();
                        }
                        let _host = location.host;
                        if (_host == 'preview.dccloud.com.cn') {
                            clearInterval(interval);
                            yield sleep(1500);
                            window.close();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                let status = ElementObj.$parentNodes[i].querySelector('span');
                if (status != '\u5df2\u5b66\u4e60') {
                    this.parentIndex = i;
                    break;
                }
            }
            if (this.parentIndex == -1) {
                void 0;
            }
            ElementObj.$parentNodes[i].querySelector('.project-courseButton').click();
        }
        getSwiperIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$video = document.querySelector('video');
                yield sleep(200);
                if (!ElementObj.$video) {
                    ElementObj.$docs = document.querySelectorAll('.abcd');
                    if (ElementObj.$docs.length) {
                        this.playDoc();
                    }
                    return;
                }
                ElementObj.$swiperItem = document.querySelectorAll('.public-articleSlideList');
                if (!ElementObj.$swiperItem.length) {
                    this.handleClickSpeedUp();
                    return;
                }
                for (var i = 0; i <= ElementObj.$swiperItem.length - 1; i++) {
                    let status = ElementObj.$swiperItem[i].querySelector('.video-status').innerText;
                    if (status != '\u5df2\u5b66\u4e60') {
                        this.swiperIndex = i;
                        break;
                    }
                }
                void 0;
                if (this.swiperIndex == -1) {
                    this.playNext();
                } else if (this.swiperIndex == 0) {
                    this.handleClickSpeedUp();
                } else {
                    ElementObj.$swiperItem[this.swiperIndex].querySelector('.el-icon-video-play').click();
                    showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3500);
                    let $btn = (_a = document.querySelector('.el-message-box__btns')) === null || _a === void 0 ? void 0 : _a.lastChild;
                    yield sleep(2000);
                    $btn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('\u6b63\u5728\u521d\u59cb\u5316', 2500);
                yield sleep(3500);
                let activeClass = this.studyType == 1 ? 'section-cur' : 'study';
                ElementObj.$allTask.forEach((item, index) => {
                    if (this.studyType == 1) {
                        let $item = item;
                        if ($item.classList.contains(activeClass)) {
                            this.currentIndex = index;
                        }
                    }
                    if (this.studyType == 2) {
                        let $item = item.querySelector('i');
                        let status = $item.title;
                        if (status != '\u5df2\u5b66\u4e60' && this.currentIndex == -1) {
                            this.currentIndex = index;
                        }
                    }
                });
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                if (this.studyType == 2 && this.currentIndex != -1) {
                    this.playNext(this.currentIndex - 1);
                }
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316,\u8bf7\u7a0d\u540e', 3000);
                if (this.studyType == 1) {
                    this.handleClickSpeedUp();
                }
                if (this.studyType == 2) {
                    this.getSwiperIndex();
                }
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.setAttribute('muted', 'muted');
                yield sleep(200);
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                if (this.studyType == 2) {
                    let index = yield this.getDocIndex();
                    setTimeout(() => {
                        this.eachPlayDoc(index);
                    }, 3000);
                    this.changeHtml($el('#video'));
                    this.listenPageHide();
                    this.listenPlayTime();
                    this.reloadPage();
                }
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    var _a;
                    showTip('🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 2500);
                    if (this.studyType == 2) {
                        if (this.swiperIndex >= ElementObj.$swiperItem.length - 1) {
                            location.reload();
                        } else {
                            this.swiperIndex += 1;
                            ElementObj.$swiperItem[this.swiperIndex].querySelector('.el-icon-video-play').click();
                            showTip('⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u89c6\u9891', 5000);
                            let $btn = (_a = document.querySelector('.el-message-box__btns')) === null || _a === void 0 ? void 0 : _a.lastChild;
                            yield sleep(2000);
                            $btn.click();
                            setTimeout(() => {
                                this.handleClickSpeedUp();
                            }, 5000);
                        }
                    }
                    if (this.studyType == 1) {
                        if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                            void 0;
                            return;
                        }
                        this.currentIndex += 1;
                        let $nextBtn;
                        $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('a');
                        $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                    }
                }));
            });
        }
        getDocIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$docs = document.querySelectorAll('.abcd .file-box');
                yield sleep(200);
                void 0;
                let index = -1;
                for (var i = 0; i <= ElementObj.$docs.length - 1; i++) {
                    let status = ElementObj.$docs[i].querySelector('.fs12').innerText;
                    if (status != '( \u5df2\u5b8c\u6210 )') {
                        index = i;
                        break;
                    }
                }
                return index;
            });
        }
        playDoc(type) {
            return __awaiter(this, void 0, void 0, function* () {
                let index = yield this.getDocIndex();
                void 0;
                if (index == -1) {
                    this.playNext();
                    return;
                }
                this.eachPlayDoc(index, () => {
                    setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                        this.playNext();
                    }), 2000);
                });
            });
        }
        eachPlayDoc(index = 0, callback) {
            void 0;
            if (index == -1) return;
            let T = setInterval(() => {
                void 0;
                if (index >= ElementObj.$docs.length - 1) {
                    clearInterval(T);
                    void 0;
                    if (typeof callback == 'function') {
                        callback();
                    }
                }
                ElementObj.$docs[index].querySelector('button').click();
                index += 1;
            }, 2000);
        }
        playNext(nextIndex) {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                if (nextIndex != undefined) {
                    this.currentIndex = nextIndex;
                }
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelectorAll('span')[1];
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                yield sleep(2000);
                let $btn = (_a = document.querySelector('.el-message-box__btns')) === null || _a === void 0 ? void 0 : _a.lastChild;
                if (!!$btn) {
                    $btn.click();
                }
                showTip('⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u4e0b\u4e00\u8282', 4000);
                setTimeout(() => {
                    this.getSwiperIndex();
                }, 4500);
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
            }, 5000);
        }
        reloadPage() {
            return __awaiter(this, void 0, void 0, function* () {
                let count = 6 * 60;
                let studyInterval = setInterval(() => {
                    if (count <= 0) {
                        clearInterval(studyInterval);
                        location.reload();
                    }
                    count -= 1;
                }, 1000);
            });
        }
    }
    xibeisfzyjy.ctxid = 26;
    class henangongshe extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    let $menuNodes = document.querySelectorAll('#bxkBtudyDiv a');
                    if ($menuNodes.length) {
                        clearInterval(interval);
                        this.getParentIndex($menuNodes);
                    }
                    ElementObj.$allTask = document.querySelectorAll('.course-info .video-title');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                    ElementObj.$handleSpeedUp.style.display = 'none';
                }), 1000);
            });
        }
        getParentIndex($menuNodes) {
            return __awaiter(this, void 0, void 0, function* () {
                $menuNodes[0].click();
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3000);
                yield sleep(3000);
                ElementObj.$parentNodes = document.querySelectorAll('tbody tr');
                for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                    let status = ElementObj.$parentNodes[i].querySelector('span').innerText;
                    if (parseInt(status) <= 98) {
                        this.parentIndex = i;
                        break;
                    }
                }
                if (this.parentIndex == -1) {
                    $menuNodes[1].click();
                    yield sleep(3000);
                    ElementObj.$parentNodes = document.querySelectorAll('tbody tr');
                    for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                        let status = ElementObj.$parentNodes[i].querySelector('span').innerText;
                        if (parseInt(status) <= 98) {
                            this.parentIndex = i;
                            break;
                        }
                    }
                }
                if (this.parentIndex == -1) {
                    void 0;
                    return;
                }
                let homeUrl = GM_setValue("homeUrl", location.href);
                void 0;
                ElementObj.$parentNodes[this.parentIndex].querySelector('button').click();
                setTimeout(() => {
                    window.close();
                }, 5500);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3500);
                ElementObj.$allTask.forEach((item, index) => {
                    let $fourEle = item.querySelector('.four');
                    let _status = $fourEle.innerText;
                    if (_status != '100%' && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                let $startBtn = document.querySelector('.xgplayer-start');
                yield sleep(200);
                $startBtn.click();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.punchCard();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        setTimeout(() => {
                            window.close();
                        }, 1500);
                        let homeUrl = GM_getValue("homeUrl", null);
                        void 0;
                        GM_openInTab(homeUrl, {active: true});
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
            });
        }
        punchCard() {
            setInterval(() => {
                let $elem = document.querySelector('#comfirmClock');
                if (!!$elem) {
                    $elem.click();
                }
            }, 5000);
        }
        updateSpeedElement(num) {
            localStorage.setItem('_localSpeed', num.toString());
            ElementObj.$video.playbackRate = num;
        }
    }
    class zgrtvu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    let $button = document.querySelector('.head_right button');
                    if (!!$button) {
                        clearInterval(interval);
                        $button.click();
                    }
                    ElementObj.$allTask = document.querySelectorAll('.page-name');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                    ElementObj.$handleSpeedUp.style.display = 'none';
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3500);
                ElementObj.$allTask.forEach((item, index) => {
                    let activeClass = 'complete';
                    if (!item.classList.contains(activeClass) && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                let $startBtn = document.querySelector('.mejs__overlay-button');
                yield sleep(200);
                $startBtn.click();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.punchCard();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        setTimeout(() => {
                            window.close();
                        }, 1500);
                        let $backBtn = document.querySelector('.back-btn');
                        yield sleep(200);
                        $backBtn.click();
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
            });
        }
        punchCard() {
            setInterval(() => {
                void 0;
                let $elem = document.querySelector('.btn-submit');
                if (!!$elem) {
                    $elem.click();
                }
            }, 5000);
        }
    }
    class henandikuang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    ElementObj.$parentNodes = document.querySelectorAll('.state-l');
                    if (ElementObj.$parentNodes.length) {
                        clearInterval(interval);
                        ElementObj.$parentNodes[0].querySelector('.btn span').click();
                        return;
                    }
                    ElementObj.$parentNodes = document.querySelectorAll('.course-card-item');
                    if (ElementObj.$parentNodes.length) {
                        clearInterval(interval);
                        this.getParentIndex();
                    }
                    ElementObj.$allTask = document.querySelectorAll('.pt5 li');
                    if (ElementObj.$allTask.length) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                    }
                    ElementObj.$handleSpeedUp.style.display = 'none';
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let index = -1;
                for (var i = 0; i < ElementObj.$parentNodes.length - 1; i++) {
                    let status = ElementObj.$parentNodes[i].querySelector('.progress-bar').style.width;
                    if (parseInt(status) < 98) {
                        index = i;
                        break;
                    }
                }
                if (index == -1) {
                    void 0;
                    return;
                }
                ElementObj.$parentNodes[i].querySelector('a').click();
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 1500);
                ElementObj.$allTask.forEach((item, index) => {
                    let $pagress = item.querySelector('.badge');
                    let status = $pagress.innerText;
                    if (parseInt(status) != 100 && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelectorAll('video')[1];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        let $backBtn = document.querySelector('a.back');
                        yield sleep(200);
                        $backBtn.click();
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
            });
        }
    }
    class tazhuanjipx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                this.handleClickSpeedUp();
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                this.handleClickSpeedUp();
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 1500);
                ElementObj.$allTask.forEach((item, index) => {
                    let $pagress = item.querySelector('.badge');
                    let status = $pagress.innerText;
                    if (parseInt(status) != 100 && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelectorAll('video')[1] || document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenTopic();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
            });
        }
        listenTopic() {
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                var _a;
                let topicList = document.querySelectorAll('.ccQuestionList li');
                if (topicList.length) {
                    clearInterval(this.timer);
                    let result = MyTool.getValue('isRight');
                    if (!result) {
                        let $item = topicList[0];
                        $item.click();
                    } else {
                        let $item = topicList[1];
                        $item.click();
                    }
                    yield sleep(3000);
                    let $rightBtn = document.querySelector('#rightBtn');
                    if (!!$rightBtn) {
                        MyTool.setValue('isRight', true);
                        $rightBtn.click();
                    } else {
                        MyTool.setValue('isRight', false);
                        (_a = $el('#wrongBtn')) === null || _a === void 0 ? void 0 : _a.click();
                    }
                }
            }), 1000 * 10);
        }
    }
    class henanzhuanjipeixun extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    var _a;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('tbody tr');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        let $iframe = (_a = document.querySelector('#playerFrame')) === null || _a === void 0 ? void 0 : _a.contentDocument;
                        ElementObj.$video = $iframe.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 1500);
                ElementObj.$allTask.forEach((item, index) => {
                    if (index > 1) {
                        let $pagress = item.querySelectorAll('td')[2];
                        let status = $pagress.innerText;
                        if (parseInt(status) != 100 && this.currentIndex == -1) {
                            this.currentIndex = index;
                        }
                    }
                });
                void 0;
                let homeUrl = location.href;
                GM_setValue("homeUrl", homeUrl);
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelectorAll('td')[3].querySelector('a');
                yield sleep(200);
                $nextBtn.click();
                yield sleep(1500);
                let $textbtn = document.querySelector('input.textbtn');
                $textbtn.click();
                setTimeout(() => {
                    window.close();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    var _a;
                    let $iframe = (_a = document.querySelector('#playerFrame')) === null || _a === void 0 ? void 0 : _a.contentDocument;
                    ElementObj.$video = $iframe.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    setTimeout(() => {
                        window.close();
                    }, 2500);
                    let homeUrl = GM_getValue("homeUrl", null);
                    void 0;
                    GM_openInTab(homeUrl, {active: true});
                    return;
                }));
            });
        }
    }
    class zhejiangtjj extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        let $allTask = document.querySelectorAll('.course_2');
                        let $allTask2 = document.querySelectorAll('tbody tr.el-table__row');
                        if ($allTask.length || $allTask2.length) {
                            clearInterval(interval);
                            ElementObj.$parentNodes = $allTask.length ? $allTask : $allTask2;
                            let type = $allTask.length ? 1 : 2;
                            this.getParentIndex(type);
                        }
                        ElementObj.$allTask = document.querySelectorAll('.page-name');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex(type) {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 1500);
                let startindex = type == 1 ? 0 : -1;
                ElementObj.$parentNodes.forEach((item, index) => {
                    if (index > startindex) {
                        let $pagress = item.querySelector('.el-progress__text');
                        let status = $pagress.innerText;
                        if (parseInt(status) != 100 && this.currentIndex == -1) {
                            this.currentIndex = index;
                        }
                    }
                });
                void 0;
                if (this.currentIndex == -1 && type == 2) {
                    let homeUrl = 'https://edu.tjj.zj.gov.cn/#/personal?componentId=ClassList&type=classlist';
                    GM_openInTab(homeUrl, {active: true});
                    setTimeout(() => {
                        window.close();
                    }, 3500);
                    return;
                }
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$parentNodes[this.currentIndex].querySelector('button');
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    location.reload();
                }, 3000);
                void 0;
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3500);
                ElementObj.$allTask.forEach((item, index) => {
                    let activeClass = 'complete';
                    if (!item.classList.contains(activeClass) && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                ElementObj.$handleSpeedUp.style.display = 'none';
                showTip('🔉\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(200);
                $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
                void 0;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    var _a;
                    let $iframe = (_a = document.querySelector('#playerFrame')) === null || _a === void 0 ? void 0 : _a.contentDocument;
                    ElementObj.$video = $iframe.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                let $startBtn = document.querySelector('.mejs__overlay-button');
                yield sleep(200);
                $startBtn.click();
                ElementObj.$video.playbackRate = toolOption.accelerator;
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.punchCard();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        setTimeout(() => {
                            window.close();
                        }, 3500);
                        let $backBtn = document.querySelector('.back-btn');
                        yield sleep(200);
                        $backBtn.click();
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
            });
        }
        punchCard() {
            setInterval(() => {
                let $elem = document.querySelector('.btn-submit');
                if (!!$elem) {
                    $elem.click();
                }
            }, 5000);
        }
    }
    class jiangxizhipeizaixian extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.units_wrap_box___1ncip');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 1500);
                ElementObj.$allTask.forEach((item, index) => {
                    let $pregree = item.querySelector('.progress_get_on___3TDga');
                    let $not_start = item.querySelector('.not_start___3dAwS');
                    if ((!!$pregree || !!$not_start) && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                if (this.currentIndex == -1) {
                    this.currentIndex = 0;
                }
                void 0;
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                ElementObj.$allTask[this.currentIndex].click();
                showTip('⚠️⚠\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3500);
                ElementObj.$handleSpeedUp.style.background = '#f01414';
                ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                this.listenRebort();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        void 0;
                        return;
                    }
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    yield sleep(300);
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 1500);
                });
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
    }
    class anhuijixujyzx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    var _a;
                    try {
                        ElementObj.$btn_dropdown = document.querySelector('.btn_dropdown');
                        (_a = ElementObj.$btn_dropdown) === null || _a === void 0 ? void 0 : _a.click();
                        let $nextBtn = document.querySelector('.btn.btn-green');
                        if (!!$nextBtn) {
                            clearInterval(interval);
                            yield sleep(300);
                            $nextBtn.click();
                        }
                        ElementObj.$allTask = document.querySelectorAll('.list-order ul li a:not(.toggle_lesson)');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 1500);
                yield sleep(1500);
                let $sectionlist = $el('#sectionlist');
                if ($sectionlist.style.display != 'none') {
                    (_a = ElementObj.$btn_dropdown) === null || _a === void 0 ? void 0 : _a.click();
                }
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getIndex() {
            let index = 0;
            for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                let $parentElement = ElementObj.$allTask[i].parentElement;
                if ($parentElement.classList.contains('current')) {
                    index = i;
                    break;
                }
            }
            return index;
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelectorAll('video');
                    if (ElementObj.$video.length > 1) {
                        ElementObj.$video = document.querySelectorAll('video')[1];
                    } else {
                        ElementObj.$video = document.querySelectorAll('video')[0];
                    }
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                    } else {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 3000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3500);
                    ElementObj.$handleSpeedUp.style.background = '#f01414';
                    ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                    this.listenPlayTime();
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('🔉\u68c0\u6d4b\u5230\u6ca1\u6709\u89c6\u9891,3\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    let index = this.getIndex();
                    void 0;
                    let $preNext = document.querySelector('.preNext.next');
                    if (!!$preNext) {
                        $preNext.click();
                        return;
                    }
                    let $nextBtn = ElementObj.$allTask[index + 1];
                    yield sleep(200);
                    $nextBtn.click();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let $nextBtn = document.querySelector('.btn.btn-green');
                if (!!$nextBtn) {
                    clearInterval(this.timer);
                    showTip('🔉\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u5b66\u5b8c,3\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a');
                    setTimeout(() => {
                        $nextBtn.click();
                    }, 3000);
                }
            }, 3000);
        }
    }
    class lanzhoudxgs extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this.listenVidoeStatusTimer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    var _a;
                    try {
                        ElementObj.$btn_dropdown = document.querySelector('#catalogA');
                        (_a = ElementObj.$btn_dropdown) === null || _a === void 0 ? void 0 : _a.click();
                        ElementObj.$allTask = document.querySelectorAll('li.activity-node');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 1500);
                yield sleep(1500);
                let $sectionlist = $el('#toolsContentDiv');
                if ($sectionlist.style.display != 'none') {
                    (_a = ElementObj.$btn_dropdown) === null || _a === void 0 ? void 0 : _a.click();
                }
                let arr = [];
                ElementObj.$allTask.forEach((item, index) => {
                    let $i = item.querySelector('.cedu-file-video');
                    if (!!$i) {
                        arr.push(item);
                    }
                });
                ElementObj.$allTask = arr;
                this.currentIndex = 0;
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let $playBtn = document.querySelector('.vjs-big-play-button');
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video && !!$playBtn) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                let $playBtn = document.querySelector('.vjs-big-play-button');
                yield sleep(200);
                void 0;
                $playBtn === null || $playBtn === void 0 ? void 0 : $playBtn.click();
                yield sleep(2500);
                ElementObj.$video.pause();
                setTimeout(() => {
                    ElementObj.$video.currentTime -= 30;
                    ElementObj.$video.play();
                }, 2500);
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3500);
                this.changeHtml($el('#video_div'));
                this.listenPlayTime();
                this.listenPageHide();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.playNext();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 1500);
                });
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
                if (ElementObj.$video.currentTime >= ElementObj.$video.duration - 4) {
                    this.playNext();
                }
            }, 5000);
        }
        listenVidoeStatus($video, callback) {
            if (!$video) return;
            let count = 0;
            this.timer2 = setInterval(() => {
                if ($video.readyState < 4) {
                    void 0;
                    this.addInfo(`\u68c0\u6d4b\u5230${count}\u6b21,\u89c6\u9891\u6b63\u5728\u52a0\u8f7d`, 0);
                    count += 1;
                    if (count >= 20) {
                        location.reload();
                    }
                }
                let status = $video.paused;
                if (status) {
                    count += 1;
                    void 0;
                    if (typeof callback == 'function') {
                        if (count >= 20) {
                            location.reload();
                        } else {
                            callback();
                        }
                    } else {
                        void 0;
                    }
                }
            }, 3000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                yield sleep(5000);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                yield sleep(300);
                let $i = $nextBtn.querySelector('.cedu-file-video');
                if (!!$i) {
                    $nextBtn.click();
                } else {
                    void 0;
                }
            });
        }
    }
    class jidianshejijiaoyu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.swiperIndex = -1;
            this.timer = null;
            this.listenVidoeStatusTimer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        let $btn0 = document.querySelector('.layui-layer-btn0');
                        if (!!$btn0) {
                            clearInterval(interval);
                            this.playNext();
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('.course_chapter_item');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 1500);
                yield sleep(1500);
                ElementObj.$allTask.forEach((item, index) => {
                    let $i = item.querySelector('i.fa-circle');
                    if (!$i && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].querySelector('.section_title').click();
                showTip('⚠️⚠️⚠️\u6b63\u5728\u521d\u59cb\u5316', 3500);
                setTimeout(() => {
                    this.getSwiperIndex();
                }, 4500);
            });
        }
        getSwiperIndex() {
            ElementObj.$swiperItem = document.querySelectorAll('#menu_tarr_content .courseware_menu_item');
            this.swiperIndex = -1;
            for (var i = 0; i <= ElementObj.$swiperItem.length - 1; i++) {
                let $item = ElementObj.$swiperItem[i];
                let $i = $item.querySelector('.icon-note-video-learning');
                if (!!$i) {
                    this.swiperIndex = i;
                    $item.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 3500);
                    break;
                }
            }
            if (this.swiperIndex == -1) {
                location.reload();
            }
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let $playBtn = document.querySelector('.vjs-big-play-button');
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video && !!$playBtn) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.setAttribute('muted', 'muted');
                ElementObj.$video.volume = 0;
                yield sleep(2500);
                ElementObj.$video.play();
                this.changeHtml($el('.video-play'));
                this.listenPlayTime();
                this.listenPageHide();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.playNext();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 1500);
                });
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
                let $complete = document.querySelector('.complete');
                if (!!$complete) {
                    this.addInfo(`✅✅✅,\u5f53\u524d\u89c6\u9891\u64ad\u653e\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891`);
                    if (this.swiperIndex >= ElementObj.$swiperItem.length - 1) {
                        location.reload();
                    } else {
                        this.swiperIndex += 1;
                        $el('#right_tarr').click();
                        setTimeout(() => {
                            this.handleClickSpeedUp();
                        }, 3500);
                    }
                }
                if (ElementObj.$video.currentTime >= ElementObj.$video.duration - 4) {
                    this.playNext();
                }
            }, 5000);
        }
        listenVidoeStatus($video, callback) {
            if (!$video) return;
            let count = 0;
            this.timer2 = setInterval(() => {
                if ($video.readyState < 4) {
                    void 0;
                    this.addInfo(`\u68c0\u6d4b\u5230${count}\u6b21,\u89c6\u9891\u6b63\u5728\u52a0\u8f7d`, 0);
                    count += 1;
                    if (count >= 20) {
                        location.reload();
                    }
                }
                let status = $video.paused;
                if (status) {
                    count += 1;
                    void 0;
                    if (typeof callback == 'function') {
                        if (count >= 20) {
                            location.reload();
                        } else {
                            callback();
                        }
                    } else {
                        void 0;
                    }
                }
            }, 3000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                yield sleep(5000);
                let $btn0 = document.querySelector('.layui-layer-btn0');
                if (!!$btn0) {
                    $btn0.click();
                    yield sleep(2000);
                    location.reload();
                }
            });
        }
    }
    class ycjyluteducn extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.parentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                void 0;
                window.alert = function () {
                    void 0;
                };
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        if (location.pathname == "/learnspace/learn/learn/blue/content_video.action") {
                            clearInterval(interval);
                            window.close();
                            return;
                        }
                        let $menu = document.querySelector('#courseware_main_menu');
                        let $menu_a = $menu.querySelector('a');
                        if (!!$menu_a) {
                            clearInterval(interval);
                            $menu_a.click();
                            this.findParentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        findParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('🔉\u6b63\u5728\u521d\u59cb\u5316', 2500);
                yield sleep(4500);
                unsafeWindow.alert = () => {
                };
                ElementObj.$handleSpeedUp.style.display = 'none';
                let $contentIframe = document.querySelector('.contentIframe');
                let _document = $contentIframe.contentWindow.document;
                ElementObj.$parentNodes = _document.querySelectorAll('.vcon li');
                ElementObj.$parentNodes.forEach((item, index) => {
                    let $span = item.querySelector('span');
                    let isTest = item.innerText.indexOf('\u7ec3\u4e60');
                    if (($span.classList.contains('undo') || $span.classList.contains('doing')) && this.parentIndex == -1 && isTest == -1) {
                        this.parentIndex = index;
                    }
                });
                void 0;
                if (this.parentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$parentNodes[this.parentIndex].querySelector('a').click();
                this.getCurrentIndex();
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316', 2500);
                yield sleep(3500);
                let $contentIframe = document.querySelector('.contentIframe');
                ElementObj._document = $contentIframe.contentWindow.document;
                ElementObj.$allTask = ElementObj._document.querySelectorAll('.menub');
                this.currentIndex = 0;
                (_a = ElementObj.$allTask[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let _document = ElementObj._document.querySelector('#mainFrame').contentDocument;
                    ElementObj.$video = _document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    let $doc = _document.querySelector('#content_frame');
                    if (!!$doc) {
                        clearInterval(Timer);
                        resolve(2);
                    } else {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer2);
                unsafeWindow.alert = () => {
                };
                let studytype = yield this.getVideoDom();
                this.listenRebort();
                if (studytype == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        setTimeout(() => {
                            ElementObj.$video.playbackRate = toolOption.accelerator;
                        }, 3000);
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        yield sleep(3000);
                        this.playNext();
                    }));
                }
                if (studytype == 2) {
                    this.timer2 = setTimeout(() => {
                        this.playNext();
                    }, 7000);
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var pageWindow = unsafeWindow;
                unsafeWindow.alert = function () {
                    void 0;
                };
                let $btn = document.querySelector('.layui-layer-btn a');
                if (!!$btn) {
                    $btn.click();
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                unsafeWindow.alert = () => {
                };
                showTip('✅✅✅\u64ad\u653e\u5b8c\u6210,\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 3500);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    this.parentIndex += 1;
                    let isTest = ElementObj.$parentNodes[this.parentIndex].innerText.indexOf('\u7ec3\u4e60');
                    if (isTest != -1) {
                        this.parentIndex += 1;
                    }
                    ElementObj.$parentNodes[this.parentIndex].querySelector('a').click();
                    setTimeout(() => {
                        this.getCurrentIndex();
                    }, 4500);
                    return;
                }
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(5000);
                this.handleClickSpeedUp();
            });
        }
    }
    ycjyluteducn.ctxid = 26;
    class gdrcjxjyw extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.m-list .item');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            this.getParentIndex();
                            return;
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (!!ElementObj.$video && location.host == 'www.rcjxjy.com') {
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                            return;
                        }
                        let $table = document.querySelectorAll('.player-table')[2];
                        ElementObj.$allTask = $table.querySelectorAll('td');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('✅✅✅\u6b63\u5728\u521d\u59cb\u5316,\u8bf7\u52ff\u70b9\u51fb', 3000);
                let count = 0;
                let timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    ElementObj.$parentNodes[count].querySelector('.btn-continue-study').click();
                    yield sleep(500);
                    ElementObj.$allTask = document.querySelectorAll('.video-item .f-cb');
                    for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let $status = ElementObj.$allTask[i].querySelector('.videoName').innerText;
                        if ($status != '\u64ad\u653e\u5b8c\u6210') {
                            clearInterval(timer);
                            showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210');
                            let $nextBtn = ElementObj.$allTask[i].querySelector('a.u-btn');
                            $nextBtn.click();
                            break;
                        }
                    }
                    count += 1;
                }), 3000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let _currentIndex = -1;
                ElementObj.$allTask.forEach((item, index) => {
                    let $pagress = item.querySelector('.playLine');
                    let status = $pagress.innerText;
                    if (parseInt(status) != 100 && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                    if (item.classList.contains('couBg')) {
                        _currentIndex = index;
                    }
                });
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                if (this.currentIndex != _currentIndex) {
                    let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('a');
                    $nextBtn.click();
                }
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3500);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getVideoDom() {
            ElementObj.$handleSpeedUp.style.display = 'none';
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                        return;
                    }
                    let $iframe = document.querySelector('#c_frame').contentDocument;
                    ElementObj.$video = $iframe.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3500);
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                    yield sleep(3000);
                    if (location.host == 'www.rcjxjy.com') {
                        let $backBtn = document.querySelector('a.u-btn.normal');
                        $backBtn.click();
                    } else {
                        location.reload();
                    }
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 1500);
                });
            });
        }
    }
    class shixuetong extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.Nvideo-item li');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            $el('.Nvideo-playbox').style.position = 'relative';
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                this.currentIndex = 0;
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3500);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                    }
                    if (count > 10) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                clearInterval(this.timer2);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3500);
                    this.changeHtml($el('.video'));
                    this.listenPageHide();
                    this.listenPlayTime();
                    this.listenRebort();
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                        this.playNext();
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                            ElementObj.$video.playbackRate = toolOption.accelerator;
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u5f53\u524d\u4e0d\u662f\u89c6\u9891,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                    this.playNext();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(3000);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                $nextBtn.click();
                setTimeout(() => {
                    let $confirm = document.querySelector('.layui-layer-btn- a');
                    $confirm === null || $confirm === void 0 ? void 0 : $confirm.click();
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        listenPlayTime() {
            showTip('⚠️⚠️⚠️\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f`);
                if (count % 30 == 0) {
                    let $endTime = $el('#courseStudyBestMinutesNumber').innerText;
                    let refreshBtn = document.querySelector('.studyCourseTimeRefresh');
                    refreshBtn === null || refreshBtn === void 0 ? void 0 : refreshBtn.click();
                    yield sleep(2000);
                    let currentStudyTime = $el('#courseStudyMinutesNumber').innerText;
                    let str = `✅✅✅\u672c\u8bfe\u7a0b\u6700\u957f\u53ef\u7d2f\u8ba1\u65f6\u95f4:${$endTime}\u5206\u949f,\u60a8\u5df2\u6210\u529f\u5b66\u4e60${currentStudyTime}\u5206\u949f`;
                    this.addInfo(str, 0);
                }
            }), 5000);
        }
        listenRebort() {
            this.timer2 = setInterval(() => {
                let $codespan = document.querySelector('#codespan');
                if ($codespan) {
                    clearInterval(this.timer2);
                    let $code = document.querySelector("#code");
                    let str = $codespan.innerText;
                    $code.value = str;
                    let $submit = document.querySelector('.layui-layer-btn0');
                    $submit.click();
                    this.listenRebort();
                }
            }, 1000 * 8);
        }
    }
    class shandongenhualvyou extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let $toolbarnav = document.querySelector('#dashboard-toolbar-nav li');
                $toolbarnav === null || $toolbarnav === void 0 ? void 0 : $toolbarnav.click();
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        ElementObj.$allTask = document.querySelectorAll('li.task-item');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask.forEach((item, index) => {
                    let $icon = item.querySelector('.es-icon-iccheckcircleblack24px');
                    if (!$icon && this.currentIndex == -1) {
                        this.currentIndex = index;
                    }
                });
                if (this.currentIndex == -1) {
                    this.currentIndex = 0;
                }
                showTip('⚠️⚠️⚠️\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3500);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4500);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    let $iframe = document.querySelector('#task-content-iframe');
                    let _documet = $iframe.contentDocument;
                    ElementObj.$video = $iframe.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3500);
                if (!ElementObj.$ctxstatsbox) {
                    this.changeHtml($el('.video'));
                }
                this.listenPageHide();
                this.listenPlayTime();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    showTip('⚠️⚠️⚠️\u68c0\u6d4b\u5230\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a\u89c6\u9891', 4500);
                    yield sleep(3000);
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 1500);
                });
            });
        }
        listenPlayTime() {
            showTip('⚠️⚠️⚠️\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                let durrentTime = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${durrentTime}`);
            }), 5000);
        }
    }
    class gansugongwuyuan extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        let $menus = $el('.min_le_1 a');
                        if (!!$menus) {
                            clearInterval(interval);
                            let mytoolkey = localStorage.getItem('mytoolkey');
                            MyTool.setValue('mytoolkey', mytoolkey);
                            $menus.click();
                            yield sleep(2000);
                            $el('.xuxi_1').click();
                            yield sleep(2000);
                            this.getParentIndex();
                            return;
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(interval);
                            let mytoolkey = MyTool.getValue('mytoolkey');
                            this.deleteDom();
                            this.handleClickSpeedUp2(mytoolkey);
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                $el('a.my').click();
                yield sleep(2000);
                let pageNum = Number($el('#pagenumtext').value);
                var pageNumArr = [];
                for (var i = pageNum; i > 0; i--) {
                    pageNumArr.push(i);
                }
                let isFind = false;
                for (let i of pageNumArr) {
                    if (isFind) break;
                    yield sleep(1500);
                    ElementObj.$allTask = document.querySelectorAll('.main_r_dd2');
                    void 0;
                    for (var k = 0; k <= ElementObj.$allTask.length - 1; k++) {
                        let $hqjd_btn = ElementObj.$allTask[k].querySelector('.hqjd_btn');
                        if (!!$hqjd_btn) {
                            $hqjd_btn.click();
                            yield sleep(2500);
                        }
                        void 0;
                        let $jinduSpan = ElementObj.$allTask[k].querySelector('.jindu div');
                        void 0;
                        let status = parseInt($jinduSpan.style.width);
                        if (status < 100) {
                            isFind = true;
                            MyTool.setValue('pageNum', i);
                            MyTool.setValue('homeUrl', location.href);
                            let $nextBtn = ElementObj.$allTask[k].querySelector('#playVideo');
                            $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                            setTimeout(() => {
                                window.close();
                            }, 1000 * 10);
                            break;
                        }
                        pageNum -= 1;
                        let $prePage = $el('.syy');
                        $prePage === null || $prePage === void 0 ? void 0 : $prePage.click();
                    }
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = MyTool.getValue('accelerator');
                }, 3500);
                this.listenRebort();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    let homeurl = MyTool.getValue('homeUrl');
                    void 0;
                    MyTool.openInTab(homeurl);
                    setTimeout(() => {
                        window.close();
                    }, 10000);
                    return;
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                        let $confirmBtn = document.querySelector('#dvMsgBtns input');
                        $confirmBtn === null || $confirmBtn === void 0 ? void 0 : $confirmBtn.click();
                        yield sleep(2000);
                        ElementObj.$video.play();
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }), 2500);
                });
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                void 0;
                let $btn = document.querySelector('#dvMsgBtns input');
                if (!!$btn) {
                    this.deleteDom();
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 1500);
                }
            }, 3000);
        }
        deleteDom() {
            let parent = document.querySelector('body');
            let child = document.getElementById('dvMsgBox');
            let child2 = document.getElementById('ShowBolightBox');
            let newElement = document.createElement('div');
            newElement.innerHTML = '<div></div>';
            parent.replaceChild(newElement, child);
            parent.replaceChild(newElement, child2);
        }
        handleClickSpeedUp2(key, callback) {
            return __awaiter(this, void 0, void 0, function* () {
                if (key) {
                    this.speedStatus = 1;
                    let result = yield fetchData({
                        method: 'GET',
                        url: bserUrl + `/speedup?toolkey=${key}&canuse=${toolOption.SchoolType}`
                    });
                    if (result.code == 200) {
                        this.speedStatus = 1;
                        toolOption.CtxMain.play();
                    } else {
                        showTip(`🔉🔉🔉${result.message}`, 5000, true);
                        return;
                    }
                    this.randomListen();
                } else if (!key) {
                    void 0;
                    window.open(basehost);
                } else {
                    void 0;
                }
            });
        }
        handleChangeCtxSpeed(e) {
            let whiteList = speedArr;
            let s = Number(e);
            if (e && whiteList.includes(s)) {
                toolOption.accelerator = s;
                MyTool.setValue('accelerator', s.toString());
                if (ElementObj.$video) {
                    ElementObj.$video.playbackRate = s;
                }
            }
        }
    }
    class wlmqcol extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    try {
                        let $menu = document.querySelector('#tab-second');
                        if (!!$menu) {
                            clearInterval(interval);
                            $menu.click();
                            this.getCurrentIndex();
                            return;
                        }
                        let $video = document.querySelector('video');
                        if (!!$video) {
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                        }
                        ElementObj.$handleSpeedUp.style.display = 'none';
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(1000);
                ElementObj.$allTask = document.querySelectorAll('.task-list');
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $done = ElementObj.$allTask[i].querySelector('.icon-yiwancheng');
                    if (!$done) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                let $nextBtn = document.querySelectorAll('.task-list')[this.currentIndex].querySelector('span');
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 3000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3500);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.playNext();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    setTimeout(() => __awaiter(this, void 0, void 0, function* () {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }), 2500);
                });
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let $backBtn = document.querySelectorAll('.el-breadcrumb__inner.is-link')[1];
                $backBtn === null || $backBtn === void 0 ? void 0 : $backBtn.click();
                setTimeout(() => {
                    location.reload();
                }, 3500);
            });
        }
    }
    class shandongzhuanyejisu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $menus = document.querySelectorAll('.learn-menu-cell');
                        if ($menus.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316');
                let $contentIframe = document.querySelector('.contentIframe');
                ElementObj._document = $contentIframe.contentWindow.document;
                if (location.pathname == '/learnspace/learn/learn/templateeight/index.action') {
                    ElementObj.$allTask = ElementObj._document.querySelectorAll('.s_sectionwrap .s_point');
                } else {
                    ElementObj.$allTask = ElementObj._document.querySelectorAll('.s_pointwrap .s_point');
                }
                ElementObj.$handleSpeedUp.style.display = 'none';
                let activeClass = 'done_icon_show';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].querySelector('.item_done_icon');
                    if (!$item.classList.contains(activeClass)) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                (_a = ElementObj.$allTask[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    let _document = ElementObj._document.querySelector('#mainFrame').contentWindow.document;
                    ElementObj.$video = _document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                    }
                    if (count >= 10) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                    count++;
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studytype = yield this.getVideoDom();
                if (studytype == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenRebort();
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        this.playNext();
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                }
                if (studytype == 2) {
                    showTip('✅✅✅\u68c0\u6d4b\u5230\u8be5\u7ae0\u8282\u4e0d\u662f\u89c6\u9891,\u5373\u5c06\u5207\u6362\u4e0b\u4e00\u8282', 2000);
                    yield sleep(2000);
                    this.playNext();
                }
            });
        }
        updateSpeedElement(num) {
            localStorage.setItem('_localSpeed', num.toString());
            ElementObj.$video.playbackRate = num;
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                void 0;
                let $btn = document.querySelector('.layui-layer-btn0');
                if (!!$btn) {
                    setTimeout(() => {
                        $btn.click();
                        ElementObj.$video.play();
                    }, 3000);
                }
            }, 10 * 1000);
        }
        playNext() {
            if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                void 0;
                return;
            }
            this.currentIndex += 1;
            ElementObj.$allTask[this.currentIndex].click();
            showTip('🔉\u6b63\u5728\u5207\u6362\u8bfe\u7a0b');
            setTimeout(() => {
                this.handleClickSpeedUp();
            }, 5000);
        }
    }
    shandongzhuanyejisu.ctxid = 26;
    class zhijiaoyun2 extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.topIndex = 0;
            this.parentIndex = -1;
            this.currentIndex = -1;
            this.videoplaying = -1;
            this.authorization = null;
            this.classList = [];
            this.selectData = [];
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    let $wrap = document.querySelector('.r.rFu');
                    if (location.pathname == '/study/coursePreview/spoccourseIndex/courseware') {
                        clearInterval(interval);
                        ElementObj.$handleSpeedUp.style.display = 'none';
                        this.handleClickSpeedUp();
                    }
                    if (location.pathname == '/study/coursePreview/spoccourseIndex') {
                        clearInterval(interval);
                        ElementObj.$handleSpeedUp.style.display = 'none';
                        yield this.getCurrentIndex();
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    ElementObj.$allTask = document.querySelectorAll('.listItem');
                    if (ElementObj.$allTask.length) {
                        clearInterval(timer);
                        void 0;
                        let isFind = false;
                        for (let item of ElementObj.$allTask) {
                            let status = item.querySelector('.el-progress-bar__inner').style.width;
                            if (parseInt(status) < 99) {
                                isFind = true;
                                item.click();
                                yield sleep(3000);
                                item.querySelector('.items.iChild').click();
                                yield sleep(3000);
                                setTimeout(() => {
                                    location.reload();
                                }, 2000);
                                let btn = item.querySelector('.fItem');
                                if (!btn) {
                                    btn = item.querySelector('.fIteml');
                                }
                                btn.click();
                                break;
                            }
                        }
                        if (!isFind) {
                            location.href = 'https://zjy2.icve.com.cn/study/course';
                        }
                    }
                }), 2000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 7;
                let Timer = setInterval(() => {
                    if (count < 0) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    let $pages = document.querySelectorAll('.el-carousel__item');
                    if ($pages.length) {
                        clearInterval(Timer);
                        resolve(2);
                        return;
                    }
                    count -= 1;
                }, 1000);
            });
        }
        play() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                (_a = document.querySelector('.el-message-box__btns button')) === null || _a === void 0 ? void 0 : _a.click();
                yield this.changeHtml(document.querySelector('.video'));
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 2500);
                    this.listenVidoeStatus();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        yield this.playNext();
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3000);
                        void 0;
                    });
                }
                if (studyType == 2) {
                    this.addInfo('🔊🔊🔊\u5373\u5c06\u5f00\u59cb\u64ad\u653e\u6587\u6863');
                    let $pages = document.querySelectorAll('.el-carousel__item');
                    let $next = document.querySelector('.page>.next');
                    for (let item of $pages) {
                        $next.click();
                        yield sleep(500);
                    }
                    this.addInfo('🎉🎉🎉🎉🎉🎉\u6587\u6863\u64ad\u653e\u5b8c\u6210🎉🎉🎉🎉🎉🎉');
                    yield this.playNext();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let $nextBtn = document.querySelector('.next>a');
                if (($nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.innerText) == '\u6682\u65e0') {
                    setTimeout(() => {
                        location.reload();
                    }, 2000);
                    let backBtn = document.querySelector('.location .r');
                    backBtn.click();
                    return;
                }
                yield sleep(300);
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 2500);
            });
        }
        listenVidoeStatus() {
            let count = 0;
            this.timer = setInterval(() => {
                ElementObj.$video = document.querySelector('video');
                if (!!ElementObj.$video) {
                    this.addInfo(`🔉🔉🔉\u5df2\u6210\u529f\u76d1\u6d4b${count}\u6b21,\u7a0b\u5e8f\u540e\u53f0\u4ee5${toolOption.accelerator}\u500d\u901f\u6b63\u5e38\u5b66\u4e60\u4e2d`);
                    count += 1;
                }
            }, 3000);
        }
        render(type) {
            let renderData = type == 1 ? this.classList : this.selectData;
            let str = '';
            for (let i = 0; i < renderData.length; i++) {
                let item = renderData[i];
                str += `
                <div class="item">
                    <div class="content">
                        <div class="name1">${item.courseInfoName}</div>
                        <div class="name2">\u73ed\u7ea7:${item.className}</div>
                        <div class="name2">\u5b66\u671f:${item.termName}</div>
                        <div class="name2">\u5b8c\u6210\u8fdb\u5ea6:${item.studySpeed}%</div>
                    </div>
                    <div class="item-controls">
                        <button style='background: ${type == 1 ? '#409eff' : 'red'}'>${type == 1 ? '\u9009\u62e9' : '\u79fb\u9664'}</button>
                    </div>
                </div>
                `;
            }
            let $pennelWrap = type == 1 ? document.querySelector('.leftPannel') : document.querySelector('.rightPannel');
            $pennelWrap.innerHTML = str;
            for (let i = 0; i < $pennelWrap.children.length; i++) {
                let item = $pennelWrap.children[i];
                let button = item.querySelector('button');
                button.onclick = () => {
                    void 0;
                    if (type == 1) {
                        this.moveDataToSelectData(i);
                    } else {
                        this.moveDataToClassList(i);
                    }
                };
            }
        }
        moveDataToSelectData(index) {
            this.selectData.push(this.classList[index]);
            this.classList.splice(index, 1);
            this.handleTemplekeyData();
            this.render(1);
            this.render(2);
        }
        moveDataToClassList(index) {
            this.classList.push(this.selectData[index]);
            this.selectData.splice(index, 1);
            this.handleTemplekeyData();
            this.render(1);
            this.render(2);
        }
        handleTemplekeyData() {
            MyTool.setValue('selectData', this.selectData);
            void 0;
        }
    }
    class chongqingzhuanye extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    var _a, _b;
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.course__list--content .course__item');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            this.getParentIndex();
                            return;
                        }
                        let $nextPage = document.querySelector('.btn-next');
                        if ($nextPage && location.pathname == '/nms-frontend/index.html') {
                            clearInterval(interval);
                            this.getParentIndex2();
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('ul li ul li .posCatalog_select');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                        let $iframe_aliplayer = document.querySelector('#iframe_aliplayer');
                        if (!!$iframe_aliplayer) {
                            clearInterval(interval);
                            ElementObj.$video = (_a = $iframe_aliplayer === null || $iframe_aliplayer === void 0 ? void 0 : $iframe_aliplayer.contentDocument) === null || _a === void 0 ? void 0 : _a.querySelector('video');
                            this.handleClickSpeedUp2();
                            return;
                        }
                        let $iframe_aliplayer2 = document.querySelector('#aliPlayerFrame');
                        if (!!$iframe_aliplayer2) {
                            ElementObj.$allTask = (_b = $iframe_aliplayer2.contentDocument) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.section .section-item');
                            void 0;
                            if (ElementObj.$allTask.length) {
                                clearInterval(interval);
                                this.getCurrentIndex2();
                                return;
                            }
                        }
                        let $menu = document.querySelectorAll('.complete-status .btn-item')[2];
                        if (!!$menu) {
                            clearInterval(interval);
                            $menu.click();
                            yield sleep(1500);
                            let $items = document.querySelectorAll('#pane-MUST .text-item');
                            if ($items.length === 0) {
                                void 0;
                                return;
                            }
                            MyTool.setValue('homeUrl', location.href);
                            let $first_item = $items[0];
                            $first_item.click();
                            setTimeout(() => {
                                window.close();
                            }, 1000 * 10);
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            ElementObj.$parentNodes.forEach(item => {
                void 0;
                let $status = item.querySelector('span.num');
                if ($status) {
                    if (parseInt($status.innerText) <= 95) {
                        item.querySelector('.enter-btn').click();
                        setTimeout(() => {
                            location.reload();
                        }, 3000);
                    }
                }
            });
        }
        getParentIndex2() {
            return __awaiter(this, void 0, void 0, function* () {
                let $btn = document.querySelectorAll('.btn-box .btn-item')[2];
                $btn.click();
                yield sleep(3500);
                let $item = document.querySelectorAll('#pane-MUST .text-item')[0];
                $item.click();
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('✅✅✅\u6b63\u5728\u521d\u59cb\u5316');
                ElementObj.$handleSpeedUp.style.display = 'none';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].querySelector('.icon_Completed');
                    if (!$item) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('.posCatalog_name');
                $nextBtn.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getCurrentIndex2() {
            return __awaiter(this, void 0, void 0, function* () {
                showTip('✅✅✅\u6b63\u5728\u521d\u59cb\u5316');
                ElementObj.$handleSpeedUp.style.display = 'none';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].classList.contains('finish');
                    if (!$item) {
                        this.currentIndex = i;
                        break;
                    }
                }
                ElementObj.$allTask[i].click();
                showTip('✅✅✅\u5b8c\u6210\u521d\u59cb\u5316,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                setTimeout(() => {
                    this.handleClickSpeedUp2(() => {
                    }, 3);
                }, 4500);
            });
        }
        getVideoDom(option) {
            return new Promise(resolve => {
                if (option) {
                    let count = 0;
                    let Timer = setInterval(() => {
                        let $iframe = document.querySelector('#aliPlayerFrame');
                        let _document = $iframe.contentDocument;
                        ElementObj.$video = _document.querySelector('video');
                        count += 1;
                        if (!!ElementObj.$video) {
                            clearInterval(Timer);
                            resolve(true);
                        }
                        if (count > 10) {
                            clearInterval(Timer);
                            resolve(false);
                        }
                    }, 1000);
                } else {
                    let count = 0;
                    let Timer = setInterval(() => {
                        var _a, _b;
                        let $iframe = document.querySelector('#iframe');
                        let _document = (_b = (_a = $iframe.contentDocument) === null || _a === void 0 ? void 0 : _a.querySelector('iframe')) === null || _b === void 0 ? void 0 : _b.contentDocument;
                        ElementObj.$video = _document.querySelector('video');
                        count += 1;
                        if (!!ElementObj.$video) {
                            clearInterval(Timer);
                            resolve(true);
                        }
                        if (count > 10) {
                            clearInterval(Timer);
                            resolve(false);
                        }
                    }, 1000);
                }
            });
        }
        play() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                if (studyType) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    let $wrap = (_a = $el('#iframe').contentDocument.querySelector('iframe')) === null || _a === void 0 ? void 0 : _a.contentDocument.querySelector('#reader');
                    this.changeHtml($wrap);
                    this.listenPageHide();
                    this.listenPlayTime();
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        this.playNext();
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                }
                if (!studyType) {
                    showTip('⚠️⚠️⚠️\u672a\u68c0\u6d4b\u5230\u89c6\u9891,5\u79d2\u540e\u5207\u6362\u4e0b\u4e00\u8282', 4500);
                    setTimeout(() => {
                        this.playNext();
                    }, 3000);
                }
            });
        }
        play2() {
            return __awaiter(this, void 0, void 0, function* () {
                if (!ElementObj.$video) {
                    location.reload();
                    return;
                }
                ElementObj.$video.volume = 0;
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    let homeUrl = MyTool.getValue('homeUrl');
                    yield sleep(2500);
                    MyTool.openInTab(homeUrl);
                    setTimeout(() => {
                        window.close();
                    }, 1000 * 5);
                }));
            });
        }
        play3() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom('#aliPlayerFrame');
                ElementObj.$video.volume = 0;
                yield sleep(200);
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                        let homeUrl = MyTool.getValue('homeUrl');
                        yield sleep(2500);
                        MyTool.openInTab(homeUrl);
                        setTimeout(() => {
                            window.close();
                        }, 1000 * 15);
                        return;
                    }
                    this.currentIndex += 1;
                    ElementObj.$allTask[this.currentIndex].click();
                    showTip('⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 4500);
                    setTimeout(() => {
                        this.handleClickSpeedUp2(() => {
                        }, 3);
                    }, 4500);
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(3000);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].querySelector('.posCatalog_name').click();
                showTip('⚠️⚠️⚠️\u6b63\u5728\u5207\u6362\u8bfe\u7a0b', 4500);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                var _a;
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                let videoDuration = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration}\u5206\u949f`);
                let $iframe = document.querySelector('#iframe');
                let $statusDom = (_a = $iframe.contentDocument) === null || _a === void 0 ? void 0 : _a.querySelector('.ans-job-icon');
                let status = $statusDom === null || $statusDom === void 0 ? void 0 : $statusDom.getAttribute('aria-label');
                if (status == '\u4efb\u52a1\u70b9\u5df2\u5b8c\u6210') {
                    clearInterval(this.timer);
                    this.addInfo(`✅✅✅\u76d1\u6d4b\u5230\u5f53\u524d\u4efb\u52a1\u5df2\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u8282`, 1);
                    setTimeout(() => {
                        this.playNext();
                    }, 3000);
                }
            }, 3000);
        }
        addInfo(str, type) {
            var _a, _b;
            ElementObj.$ctxstatsbox = (_a = $el('#iframe').contentDocument.querySelector('iframe')) === null || _a === void 0 ? void 0 : _a.contentDocument.querySelector('.ctxstatsbox');
            let $ctxstatsbox_lis = (_b = $el('#iframe').contentDocument.querySelector('iframe')) === null || _b === void 0 ? void 0 : _b.contentDocument.querySelectorAll('.ctxstatsbox_li');
            if ($ctxstatsbox_lis.length >= 15) {
                ElementObj.$ctxstatsbox.innerHTML = '';
            }
            let li = `<li class="ctxstatsbox_li" style="color: ${type == 0 ? '#f01414' : '#000'};line-height: 30px;font-size: 16px;list-style: none;">${str}</li>`;
            ElementObj.$ctxstatsbox.innerHTML += li;
        }
        handleClickSpeedUp2(callback, type) {
            return __awaiter(this, void 0, void 0, function* () {
                let key = localStorage.getItem('mytoolkey');
                if (key) {
                    this.speedStatus = 1;
                    let result = yield fetchData({
                        method: 'GET',
                        url: bserUrl + `/speedup?toolkey=${key}&canuse=${toolOption.SchoolType}`
                    });
                    if (result.code == 200) {
                        this.speedStatus = 1;
                        if (type == 3) {
                            this.play3();
                        } else {
                            this.play2();
                        }
                    } else {
                        showTip(`🔉🔉🔉${result.message}`, 5000, true);
                        return;
                    }
                    this.randomListen();
                } else if (!key) {
                    void 0;
                    window.open(basehost);
                } else {
                    void 0;
                }
            });
        }
    }
    chongqingzhuanye.ctxid = 26;
    class jiaoyuganbuwang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $memnu = document.querySelectorAll('.customcur-tabs-wrapper li')[1];
                        if (!!$memnu) {
                            clearInterval(interval);
                            $memnu.click();
                            this.getParentIndex();
                            return;
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('✅✅✅\u6b63\u5728\u521d\u59cb\u5316', 3000);
                ElementObj.$handleSpeedUp.style.display = 'none';
                yield sleep(3000);
                GM_setValue("homeUrl", location.href);
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                yield sleep(3000);
                let $nextBtn = document.querySelectorAll('tr')[2].lastChild;
                (_a = $nextBtn.querySelector('a')) === null || _a === void 0 ? void 0 : _a.click();
                this.handleClickSpeedUp();
                setTimeout(() => {
                    window.close();
                }, 5000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask = document.querySelectorAll('.cvtb-MCK-course-content');
                yield sleep(100);
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $statusDom = ElementObj.$allTask[i].querySelector('.cvtb-MCK-CsCt-studyProgress');
                    let status = parseInt($statusDom.innerText);
                    if (status != 100) {
                        this.currentIndex = i;
                        break;
                    }
                }
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 3000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$handleSpeedUp.style.display = 'none';
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                yield sleep(200);
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                this.listenRebort();
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.playNext();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2000);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    let homeUrl = GM_getValue("homeUrl", null);
                    GM_openInTab(homeUrl, {active: true});
                    setTimeout(() => {
                        window.close();
                    }, 3000);
                    return;
                }
                this.currentIndex += 1;
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let $statusDom = ElementObj.$allTask[this.currentIndex].querySelector('.cvtb-MCK-CsCt-studyProgress');
                let status = parseInt($statusDom.innerText);
                let videoDuration = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5f53\u524d\u64ad\u653e\u8fdb\u5ea6\u4e3a${status}%,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration}\u5206\u949f`);
                if (status == 100) {
                    clearInterval(this.timer);
                    this.addInfo(`✅✅✅\u76d1\u6d4b\u5230\u5f53\u524d\u4efb\u52a1\u5df2\u5b8c\u6210,5\u79d2\u540e\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u8282`, 1);
                    setTimeout(() => {
                        this.playNext();
                    }, 3000);
                }
            }, 3000);
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                void 0;
                let $btn = document.querySelector('.dialog-button-container button');
                if (!!$btn) {
                    $btn.click();
                }
            }, 10 * 1000);
        }
    }
    jiaoyuganbuwang.ctxid = 26;
    class zaixianxuexi extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $jAlertButton2 = document.querySelector('#jAlertButton2');
                        if (!!$jAlertButton2) {
                            clearInterval(interval);
                            $jAlertButton2.click();
                            yield sleep(2000);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('.videoList li');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316');
                ElementObj.$handleSpeedUp.style.display = 'none';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].querySelector('.overTitle');
                    if ($item.innerText != '【\u5df2\u5b8c\u6210】') {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                (_a = ElementObj.$allTask[this.currentIndex]) === null || _a === void 0 ? void 0 : _a.click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                yield sleep(200);
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                this.listenVidoeStatus(ElementObj.$video, () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    this.getCurrentIndex();
                }));
                ElementObj.$video.addEventListener('pause', () => {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                });
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
    }
    zaixianxuexi.ctxid = 26;
    class anquanshengchanzx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $allTask1 = document.querySelectorAll('.chapter_j>span');
                        let $allTask2 = document.querySelectorAll('.first-box');
                        ElementObj.$allTask = $allTask1.length ? $allTask1 : $allTask2;
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                showTip('\u6b63\u5728\u521d\u59cb\u5316');
                ElementObj.$handleSpeedUp.style.display = 'none';
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i].querySelector('li');
                    if (!!$item) {
                        if ($item.classList.contains('currse')) {
                            this.currentIndex = i;
                            break;
                        }
                    }
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('text-color')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                void 0;
                if (location.pathname != '/course/lesson') {
                    (_a = ElementObj.$allTask[this.currentIndex].querySelector('li')) === null || _a === void 0 ? void 0 : _a.click();
                }
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let Timer = setInterval(() => {
                    ElementObj.$video = document.querySelector('video.vjs-tech');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(true);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                yield this.getVideoDom();
                ElementObj.$video.volume = 0;
                yield sleep(200);
                ElementObj.$video.play();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                    this.listenPlayTime();
                }, 3000);
            });
        }
        listenPlayTime() {
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                count += 1;
                let time = ElementObj.$video.currentTime / 60;
                let durrentTime = ElementObj.$video.duration / 60;
                let $balance = document.querySelector('.vjs-remaining-time-display');
                if ($balance) {
                    let $balancetext = $balance.innerText;
                    if ($balancetext == '0:00') {
                        clearInterval(this.timer);
                        this.playNext();
                        return;
                    }
                }
                if (time >= durrentTime) {
                    clearInterval(this.timer);
                    this.playNext();
                }
            }), 1000);
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2000);
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                this.currentIndex += 1;
                void 0;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('li');
                if (location.pathname == '/course/lesson') {
                    $nextBtn = ElementObj.$allTask[this.currentIndex];
                }
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 2000);
            });
        }
    }
    anquanshengchanzx.ctxid = 26;
    class guojiakaifangdaxue extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll("li[id]");
                        if (location.host == 'xczxzdbf.moodle.qwbx.ouchn.cn' && ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex();
                            return;
                        }
                        let $nextBtn = document.querySelector('button.next-btn') || document.querySelector('.newgk-prenext.newgk-next');
                        if ($nextBtn) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            showTip('♥♥♥\u521d\u59cb\u5316\u5b8c\u6210');
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i];
                    if ($item.classList.contains('current')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                showTip('♥♥♥\u521d\u59cb\u5316\u5b8c\u6210');
                this.handleClickSpeedUp();
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    var _a;
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    let _document = document.querySelector('#previewContentInIframe');
                    ElementObj.$video = (_a = _document === null || _document === void 0 ? void 0 : _document.contentDocument) === null || _a === void 0 ? void 0 : _a.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    let $playBtn = document.querySelector('.mvp-toggle-play');
                    if (!!$playBtn) {
                        $playBtn.click();
                    } else {
                        ElementObj.$video.play();
                    }
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        yield sleep(4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            let $playBtn = document.querySelector('.mvp-toggle-play');
                            ElementObj.$video.volume = 0;
                            $playBtn === null || $playBtn === void 0 ? void 0 : $playBtn.click();
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            this.currentIndex += 1;
            let $nextBtn = document.querySelector('button.next-btn');
            if (location.host == 'xczxzdbf.moodle.qwbx.ouchn.cn') {
                $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('.aalink');
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            } else if (location.host == 'moodle.syxy.ouchn.cn') {
                $nextBtn = document.querySelector('.newgk-prenext.newgk-next');
                if ($nextBtn) {
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }
            } else {
                $nextBtn = document.querySelector('button.next-btn');
                if ($nextBtn) {
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 5000);
                }
            }
        }
    }
    guojiakaifangdaxue.ctxid = 26;
    class jjjxjy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                if (location.host == 'hunau.web2.superchutou.com') {
                    let interval = setInterval(() => {
                        ElementObj.$handleSpeedUp.style.display = 'none';
                        if (location.href == 'https://hunau.web2.superchutou.com/#/') {
                            clearInterval(interval);
                            setTimeout(() => {
                                this._init();
                            }, 1000 * 5);
                            location.href = MyTool.getValue('homeUrl');
                        }
                        if (location.href.indexOf('/#/onlineclass/curriculum') != -1) {
                            let $item = document.querySelector('.ant-row.catalog_child_line');
                            if (!!$item) {
                                clearInterval(interval);
                                MyTool.setValue('homeUrl', location.href);
                                setTimeout(() => {
                                    this._init();
                                }, 1000 * 5);
                                $item.click();
                            }
                        }
                        ElementObj.$allTask = document.querySelectorAll('.ant-list-items div a');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    }, 1000);
                } else {
                    window.addEventListener('urlchange', info => {
                        void 0;
                        setTimeout(() => {
                            ElementObj.$allTask = document.querySelectorAll('.ant-list-items div a');
                            if (ElementObj.$allTask.length) {
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                clearInterval(interval);
                                this.getCurrentIndex();
                            }
                            let $item = document.querySelector('.ant-row.catalog_child_line');
                            if (!!$item) {
                                clearInterval(interval);
                                $item === null || $item === void 0 ? void 0 : $item.click();
                            }
                            if (location.href == 'https://jjxy.web2.superchutou.com/#/') {
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                clearInterval(interval);
                                this.getParentIndex();
                            }
                        }, 5000);
                    });
                    let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                        void 0;
                        try {
                            ElementObj.$allTask = document.querySelectorAll('.ant-list-items div a');
                            if (ElementObj.$allTask.length) {
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                clearInterval(interval);
                                this.getCurrentIndex();
                            }
                            let $item = document.querySelector('.ant-row.catalog_child_line');
                            if (!!$item) {
                                clearInterval(interval);
                                $item === null || $item === void 0 ? void 0 : $item.click();
                            }
                            if (location.href == 'https://jjxy.web2.superchutou.com/#/') {
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                clearInterval(interval);
                                this.getParentIndex();
                            }
                        } catch (e) {
                        }
                    }), 1000);
                }
            });
        }
        getParentIndex() {
            let $parents = $el('.ant-table-tbody').querySelectorAll('.ant-table-tbody tr');
            for (var i = 0; i <= $parents.length - 1; i++) {
                let $item = $parents[i].querySelector('.ant-progress-bg');
                if (parseInt($item.style.width) < 99) {
                    $parents[i].querySelector('.anticon-play-circle').click();
                    break;
                }
            }
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let cur = -1;
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let item = ElementObj.$allTask[i];
                    if (item.classList.contains('catalog_playing___3PDRN')) {
                        cur = i;
                        break;
                    }
                }
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i].querySelector('i.anticon-check-circle');
                    if (!isDone) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                if (cur != this.currentIndex) {
                    ElementObj.$allTask[this.currentIndex].click();
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.pdPlayFn(location.href);
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer2);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    let $playBtn = document.querySelector('.mvp-toggle-play');
                    if (!!$playBtn) {
                        $playBtn.click();
                    } else {
                        ElementObj.$video.play();
                    }
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.ant-modal-body button');
                let $btn2 = document.querySelector('.ant-btn.ant-btn-primary');
                $btn === null || $btn === void 0 ? void 0 : $btn.click();
                $btn2 === null || $btn2 === void 0 ? void 0 : $btn2.click();
            }, 1 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(4500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                if ($nextBtn) {
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4000);
                }
            });
        }
    }
    jjjxjy.ctxid = 26;
    class xiangongyedx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $allTask = document.querySelectorAll('.el-tree-node__children .el-tree-node');
                        let $allTask2 = document.querySelectorAll(".ant-tree-child-tree>li[role='treeitem']");
                        ElementObj.$allTask = $allTask.length ? $allTask : $allTask2;
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            var _a;
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = (_a = isDone === null || isDone === void 0 ? void 0 : isDone.querySelector('.svg-icon use')) === null || _a === void 0 ? void 0 : _a.getAttribute('xlink:href');
                    if (status == '#icon-VideoUncomplete') {
                        let $title = (isDone === null || isDone === void 0 ? void 0 : isDone.querySelector('.node-title')).innerText;
                        if ($title != '\u7ae0\u8282\u6d4b\u8bc4') {
                            this.currentIndex = i;
                            break;
                        }
                    }
                    if (isDone === null || isDone === void 0 ? void 0 : isDone.classList.contains('ant-tree-treenode-selected')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[i].click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    let $startBtn = document.querySelector('.vjs-button-icon');
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video && $startBtn) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    yield sleep(200);
                    let $startBtn = document.querySelector('.vjs-button-icon');
                    $startBtn.click();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $btn = document.querySelector('.ant-modal-confirm-btns button');
                if (!!$btn) {
                    clearInterval(this.listenRebortTime);
                    $btn.click();
                    this.playNext();
                    return;
                }
                let isDone = ElementObj.$allTask[this.currentIndex];
                let status = (_a = isDone === null || isDone === void 0 ? void 0 : isDone.querySelector('.svg-icon use')) === null || _a === void 0 ? void 0 : _a.getAttribute('xlink:href');
                if (status == '#icon-VideoComplete') {
                    clearInterval(this.listenRebortTime);
                    this.playNext();
                }
            }, 3 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(4500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                if (!!ElementObj.$allTask[this.currentIndex].querySelector('.ant-tree-node-content-wrapper')) {
                    $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('.ant-tree-node-content-wrapper');
                }
                if ($nextBtn) {
                    $nextBtn.click();
                    setTimeout(() => {
                        this.pdPlayFn(location.href);
                    }, 4000);
                }
            });
        }
    }
    xiangongyedx.ctxid = 60;
    class hebeiganbu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        if (location.pathname == '/student/class_detail_course.do') {
                            let $btn = document.querySelector('.hoz_course_row input');
                            if (!!$btn) {
                                clearInterval(interval);
                                setTimeout(() => {
                                    window.close();
                                }, 15 * 1000);
                                MyTool.setValue('homeUrl', location.href);
                                $btn.click();
                            }
                        }
                        if (location.pathname == '/portal/study_play.do') {
                            ElementObj.$video = document.querySelector('video');
                            if (ElementObj.$video) {
                                clearInterval(interval);
                                this.handleClickSpeedUp();
                            }
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    setTimeout(() => {
                        ElementObj.$video = document.querySelector('video');
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        setTimeout(() => {
                            ElementObj.$video.playbackRate = toolOption.accelerator;
                        }, 3000);
                        ElementObj.$handleSpeedUp.style.background = '#f01414';
                        ElementObj.$handleSpeedUp.innerText = '\u52a0\u901f\u6210\u529f';
                        ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                            void 0;
                            this.playNext();
                        }));
                        ElementObj.$video.addEventListener('pause', () => {
                            setTimeout(() => {
                                ElementObj.$video.volume = 0;
                                ElementObj.$video.play();
                            }, 1500);
                        });
                        void 0;
                    }, 4500);
                    let $btn = document.querySelector('.user_choise');
                    $btn === null || $btn === void 0 ? void 0 : $btn.click();
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2500);
                location.href = MyTool.getValue('homeUrl');
            });
        }
    }
    hebeiganbu.ctxid = 26;
    class gdedujsxx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                void 0;
                this.handleClickSpeedUp();
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                ElementObj.$handleSpeedUp.style.display = 'none';
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                let $labels = document.querySelectorAll('.m-question-lst label');
                if ($labels.length) {
                    clearInterval(this.listenRebortTime);
                    $labels[0].click();
                    let $sumit = document.querySelector('.btn.u-main-btn');
                    $sumit.click();
                    yield sleep(3000);
                    $labels = document.querySelectorAll('.m-question-lst label');
                    if ($labels.length) {
                        $labels[1].click();
                        let $sumit = document.querySelector('.btn.u-main-btn');
                        $sumit.click();
                    }
                    yield sleep(3000);
                    this.listenRebort();
                }
            }), 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(4500);
                this.currentIndex += 1;
                let $nextBtn = document.querySelector('a.btn.next.crt');
                if ($nextBtn) {
                    $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4000);
                }
            });
        }
    }
    gdedujsxx.ctxid = 60;
    class zhuzhouteacher extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $btn = document.querySelectorAll('.antd-pro-pages-my-center-my-center-menuItem')[2];
                        if (!!$btn) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            $btn.click();
                            yield sleep(1000);
                            this.getCurrentIndex();
                            return;
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2500);
                ElementObj.$allTask = document.querySelectorAll('.antd-pro-pages-my-center-course-learning-courseWrap>.ant-row');
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = isDone.querySelector('.ant-progress-text').innerHTML;
                    if (parseInt(status) < 99) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex != -1) {
                    ElementObj.$allTask[this.currentIndex].querySelector('.ant-btn.ant-btn-primary').click();
                    setTimeout(() => {
                    }, 1000 * 15);
                    return;
                } else {
                    let $nextPage = document.querySelector('.ant-pagination-next');
                    if ($nextPage.classList.contains('ant-pagination-disabled')) {
                        void 0;
                        return;
                    }
                    $nextPage.click();
                    this.getCurrentIndex();
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                MyTool.openInTab('http://www.zhuzhouteacher.com/teacheredu/main/mycenter/course-learning');
                setTimeout(() => {
                    window.close();
                }, 5000);
            });
        }
    }
    zhuzhouteacher.ctxid = 60;
    class zhuanyejishuryjxjy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.catalog-list p');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].querySelector('a').click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    zhuanyejishuryjxjy.ctxid = 60;
    class yinghuaxuetang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll(".detmain .list .item a ");
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('on')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    let btn = document.querySelector('.promptchmqylqsxtfb');
                    let btn2 = document.querySelector('.mutechtkfjgkqelf');
                    if (btn) {
                        btn.click();
                    }
                    if (btn2) {
                        btn2.click();
                    }
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    yinghuaxuetang.ctxid = 60;
    class shanghaikaifangdx extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.cell_info1 a');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    shanghaikaifangdx.ctxid = 60;
    class gzgbjy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.tab-content-desc');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('desc-item-sel')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    gzgbjy.ctxid = 60;
    class guizhoujianshezyjs extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.catalog div>a');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('cur')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    let $vplay = document.querySelector('.vplay');
                    if (!$vplay.classList.contains('vmPause')) {
                        $vplay.click();
                    }
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    guizhoujianshezyjs.ctxid = 60;
    class jixujiaoyuzaixian extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.video-list-item-span');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.innerText.indexOf('\u5df2\u5b66\u5b8c') == -1) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.el-message-box__btns .el-button--primary');
                $btn === null || $btn === void 0 ? void 0 : $btn.click();
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    jixujiaoyuzaixian.ctxid = 60;
    class gzteacher extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.collapseactivityName2');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('isActive')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $closeBtn = document.querySelectorAll('.ant-modal-body button')[2];
                $closeBtn === null || $closeBtn === void 0 ? void 0 : $closeBtn.click();
                let $nextBtn = document.querySelectorAll('.studycontentBottom button')[2];
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    gzteacher.ctxid = 60;
    class moocxinyingzao extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('#pane-category .resource-list-item');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = isDone.querySelector('.resource-action span').innerText;
                    if (!['\u5df2\u5b8c\u6210', '\u6b63\u5728\u5b66'].includes(status)) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    let $iframe = document.querySelector('iframe');
                    if (!!$iframe) {
                        clearInterval(Timer);
                        resolve(2);
                        return;
                    }
                    ElementObj.$video = document.querySelectorAll('video')[0];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                this.getCurrentIndex();
            });
        }
    }
    moocxinyingzao.ctxid = 60;
    class zhejiangzjelib extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask = document.querySelector('#iframepage').contentDocument.querySelectorAll('.ncells');
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = isDone.querySelector('.roundpointStudent.blue');
                    if (!status) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].querySelector('a').click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.spanKeyCount();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('#iframepage').contentDocument.querySelector('#iframe').contentDocument.querySelector('iframe').contentDocument.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        handleClickSpeedUp(callback) {
            return __awaiter(this, void 0, void 0, function* () {
                this.getCurrentIndex();
            });
        }
        spanKeyCount() {
            return __awaiter(this, void 0, void 0, function* () {
                let key = localStorage.getItem('mytoolkey');
                if (key) {
                    let result = yield fetchData({
                        method: 'GET',
                        url: bserUrl + `/speedup?toolkey=${key}&canuse=${toolOption.SchoolType}`
                    });
                    if (result.code == 200) {
                        this.play();
                    } else {
                        showTip(`🔉🔉🔉${result.message}`, 5000, true);
                        return;
                    }
                } else if (!key) {
                    void 0;
                    window.open(basehost);
                } else {
                    void 0;
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('a');
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.spanKeyCount();
                }, 4000);
            });
        }
    }
    zhejiangzjelib.ctxid = 60;
    class dongbeishifandaxue extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.course-list-con .ovd');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('cur')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('a');
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 6000);
            });
        }
    }
    dongbeishifandaxue.ctxid = 60;
    class qzjystudy extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.videoList .item');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = isDone.querySelectorAll('span')[1].innerText;
                    if (parseInt(status) < 99) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 6000);
            });
        }
    }
    qzjystudy.ctxid = 60;
    class GlivePro extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $allTask = document.querySelectorAll('.animated .syllabus-tree-node-title');
                        let $allTask2 = document.querySelectorAll('.aside-node-child-inner .aside-node-child-inner li');
                        if ($allTask.length || $allTask2.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            ElementObj.$allTask = $allTask.length ? $allTask : $allTask2;
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (location.host == 'cloud.gaodun.com') {
                        let $icon = isDone.querySelector('i');
                        if (!$icon.classList.contains('aside-resource-progress2')) {
                            this.currentIndex = i;
                            break;
                        }
                    } else {
                        if (isDone.classList.contains('is-active')) {
                            this.currentIndex = i;
                            break;
                        }
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                if (location.host == 'cloud.gaodun.com') {
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let dur = parseInt(ElementObj.$video.duration);
                let cur = Math.ceil(ElementObj.$video.currentTime);
                let isComplete = false;
                if (cur >= dur && !isComplete) {
                    isComplete = true;
                    showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                    this.playNext();
                }
            }, 3 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                if (location.host == 'cloud.gaodun.com') {
                    location.reload();
                } else {
                    this.currentIndex += 1;
                    let $nextBtn = ElementObj.$allTask[this.currentIndex];
                    $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                    setTimeout(() => {
                        this.handleClickSpeedUp();
                    }, 4500);
                }
            });
        }
    }
    GlivePro.ctxid = 60;
    class gaodengxueli extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.course-list-txt dd i');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('fa-youtube-play')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].parentElement.click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].parentElement;
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 6000);
            });
        }
    }
    gaodengxueli.ctxid = 60;
    class henanzhuanjizaixian extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.timer = null;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.videoLi');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            this.getCurrentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 5000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 1000 * 5.5);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video.pv-video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    ElementObj.$canvas = document.querySelector('#bplayer-ffplayer');
                    void 0;
                    void 0;
                    if (!!ElementObj.$canvas) {
                        clearInterval(Timer);
                        resolve(3);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                ElementObj.$allTask[this.currentIndex].click();
                yield sleep(4500);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenRebort();
                    this.listenPlayTime(1);
                }
                if (studyType == 3) {
                    let $volumeBtn = document.querySelector('.bplayer-volume-control');
                    if ($volumeBtn.getAttribute('data-show') == '0') {
                        let $btn = $volumeBtn.querySelector('.icon');
                        $btn.click();
                    }
                    yield sleep(3000);
                    let $playBtn = document.querySelector('.icon.bplayer-play-btn');
                    $playBtn.click();
                    this.listenPlayTime(3);
                }
                if (studyType == 1 || studyType == 3) {
                    let $wrap = document.querySelector('.live.left');
                    this.changeHtml($wrap);
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        play2() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                void 0;
                let $volumeBtn = document.querySelector('button.pv-volumebtn');
                if (!$volumeBtn.classList.contains('pv-icon-volumenone')) {
                    $volumeBtn.click();
                }
                yield sleep(500);
                let $playBtn = document.querySelector('.pv-iconfont');
                $playBtn.click();
                setTimeout(() => {
                    ElementObj.$video.playbackRate = toolOption.accelerator;
                }, 3000);
                this.listenRebort();
                ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                    showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                    this.playNext();
                    void 0;
                }));
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        listenPlayTime(type) {
            this.timer = setInterval(() => {
                let progress = ElementObj.$allTask[this.currentIndex].querySelector('.progress-bar').style.width;
                if (parseInt(progress) >= 99) {
                    showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                    this.playNext();
                    return;
                }
                let dur, cur;
                if (type == 1) {
                    dur = document.querySelector('.pv-time-current').innerText;
                    cur = document.querySelector('.pv-time-duration').innerText;
                }
                if (type == 3) {
                    let $playedTime = document.querySelector('.played-time');
                    if (!$playedTime) {
                        this.play2();
                        return;
                    }
                    dur = $playedTime.innerText;
                    cur = document.querySelector('.total-time').innerText;
                }
                this.addInfo(`🔊🔊🔊\u76d1\u6d4b\u5230\u89c6\u9891\u6b63\u5728\u5b66\u4e60\u4e2d,\u5df2\u6210\u529f\u5b66\u4e60${dur},\u9700\u5b66\u4e60${cur}`);
                if (cur == dur) {
                    showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                    this.playNext();
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                setTimeout(() => {
                    location.reload();
                }, 3000);
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex];
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
            });
        }
    }
    henanzhuanjizaixian.ctxid = 60;
    class hunannmdxs extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        let $nextBtn = document.querySelector('.pull-right>a');
                        if ($nextBtn) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('fa-youtube-play')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].parentElement.click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$sigleBtn = document.querySelector('.forumaddnew form button.btn.btn-secondary');
                    if (!!ElementObj.$sigleBtn) {
                        clearInterval(Timer);
                        resolve(3);
                        return;
                    }
                    ElementObj.$video = document.querySelectorAll('video')[0];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 3) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicModal = document.querySelector('.ant-modal-root');
                if (!!$topicModal) {
                    (_a = $topicModal.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild($topicModal);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let $nextBtn = document.querySelector('.pull-right>a');
                if (!$nextBtn) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                $nextBtn === null || $nextBtn === void 0 ? void 0 : $nextBtn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
    }
    hunannmdxs.ctxid = 60;
    class dongaokauji extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('tbody>tr');
                        if (['/cwweb/lecture/lectureList', '/study/u/myCourse'].indexOf(location.pathname) != -1 && ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getParentIndex(location.pathname);
                            return;
                        }
                        if (location.pathname.indexOf('/cwweb/videoShow/video/videoPlay') != -1) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex(type) {
            return __awaiter(this, void 0, void 0, function* () {
                let isDone = false;
                for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                    let item = ElementObj.$parentNodes[i];
                    if (type == '/cwweb/lecture/lectureList') {
                        let $spans = item.querySelectorAll('td')[1].querySelectorAll('span');
                        if ($spans[0].innerText != $spans[1].innerText.replace('/', '')) {
                            MyTool.setValue('homeUrl', location.href);
                            let $btn = item.querySelector('.study-a');
                            void 0;
                            $btn.click();
                            setTimeout(() => {
                                window.close();
                            }, 20 * 1000);
                            break;
                        }
                    } else {
                        let $status = item.querySelectorAll('td')[6];
                        if ($status.innerText.trim() != '\u5df2\u5b8c\u6210') {
                            MyTool.setValue('homeUrl', location.href);
                            let $spans = item.querySelector('a.operate-a.active');
                            $spans.click();
                            break;
                        }
                    }
                }
                if (type == '/cwweb/lecture/lectureList' && isDone) {
                    let HomeUrl0 = MyTool.getValue('HomeUrl0');
                    if (!HomeUrl0) {
                        showTip('\u76d1\u6d4b\u5230\u7a0b\u5e8f\u4e0d\u662f\u4ece\u9996\u9875\u81ea\u52a8\u8df3\u8f6c,\u5bfc\u81f4\u672a\u4fdd\u5b58\u9996\u9875\u94fe\u63a5,\u5c06\u8fd4\u56de\u9ed8\u8ba4\u9996\u9875');
                        HomeUrl0 = 'https://study.dongao.cn/study/u/myCourse?accountId=22619331';
                    }
                    location.href = HomeUrl0;
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('fa-youtube-play')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].parentElement.click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    let $wrap = ElementObj.$video.parentElement;
                    $wrap.style.position = 'relative';
                    yield this.changeHtml($wrap);
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    this.listenRebort();
                    this.listenPlayTime();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $veryCode = document.querySelector('#vjs-overlay');
                if ($veryCode) {
                    void 0;
                    (_a = $veryCode.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild($veryCode);
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 2000);
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let homeUrl = MyTool.getValue('homeUrl');
                location.href = homeUrl;
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 5000);
            });
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                let videoDuration = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration}\u5206\u949f`);
            }, 3000);
        }
    }
    class bainianshuren extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.swiperIndex = 0;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.project-course li');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getParentIndex();
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('.el-tree-node');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                    let item = ElementObj.$parentNodes[i];
                    let status = item.querySelector('.project-courseTitle span').innerText;
                    if (status == '\u5b66\u4e60\u4e2d' || status == '\u672a\u5b66\u4e60') {
                        MyTool.setValue('homeUrl', location.href);
                        item.querySelector('span.project-courseButton').click();
                        break;
                    }
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2500);
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let element = ElementObj.$allTask[i].querySelector('i').title.trim();
                    if (element != '\u5df2\u5b66\u4e60') {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    location.href = 'https://v3.dconline.net.cn/student.html#/project/index?project_id=13844';
                    setTimeout(() => {
                        location.reload();
                    }, 3000);
                    return;
                }
                let $nextBtn = ElementObj.$allTask[i].querySelector('.nav_menu');
                $nextBtn.click();
                yield sleep(2500);
                let isHasSwiperItem = yield this.getSwiperItem();
                if (isHasSwiperItem == 1) {
                    this.getSwiperIndex();
                } else {
                    this.handleClickSpeedUp();
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
            });
        }
        getSwiperIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$swiperItem.length - 1; i++) {
                    let element = ElementObj.$swiperItem[i].querySelector('.video-status').innerText.trim();
                    if (element != '\u5df2\u5b66\u4e60') {
                        this.swiperIndex = i;
                        break;
                    }
                }
                let $nextBtn = ElementObj.$swiperItem[this.swiperIndex].querySelector('i.el-icon-video-play');
                $nextBtn.click();
                yield sleep(2500);
                let $btn = document.querySelector('.el-message-box__btns .el-button--primary');
                $btn === null || $btn === void 0 ? void 0 : $btn.click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getSwiperItem() {
            return __awaiter(this, void 0, void 0, function* () {
                return new Promise(resolve => {
                    let count = 0;
                    let Timer = setInterval(() => {
                        count += 1;
                        ElementObj.$swiperItem = document.querySelectorAll('.public-articleSlideList');
                        if (!!ElementObj.$swiperItem.length) {
                            clearInterval(Timer);
                            resolve(1);
                            return;
                        }
                        if (count >= 3) {
                            clearInterval(Timer);
                            resolve(2);
                        }
                    }, 1000);
                });
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = 1;
                    }, 3000);
                    let $wrap = document.querySelector('#video');
                    this.changeHtml($wrap);
                    this.listenPlayTime();
                    this.listenRebort();
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 1500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    let homeUrl = MyTool.getValue('homeUrl');
                    location.href = homeUrl;
                    setTimeout(() => {
                        location.reload();
                    }, 3000);
                    return;
                }
                setTimeout(() => {
                    location.reload();
                }, 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $dialog = document.querySelector('.el-dialog__body');
                if ($dialog) {
                    $dialog.style.display = 'none';
                }
            }, 3000);
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                let videoDuration = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration}\u5206\u949f`);
            }, 3000);
        }
    }
    bainianshuren.ctxid = 60;
    class dyyxlearning extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.course-list ul ul .videoLi');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelectorAll('video')[1];
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $topicType2 = document.querySelector('.pv-ask-modal-wrap');
                if (!!$topicType2) {
                    void 0;
                    (_a = $topicType2.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild($topicType2);
                    setTimeout(() => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    }, 2000);
                }
                let $topicType1 = document.querySelector('.ccQuestionDiv');
                if ($topicType1) {
                    void 0;
                }
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
    }
    class hebeijiaoshijiaoyuwang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    var _a, _b;
                    void 0;
                    try {
                        if (location.pathname == '/MyCourse/MyEventList') {
                            ElementObj.$parentNodes = document.querySelectorAll('#mainList dd ul li');
                            if (ElementObj.$parentNodes.length > 0) {
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                for (let item of ElementObj.$parentNodes) {
                                    if (item.querySelector('i').innerText != '[\u5df2\u5b8c\u6210]') {
                                        MyTool.setValue('homeUrl', location.href);
                                        item.querySelector('a').click();
                                        break;
                                    }
                                }
                            }
                        }
                        if (location.pathname == '/Event/MyjoinEvent') {
                            ElementObj.$parentNodes = document.querySelectorAll('tr[class]');
                            if (ElementObj.$parentNodes.length > 0) {
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                if (ElementObj.$parentNodes.length > 0) {
                                    for (let item of ElementObj.$parentNodes) {
                                        let $status = item.querySelectorAll('td')[2].querySelector('span').innerText.trim();
                                        if ($status != '\u5df2\u5b66\u5b8c' && $status != '\u5df2\u5b8c\u6210') {
                                            item.querySelector('a').click();
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        if (location.pathname == '/Event/CourseWare') {
                            ElementObj.$parentNodes = document.querySelectorAll('tr[class]');
                            if (ElementObj.$parentNodes.length > 0) {
                                clearInterval(interval);
                                ElementObj.$handleSpeedUp.style.display = 'none';
                                if (ElementObj.$parentNodes.length > 0) {
                                    for (let item of ElementObj.$parentNodes) {
                                        let $status = item.querySelectorAll('td')[2].querySelector('span').innerText.trim();
                                        if ($status != '\u5df2\u5b66\u5b8c') {
                                            item.querySelector('a').click();
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        ElementObj.$video = (_b = (_a = document.querySelector('iframe')) === null || _a === void 0 ? void 0 : _a.contentDocument) === null || _b === void 0 ? void 0 : _b.querySelector('video');
                        if (ElementObj.$video) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.handleClickSpeedUp();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.pdPlayFn(location.href);
                }, 4000);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    var _a, _b;
                    count += 1;
                    ElementObj.$video = (_b = (_a = document.querySelector('iframe')) === null || _a === void 0 ? void 0 : _a.contentDocument) === null || _b === void 0 ? void 0 : _b.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    let $wrap = document.querySelector('#mian');
                    $wrap.style.position = 'relative';
                    yield this.changeHtml($wrap);
                    this.listenPlayTime();
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.school-sate button');
                if (!!$btn) {
                    $btn.click();
                }
            }, 10 * 1000);
        }
        listenPlayTime() {
            showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
            let count = 0;
            this.timer = setInterval(() => {
                count += 1;
                let time = (ElementObj.$video.currentTime / 60).toFixed(2);
                let videoDuration = (ElementObj.$video.duration / 60).toFixed(2);
                this.addInfo(`\u5df2\u76d1\u6d4b${count}\u6b21,\u5f53\u524d\u72b6\u6001\u6b63\u5728\u5b66\u4e60,\u5df2\u64ad\u653e${time}\u5206\u949f,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration}\u5206\u949f`);
            }, 3000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let $nextBtn2 = document.querySelectorAll('.tishivalhui')[2];
                let $nextBt1 = document.querySelectorAll('.tishivalhui')[1];
                let $nextTitle = $nextBtn2 || $nextBt1;
                if ($nextTitle.innerText == '\u4e0b\u4e00\u7bc7:\u6ca1\u6709\u4e86;') {
                    location.href = MyTool.getValue('homeUrl');
                    return;
                }
                yield sleep(2500);
                let $tishivaljus = document.querySelectorAll('.tishivalju');
                let $nextBtn = $tishivaljus.length > 1 ? $tishivaljus[1] : $tishivaljus[0];
                $nextBtn.click();
            });
        }
    }
    class shangdongganbu extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.class');
                        if (location.href.indexOf('/content#/personalCenter') != -1 && ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex();
                            return;
                        }
                        if (location.href.indexOf('/content#/commend/coursedetail/?courseId=') != -1) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    let status = isDone.querySelectorAll('.pro-t>div')[1].innerText;
                    if (parseInt(status) != 100) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let btn = ElementObj.$allTask[this.currentIndex].querySelector('.class-img>img');
                btn.click();
                setTimeout(() => {
                    window.close();
                }, 1000 * 120);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    let $wrap = document.querySelector('.video-player-box');
                    $wrap.style.position = 'relative';
                    yield this.changeHtml($wrap);
                    let option = {courseId: '', idCardHash: ''};
                    option.courseId = /courseId=(.*)/.exec(location.href)[1];
                    option.idCardHash = JSON.parse(sessionStorage.getItem('userInfo')).data.idCardHash;
                    if (!option.idCardHash) {
                        void 0;
                        return;
                    }
                    let result1 = yield this.fetchStart(option);
                    this.listenPlayTime(option);
                    this.listenRebort();
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.school-sate button');
                if (!!$btn) {
                    $btn.click();
                }
            }, 10 * 1000);
        }
        listenPlayTime(option) {
            return __awaiter(this, void 0, void 0, function* () {
                this.addInfo('✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅');
                yield sleep(3000);
                showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
                let videoDuration = Math.ceil(ElementObj.$video.duration);
                if (!videoDuration) {
                    void 0;
                    return;
                }
                let balanceTime = 0;
                for (let item of new Array(1000)) {
                    if (balanceTime >= videoDuration) {
                        yield this.saveProgress(option);
                        yield this.saveProgress(option);
                        yield this.saveEnd(option);
                        this.addInfo('🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉');
                        break;
                    }
                    balanceTime += 1 * toolOption.accelerator > videoDuration ? videoDuration : 1 * toolOption.accelerator;
                    option.studyTimes = balanceTime;
                    let result1 = yield this.saveProgress(option);
                    this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${balanceTime}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration / 60}\u5206\u949f`);
                    yield sleep(3000);
                }
                this.playNext();
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                yield sleep(2500);
                setTimeout(() => {
                    location.reload();
                }, 3000);
                location.href = 'https://gbwlxy.dtdjzx.gov.cn/content#/personalCenter';
            });
        }
        fetchStart(option) {
            return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let result = yield fetch("https://gbwlxy.dtdjzx.gov.cn/__api/api/study/start", {
                    "headers": {
                        "accept": "application/json, text/plain, */*",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "content-type": "application/json;",
                        "sec-ch-ua": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"",
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": "\"Windows\"",
                        "sec-fetch-dest": "empty",
                        "sec-fetch-mode": "cors",
                        "sec-fetch-site": "same-origin",
                        "x-requested-with": "XMLHttpRequest"
                    },
                    "referrer": "https://gbwlxy.dtdjzx.gov.cn/content",
                    "referrerPolicy": "strict-origin-when-cross-origin",
                    "body": `{\"courseId\":\"${option.courseId}\",\"idCardHash\":\"${option.idCardHash}\",\"studyType\":\"VIDEO\"}`,
                    "method": "POST",
                    "mode": "cors",
                    "credentials": "include"
                });
                resolve(result);
            }));
        }
        saveProgress(option) {
            return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let result = yield fetch("https://gbwlxy.dtdjzx.gov.cn/__api/api/study/progress", {
                    "headers": {
                        "accept": "application/json, text/plain, */*",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "content-type": "application/json;",
                        "sec-ch-ua": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"",
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": "\"Windows\"",
                        "sec-fetch-dest": "empty",
                        "sec-fetch-mode": "cors",
                        "sec-fetch-site": "same-origin",
                        "x-requested-with": "XMLHttpRequest"
                    },
                    "referrer": "https://gbwlxy.dtdjzx.gov.cn/content",
                    "referrerPolicy": "strict-origin-when-cross-origin",
                    "body": `{\"courseId\":\"${option.courseId}\",\"idCardHash\":\"${option.idCardHash}\",\"studyTimes\":${option.studyTimes}}`,
                    "method": "POST",
                    "mode": "cors",
                    "credentials": "include"
                });
                resolve(result);
            }));
        }
        saveProgress2(option) {
            return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let result = yield fetch("https://gbwlxy.dtdjzx.gov.cn/apiStudy/gwapi/us/api/study/progress2", {
                    "headers": {
                        "accept": "application/json, text/plain, */*",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "content-type": "application/json;",
                        "sec-ch-ua": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"",
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": "\"Windows\"",
                        "sec-fetch-dest": "empty",
                        "sec-fetch-mode": "cors",
                        "sec-fetch-site": "same-origin",
                        "x-ca-key": "ac620187e5b8d7af",
                        "x-ca-nonce": "e12f60e3-df8f-349f-55d0-626d597f5eaf",
                        "x-ca-signature": "V16026136F33B05F06F275BE6CECF4A2F1",
                        "x-ca-timestamp": "1706683430971",
                        "x-requested-with": "XMLHttpRequest"
                    },
                    "referrer": "https://gbwlxy.dtdjzx.gov.cn/content",
                    "referrerPolicy": "strict-origin-when-cross-origin",
                    "body": `{\"userId\":\"${option.idCardHash}\",\"courseCode\":\"${option.courseId}\",\"studyTimes\":${option.studyTimes}}`,
                    "method": "POST",
                    "mode": "cors",
                    "credentials": "include"
                });
                resolve(result);
            }));
        }
        saveEnd(option) {
            return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let result = yield fetch("https://gbwlxy.dtdjzx.gov.cn/__api/api/study/v2/end", {
                    "headers": {
                        "accept": "application/json, text/plain, */*",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "content-type": "application/json;",
                        "sec-ch-ua": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"",
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": "\"Windows\"",
                        "sec-fetch-dest": "empty",
                        "sec-fetch-mode": "cors",
                        "sec-fetch-site": "same-origin",
                        "x-requested-with": "XMLHttpRequest"
                    },
                    "referrer": "https://gbwlxy.dtdjzx.gov.cn/content",
                    "referrerPolicy": "strict-origin-when-cross-origin",
                    "body": `{\"courseId\":\"${option.courseId}\",\"idCardHash\":\"${option.idCardHash}\"}`,
                    "method": "POST",
                    "mode": "cors",
                    "credentials": "include"
                });
                resolve(result);
            }));
        }
    }
    class yunketang extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.el-collapse-item__content div.file-item');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('file-item-active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                let NextBtn = ElementObj.$allTask[this.currentIndex];
                setTimeout(() => {
                    let str = NextBtn.querySelector('div').innerHTML.replace(/ <.+>/, '');
                    this.pdPlayFn(str);
                }, 1000 * 3);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    let $playBtn = document.querySelector('.vjs-big-play-button');
                    if (!!ElementObj.$video && $playBtn) {
                        clearInterval(Timer);
                        $playBtn.click();
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    this.changeHtml($el('#vjs_video_3'));
                    this.listenPlayTime();
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            let $playBtn = document.querySelector('.vjs-big-play-button');
                            $playBtn === null || $playBtn === void 0 ? void 0 : $playBtn.click();
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenPlayTime() {
            let count = 0;
            setInterval(() => {
                count += 1;
                let currentTask = ElementObj.$allTask[this.currentIndex].querySelector('.el-progress__text').innerText;
                if (currentTask == '100%') {
                    location.reload();
                }
                this.addInfo(`\u5df2\u6210\u529f\u76d1\u6d4b${count}\u6b21,\u89c6\u9891\u6b63\u5728\u64ad\u653e\u4e2d,\u5f53\u524d\u8fdb\u5ea6\u5b8c\u6210${currentTask}`);
            }, 3000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                location.reload();
            });
        }
        pdPlayFn(className) {
            let localData = MyTool.getValue('spanClassName') || [];
            if (localData.indexOf(className) != -1) {
                this.play();
            } else {
                localData.push(className);
                MyTool.setValue('spanClassName', localData);
                this.handleClickSpeedUp();
            }
        }
    }
    class guojiazhongxiaoxue extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.fish-collapse-item');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            showTip('\u5b66\u4e60\u51c6\u5907\u4e2d~', 10 * 1000);
                            for (let item of ElementObj.$parentNodes) {
                                item.querySelector('.fish-collapse-header').click();
                                let $layer2s = item.querySelectorAll('.fish-collapse-header');
                                let index = 0;
                                if ($layer2s.length > 1) {
                                    for (let $layer2sItem of $layer2s) {
                                        if (index == 0) continue;
                                        $layer2sItem.click();
                                        index += 1;
                                        yield sleep(250);
                                    }
                                    index = 0;
                                }
                                yield sleep(300);
                            }
                            this.getCurrentIndex(1);
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('.resource-item');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex(2);
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex(type) {
            return __awaiter(this, void 0, void 0, function* () {
                if (type == 1) {
                    ElementObj.$allTask = document.querySelectorAll('.resource-item');
                    for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let isDone = ElementObj.$allTask[i];
                        let status = isDone.querySelector('i').title;
                        if (status != '\u5df2\u5b66\u5b8c') {
                            this.currentIndex = i;
                            break;
                        }
                    }
                } else {
                    for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let isDone = ElementObj.$allTask[i];
                        if (isDone.classList.contains('resource-item-active')) {
                            this.currentIndex = i;
                            break;
                        }
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                let NextBtn = ElementObj.$allTask[this.currentIndex];
                NextBtn.click();
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 1000 * 3);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenRebortTime);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    yield this.changeHtml($el('video').parentElement);
                    ElementObj.$video.play();
                    if (!ElementObj.$parentNodes.length) {
                        yield this.listenPlayTime(1);
                    } else {
                        yield this.listenPlayTime(2);
                    }
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenPlayTime(type) {
            return __awaiter(this, void 0, void 0, function* () {
                this.addInfo('✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅');
                yield sleep(3000);
                showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
                let videoDuration = Math.ceil(ElementObj.$video.duration);
                if (!videoDuration) {
                    void 0;
                    return;
                }
                let balanceTime = 0;
                this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    if (balanceTime >= videoDuration) {
                        ElementObj.$video.dispatchEvent(new Event("ended"));
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        let $fishBtn = document.querySelectorAll('.fish-btn.fish-btn-primary')[1];
                        $fishBtn === null || $fishBtn === void 0 ? void 0 : $fishBtn.click();
                        void 0;
                    }
                    balanceTime += 1 * toolOption.accelerator > videoDuration ? videoDuration : 1 * toolOption.accelerator;
                    this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${balanceTime}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration / 60}\u5206\u949f`);
                }), 1000);
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                var _a;
                let $fishBtn = document.querySelectorAll('.fish-btn.fish-btn-primary')[1];
                $fishBtn === null || $fishBtn === void 0 ? void 0 : $fishBtn.click();
                let $modal = document.querySelector('.fish-modal-root');
                (_a = $modal === null || $modal === void 0 ? void 0 : $modal.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild($modal);
            }, 200);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 3000);
            });
        }
    }
    class huaxiajiaoshiyanpei extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('.cou1-title>li');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex();
                            return;
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('list_active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 1000 * 3);
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    ElementObj.$video = document.querySelector('video');
                    if (!!ElementObj.$video) {
                        clearInterval(Timer);
                        resolve(1);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                clearInterval(this.timer);
                let studyType = yield this.getVideoDom();
                this.listenRebort();
                if (studyType == 1) {
                    yield this.changeHtml($el('video').parentElement);
                    let video_id = null;
                    if (location.href.indexOf('/sort/') > -1) {
                        video_id = /\/id\/(.+)\/sort/.exec(location.href)[1];
                    } else {
                        video_id = /\/id\/(.+)/.exec(location.href)[1];
                    }
                    let goods_id = unsafeWindow.goods_id;
                    let user_id = unsafeWindow.user_id;
                    yield this.listenPlayTime({
                        user_id: user_id,
                        goods_id: goods_id,
                        video_id: Number(video_id),
                        status: 1,
                        times: 0,
                        play_time: 0
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenPlayTime(option) {
            return __awaiter(this, void 0, void 0, function* () {
                this.addInfo('✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅');
                yield sleep(3000);
                showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
                let videoDuration = Math.ceil(ElementObj.$video.duration);
                if (!videoDuration) {
                    void 0;
                    return;
                }
                if (!option.user_id || !option.goods_id || !option.video_id) {
                    void 0;
                    return;
                }
                let balanceTime = 0;
                for (let item of new Array(1000)) {
                    if (balanceTime >= videoDuration) {
                        option.status = 2;
                        yield this.saveProgress(option);
                        this.addInfo('🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉');
                        this.playNext();
                        break;
                    }
                    balanceTime += 1 * toolOption.accelerator > videoDuration ? videoDuration : 1 * toolOption.accelerator;
                    option.times = balanceTime;
                    option.play_time = balanceTime;
                    let result1 = yield this.saveProgress(option);
                    this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${balanceTime}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration / 60}\u5206\u949f`);
                    yield sleep(3000);
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let $btn = document.querySelector('.layui-layer-btn0');
                $btn === null || $btn === void 0 ? void 0 : $btn.click();
            }, 2000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let count = 3;
                this.currentIndex += 1;
                let $nextBtn = ElementObj.$allTask[this.currentIndex].querySelector('a');
                let inter = setInterval(() => {
                    this.addInfo('🐱‍🚀🐱‍🚀🐱‍🚀\u8bf7\u7a0d\u540e,\u6b63\u5728\u4fdd\u5b58\u6570\u636e......');
                    if (count <= 0) {
                        clearInterval(inter);
                        $nextBtn.click();
                    }
                    count -= 1;
                }, 1000);
            });
        }
        saveProgress(option) {
            return new Promise(resolve => __awaiter(this, void 0, void 0, function* () {
                let result = yield fetch("http://dc.huaxiajiaoshiyanpei.com/portal/lesson/update_study", {
                    "headers": {
                        "accept": "application/json, text/javascript, */*; q=0.01",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
                        "x-requested-with": "XMLHttpRequest"
                    },
                    "referrerPolicy": "strict-origin-when-cross-origin",
                    "body": `user_id=${option.user_id}&goods_id=${option.goods_id}&video_id=${option.video_id}&status=${option.status}&times=${option.times}&play_time=${option.play_time}`,
                    "method": "POST",
                    "mode": "cors",
                    "credentials": "include"
                });
                resolve(result);
            }));
        }
    }
    class zhelixuexi extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.vi-item');
                        if (ElementObj.$parentNodes.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            for (var i = 0; i <= ElementObj.$parentNodes.length - 1; i++) {
                                let isDone = ElementObj.$parentNodes[i];
                                let status = isDone.querySelector('.v-prosss').innerText.replace('\u5df2\u5b66\u4e60', '');
                                if (parseInt(status) < 99) {
                                    this.currentIndex = i;
                                    MyTool.setValue('homeUrl', location.href);
                                    isDone.click();
                                    break;
                                }
                            }
                            return;
                        }
                        ElementObj.$allTask = document.querySelectorAll('.set-content');
                        if (ElementObj.$allTask.length) {
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            clearInterval(interval);
                            this.getCurrentIndex();
                            return;
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (!!ElementObj.$video) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let isDone = ElementObj.$allTask[i];
                    if (isDone.classList.contains('active')) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                showTip('✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,5\u79d2\u540e\u5f00\u59cb\u64ad\u653e', 3000);
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 4000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenRebort();
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 10 * 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    let homeUrl = MyTool.getValue('homeUrl');
                    setTimeout(() => {
                        location.href = homeUrl;
                    }, 3000);
                    return;
                }
                yield sleep(2000);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                setTimeout(() => {
                    this.handleClickSpeedUp();
                }, 3000);
            });
        }
    }
    class fhswifer extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.c-directory-item');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            showTip('\u6b63\u5728\u5bfb\u627e\u5168\u90e8\u8bfe\u7a0b,\u9884\u8ba110-20\u79d2,\u8bf7\u7a0d\u7b49...');
                            this.getParentIndex();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (let item of ElementObj.$parentNodes) {
                    item.click();
                    yield sleep(500);
                }
                this.getCurrentIndex();
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                ElementObj.$allTask = document.querySelectorAll('.c-directory-box .cc-directory-item');
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i];
                    let status = $item.querySelector('.cc-audition');
                    if (!status) {
                        this.currentIndex = i;
                        break;
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                ElementObj.$allTask[this.currentIndex].click();
                showTip('\u521d\u59cb\u5316\u5b8c\u6210,\u7b2c\u4e00\u6b21\u8bf7\u624b\u52a8\u64ad\u653e\u89c6\u9891', 1000 * 10);
                this.play();
                return;
            });
        }
        getVideoDom() {
            return new Promise(resolve => {
                let count = 0;
                let Timer = setInterval(() => {
                    count += 1;
                    let $video = document.querySelector('.icon.bplayer-play-btn');
                    if (!!$video) {
                        clearInterval(Timer);
                        resolve($video);
                        return;
                    }
                    if (count >= 7) {
                        clearInterval(Timer);
                        resolve(2);
                    }
                }, 1000);
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let $video = yield this.getVideoDom();
                void 0;
                $video.click();
                this.listenPlayTime();
                this.listenRebort();
            });
        }
        listenPlayTime() {
            let count = 0;
            this.timer = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                count += 1;
                let currentTime = document.querySelector('.played-time').innerText;
                let durtion = document.querySelector('.total-time').innerText;
                void 0;
                void 0;
                void 0;
                if (currentTime.trim() >= durtion.trim()) {
                    clearInterval(this.timer);
                    this.playNext();
                }
            }), 5000);
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
                let playBtn = document.querySelector('.bplayer-wrap');
                if (!playBtn.classList.contains('bplayer-playing')) {
                    document.querySelector('.icon.bplayer-play-btn').click();
                }
            }, 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                if (this.currentIndex >= ElementObj.$allTask.length - 1) {
                    void 0;
                    return;
                }
                yield sleep(2500);
                this.currentIndex += 1;
                ElementObj.$allTask[this.currentIndex].click();
                void 0;
                setTimeout(() => {
                    this.handleClickSpeedUp(() => {
                    }, false);
                }, 3000);
            });
        }
    }
    class rrhisdgf283y7jvdf extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$allTask = document.querySelectorAll('ul.cb.oh li');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex(1);
                        }
                        ElementObj.$allTask = document.querySelectorAll('.section-item');
                        if (ElementObj.$allTask.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getCurrentIndex(2);
                        }
                        let $iframe = document.querySelector('iframe');
                        if ((location.href.indexOf('v_video?platformId=') != -1 || location.href.indexOf('/play_video/') != -1) && $iframe) {
                            clearInterval(interval);
                            location.href = $iframe.src;
                        }
                        if (['/videoPlay/play', '/videoPlay/playEncrypt'].indexOf(location.pathname) != -1) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getCurrentIndex(type) {
            return __awaiter(this, void 0, void 0, function* () {
                for (var i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                    let $item = ElementObj.$allTask[i];
                    if (type == 1) {
                        let status = $item.querySelector('.button.titlecolor');
                        if (status.innerText.indexOf('\u5df2\u5b66\u5b8c') == -1) {
                            this.currentIndex = i;
                            break;
                        }
                    }
                    if (type == 2) {
                        let $status = $item.querySelectorAll('.n-text.__text-q8o5bu-d')[2].innerText.trim();
                        if ($status != '\u5df2\u5b66\u5b8c') {
                            this.currentIndex = i;
                            break;
                        }
                    }
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                setTimeout(() => {
                    window.close();
                }, 1000 * 5);
                MyTool.setValue('homeUrl', location.href);
                if (type == 1) {
                    ElementObj.$allTask[this.currentIndex].querySelector('.button.titlecolor').click();
                }
                if (type == 2) {
                    ElementObj.$allTask[this.currentIndex].click();
                }
                return;
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (['gp.chinahrt.com', 'videoadmin.chinahrt.com'].indexOf(location.host) != -1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 4500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                } else {
                    yield this.changeHtml($el('#body'));
                    yield this.listenPlayTime();
                }
            });
        }
        listenPlayTime() {
            return __awaiter(this, void 0, void 0, function* () {
                this.addInfo('✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅');
                yield sleep(1000);
                showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
                let videoDuration = Math.ceil(ElementObj.$video.duration);
                if (!videoDuration) {
                    void 0;
                    return;
                }
                let balanceTime = 0;
                for (let item of new Array(1000)) {
                    if (balanceTime >= videoDuration) {
                        ElementObj.$video.currentTime = ElementObj.$video.duration;
                        yield sleep(1000);
                        ElementObj.$video.currentTime = ElementObj.$video.duration;
                        this.addInfo('🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉');
                        this.playNext();
                        break;
                    }
                    balanceTime += 1 * toolOption.accelerator > videoDuration ? videoDuration : 1 * toolOption.accelerator;
                    this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${balanceTime}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration / 60}\u5206\u949f`);
                    yield sleep(1000);
                }
                this.playNext();
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                let homeUrl = MyTool.getValue('homeUrl');
                if (!homeUrl) {
                    showTip('\u5b98\u7f51\u8be5\u5e73\u53f0\u5e95\u90e8\u6709\u6ce8\u610f\u4e8b\u9879,\u8bf7\u6309\u7167\u8be5\u6307\u793a\u9875\u9762\u6267\u884c\u7a0b\u5e8f,\u5426\u5219\u65e0\u6cd5\u81ea\u52a8\u8fde\u64ad', 1000 * 10);
                    void 0;
                    return;
                }
                setTimeout(() => {
                    location.href = homeUrl;
                }, 10 * 1000);
            });
        }
    }
    class f6872 extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    try {
                        ElementObj.$parentNodes = document.querySelectorAll('.ant-table-tbody')[0].querySelectorAll('tr');
                        if (ElementObj.$parentNodes.length) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.getParentIndex();
                        }
                        ElementObj.$video = document.querySelector('video');
                        if (ElementObj.$video) {
                            clearInterval(interval);
                            ElementObj.$handleSpeedUp.style.display = 'none';
                            this.handleClickSpeedUp();
                        }
                    } catch (e) {
                    }
                }), 1000);
            });
        }
        getParentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (let item of ElementObj.$parentNodes) {
                    let status = item.querySelector('.ant-progress-text').innerText;
                    if (parseInt(status) < 97) {
                        item.click();
                        yield sleep(2000);
                        this.getCurrentIndex();
                        break;
                    }
                }
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                let pageBtns = document.querySelectorAll('.ant-pagination')[1].querySelectorAll('li.ant-pagination-item');
                forData:for (let item of pageBtns) {
                    ElementObj.$allTask = document.querySelectorAll('.ant-table-tbody')[1].querySelectorAll('tr');
                    for (let i = 0; i <= ElementObj.$allTask.length - 1; i++) {
                        let $li = ElementObj.$allTask[i];
                        if (!$li.querySelector('i')) {
                            this.currentIndex = i;
                            let startBtn = $li.querySelectorAll('.ant-table-row-cell-break-word a')[1];
                            startBtn.click();
                            yield sleep(2000);
                            this.handleClickSpeedUp();
                            break forData;
                        }
                    }
                    item.click();
                    yield sleep(2000);
                }
                if (this.currentIndex == -1) {
                    void 0;
                    return;
                }
                return;
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                yield this.changeHtml($el('.input_video'));
                this.listenPlayTime();
            });
        }
        listenPlayTime() {
            return __awaiter(this, void 0, void 0, function* () {
                this.addInfo('✅✅✅✅✅✅✅✅\u521d\u59cb\u5316\u5b8c\u6210,\u5373\u5c06\u5f00\u59cb\u64ad\u653e✅✅✅✅✅✅✅✅✅');
                yield sleep(1000);
                showTip('🔉\u8bfe\u4ef6\u6b63\u5728\u5b66\u4e60,\u8bf7\u52a1\u70b9\u51fb\u6216\u957f\u65f6\u95f4\u9690\u85cf');
                let videoDuration = Math.ceil(ElementObj.$video.duration);
                if (!videoDuration) {
                    void 0;
                    return;
                }
                let balanceTime = 0;
                for (let item of new Array(1000)) {
                    if (balanceTime >= videoDuration) {
                        ElementObj.$video.currentTime = ElementObj.$video.duration;
                        yield sleep(1000);
                        ElementObj.$video.currentTime = ElementObj.$video.duration;
                        this.addInfo('🎉🎉🎉🎉🎉🎉🎉🎉\u5df2\u6210\u529f\u5b66\u5b8c🎉🎉🎉🎉🎉🎉🎉🎉');
                        this.playNext();
                        break;
                    }
                    balanceTime += 1 * toolOption.accelerator > videoDuration ? videoDuration : 1 * toolOption.accelerator;
                    this.addInfo(`🔊\u5f53\u524d\u72b6\u6001\u6b63\u5728\u4ee5${toolOption.accelerator}\u500d\u901f\u5b66\u4e60\u4e2d,\u5df2\u5b66\u4e60${balanceTime}\u79d2,\u89c6\u9891\u603b\u65f6\u957f\u4e3a${videoDuration / 60}\u5206\u949f`);
                    yield sleep(3000);
                }
                this.playNext();
            });
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                setTimeout(() => {
                    location.reload();
                }, 1000);
            });
        }
    }
    class rs01 extends Main {
        constructor() {
            super();
            this.taskLength = 0;
            this.currentIndex = -1;
            this.parentIndex = -1;
            this.parentIndex2 = -1;
            this._init();
        }
        _init() {
            return __awaiter(this, void 0, void 0, function* () {
                let interval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
                    void 0;
                    ElementObj.$handleSpeedUp.style.display = 'none';
                    ElementObj.$allTask = document.querySelectorAll('.rank-3>li');
                    if (location.pathname.indexOf('/home/course/') != -1 && ElementObj.$allTask.length > 0) {
                        clearInterval(interval);
                        this.getCurrentIndex();
                        return;
                    }
                    let $navBtn2 = document.querySelector('.navBtn2');
                    if (location.pathname.indexOf('/home/course/') != -1 && $navBtn2) {
                        clearInterval(interval);
                        setTimeout(() => {
                            this._init();
                        }, 2000);
                        $navBtn2.click();
                    }
                    if (location.pathname == '/home/learn/index') {
                        let $active = document.querySelector('.basic.active');
                        if ($active) {
                            clearInterval(interval);
                            $active.nextElementSibling.querySelector('.basic').click();
                            setTimeout(() => {
                                this.pdPlayFn(location.href);
                            }, 3000);
                        }
                    }
                }), 1000);
            });
        }
        getCurrentIndex() {
            return __awaiter(this, void 0, void 0, function* () {
                for (let item of ElementObj.$allTask) {
                    let name = item.querySelector('a');
                    if (name.innerText.indexOf('\u6d4b\u8bd5') != -1) continue;
                    let $basic = item.querySelector('.basic');
                    if (!$basic.classList.contains('looked')) {
                        MyTool.setValue('homeUrl', location.href);
                        name.click();
                        break;
                    }
                }
            });
        }
        play() {
            return __awaiter(this, void 0, void 0, function* () {
                clearInterval(this.timer);
                clearInterval(this.listenVidoeStatusTimer);
                clearInterval(this.listenRebortTime);
                let studyType = yield this.getVideoDom();
                void 0;
                if (studyType == 1) {
                    ElementObj.$video.volume = 0;
                    ElementObj.$video.play();
                    this.listenRebort();
                    setTimeout(() => {
                        ElementObj.$video.playbackRate = toolOption.accelerator;
                    }, 3000);
                    this.listenVidoeStatus(ElementObj.$video, () => {
                        ElementObj.$video.volume = 0;
                        ElementObj.$video.play();
                    });
                    ElementObj.$video.addEventListener('ended', () => __awaiter(this, void 0, void 0, function* () {
                        showTip('✅✅✅\u5f53\u524d\u89c6\u9891\u5df2\u64ad\u653e\u5b8c,5\u79d2\u540e\u64ad\u653e\u4e0b\u4e00\u4e2a', 2500);
                        this.playNext();
                        void 0;
                    }));
                    ElementObj.$video.addEventListener('pause', () => {
                        setTimeout(() => {
                            let $playBtn = document.querySelector('.vjs-big-play-button');
                            $playBtn === null || $playBtn === void 0 ? void 0 : $playBtn.click();
                            ElementObj.$video.volume = 0;
                            ElementObj.$video.play();
                        }, 3500);
                    });
                }
                if (studyType == 2) {
                    showTip('✅✅✅\u8be5\u7ae0\u8282\u4e3a\u6587\u6863,\u5373\u5c06\u81ea\u52a8\u5207\u6362\u4e0b\u4e00\u4e2a', 3000);
                    yield sleep(3000);
                    this.playNext();
                }
            });
        }
        listenRebort() {
            this.listenRebortTime = setInterval(() => {
            }, 1000);
        }
        playNext() {
            return __awaiter(this, void 0, void 0, function* () {
                location.href = MyTool.getValue('homeUrl');
            });
        }
    }
    class Addpanel {
        constructor() {
            this.$panelWrap = document.createElement('div');
            this.$panelStyle = document.createElement('style');
            this._init();
        }
        _init() {
            var _a, _b, _c, _d, _e, _f;
            this.$panelWrap.innerHTML = this.getCTXHTML();
            this.$panelStyle.innerHTML = panelcss;
            (_a = document.querySelector('head')) === null || _a === void 0 ? void 0 : _a.appendChild(this.$panelStyle);
            if (toolOption.SchoolType == 3) {
                (_b = document.querySelector('#bigContainer')) === null || _b === void 0 ? void 0 : _b.appendChild(this.$panelWrap);
            } else if (toolOption.SchoolType == 7) {
                (_c = document.querySelector('.layout-content')) === null || _c === void 0 ? void 0 : _c.appendChild(this.$panelWrap);
            } else if (toolOption.SchoolType == 11) {
                (_d = document.querySelector('.task-dashboard-page')) === null || _d === void 0 ? void 0 : _d.appendChild(this.$panelWrap);
            } else if (toolOption.SchoolType == 18) {
                (_e = document.querySelector('.screen_wide_1')) === null || _e === void 0 ? void 0 : _e.appendChild(this.$panelWrap);
            } else {
                (_f = document.querySelector('body')) === null || _f === void 0 ? void 0 : _f.appendChild(this.$panelWrap);
            }
            ElementObj.$title3 = document.querySelector('.title3');
            ElementObj.$mytoolkey = document.querySelector('.mytoolkey');
            ElementObj.$nokey = document.querySelector('.nokey');
            ElementObj.$addKey = document.getElementById('addKey');
            ElementObj.$removeKey = document.getElementById('removeKey');
            ElementObj.$ipt = document.querySelector('.mytoolkeyipt');
            ElementObj.$handleSpeedUp = document.querySelector('.handleSpeedUp');
            ElementObj.$playButton = document.querySelector('#playButton');
            ElementObj.$ctxTipWrap = document.querySelector('#ctxTipWrap');
            ElementObj.$ctxsection2 = document.querySelector('.ctxsection2');
            ElementObj.$ctxcontrols = document.querySelector('.ctxcontrols');
            let storageKey = localStorage.getItem('mytoolkey') || MyTool.getValue('mytoolkey');
            if (storageKey) {
                this.handleSetHtml(storageKey);
            }
            this.optimizePannel();
            this.setSpeedOption();
            this.addEvent();
            this.getSlogan();
        }
        optimizePannel() {
            if (toolOption.SchoolType == 2) {
                $el('.myTool').style.left = 'unset';
                $el('.myTool').style.right = '44px';
                $el('.ipt-wrap').style.marginTop = '3px';
                ElementObj.$ipt.style.padding = '11px 3px';
            }
            if (toolOption.SchoolType == 9) {
                $el('.handleKeyBtn').style.lineHeight = '16px';
            }
            if (toolOption.SchoolType == 16) {
                $el('.cxtsection3').style.display = 'block';
                ElementObj.$myTool = document.querySelector('.myTool');
            }
            if ([14, 24, 63, 65].indexOf(toolOption.SchoolType) != -1) {
                toolOption.accelerator = 1;
                speedArr = [1];
            }
            if ([40, 52, 54, 67, 80].indexOf(toolOption.SchoolType) != -1) {
                speedArr = [1, 2];
            }
            if ([7, 12, 22, 53].indexOf(toolOption.SchoolType) != -1) {
                speedArr = [1, 2, 3];
                toolOption.accelerator = 3;
            }
            if ([38, 45, 46, 52, 57, 58, 61, 64, 67, 97, 100, 103].indexOf(toolOption.SchoolType) != -1) {
                $el('.myTool').style.left = 'unset';
                $el('.myTool').style.right = '44px';
            }
            if (toolOption.SchoolType == 17) {
                toolOption.accelerator = 1;
                speedArr = [1, 10];
            }
            if (toolOption.SchoolType == 18) {
                $el('.btn1').style.width = '74%';
                $el('.btn1').style.paddingTop = '0';
                $el('.btn1').style.paddingBottom = '0';
                $el('#slogan').style.position = 'relative';
                $el('#slogan').style.left = '-40px';
                speedArr = [1, 2, 3, 5];
            }
            if (toolOption.SchoolType == 19) {
                toolOption.accelerator = 1;
                speedArr = [1];
                $el('.myTool').style.width = '202px';
            }
            if (toolOption.SchoolType == 23) {
                $el('.myTool').style.top = '176px';
                toolOption.accelerator = 1;
                speedArr = [1];
            }
            if (toolOption.SchoolType == 25) {
                toolOption.accelerator = 2;
                speedArr = [1, 1.25, 1.5, 2];
            }
            if (toolOption.SchoolType == 26) {
                $el('.myTool').style.width = '202px';
            }
            if (toolOption.SchoolType == 29) {
                speedArr = [1, 1.5, 2, 3, 5, 10];
            }
            if (toolOption.SchoolType == 16) {
                if (Internetcourse.gzjxjy.runtype == 2) {
                    ElementObj.$handleSpeedUp.style.display = 'none';
                    ElementObj.$speedSelect = document.querySelector('.ctxsection2');
                    ElementObj.$speedSelect.style.display = 'none';
                }
                if (Internetcourse.gzjxjy.runtype == 1) {
                    ElementObj.$ctxsection3 = document.querySelector('.cxtsection3');
                    ElementObj.$ctxsection3.style.display = 'none';
                }
            }
            if (toolOption.SchoolType == 30) {
                speedArr = [1, 2, 3, 5, 10, 15];
                toolOption.accelerator = 2;
            }
            if (toolOption.SchoolType == 32 || toolOption.SchoolType == 36) {
                $el('.myTool').style.left = 'unset';
                $el('.myTool').style.right = '44px';
                speedArr = [1, 1.1];
            }
            if (toolOption.SchoolType == 37) {
                speedArr = [1, 2, 5];
            }
            if (toolOption.SchoolType == 38) {
                speedArr = [1, 2];
            }
            if (toolOption.SchoolType == 41) {
                speedArr = [1, 2, 3, 5];
            }
            if (toolOption.SchoolType == 44) {
                speedArr = [1, 1.5, 2, 3, 5, 10];
            }
            if (toolOption.SchoolType == 51) {
                $el('.myTool').style.left = '76px';
                speedArr = [1, 2, 10];
                toolOption.accelerator = 2;
            }
            if (toolOption.SchoolType == 52) {
                $el('.myTool').style.left = '76px';
                speedArr = [1, 2, 3, 10];
                toolOption.accelerator = 2;
            }
            if (toolOption.SchoolType == 60) {
                speedArr = [1, 1.5, 1.8, 2];
                toolOption.accelerator = 2;
            }
            if (toolOption.SchoolType == 66) {
                speedArr = [1, 2, 3, 10];
                toolOption.accelerator = 3;
            }
            if (toolOption.SchoolType == 71) {
                speedArr = [1, 2, 3, 10];
                toolOption.accelerator = 3;
            }
            if ([91, 96].indexOf(toolOption.SchoolType) != -1) {
                speedArr = [1, 1.5, 2, 3, 10];
                toolOption.accelerator = 1;
            }
            if (toolOption.SchoolType == 92) {
                toolOption.accelerator = 16;
            }
            if (toolOption.SchoolType == 54) {
                speedArr = [1, 2, 3, 10];
                toolOption.accelerator = 1;
            }
        }
        setSpeedOption() {
            ElementObj.$speedSelect = document.querySelector('#ctxspeed');
            let html = ``;
            for (var i = 0; i < speedArr.length; i++) {
                let str = `
                <option value="${speedArr[i] == 1.1 ? 1.0 : speedArr[i]}" class="option">
                  × ${speedArr[i] == 1.1 ? 1.2 : speedArr[i]}.0
                </option>
                `;
                html += str;
            }
            ElementObj.$speedSelect.innerHTML = html;
            var _localSpeed = localStorage.getItem('_localSpeed');
            if (_localSpeed) {
                ElementObj.$speedSelect.value = _localSpeed;
                toolOption.accelerator = Number(_localSpeed);
            }
        }
        handleSetHtml(key) {
            try {
                ElementObj.$ipt.style.display = 'none';
                ElementObj.$title3.innerText = '\u5f53\u524dkey:';
                ElementObj.$mytoolkey.innerText = key;
                ElementObj.$mytoolkey.style.display = 'block';
                ElementObj.$nokey.style.display = 'none';
                ElementObj.$removeKey.style.display = 'block';
                ElementObj.$addKey.style.display = 'none';
                ElementObj.userKey = key;
            } catch (e) {
            }
        }
        addEvent() {
            ElementObj.$addKey.addEventListener('click', () => {
                toolOption.CtxMain.handleAddKey(key => {
                    this.handleSetHtml(key);
                });
            });
            ElementObj.$removeKey.addEventListener('click', () => {
                toolOption.CtxMain.handleRemoveKey();
            });
            ElementObj.$handleSpeedUp.addEventListener('click', () => {
                toolOption.CtxMain.handleClickSpeedUp();
            });
            ElementObj.$ctxsection2.addEventListener('change', e => {
                toolOption.CtxMain.handleChangeCtxSpeed(e.target.value);
            });
            ElementObj.$ctxcontrols.addEventListener('click', () => {
                let $myToolContent = document.querySelector('.myTool-content');
                let isHide = GM_getValue("hideCtx", null);
                if (isHide) {
                    $myToolContent.style.height = 'auto';
                    ElementObj.$ctxcontrols.innerText = '×';
                } else {
                    $myToolContent.style.height = '0px';
                    ElementObj.$ctxcontrols.innerText = '🔛';
                    $el('.myTool').style.display = 'none';
                }
                GM_setValue("hideCtx", !isHide);
            });
            document.querySelectorAll('.targetHome').forEach(item => {
                item.addEventListener('click', () => {
                    void 0;
                    location.href = basehost;
                });
            });
        }
        getSlogan() {
            fetchData({url: bserUrl + '/getslogan', method: "GET"}).then(res => {
                ElementObj.$slogan = document.querySelector('#slogan');
                ElementObj.$slogan.innerHTML = res.result.text1;
            });
        }
        getCTXHTML() {
            return `
<div class="myTool">
    <div class="controls ctxcontrols">×</div>
    <div class=''><a style="color: black;" href="${basehost}" target="_blank">📺\u9ad8\u667aAi\u8f85\u52a9\u5b66\u4e60\u7a0b\u5e8f</a></div>
    
    <div class="myTool-content">
        <div class="nokey">
            <div class="btns">
                <div class="btn1"
                     style="text-align: center;color: #1776FDFF;text-decoration: underline;margin: 5px 0;cursor: pointer;">
                    <a href="${basehost}" target="_blank">\u70b9\u51fb\u83b7\u53d6Key</a>
                </div>
                <a href="${basehost}" target="_blank" id="slogan" style="text-decoration: none;">
                
                </a>
            </div>
        </div>
    
        <div class="cxtsection ctxsection1">
          <div class="ctx-title title3">
            \u8f93\u5165Key:
          </div>
          <div class="ipt-wrap" style="display: flex;align-items: center;justify-content: space-between;">
            <input class="mytoolkeyipt" />
            <div style="width: 120px;height: 18px;margin-right: 5px;display: none;" class="mytoolkey"></div>
            <button class="handleKeyBtn addkey-btn" id="addKey">\u7ed1\u5b9a</button>
            <button class="handleKeyBtn removkey-btn" id="removeKey">\u89e3\u7ed1</button>
          </div>
        </div>
        <div class="cxtsection ctxsection2">
          <div class="ctx-title">
            \u8bbe\u7f6e\u500d\u901f:
          </div>
          <select name="" id="ctxspeed" class="speed-select">
            <option value="1" class="option">
              × 1.0
            </option>
            <option value="5" class="option">
              × 5.00
            </option>
            <option value="10" class="option" selected="selected">
              × 10.00
            </option>
            <option value="16" class="option">
              × 16.00
            </option>
          </select>
        </div>
        
        <div class="cxtsection ctxsection3">
          <div class="ctx-title">
            \u610f\u89c1\u53cd\u9988:
          </div>
          <a href="${basehost}"><div class="feedbackBtn">\u53bb\u53cd\u9988</div></a>
        </div>
        
        <div class="scriptTip" style="display: none;border-radius: 4px;margin-top: 9px;font-size: 12px;background: rgba(108,201,255,0.5);box-sizing: border-box;padding: 5px;">
            <div class="title">\u63d0\u793a:</div>
            <p style="margin: 6px 0;">1.\u5174\u8da3\u8bfe\u5168\u7f51\u76ee\u524d\u4ec5\u652f\u6301\u6700\u9ad81.5\u500d\u901f</p>
        </div>
        <div class="cxtsection cxtsection3" style="display: none"> 
          <div class="ctx-title">
            \u5f53\u524d\u4f5c\u7b54\u9898\u76ee:
          </div>
          <div class="ctxtopic-name">\u8d35\u5dde\u7701\u8d35\u9633\u5e02\u6bd3\u79c0\u8def27\u53f7\u8d35\u5dde\u7701\u4eba\u624d\u5927\u5e02\u573a4\u697c</div>
        </div>
        
        <div class="handleSpeedUp">\u70b9\u51fb\u52a0\u901f</div>
    </div>
    
    <div id="ctxTipWrap" class="ctxTipWrap"></div>
</div>
    `;
        }
    }
    function $el(selector, root2 = window.document) {
        const el2 = root2.querySelector(selector);
        return el2 === null ? void 0 : el2;
    }
    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
    function fetchData(option) {
        return new Promise(resolve => {
            try {
                GM_xmlhttpRequest(Object.assign(Object.assign({}, option), {
                    onload: function (xhr) {
                        if (xhr.status == 200) {
                            resolve(JSON.parse(xhr.response));
                        }
                    }
                }));
            } catch (e) {
                fetch(option.url, {method: option.method}).then(res => res.json()).then(res => {
                    resolve(res);
                });
            }
        });
    }
    function showTip(text, time = 3500, isAlert) {
        time = time ? time : 3500;
        ElementObj.$ctxTipWrap.style.display = 'block';
        ElementObj.$ctxTipWrap.innerText = text;
        let timer = setTimeout(() => {
            ElementObj.$ctxTipWrap.style.display = 'none';
        }, time);
        if (isAlert) {
            void 0;
        }
    }
    function recognitionType() {
        let current_host = location.host;
        if (/www.gaozhiwang.top/.test(current_host)) return;
        if (current_host.indexOf('www.gsgwypx.com.cn') != -1) {
            toolOption.SchoolType = Internetcourse.gansugongwuyuan.id;
            toolOption.CtxMain = gansugongwuyuan;
            return;
        }
        let result = {type: 0, option: null};
        for (let key in Internetcourse) {
            if (Internetcourse[key].host.includes(current_host)) {
                result.type = 2;
                if (Internetcourse[key].mainClass == 'CTXCommon') {
                    result.type = 1;
                    result.option = Internetcourse[key].option;
                    toolOption.CtxMain = CTXCommon;
                    toolOption.SchoolType = Internetcourse[key].id;
                    break;
                }
                toolOption.CtxMain = eval(Internetcourse[key].mainClass);
                toolOption.SchoolType = Internetcourse[key].id;
            }
            if (/www.ttcdw.cn/.test(current_host)) {
                let _$paramsUn = document.querySelector('#paramsUn');
                if (!!_$paramsUn) {
                    toolOption.SchoolType = Internetcourse.beijingjiaoshi.id;
                    toolOption.CtxMain = beijingjiaoshi;
                } else {
                    toolOption.SchoolType = Internetcourse.beijingjiaoshi.id;
                    toolOption.CtxMain = beijingjiaoshi;
                }
            }
            if (/gzjxjy.gzsrs.cn/.test(current_host)) {
                let $survey = document.querySelector('.survey-header-subtitle');
                if (!!$survey) {
                    toolOption.CtxMain = gzjxjy_Answer;
                    Internetcourse.gzjxjy.runtype = 2;
                } else {
                    toolOption.CtxMain = gzjxjy;
                    Internetcourse.gzjxjy.runtype = 1;
                }
                toolOption.SchoolType = Internetcourse.gzjxjy.id;
            }
        }
        if (!toolOption.CtxMain) {
            result.type = 0;
            toolOption.CtxMain = zjzjsrc;
            toolOption.SchoolType = Internetcourse.zjzjsrc.id;
        }
        return result;
    }
    setTimeout(() => {
        let fitResult = recognitionType();
        basehost += `/?ctxid=${(fitResult === null || fitResult === void 0 ? void 0 : fitResult.type) ? toolOption.SchoolType : 2}`;
        if ((fitResult === null || fitResult === void 0 ? void 0 : fitResult.type) == 1) {
            toolOption.CtxMain = new CTXCommon(fitResult.option);
        } else {
            toolOption.CtxMain = new toolOption.CtxMain();
        }
        new Addpanel();
    }, 3000);
})();