From 00b087704aebf437ff06e25504c1a9ddf2669973 Mon Sep 17 00:00:00 2001 From: sve1r Date: Wed, 19 Jul 2023 16:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9Ffeat:=20=E4=BC=98=E5=8C=96=E5=8E=BB?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E7=9B=B8=E5=85=B3=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rewrite/AdBlock/StartUp.adblock | 28 +- Scripts/AdBlock/Other/Ahfs.js | 5 + Scripts/AdBlock/Other/BaiduMap.js | 1192 ++++++++++++++--------------- Scripts/AdBlock/Other/FlyPiggy.js | 26 +- Scripts/AdBlock/Other/Quark.js | 582 +++++++------- 5 files changed, 917 insertions(+), 916 deletions(-) create mode 100644 Scripts/AdBlock/Other/Ahfs.js diff --git a/Rewrite/AdBlock/StartUp.adblock b/Rewrite/AdBlock/StartUp.adblock index ea7dbcb..acf6b76 100644 --- a/Rewrite/AdBlock/StartUp.adblock +++ b/Rewrite/AdBlock/StartUp.adblock @@ -5,24 +5,26 @@ // @TgBot https://t.me/ddgksf2013_bot // @WechatID 公众号墨鱼手记 // @Feedback 💡 请通过邮件反馈问题『其它方式一概无视』:𝐝𝐝𝐠𝐤𝐬𝐟𝟐𝟎𝟏𝟑@𝟏𝟔𝟑.𝐜𝐨𝐦 💡 -// @UpdateTime 2023-05-28 +// @UpdateTime 2023-07-12 // @Please 如需引用请注明出处,谢谢合作! // @Function 去除APP首页启动广告和部分应用内广告,如果有需要的去除广告的APP,可以公众号后台直接回复 // @ExtraTxt Only provide the removal of open-screen advertisements for personally used apps -// @Attention QuantumultX能去广告,不代表能去所有广告!(应用个数:213) +// @Attention QuantumultX能去广告,不代表能去所有广告!(应用个数:214) // @Mark 名字后面的*代表该应用启动倒计时仍然存在 -// @APPList 无法通过𝐌𝐈𝐓𝐌去广告的应用:银行类[Most]|抖音|蜂巢|小米运动|万年历|豆瓣[信息流]|虎牙直播|货拉拉|番茄小说|什么值得买|携程旅行 +// @APPList 无法通过𝐌𝐈𝐓𝐌去广告的应用:银行类[Most]|抖音|蜂巢|小米运动|万年历|豆瓣[信息流]|虎牙直播|货拉拉|番茄小说|携程旅行 // @Attention 如果广告仍然存在,请『卸载应用』重新安装,还是不行则表示『规则里没有或已失效』 // @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/StartUp.conf // ==/UserScript== -hostname = evs.500.com, j1.pupuapi.com, dq.dxy.cn, m.you.163.com, open-cms-api.uc.cn, *.yuxueyuan.cn, pan-api.bitqiu.com, client.tujia.com, vip7.fzwdyy.cn, run.api.qyfxgd.cn, *cupid.iqiyi.com, gateway.36kr.com, shopapi.io.mi.com, tk.lanjiyin.com, gongdu.youshu.cc, api.21ec74.com, ztoread.ziroom.com, iphone.ac.qq.com, web.chelaile.net.cn, gd.10086.cn, api.00bang.cn, app.hbooker.com, api.sfacg.com, newclient.map.baidu.com, api3.cls.cn, gateway-api.dushu365.com, p0.pipi.cn, jdread-api.jd.com, ms.jr.jd.com, bdsp-x.jd.com, dsp-x.jd.com, api.m.jd.com, router-app-api.jdcloud.com, app.homeinns.com, cdn-evone-ceph.echargenet.com, mlol.qt.qq.com, gg.caixin.com, app-gw.csdn.net, api.gameplus.qq.com, mrobot.pconline.com.cn, djcapp.game.qq.com, mxsa.mxbc.net, cn-acs.m.cainiao.com, zjdr666.com, api.caiyunapp.com, api.ahmobile.cn, gx.10086.cn, emdcadvertise.eastmoney.com, acs.m.taobao.com, api-sams.walmartmobile.cn, creditcardapp.bankcomm.cn, m.creditcard.ecitic.com, lban.spdb.com.cn, adapi.izuiyou.com, i.ys7.com, apps.api.ke.com, api.yonghuivip.com, access.mypikpak.com, gateway.shouqiev.com, res.pizzahut.com.cn, api.caijingmobile.com, 3g.csair.com, client-api.oray.com, bgw.xinyue.qq.com, api-new.app.acfun.cn, m.client.10010.com, open.fitdays.cn, gha.ghac.cn, ap.dongqiudi.com, sh-gateway.shihuo.cn, wcprd.hilton.com, ad.12306.cn, 103.91.210.141, adx-cn.anythinktech.com, js-ad.ayximgs.com, api.dangdang.com, pzoap.moedot.com, pipi.4kya.com, vip7.fzwdyy.cn, sdk.alibaba.com.ailbaba.me, tft-app.cdtft.cn, bgw.xinyue.qq.com, pan.baidu.com, yunbusiness.ccb.com, client.app.coc.10086.cn, t1.market.xiaomi.com, api.m.mi.com, app.zhuanzhuan.com, api.cloud.189.cn, appwk.baidu.com, us.l.qq.com, open.e.kuaishou.com, mi.gdt.qq.com, emdcadvertise.eastmoney.com, adm.10jqka.com.cn, a.qiumibao.com, api.tipsoon.com, b.appsimg.com, ios.sspai.com, zconfig.alibabausercontent.com, api.touker.com, mpcs.suning.com, api.pinduoduo.com, api.yangkeduo.com, easyreadfs.nosdn.127.net, sp.kaola.com, gw.kaola.com, mime.baidu.com, learn.chaoxing.com, mapi.dangdang.com, api.dangdang.com, open.e.kuaishou.com, client.qunar.com, mpos-pic.helipay.com, dili.bdatu.com, wap.ngchina.cn, ih2.ireader.com, adpai.thepaper.cn, api.haohaozhu.cn, list-app-m.i4.cn, api.xiachufang.com, peisongapi.meituan.com, *gaoqingdianshi.com, *.kakamobi.cn, api.jxedt.com, slapi.oray.net, r.inews.qq.com, app.yinxiang.com, mapi.appvipshop.com, syh.zybang.com, cdn.cmgadx.com, api.internetofcity.cn, img.meituan.net, lcen.xiaote.net, venus.yhd.com, api.shenyin.name, mage*.if.qidian.com, god.gameyw.netease.com, m.ibuscloud.com, e.dangdang.com, app2.autoimg.cn, adproxy.autohome.com.cn, discardrp.umetrip.com, startup.umetrip.com, explorer.tratao.com, overseas.weico.cc, 118.178.214.118, dapis.mting.info, acs.m.taobao.com, open3.vistastory.com, ssp.dzh.com.cn, maicai.api.ddxq.mobi, www.meituan.com, client.mail.163.com, api.izuiyou.com, appapi.huazhu.com, api.wfdata.club, interface*.music.163.com, api.psy-1.com, res.kfc.com.cn, mp.weixin.qq.com, security.wechat.com, weixin110.qq.com, cdn.*.chelaileapp.cn, api.coolapk.com, app3.qdaily.com, daoyu.sdo.com, img.jiemian.com, ccsp-egmas.sf-express.com, *.laichon.com, app.ap.d3yuiw4.com, www.i3zh.com, api.yikaobang.com.cn, api-ad-product.huxiu.com, jad-api.jin10.com, mob.mddcloud.com.cn, appactive.1234567.com.cn, rtbapi.douyucdn.cn, service.busi.inke.cn, gab.122.gov.cn, dispatcher.camera360.com, app.api.versa-ai.com, open.taou.com, api.taou.com, track.mm.taou.com, app.dewu.com, data-collector.soulapp.cn, api.gamer.com.tw, beta-api.crunchyroll.com, api.vistopia.com.cn, pss.txffp.com, m.sd.10086.cn, helper.2bulu.com, 47.100.65.202, api.weibo.cn, mapi.weibo.com, *.uve.weibo.com, new.vip.weibo.cn, wap.js.10086.cn, tagit.hyhuo.com, top-widgets-api.xiaozujian.com, *mangaapi.manhuaren.*, apis.lifeweek.com.cn, support.you.163.com, yanxuan.nosdn.127.net, *.peopleapp.com, new-app-api.ylyk.com, gw.aihuishou.com, *.58cdn.com.cn, app.58.com, api.zhihu.com, creditcardapp.bankcomm.com, res.xiaojukeji.com, 116.85.2.15, 116.85.2.14, lchttpapi.xczim.com, business.msstatic.com, api.kkmh.com, *.chelaile.net.cn, api.jr.mi.com, api.m.mi.com, guanyu.longfor.com, elemecdn.com, fuss10.elemecdn.com, www1.elecfans.com, m.tuniu.com, mapi.mafengwo.cn, api.xiaoyi.com, api.douban.com, otheve.beacon.qq.com, mapi.sfbest.com, api.mwee.cn, sso.ifanr.com, s3plus.meituan.net, flowplus.meituan.net, p*.meituan.net, testflight.apple.com, wmapi.meituan.com, appconf.mail.163.com, dl-cu-hz.lechange.cn, fbchina.flipchina.cn, zone.guiderank-app.com, homefront.qunar.com, afd.baidu.com, j-image.missfresh.cn, ma-adx.ctrip.com, mbd.baidu.com, img.rr.tv, api.rr.tv, *.hoopchina.com, goblin.hupu.com, spclient.wg.spotify.com +hostname = igetcool-gateway.igetcool.com, *.ahhhhfs.com, open-cms-api.quark.cn, ftapi.10jqka.com.cn, wxa.wxs.qq.com, evs.500.com, j1.pupuapi.com, dq.dxy.cn, m.you.163.com, open-cms-api.uc.cn, *.yuxueyuan.cn, pan-api.bitqiu.com, client.tujia.com, vip7.fzwdyy.cn, run.api.qyfxgd.cn, *cupid.iqiyi.com, gateway.36kr.com, shopapi.io.mi.com, tk.lanjiyin.com, gongdu.youshu.cc, api.21ec74.com, ztoread.ziroom.com, iphone.ac.qq.com, web.chelaile.net.cn, gd.10086.cn, api.00bang.cn, app.hbooker.com, api.sfacg.com, newclient.map.baidu.com, api3.cls.cn, gateway-api.dushu365.com, p0.pipi.cn, jdread-api.jd.com, ms.jr.jd.com, bdsp-x.jd.com, dsp-x.jd.com, api.m.jd.com, router-app-api.jdcloud.com, app.homeinns.com, cdn-evone-ceph.echargenet.com, mlol.qt.qq.com, gg.caixin.com, app-gw.csdn.net, api.gameplus.qq.com, mrobot.pconline.com.cn, djcapp.game.qq.com, mxsa.mxbc.net, cn-acs.m.cainiao.com, zjdr666.com, api.caiyunapp.com, api.ahmobile.cn, gx.10086.cn, emdcadvertise.eastmoney.com, acs.m.taobao.com, api-sams.walmartmobile.cn, creditcardapp.bankcomm.cn, m.creditcard.ecitic.com, lban.spdb.com.cn, adapi.izuiyou.com, i.ys7.com, apps.api.ke.com, api.yonghuivip.com, access.mypikpak.com, gateway.shouqiev.com, res.pizzahut.com.cn, api.caijingmobile.com, 3g.csair.com, client-api.oray.com, bgw.xinyue.qq.com, api-new.app.acfun.cn, m.client.10010.com, open.fitdays.cn, gha.ghac.cn, ap.dongqiudi.com, sh-gateway.shihuo.cn, wcprd.hilton.com, ad.12306.cn, 103.91.210.141, adx-cn.anythinktech.com, js-ad.ayximgs.com, api.dangdang.com, pzoap.moedot.com, pipi.4kya.com, vip7.fzwdyy.cn, sdk.alibaba.com.ailbaba.me, tft-app.cdtft.cn, bgw.xinyue.qq.com, pan.baidu.com, yunbusiness.ccb.com, client.app.coc.10086.cn, t1.market.xiaomi.com, api.m.mi.com, app.zhuanzhuan.com, api.cloud.189.cn, appwk.baidu.com, us.l.qq.com, open.e.kuaishou.com, mi.gdt.qq.com, emdcadvertise.eastmoney.com, adm.10jqka.com.cn, a.qiumibao.com, api.tipsoon.com, b.appsimg.com, ios.sspai.com, zconfig.alibabausercontent.com, api.touker.com, mpcs.suning.com, api.pinduoduo.com, api.yangkeduo.com, easyreadfs.nosdn.127.net, sp.kaola.com, gw.kaola.com, mime.baidu.com, learn.chaoxing.com, mapi.dangdang.com, api.dangdang.com, open.e.kuaishou.com, client.qunar.com, mpos-pic.helipay.com, dili.bdatu.com, wap.ngchina.cn, ih2.ireader.com, adpai.thepaper.cn, api.haohaozhu.cn, list-app-m.i4.cn, api.xiachufang.com, peisongapi.meituan.com, *gaoqingdianshi.com, *.kakamobi.cn, api.jxedt.com, slapi.oray.net, r.inews.qq.com, app.yinxiang.com, mapi.appvipshop.com, syh.zybang.com, cdn.cmgadx.com, api.internetofcity.cn, img.meituan.net, lcen.xiaote.net, venus.yhd.com, api.shenyin.name, mage*.if.qidian.com, god.gameyw.netease.com, m.ibuscloud.com, e.dangdang.com, app2.autoimg.cn, adproxy.autohome.com.cn, discardrp.umetrip.com, startup.umetrip.com, explorer.tratao.com, overseas.weico.cc, 118.178.214.118, dapis.mting.info, acs.m.taobao.com, open3.vistastory.com, ssp.dzh.com.cn, www.meituan.com, client.mail.163.com, api.izuiyou.com, appapi.huazhu.com, api.wfdata.club, interface*.music.163.com, api.psy-1.com, res.kfc.com.cn, mp.weixin.qq.com, security.wechat.com, weixin110.qq.com, cdn.*.chelaileapp.cn, api.coolapk.com, app3.qdaily.com, daoyu.sdo.com, img.jiemian.com, ccsp-egmas.sf-express.com, *.laichon.com, app.ap.d3yuiw4.com, www.i3zh.com, api.yikaobang.com.cn, api-ad-product.huxiu.com, jad-api.jin10.com, mob.mddcloud.com.cn, appactive.1234567.com.cn, rtbapi.douyucdn.cn, service.busi.inke.cn, gab.122.gov.cn, dispatcher.camera360.com, app.api.versa-ai.com, open.taou.com, api.taou.com, track.mm.taou.com, app.dewu.com, data-collector.soulapp.cn, api.gamer.com.tw, beta-api.crunchyroll.com, api.vistopia.com.cn, pss.txffp.com, m.sd.10086.cn, helper.2bulu.com, 47.100.65.202, api.weibo.cn, mapi.weibo.com, *.uve.weibo.com, new.vip.weibo.cn, wap.js.10086.cn, tagit.hyhuo.com, top-widgets-api.xiaozujian.com, *mangaapi.manhuaren.*, apis.lifeweek.com.cn, support.you.163.com, yanxuan.nosdn.127.net, *.peopleapp.com, new-app-api.ylyk.com, gw.aihuishou.com, *.58cdn.com.cn, app.58.com, api.zhihu.com, creditcardapp.bankcomm.com, res.xiaojukeji.com, 116.85.2.15, 116.85.2.14, lchttpapi.xczim.com, business.msstatic.com, api.kkmh.com, *.chelaile.net.cn, api.jr.mi.com, api.m.mi.com, guanyu.longfor.com, elemecdn.com, fuss10.elemecdn.com, www1.elecfans.com, m.tuniu.com, mapi.mafengwo.cn, api.xiaoyi.com, api.douban.com, otheve.beacon.qq.com, mapi.sfbest.com, api.mwee.cn, sso.ifanr.com, s3plus.meituan.net, flowplus.meituan.net, p*.meituan.net, testflight.apple.com, wmapi.meituan.com, appconf.mail.163.com, dl-cu-hz.lechange.cn, fbchina.flipchina.cn, zone.guiderank-app.com, homefront.qunar.com, afd.baidu.com, j-image.missfresh.cn, ma-adx.ctrip.com, mbd.baidu.com, img.rr.tv, api.rr.tv, *.hoopchina.com, goblin.hupu.com, spclient.wg.spotify.com # ======= 0~9 ======= # # > version -^https?:\/\/2023.05.28\/v2.0.314 url reject +^https?:\/\/2023.07.12\/v2.0.328 url reject-200 +# > 10 +^https?:\/\/ftapi\.10jqka\.com\.cn\/futgwapi\/api\/om\/v\d\/ad\/common\/transfer url reject # > 58 ^https?:\/\/app\.58\.com\/api\/home\/(advertising|appadv) url reject # > 555 @@ -32,7 +34,7 @@ hostname = evs.500.com, j1.pupuapi.com, dq.dxy.cn, m.you.163.com, open-cms-api.u ^https:\/\/gab\.122\.gov\.cn\/eapp\/m\/sysquery url reject # > 36kr ^https?:\/\/gateway\.36kr\.com\/api\/adx\/ad\/show url reject -# > 500 pupiao +# > 500 ^https?:\/\/evs\.500\.com\/esinfo\/loading\/loading url reject # > 12306 ^https?:\/\/ad\.12306\.cn\/ad\/ser\/getAdList url script-analyze-echo-response https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/12306.js @@ -50,7 +52,8 @@ hostname = evs.500.com, j1.pupuapi.com, dq.dxy.cn, m.you.163.com, open-cms-api.u ^https?:\/\/acs\.m\.taobao\.com\/gw\/mtop\.alibaba\.advertisementservice\.getadv\/ url reject # > amdc ^http:\/\/amdc\.m\.taobao\.com url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Amdc.min.js - +# > ahfs +^https?:\/\/.*ahhhhfs.com\/($|[0-9a-zA-Z]+\/$) url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Ahfs.js # ======= B ======= # @@ -123,8 +126,6 @@ https://beta-api.crunchyroll.com/cms url response-body offset_ms":\d+ response-b # > douban ^https?:\/\/api\.douban\.com\/v2\/app_ads\/splash url reject ^https?:\/\/api\.douban\.com\/b.*\/common_ads\?.* url reject -# > dingdongmaicai -^https?:\/\/maicai\.api\.ddxq\.mobi\/advert\/ url reject # > didichuxing https?://res\.xiaojukeji\.com\/resapi\/activity\/mget url reject https?:\/\/res\.xiaojukeji\.com\/resapi\/activity\/get(Ruled|Preload|PasMultiNotices) url reject @@ -292,7 +293,7 @@ https://fbchina.flipchina.cn/v2/ad/query/* url reject https://open3.vistastory.com/v3/api/index/loading_ad url reject https://open3.vistastory.com/v3/api.*get_popup url reject # > kuake -^https?:\/\/open-cms-api\.uc\.cn\/open-cms url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Quark.min.js +^https?:\/\/open-cms-api\.(uc|quark)\.cn\/open-cms url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Quark.min.js # > kuaishou ^https:\/\/open\.e\.kuaishou\.com\/rest\/e\/v3\/open\/univ url reject @@ -422,6 +423,7 @@ https://ios.sspai.com/api/v3/recommend/page/get\?ad.*ios_home_modal url reject ^https://mapi.sfbest.com\/brokerservice-server\/cms\/getPositionById.* url reject # > spotify pro ^https:\/\/spclient\.wg\.spotify\.com\/(bootstrap\/v1\/bootstrap|user-customization-service\/v1\/customize)$ url script-response-body https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-proto.js +^https:\/\/spclient\.wg\.spotify\.com\/(artistview\/v1\/artist|album-entity-view\/v2\/album)\/ url script-request-header https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-json.js # > spotify ^https?://spclient.wg.spotify.com/(ad-logic|ads|.+ad_slot|.+banners|.+canvases|.+cards|.+crashlytics|.+doubleclick.net|.+enabled-tracks|.+promoted_offer) url reject-img ^https?:\/\/api\d?\.musical\.ly\/api\/ad\/ url reject-img @@ -444,6 +446,8 @@ https://ccsp-egmas.sf-express.com/cx-app-base/base/app/ad/queryAdImages url reje ^https?:\/\/api-sams\.walmartmobile\.cn\/api\/v1\/sams\/sams-user\/(window\/getGoUpPlus|screen_promotion\/get) url reject # > shanxianyixia ^https:\/\/api\.gameplus\.qq\.com\/community\.OnloadSrv\/GetPreloadScreenInfo url reject +# > shaoniandedao +^https?:\/\/igetcool-gateway\.igetcool\.com\/app-api-other-server\/white\/open\/ads.json url reject-200 # > shoulvrujia ^https?:\/\/app\.homeinns\.com\/api\/landing url reject @@ -513,8 +517,8 @@ https://support.you.163.com/appversync/check.do url reject ^https\:\/\/(weixin110\.qq|security.wechat)\.com\/cgi-bin\/mmspamsupport-bin\/newredirectconfirmcgi\? url script-response-body https://raw.githubusercontent.com/zZPiglet/Task/master/asset/UnblockURLinWeChat.js # > weixindaihuo ^https?:\/\/mp\.weixin\.qq\.com\/mp\/cps_product_info url reject -# > WeChatpublicarticle -^(http|https):\/\/mp\.weixin\.qq\.com\/mp\/getappmsgad url response-body "advertisement_num":\d,"advertisement_info":\[.+\], response-body "advertisement_num":0,"advertisement_info":[], +# > WeChat +^https?:\/\/mp\.weixin\.qq\.com\/mp\/getappmsgad url response-body advertisement response-body null # > Weifeng ^https?:\/\/api\.wfdata\.club\/v2\/yesfeng\/(infoCenterAd|yesList) url reject #^https?:\/\/api\.wfdata\.club\/v\d\/search\/hot\? url response-body dataList":\[.+\] response-body dataList":[{}] diff --git a/Scripts/AdBlock/Other/Ahfs.js b/Scripts/AdBlock/Other/Ahfs.js new file mode 100644 index 0000000..c1e3091 --- /dev/null +++ b/Scripts/AdBlock/Other/Ahfs.js @@ -0,0 +1,5 @@ +var body = $response.body.replace( + //, + '' +); +$done({ body }); diff --git a/Scripts/AdBlock/Other/BaiduMap.js b/Scripts/AdBlock/Other/BaiduMap.js index 49a0424..a0a425f 100644 --- a/Scripts/AdBlock/Other/BaiduMap.js +++ b/Scripts/AdBlock/Other/BaiduMap.js @@ -1,6 +1,6 @@ let protobuf; !(function (g) { - "use strict"; + 'use strict'; !(function (r, e, t) { var i = (function t(i) { var n = e[i]; @@ -10,12 +10,12 @@ let protobuf; ); })(t[0]); (protobuf = i.util.global.protobuf = i), - "function" == typeof define && + 'function' == typeof define && define.amd && - define(["long"], function (t) { + define(['long'], function (t) { return t && t.isLong && ((i.util.Long = t), i.configure()), i; }), - "object" == typeof module && + 'object' == typeof module && module && module.exports && (module.exports = i); @@ -58,7 +58,7 @@ let protobuf; n.length = function (t) { var i = t.length; if (!i) return 0; - for (var n = 0; 1 < --i % 4 && "=" == (t[0 | i] || ""); ) ++n; + for (var n = 0; 1 < --i % 4 && '=' == (t[0 | i] || ''); ) ++n; return Math.ceil(3 * t.length) / 4 - n; }; for (var f = Array(64), h = Array(123), r = 0; r < 64; ) @@ -94,11 +94,11 @@ let protobuf; e ? (u && e.push(String.fromCharCode.apply(String, s.slice(0, u))), - e.join("")) + e.join('')) : String.fromCharCode.apply(String, s.slice(0, u)) ); }; - var c = "invalid encoding"; + var c = 'invalid encoding'; (n.decode = function (t, i, n) { for (var r, e = n, s = 0, u = 0; u < t.length; ) { var o = t.charCodeAt(u++); @@ -134,14 +134,14 @@ let protobuf; 3: [ function (t, i, n) { function a(i, n) { - "string" == typeof i && ((n = i), (i = g)); + 'string' == typeof i && ((n = i), (i = g)); var h = []; function f(t) { - if ("string" != typeof t) { + if ('string' != typeof t) { var i = c(); if ( - (a.verbose && console.log("codegen: " + i), - (i = "return " + i), + (a.verbose && console.log('codegen: ' + i), + (i = 'return ' + i), t) ) { for ( @@ -164,32 +164,32 @@ let protobuf; (t = t.replace(/%([%dfijs])/g, function (t, i) { var n = u[o++]; switch (i) { - case "d": - case "f": - return "" + +("" + n); - case "i": - return "" + Math.floor(n); - case "j": + case 'd': + case 'f': + return '' + +('' + n); + case 'i': + return '' + Math.floor(n); + case 'j': return JSON.stringify(n); - case "s": - return "" + n; + case 's': + return '' + n; } - return "%"; + return '%'; })), o !== u.length) ) - throw Error("parameter count mismatch"); + throw Error('parameter count mismatch'); return h.push(t), f; } function c(t) { return ( - "function " + - (t || n || "") + - "(" + - ((i && i.join(",")) || "") + - "){\n " + - h.join("\n ") + - "\n}" + 'function ' + + (t || n || '') + + '(' + + ((i && i.join(',')) || '') + + '){\n ' + + h.join('\n ') + + '\n}' ); } return (f.toString = c), f; @@ -233,18 +233,18 @@ let protobuf; function (t, i, n) { i.exports = o; var s = t(1), - u = t(7)("fs"); + u = t(7)('fs'); function o(n, r, e) { return ( - (r = "function" == typeof r ? ((e = r), {}) : r || {}), + (r = 'function' == typeof r ? ((e = r), {}) : r || {}), e ? !r.xhr && u && u.readFile ? u.readFile(n, function (t, i) { - return t && "undefined" != typeof XMLHttpRequest + return t && 'undefined' != typeof XMLHttpRequest ? o.xhr(n, r, e) : t ? e(t) - : e(null, r.binary ? i : i.toString("utf8")); + : e(null, r.binary ? i : i.toString('utf8')); }) : o.xhr(n, r, e) : s(o, this, n, r) @@ -255,23 +255,23 @@ let protobuf; (e.onreadystatechange = function () { if (4 !== e.readyState) return g; if (0 !== e.status && 200 !== e.status) - return r(Error("status " + e.status)); + return r(Error('status ' + e.status)); if (n.binary) { if (!(t = e.response)) for (var t = [], i = 0; i < e.responseText.length; ++i) t.push(255 & e.responseText.charCodeAt(i)); return r( null, - "undefined" != typeof Uint8Array ? new Uint8Array(t) : t + 'undefined' != typeof Uint8Array ? new Uint8Array(t) : t ); } return r(null, e.responseText); }), n.binary && - ("overrideMimeType" in e && - e.overrideMimeType("text/plain; charset=x-user-defined"), - (e.responseType = "arraybuffer")), - e.open("GET", t), + ('overrideMimeType' in e && + e.overrideMimeType('text/plain; charset=x-user-defined'), + (e.responseType = 'arraybuffer')), + e.open('GET', t), e.send(); }; }, @@ -446,7 +446,7 @@ let protobuf; ); } return ( - "undefined" != typeof Float32Array + 'undefined' != typeof Float32Array ? ((o = new Float32Array([-0])), (h = new Uint8Array(o.buffer)), (a = 128 === h[3]), @@ -458,7 +458,7 @@ let protobuf; (t.writeFloatBE = i.bind(null, w)), (t.readFloatLE = n.bind(null, g)), (t.readFloatBE = n.bind(null, j))), - "undefined" != typeof Float64Array + 'undefined' != typeof Float64Array ? ((f = new Float64Array([-0])), (c = new Uint8Array(f.buffer)), (a = 128 === c[7]), @@ -505,7 +505,7 @@ let protobuf; function (t, i, n) { function r(t) { try { - var i = eval("require")(t); + var i = eval('require')(t); if (i && (i.length || Object.keys(i).length)) return i; } catch (t) {} return null; @@ -520,30 +520,30 @@ let protobuf; return /^(?:\/|\w+:)/.test(t); }), r = (n.normalize = function (t) { - var i = (t = t.replace(/\\/g, "/").replace(/\/{2,}/g, "/")).split( - "/" + var i = (t = t.replace(/\\/g, '/').replace(/\/{2,}/g, '/')).split( + '/' ), n = e(t), - t = ""; - n && (t = i.shift() + "/"); + t = ''; + n && (t = i.shift() + '/'); for (var r = 0; r < i.length; ) - ".." === i[r] - ? 0 < r && ".." !== i[r - 1] + '..' === i[r] + ? 0 < r && '..' !== i[r - 1] ? i.splice(--r, 2) : n ? i.splice(r, 1) : ++r - : "." === i[r] + : '.' === i[r] ? i.splice(r, 1) : ++r; - return t + i.join("/"); + return t + i.join('/'); }); n.resolve = function (t, i, n) { return ( n || (i = r(i)), !e(i) && - (t = (t = n ? t : r(t)).replace(/(?:\/|^)[^/]+$/, "")).length - ? r(t + "/" + i) + (t = (t = n ? t : r(t)).replace(/(?:\/|^)[^/]+$/, '')).length + ? r(t + '/' + i) : i ); }; @@ -581,7 +581,7 @@ let protobuf; return n; }), (n.read = function (t, i, n) { - if (n - i < 1) return ""; + if (n - i < 1) return ''; for (var r, e = null, s = [], u = 0; i < n; ) (r = t[i++]) < 128 ? (s[u++] = r) @@ -604,7 +604,7 @@ let protobuf; return e ? (u && e.push(String.fromCharCode.apply(String, s.slice(0, u))), - e.join("")) + e.join('')) : String.fromCharCode.apply(String, s.slice(0, u)); }), (n.write = function (t, i, n) { @@ -637,7 +637,7 @@ let protobuf; var e = !1; if (i.resolvedType) if (i.resolvedType instanceof l) { - t("switch(d%s){", r); + t('switch(d%s){', r); for ( var s = i.resolvedType.values, u = Object.keys(s), o = 0; o < u.length; @@ -645,81 +645,81 @@ let protobuf; ) s[u[o]] !== i.typeDefault || e || - (t("default:")( + (t('default:')( 'if(typeof(d%s)==="number"){m%s=d%s;break}', r, r, r ), - i.repeated || t("break"), + i.repeated || t('break'), (e = !0)), - t("case%j:", u[o])("case %i:", s[u[o]])( - "m%s=%j", + t('case%j:', u[o])('case %i:', s[u[o]])( + 'm%s=%j', r, s[u[o]] - )("break"); - t("}"); + )('break'); + t('}'); } else t('if(typeof d%s!=="object")', r)( - "throw TypeError(%j)", - i.fullName + ": object expected" - )("m%s=types[%i].fromObject(d%s)", r, n, r); + 'throw TypeError(%j)', + i.fullName + ': object expected' + )('m%s=types[%i].fromObject(d%s)', r, n, r); else { var h = !1; switch (i.type) { - case "double": - case "float": - t("m%s=Number(d%s)", r, r); + case 'double': + case 'float': + t('m%s=Number(d%s)', r, r); break; - case "uint32": - case "fixed32": - t("m%s=d%s>>>0", r, r); + case 'uint32': + case 'fixed32': + t('m%s=d%s>>>0', r, r); break; - case "int32": - case "sint32": - case "sfixed32": - t("m%s=d%s|0", r, r); + case 'int32': + case 'sint32': + case 'sfixed32': + t('m%s=d%s|0', r, r); break; - case "uint64": + case 'uint64': h = !0; - case "int64": - case "sint64": - case "fixed64": - case "sfixed64": - t("if(util.Long)")( - "(m%s=util.Long.fromValue(d%s)).unsigned=%j", + case 'int64': + case 'sint64': + case 'fixed64': + case 'sfixed64': + t('if(util.Long)')( + '(m%s=util.Long.fromValue(d%s)).unsigned=%j', r, r, h )('else if(typeof d%s==="string")', r)( - "m%s=parseInt(d%s,10)", + 'm%s=parseInt(d%s,10)', r, r )('else if(typeof d%s==="number")', r)( - "m%s=d%s", + 'm%s=d%s', r, r )('else if(typeof d%s==="object")', r)( - "m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", + 'm%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)', r, r, r, - h ? "true" : "" + h ? 'true' : '' ); break; - case "bytes": + case 'bytes': t('if(typeof d%s==="string")', r)( - "util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", + 'util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)', r, r, r - )("else if(d%s.length >= 0)", r)("m%s=d%s", r, r); + )('else if(d%s.length >= 0)', r)('m%s=d%s', r, r); break; - case "string": - t("m%s=String(d%s)", r, r); + case 'string': + t('m%s=String(d%s)', r, r); break; - case "bool": - t("m%s=Boolean(d%s)", r, r); + case 'bool': + t('m%s=Boolean(d%s)', r, r); } } return t; @@ -728,7 +728,7 @@ let protobuf; if (i.resolvedType) i.resolvedType instanceof l ? t( - "d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", + 'd%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s', r, n, r, @@ -737,38 +737,38 @@ let protobuf; r, r ) - : t("d%s=types[%i].toObject(m%s,o)", r, n, r); + : t('d%s=types[%i].toObject(m%s,o)', r, n, r); else { var e = !1; switch (i.type) { - case "double": - case "float": - t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", r, r, r, r); + case 'double': + case 'float': + t('d%s=o.json&&!isFinite(m%s)?String(m%s):m%s', r, r, r, r); break; - case "uint64": + case 'uint64': e = !0; - case "int64": - case "sint64": - case "fixed64": - case "sfixed64": + case 'int64': + case 'sint64': + case 'fixed64': + case 'sfixed64': t('if(typeof m%s==="number")', r)( - "d%s=o.longs===String?String(m%s):m%s", + 'd%s=o.longs===String?String(m%s):m%s', r, r, r - )("else")( - "d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s", + )('else')( + 'd%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s', r, r, r, r, - e ? "true" : "", + e ? 'true' : '', r ); break; - case "bytes": + case 'bytes': t( - "d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s", + 'd%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s', r, r, r, @@ -777,7 +777,7 @@ let protobuf; ); break; default: - t("d%s=m%s", r, r); + t('d%s=m%s', r, r); } } return t; @@ -785,42 +785,42 @@ let protobuf; (n.fromObject = function (t) { var i = t.fieldsArray, n = d.codegen( - ["d"], - t.name + "$fromObject" - )("if(d instanceof this.ctor)")("return d"); - if (!i.length) return n("return new this.ctor"); - n("var m=new this.ctor"); + ['d'], + t.name + '$fromObject' + )('if(d instanceof this.ctor)')('return d'); + if (!i.length) return n('return new this.ctor'); + n('var m=new this.ctor'); for (var r = 0; r < i.length; ++r) { var e = i[r].resolve(), s = d.safeProp(e.name); e.map - ? (n("if(d%s){", s)('if(typeof d%s!=="object")', s)( - "throw TypeError(%j)", - e.fullName + ": object expected" - )("m%s={}", s)( - "for(var ks=Object.keys(d%s),i=0;i>>3){"); + ? ',k,value' + : '') + )('while(r.pos>>3){'); for (var n = 0; n < t.fieldsArray.length; ++n) { var r = t.i[n].resolve(), - e = r.resolvedType instanceof o ? "int32" : r.type, - s = "m" + f.safeProp(r.name); - i("case %i: {", r.id), + e = r.resolvedType instanceof o ? 'int32' : r.type, + s = 'm' + f.safeProp(r.name); + i('case %i: {', r.id), r.map - ? (i("if(%s===util.emptyObject)", s)("%s={}", s)( - "var c2 = r.uint32()+r.pos" + ? (i('if(%s===util.emptyObject)', s)('%s={}', s)( + 'var c2 = r.uint32()+r.pos' ), h.defaults[r.keyType] !== g - ? i("k=%j", h.defaults[r.keyType]) - : i("k=null"), + ? i('k=%j', h.defaults[r.keyType]) + : i('k=null'), h.defaults[e] !== g - ? i("value=%j", h.defaults[e]) - : i("value=null"), - i("while(r.pos>>3){" + ? i('value=%j', h.defaults[e]) + : i('value=null'), + i('while(r.pos>>3){' )( - "case 1: k=r.%s(); break", + 'case 1: k=r.%s(); break', r.keyType - )("case 2:"), + )('case 2:'), h.basic[e] === g - ? i("value=types[%i].decode(r,r.uint32())", n) - : i("value=r.%s()", e), - i("break")("default:")("r.skipType(tag2&7)")("break")("}")( - "}" + ? i('value=types[%i].decode(r,r.uint32())', n) + : i('value=r.%s()', e), + i('break')('default:')('r.skipType(tag2&7)')('break')('}')( + '}' ), h.long[r.keyType] !== g ? i( '%s[typeof k==="object"?util.longToHash(k):k]=value', s ) - : i("%s[k]=value", s)) + : i('%s[k]=value', s)) : r.repeated - ? (i("if(!(%s&&%s.length))", s, s)("%s=[]", s), + ? (i('if(!(%s&&%s.length))', s, s)('%s=[]', s), h.packed[e] !== g && - i("if((t&7)===2){")("var c2=r.uint32()+r.pos")( - "while(r.pos>> 0, 8 | c.mapKey[s.keyType], s.keyType ), h === g ? n( - "types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", + 'types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()', u, i ) - : n(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | h, o, i), - n("}")("}")) + : n('.uint32(%i).%s(%s[ks[i]]).ldelim()', 16 | h, o, i), + n('}')('}')) : s.repeated - ? (n("if(%s!=null&&%s.length){", i, i), + ? (n('if(%s!=null&&%s.length){', i, i), s.packed && c.packed[o] !== g - ? n("w.uint32(%i).fork()", ((s.id << 3) | 2) >>> 0)( - "for(var i=0;i<%s.length;++i)", + ? n('w.uint32(%i).fork()', ((s.id << 3) | 2) >>> 0)( + 'for(var i=0;i<%s.length;++i)', i )( - "w.%s(%s[i])", + 'w.%s(%s[i])', o, i - )("w.ldelim()") - : (n("for(var i=0;i<%s.length;++i)", i), + )('w.ldelim()') + : (n('for(var i=0;i<%s.length;++i)', i), h === g - ? l(n, s, u, i + "[i]") + ? l(n, s, u, i + '[i]') : n( - "w.uint32(%i).%s(%s[i])", + 'w.uint32(%i).%s(%s[i])', ((s.id << 3) | h) >>> 0, o, i )), - n("}")) + n('}')) : (s.optional && n( - "if(%s!=null&&Object.hasOwnProperty.call(m,%j))", + 'if(%s!=null&&Object.hasOwnProperty.call(m,%j))', i, s.name ), h === g ? l(n, s, u, i) : n( - "w.uint32(%i).%s(%s)", + 'w.uint32(%i).%s(%s)', ((s.id << 3) | h) >>> 0, o, i )); } - return n("return w"); + return n('return w'); }; var f = t(14), c = t(32), @@ -1101,14 +1101,14 @@ let protobuf; function l(t, i, n, r) { i.resolvedType.group ? t( - "types[%i].encode(%s,w.uint32(%i)).uint32(%i)", + 'types[%i].encode(%s,w.uint32(%i)).uint32(%i)', n, r, ((i.id << 3) | 3) >>> 0, ((i.id << 3) | 4) >>> 0 ) : t( - "types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", + 'types[%i].encode(%s,w.uint32(%i).fork()).ldelim()', n, r, ((i.id << 3) | 2) >>> 0 @@ -1123,12 +1123,12 @@ let protobuf; var h = t(22), r = ((((s.prototype = Object.create(h.prototype)).constructor = - s).className = "Enum"), + s).className = 'Enum'), t(21)), e = t(33); function s(t, i, n, r, e, s) { - if ((h.call(this, t, n), i && "object" != typeof i)) - throw TypeError("values must be an object"); + if ((h.call(this, t, n), i && 'object' != typeof i)) + throw TypeError('values must be an object'); if ( ((this.valuesById = {}), (this.values = Object.create(this.valuesById)), @@ -1139,7 +1139,7 @@ let protobuf; i) ) for (var u = Object.keys(i), o = 0; o < u.length; ++o) - "number" == typeof i[u[o]] && + 'number' == typeof i[u[o]] && (this.valuesById[(this.values[u[o]] = i[u[o]])] = u[o]); } (s.fromJSON = function (t, i) { @@ -1149,32 +1149,32 @@ let protobuf; (s.prototype.toJSON = function (t) { t = !!t && !!t.keepComments; return e.toObject([ - "options", + 'options', this.options, - "valuesOptions", + 'valuesOptions', this.valuesOptions, - "values", + 'values', this.values, - "reserved", + 'reserved', this.reserved && this.reserved.length ? this.reserved : g, - "comment", + 'comment', t ? this.comment : g, - "comments", + 'comments', t ? this.comments : g, ]); }), (s.prototype.add = function (t, i, n, r) { - if (!e.isString(t)) throw TypeError("name must be a string"); - if (!e.isInteger(i)) throw TypeError("id must be an integer"); + if (!e.isString(t)) throw TypeError('name must be a string'); + if (!e.isInteger(i)) throw TypeError('id must be an integer'); if (this.values[t] !== g) throw Error("duplicate name '" + t + "' in " + this); if (this.isReservedId(i)) - throw Error("id " + i + " is reserved in " + this); + throw Error('id ' + i + ' is reserved in ' + this); if (this.isReservedName(t)) throw Error("name '" + t + "' is reserved in " + this); if (this.valuesById[i] !== g) { if (!this.options || !this.options.allow_alias) - throw Error("duplicate id " + i + " in " + this); + throw Error('duplicate id ' + i + ' in ' + this); this.values[t] = i; } else this.valuesById[(this.values[t] = i)] = t; return ( @@ -1186,7 +1186,7 @@ let protobuf; ); }), (s.prototype.remove = function (t) { - if (!e.isString(t)) throw TypeError("name must be a string"); + if (!e.isString(t)) throw TypeError('name must be a string'); var i = this.values[t]; if (null == i) throw Error("name '" + t + "' does not exist in " + this); @@ -1214,7 +1214,7 @@ let protobuf; o = t(22), e = ((((u.prototype = Object.create(o.prototype)).constructor = - u).className = "Field"), + u).className = 'Field'), t(14)), h = t(32), f = t(33), @@ -1227,29 +1227,29 @@ let protobuf; o.call(this, t, s), !f.isInteger(i) || i < 0) ) - throw TypeError("id must be a non-negative integer"); - if (!f.isString(n)) throw TypeError("type must be a string"); + throw TypeError('id must be a non-negative integer'); + if (!f.isString(n)) throw TypeError('type must be a string'); if (r !== g && !c.test((r = r.toString().toLowerCase()))) - throw TypeError("rule must be a string rule"); + throw TypeError('rule must be a string rule'); if (e !== g && !f.isString(e)) - throw TypeError("extend must be a string"); + throw TypeError('extend must be a string'); (this.rule = - (r = "proto3_optional" === r ? "optional" : r) && "optional" !== r + (r = 'proto3_optional' === r ? 'optional' : r) && 'optional' !== r ? r : g), (this.type = n), (this.id = i), (this.extend = e || g), - (this.required = "required" === r), + (this.required = 'required' === r), (this.optional = !this.required), - (this.repeated = "repeated" === r), + (this.repeated = 'repeated' === r), (this.map = !1), (this.message = null), (this.partOf = null), (this.typeDefault = null), (this.defaultValue = null), (this.long = !!f.Long && h.long[n] !== g), - (this.bytes = "bytes" === n), + (this.bytes = 'bytes' === n), (this.resolvedType = null), (this.extensionField = null), (this.declaringField = null), @@ -1267,34 +1267,34 @@ let protobuf; i.comment ); }), - Object.defineProperty(u.prototype, "packed", { + Object.defineProperty(u.prototype, 'packed', { get: function () { return ( - null === this.n && (this.n = !1 !== this.getOption("packed")), + null === this.n && (this.n = !1 !== this.getOption('packed')), this.n ); }, }), (u.prototype.setOption = function (t, i, n) { return ( - "packed" === t && (this.n = null), + 'packed' === t && (this.n = null), o.prototype.setOption.call(this, t, i, n) ); }), (u.prototype.toJSON = function (t) { t = !!t && !!t.keepComments; return f.toObject([ - "rule", - ("optional" !== this.rule && this.rule) || g, - "type", + 'rule', + ('optional' !== this.rule && this.rule) || g, + 'type', this.type, - "id", + 'id', this.id, - "extend", + 'extend', this.extend, - "options", + 'options', this.options, - "comment", + 'comment', t ? this.comment : g, ]); }), @@ -1319,7 +1319,7 @@ let protobuf; null != this.options.default && ((this.typeDefault = this.options.default), this.resolvedType instanceof e && - "string" == typeof this.typeDefault && + 'string' == typeof this.typeDefault && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && @@ -1332,11 +1332,11 @@ let protobuf; this.long ? ((this.typeDefault = f.Long.fromNumber( this.typeDefault, - "u" == (this.type[0] || "") + 'u' == (this.type[0] || '') )), Object.freeze && Object.freeze(this.typeDefault)) : this.bytes && - "string" == typeof this.typeDefault && + 'string' == typeof this.typeDefault && (f.base64.test(this.typeDefault) ? f.base64.decode( this.typeDefault, @@ -1362,9 +1362,9 @@ let protobuf; }), (u.d = function (n, r, e, s) { return ( - "function" == typeof r + 'function' == typeof r ? (r = f.decorateType(r).name) - : r && "object" == typeof r && (r = f.decorateEnum(r).name), + : r && 'object' == typeof r && (r = f.decorateEnum(r).name), function (t, i) { f.decorateType(t.constructor).add( new u(i, n, r, e, { default: s }) @@ -1381,10 +1381,10 @@ let protobuf; 16: [ function (t, i, n) { var r = (i.exports = t(17)); - (r.build = "light"), + (r.build = 'light'), (r.load = function (t, i, n) { return (i = - "function" == typeof i + 'function' == typeof i ? ((n = i), new r.Root()) : i || new r.Root()).load(t, n); }), @@ -1442,7 +1442,7 @@ let protobuf; function e() { r.util.r(), r.Writer.r(r.BufferWriter), r.Reader.r(r.BufferReader); } - (r.build = "minimal"), + (r.build = 'minimal'), (r.Writer = t(38)), (r.BufferWriter = t(39)), (r.Reader = t(24)), @@ -1461,12 +1461,12 @@ let protobuf; var u = t(15), r = ((((s.prototype = Object.create(u.prototype)).constructor = - s).className = "MapField"), + s).className = 'MapField'), t(32)), o = t(33); function s(t, i, n, r, e, s) { if ((u.call(this, t, i, r, g, g, e, s), !o.isString(n))) - throw TypeError("keyType must be a string"); + throw TypeError('keyType must be a string'); (this.keyType = n), (this.resolvedKeyType = null), (this.map = !0); } (s.fromJSON = function (t, i) { @@ -1475,31 +1475,31 @@ let protobuf; (s.prototype.toJSON = function (t) { t = !!t && !!t.keepComments; return o.toObject([ - "keyType", + 'keyType', this.keyType, - "type", + 'type', this.type, - "id", + 'id', this.id, - "extend", + 'extend', this.extend, - "options", + 'options', this.options, - "comment", + 'comment', t ? this.comment : g, ]); }), (s.prototype.resolve = function () { if (this.resolved) return this; if (r.mapKey[this.keyType] === g) - throw Error("invalid key type: " + this.keyType); + throw Error('invalid key type: ' + this.keyType); return u.prototype.resolve.call(this); }), (s.d = function (n, r, e) { return ( - "function" == typeof e + 'function' == typeof e ? (e = o.decorateType(e).name) - : e && "object" == typeof e && (e = o.decorateEnum(e).name), + : e && 'object' == typeof e && (e = o.decorateEnum(e).name), function (t, i) { o.decorateType(t.constructor).add(new s(i, n, r, e)); } @@ -1553,7 +1553,7 @@ let protobuf; var f = t(22), c = ((((r.prototype = Object.create(f.prototype)).constructor = - r).className = "Method"), + r).className = 'Method'), t(33)); function r(t, i, n, r, e, s, u, o, h) { if ( @@ -1562,12 +1562,12 @@ let protobuf; : c.isObject(s) && ((u = s), (s = g)), i !== g && !c.isString(i)) ) - throw TypeError("type must be a string"); - if (!c.isString(n)) throw TypeError("requestType must be a string"); + throw TypeError('type must be a string'); + if (!c.isString(n)) throw TypeError('requestType must be a string'); if (!c.isString(r)) - throw TypeError("responseType must be a string"); + throw TypeError('responseType must be a string'); f.call(this, t, u), - (this.type = i || "rpc"), + (this.type = i || 'rpc'), (this.requestType = n), (this.requestStream = !!e || g), (this.responseType = r), @@ -1593,21 +1593,21 @@ let protobuf; (r.prototype.toJSON = function (t) { t = !!t && !!t.keepComments; return c.toObject([ - "type", - ("rpc" !== this.type && this.type) || g, - "requestType", + 'type', + ('rpc' !== this.type && this.type) || g, + 'requestType', this.requestType, - "requestStream", + 'requestStream', this.requestStream, - "responseType", + 'responseType', this.responseType, - "responseStream", + 'responseStream', this.responseStream, - "options", + 'options', this.options, - "comment", + 'comment', t ? this.comment : g, - "parsedOptions", + 'parsedOptions', this.parsedOptions, ]); }), @@ -1634,7 +1634,7 @@ let protobuf; r = t(22), o = ((((a.prototype = Object.create(r.prototype)).constructor = - a).className = "Namespace"), + a).className = 'Namespace'), t(15)), h = t(33), f = t(23); @@ -1657,7 +1657,7 @@ let protobuf; (a.isReservedId = function (t, i) { if (t) for (var n = 0; n < t.length; ++n) - if ("string" != typeof t[n] && t[n][0] <= i && t[n][1] > i) + if ('string' != typeof t[n] && t[n][0] <= i && t[n][1] > i) return !0; return !1; }), @@ -1666,16 +1666,16 @@ let protobuf; for (var n = 0; n < t.length; ++n) if (t[n] === i) return !0; return !1; }), - Object.defineProperty(a.prototype, "nestedArray", { + Object.defineProperty(a.prototype, 'nestedArray', { get: function () { return this.e || (this.e = h.toArray(this.nested)); }, }), (a.prototype.toJSON = function (t) { return h.toObject([ - "options", + 'options', this.options, - "nested", + 'nested', c(this.nestedArray, t), ]); }), @@ -1703,7 +1703,7 @@ let protobuf; (a.prototype.getEnum = function (t) { if (this.nested && this.nested[t] instanceof u) return this.nested[t].values; - throw Error("no such enum: " + t); + throw Error('no such enum: ' + t); }), (a.prototype.add = function (t) { if ( @@ -1716,7 +1716,7 @@ let protobuf; t instanceof a ) ) - throw TypeError("object must be a valid nested object"); + throw TypeError('object must be a valid nested object'); if (this.nested) { var i = this.get(t.name); if (i) { @@ -1737,9 +1737,9 @@ let protobuf; }), (a.prototype.remove = function (t) { if (!(t instanceof r)) - throw TypeError("object must be a ReflectionObject"); + throw TypeError('object must be a ReflectionObject'); if (t.parent !== this) - throw Error(t + " is not a member of " + this); + throw Error(t + ' is not a member of ' + this); return ( delete this.nested[t.name], Object.keys(this.nested).length || (this.nested = g), @@ -1748,15 +1748,15 @@ let protobuf; ); }), (a.prototype.define = function (t, i) { - if (h.isString(t)) t = t.split("."); - else if (!Array.isArray(t)) throw TypeError("illegal path"); - if (t && t.length && "" === t[0]) - throw Error("path must be relative"); + if (h.isString(t)) t = t.split('.'); + else if (!Array.isArray(t)) throw TypeError('illegal path'); + if (t && t.length && '' === t[0]) + throw Error('path must be relative'); for (var n = this; 0 < t.length; ) { var r = t.shift(); if (n.nested && n.nested[r]) { if (!((n = n.nested[r]) instanceof a)) - throw Error("path conflicts with non-namespace objects"); + throw Error('path conflicts with non-namespace objects'); } else n.add((n = new a(r))); } return i && n.addJSON(i), n; @@ -1768,15 +1768,15 @@ let protobuf; }), (a.prototype.lookup = function (t, i, n) { if ( - ("boolean" == typeof i + ('boolean' == typeof i ? ((n = i), (i = g)) : i && !Array.isArray(i) && (i = [i]), h.isString(t) && t.length) ) { - if ("." === t) return this.root; - t = t.split("."); + if ('.' === t) return this.root; + t = t.split('.'); } else if (!t.length) return this; - if ("" === t[0]) return this.root.lookup(t.slice(1), i); + if ('' === t[0]) return this.root.lookup(t.slice(1), i); var r = this.get(t[0]); if (r) { if (1 === t.length) { @@ -1797,7 +1797,7 @@ let protobuf; (a.prototype.lookupType = function (t) { var i = this.lookup(t, [e]); if (i) return i; - throw Error("no such type: " + t); + throw Error('no such type: ' + t); }), (a.prototype.lookupEnum = function (t) { var i = this.lookup(t, [u]); @@ -1822,13 +1822,13 @@ let protobuf; ], 22: [ function (t, i, n) { - (i.exports = e).className = "ReflectionObject"; + (i.exports = e).className = 'ReflectionObject'; var r, u = t(33); function e(t, i) { - if (!u.isString(t)) throw TypeError("name must be a string"); + if (!u.isString(t)) throw TypeError('name must be a string'); if (i && !u.isObject(i)) - throw TypeError("options must be an object"); + throw TypeError('options must be an object'); (this.options = i), (this.parsedOptions = null), (this.name = t), @@ -1848,7 +1848,7 @@ let protobuf; get: function () { for (var t = [this.name], i = this.parent; i; ) t.unshift(i.name), (i = i.parent); - return t.join("."); + return t.join('.'); }, }, }), @@ -1910,7 +1910,7 @@ let protobuf; (e.prototype.toString = function () { var t = this.constructor.className, i = this.fullName; - return i.length ? t + " " + i : t; + return i.length ? t + ' ' + i : t; }), (e.r = function (t) { r = t; @@ -1924,7 +1924,7 @@ let protobuf; var e = t(22), r = ((((u.prototype = Object.create(e.prototype)).constructor = - u).className = "OneOf"), + u).className = 'OneOf'), t(15)), s = t(33); function u(t, i, n, r) { @@ -1933,7 +1933,7 @@ let protobuf; e.call(this, t, n), i !== g && !Array.isArray(i)) ) - throw TypeError("fieldNames must be an Array"); + throw TypeError('fieldNames must be an Array'); (this.oneof = i || []), (this.fieldsArray = []), (this.comment = r); } function o(t) { @@ -1947,11 +1947,11 @@ let protobuf; (u.prototype.toJSON = function (t) { t = !!t && !!t.keepComments; return s.toObject([ - "options", + 'options', this.options, - "oneof", + 'oneof', this.oneof, - "comment", + 'comment', t ? this.comment : g, ]); }), @@ -1964,12 +1964,12 @@ let protobuf; o((t.partOf = this)), this ); - throw TypeError("field must be a Field"); + throw TypeError('field must be a Field'); }), (u.prototype.remove = function (t) { - if (!(t instanceof r)) throw TypeError("field must be a Field"); + if (!(t instanceof r)) throw TypeError('field must be a Field'); var i = this.fieldsArray.indexOf(t); - if (i < 0) throw Error(t + " is not a member of " + this); + if (i < 0) throw Error(t + ' is not a member of ' + this); return ( this.fieldsArray.splice(i, 1), -1 < (i = this.oneof.indexOf(t.name)) && @@ -2018,7 +2018,7 @@ let protobuf; u = e.utf8; function o(t, i) { return RangeError( - "index out of range: " + t.pos + " + " + (i || 1) + " > " + t.len + 'index out of range: ' + t.pos + ' + ' + (i || 1) + ' > ' + t.len ); } function h(t) { @@ -2035,15 +2035,15 @@ let protobuf; } var c, a = - "undefined" != typeof Uint8Array + 'undefined' != typeof Uint8Array ? function (t) { if (t instanceof Uint8Array || Array.isArray(t)) return new h(t); - throw Error("illegal buffer"); + throw Error('illegal buffer'); } : function (t) { if (Array.isArray(t)) return new h(t); - throw Error("illegal buffer"); + throw Error('illegal buffer'); }; function l() { var t = new s(0, 0), @@ -2095,7 +2095,7 @@ let protobuf; ) return t; } - throw Error("invalid varint encoding"); + throw Error('invalid varint encoding'); } function d(t, i) { return ( @@ -2182,7 +2182,7 @@ let protobuf; return u.read(t, 0, t.length); }), (h.prototype.skip = function (t) { - if ("number" == typeof t) { + if ('number' == typeof t) { if (this.pos + t > this.len) throw o(this, t); this.pos += t; } else @@ -2210,14 +2210,14 @@ let protobuf; break; default: throw Error( - "invalid wire type " + t + " at offset " + this.pos + 'invalid wire type ' + t + ' at offset ' + this.pos ); } return this; }), (h.r = function (t) { (r = t), (h.create = f()), r.r(); - var i = e.Long ? "toLong" : "toNumber"; + var i = e.Long ? 'toLong' : 'toNumber'; e.merge(h.prototype, { int64: function () { return l.call(this)[i](!1); @@ -2260,7 +2260,7 @@ let protobuf; (this.pos = Math.min(this.pos + t, this.len)) ) : this.buf.toString( - "utf-8", + 'utf-8', this.pos, (this.pos = Math.min(this.pos + t, this.len)) ); @@ -2278,13 +2278,13 @@ let protobuf; e = t(21), s = ((((h.prototype = Object.create(e.prototype)).constructor = - h).className = "Root"), + h).className = 'Root'), t(15)), u = t(14), o = t(23), b = t(33); function h(t) { - e.call(this, "", t), (this.deferred = []), (this.files = []); + e.call(this, '', t), (this.deferred = []), (this.files = []); } function p() {} (h.fromJSON = function (t, i) { @@ -2297,7 +2297,7 @@ let protobuf; (h.prototype.resolvePath = b.path.resolve), (h.prototype.fetch = b.fetch), (h.prototype.load = function t(i, s, e) { - "function" == typeof s && ((e = s), (s = g)); + 'function' == typeof s && ((e = s), (s = g)); var u = this; if (!e) return b.asPromise(t, u, i, s); var o = e === p; @@ -2309,7 +2309,7 @@ let protobuf; } } function f(t) { - var i = t.lastIndexOf("google/protobuf/"); + var i = t.lastIndexOf('google/protobuf/'); if (-1 < i) { t = t.substring(i); if (t in v) return t; @@ -2320,7 +2320,7 @@ let protobuf; try { if ( (b.isString(i) && - "{" == (i[0] || "") && + '{' == (i[0] || '') && (i = JSON.parse(i)), b.isString(i)) ) { @@ -2356,7 +2356,7 @@ let protobuf; else if (o) { var t; try { - t = b.fs.readFileSync(n).toString("utf8"); + t = b.fs.readFileSync(n).toString('utf8'); } catch (t) { return void (r || h(t)); } @@ -2370,24 +2370,24 @@ let protobuf; var l = 0; b.isString(i) && (i = [i]); for (var n, r = 0; r < i.length; ++r) - (n = u.resolvePath("", i[r])) && a(n); + (n = u.resolvePath('', i[r])) && a(n); return o ? u : (l || h(null, u), g); }), (h.prototype.loadSync = function (t, i) { if (b.isNode) return this.load(t, i, p); - throw Error("not supported"); + throw Error('not supported'); }), (h.prototype.resolveAll = function () { if (this.deferred.length) throw Error( - "unresolvable extensions: " + + 'unresolvable extensions: ' + this.deferred .map(function (t) { return ( "'extend " + t.extend + "' in " + t.parent.fullName ); }) - .join(", ") + .join(', ') ); return e.prototype.resolveAll.call(this); }); @@ -2464,8 +2464,8 @@ let protobuf; i.exports = r; var o = t(35); function r(t, i, n) { - if ("function" != typeof t) - throw TypeError("rpcImpl must be a function"); + if ('function' != typeof t) + throw TypeError('rpcImpl must be a function'); o.EventEmitter.call(this), (this.rpcImpl = t), (this.requestDelimited = !!i), @@ -2474,40 +2474,40 @@ let protobuf; (((r.prototype = Object.create( o.EventEmitter.prototype )).constructor = r).prototype.rpcCall = function t(n, i, r, e, s) { - if (!e) throw TypeError("request must be specified"); + if (!e) throw TypeError('request must be specified'); var u = this; if (!s) return o.asPromise(t, u, n, i, r, e); if (!u.rpcImpl) return ( setTimeout(function () { - s(Error("already ended")); + s(Error('already ended')); }, 0), g ); try { return u.rpcImpl( n, - i[u.requestDelimited ? "encodeDelimited" : "encode"]( + i[u.requestDelimited ? 'encodeDelimited' : 'encode']( e ).finish(), function (t, i) { - if (t) return u.emit("error", t, n), s(t); + if (t) return u.emit('error', t, n), s(t); if (null === i) return u.end(!0), g; if (!(i instanceof r)) try { i = - r[u.responseDelimited ? "decodeDelimited" : "decode"]( + r[u.responseDelimited ? 'decodeDelimited' : 'decode']( i ); } catch (t) { - return u.emit("error", t, n), s(t); + return u.emit('error', t, n), s(t); } - return u.emit("data", i, n), s(null, i); + return u.emit('data', i, n), s(null, i); } ); } catch (t) { return ( - u.emit("error", t, n), + u.emit('error', t, n), setTimeout(function () { s(t); }, 0), @@ -2520,7 +2520,7 @@ let protobuf; this.rpcImpl && (t || this.rpcImpl(null, null, null), (this.rpcImpl = null), - this.emit("end").off()), + this.emit('end').off()), this ); }); @@ -2533,7 +2533,7 @@ let protobuf; var r = t(21), s = ((((u.prototype = Object.create(r.prototype)).constructor = - u).className = "Service"), + u).className = 'Service'), t(20)), o = t(33), h = t(28); @@ -2554,17 +2554,17 @@ let protobuf; var i = r.prototype.toJSON.call(this, t), n = !!t && !!t.keepComments; return o.toObject([ - "options", + 'options', (i && i.options) || g, - "methods", + 'methods', r.arrayToJSON(this.methodsArray, t) || {}, - "nested", + 'nested', (i && i.nested) || g, - "comment", + 'comment', n ? this.comment : g, ]); }), - Object.defineProperty(u.prototype, "methodsArray", { + Object.defineProperty(u.prototype, 'methodsArray', { get: function () { return this.f || (this.f = o.toArray(this.methods)); }, @@ -2587,7 +2587,7 @@ let protobuf; (u.prototype.remove = function (t) { if (t instanceof s) { if (this.methods[t.name] !== t) - throw Error(t + " is not a member of " + this); + throw Error(t + ' is not a member of ' + this); return delete this.methods[t.name], (t.parent = null), e(this); } return r.prototype.remove.call(this, t); @@ -2600,11 +2600,11 @@ let protobuf; ) { var u = o .lcFirst((r = this.f[s]).resolve().name) - .replace(/[^$\w_]/g, ""); + .replace(/[^$\w_]/g, ''); e[u] = o.codegen( - ["r", "c"], - o.isReserved(u) ? u + "_" : u - )("return this.rpcCall(m,q,s,r,c)")({ + ['r', 'c'], + o.isReserved(u) ? u + '_' : u + )('return this.rpcCall(m,q,s,r,c)')({ m: r, q: r.resolvedRequestType.ctor, s: r.resolvedResponseType.ctor, @@ -2621,7 +2621,7 @@ let protobuf; var u = t(21), o = ((((w.prototype = Object.create(u.prototype)).constructor = - w).className = "Type"), + w).className = 'Type'), t(14)), h = t(23), f = t(15), @@ -2670,7 +2670,7 @@ let protobuf; var n = this.fields[t[i]], r = n.id; if (this.c[r]) - throw Error("duplicate id " + r + " in " + this); + throw Error('duplicate id ' + r + ' in ' + this); this.c[r] = n; } } @@ -2717,16 +2717,16 @@ let protobuf; }), (w.generateConstructor = function (t) { for ( - var i, n = d.codegen(["p"], t.name), r = 0; + var i, n = d.codegen(['p'], t.name), r = 0; r < t.fieldsArray.length; ++r ) (i = t.i[r]).map - ? n("this%s={}", d.safeProp(i.name)) - : i.repeated && n("this%s=[]", d.safeProp(i.name)); + ? n('this%s={}', d.safeProp(i.name)) + : i.repeated && n('this%s=[]', d.safeProp(i.name)); return n( - "if(p)for(var ks=Object.keys(p),i=0;i>> 0; + var i = (t = e.isString(t) ? e.v(t, 'base64') : t).length >>> 0; return ( this.uint32(i), i && this.p(s.writeBytesBuffer, i, t), this ); @@ -3868,17 +3868,17 @@ let protobuf; // https://github.com/emn178/js-md5 做了修改 let md5 = null; (function () { - "use strict"; - var ERROR = "input is invalid type"; - var WINDOW = typeof window === "object"; + 'use strict'; + var ERROR = 'input is invalid type'; + var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } - var WEB_WORKER = !WINDOW && typeof self === "object"; + var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && - typeof process === "object" && + typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { @@ -3887,24 +3887,24 @@ let md5 = null; root = self; } var COMMON_JS = - !root.JS_MD5_NO_COMMON_JS && typeof module === "object" && module.exports; - var AMD = typeof define === "function" && define.amd; + !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; + var AMD = typeof define === 'function' && define.amd; var ARRAY_BUFFER = - !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== "undefined"; - var HEX_CHARS = "0123456789abcdef".split(""); + !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; + var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = [ - "hex", - "array", - "digest", - "buffer", - "arrayBuffer", - "base64", + 'hex', + 'array', + 'digest', + 'buffer', + 'arrayBuffer', + 'base64', ]; var BASE64_ENCODE_CHAR = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split( - "" + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split( + '' ); var blocks = [], buffer8; @@ -3915,7 +3915,7 @@ let md5 = null; } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { - return Object.prototype.toString.call(obj) === "[object Array]"; + return Object.prototype.toString.call(obj) === '[object Array]'; }; } if ( @@ -3924,7 +3924,7 @@ let md5 = null; ) { ArrayBuffer.isView = function (obj) { return ( - typeof obj === "object" && + typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer ); @@ -3936,7 +3936,7 @@ let md5 = null; }; }; var createMethod = function () { - var method = createOutputMethod("hex"); + var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } @@ -3956,8 +3956,8 @@ let md5 = null; var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { - if (typeof message === "string") { - return crypto.createHash("md5").update(message, "utf8").digest("hex"); + if (typeof message === 'string') { + return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; @@ -3971,9 +3971,9 @@ let md5 = null; message.constructor === Buffer ) { return crypto - .createHash("md5") + .createHash('md5') .update(new Buffer(message)) - .digest("hex"); + .digest('hex'); } else { return method(message); } @@ -4028,8 +4028,8 @@ let md5 = null; } var notString, type = typeof message; - if (type !== "string") { - if (type === "object") { + if (type !== 'string') { + if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { @@ -4438,7 +4438,7 @@ let md5 = null; var v1, v2, v3, - base64Str = "", + base64Str = '', bytes = this.array(); for (var i = 0; i < 15; ) { v1 = bytes[i++]; @@ -4452,7 +4452,7 @@ let md5 = null; } v1 = bytes[i]; base64Str += - BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + "=="; + BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); @@ -4469,60 +4469,60 @@ let md5 = null; } })(); const baiduMapJson = { - options: { java_package: "com.smile.baidumap.model" }, + options: { java_package: 'com.smile.baidumap.model' }, nested: { RepHead: { fields: { - md5: { type: "string", id: 1 }, - range: { type: "string", id: 2 }, - messageHead: { rule: "repeated", type: "MessageHead", id: 3 }, + md5: { type: 'string', id: 1 }, + range: { type: 'string', id: 2 }, + messageHead: { rule: 'repeated', type: 'MessageHead', id: 3 }, }, }, MessageHead: { fields: { - offset: { type: "int32", id: 1 }, - length: { type: "int32", id: 2 }, - name: { type: "string", id: 3 }, + offset: { type: 'int32', id: 1 }, + length: { type: 'int32', id: 2 }, + name: { type: 'string', id: 3 }, }, }, Result: { fields: { - type: { type: "int32", id: 1 }, - error: { type: "int32", id: 2 }, + type: { type: 'int32', id: 1 }, + error: { type: 'int32', id: 2 }, }, }, Ads: { fields: { - option: { type: "Option", id: 1 }, - content: { rule: "repeated", type: "Content", id: 2 }, + option: { type: 'Option', id: 1 }, + content: { rule: 'repeated', type: 'Content', id: 2 }, }, }, Option: { fields: { - lasttime: { type: "int32", id: 1 }, - checkcode: { type: "string", id: 2 }, - errmsg: { type: "string", id: 3 }, + lasttime: { type: 'int32', id: 1 }, + checkcode: { type: 'string', id: 2 }, + errmsg: { type: 'string', id: 3 }, }, }, Content: { fields: { - type: { type: "string", id: 1 }, - data: { type: "string", id: 2 }, - intval: { type: "int32", id: 3 }, - start: { type: "int32", id: 4 }, - end: { type: "int32", id: 5 }, - id: { type: "int32", id: 6 }, - updatetime: { type: "int32", id: 7 }, - order: { type: "int32", id: 8 }, - ctrlMode: { type: "string", id: 9 }, - dayTimes: { type: "int32", id: 10 }, + type: { type: 'string', id: 1 }, + data: { type: 'string', id: 2 }, + intval: { type: 'int32', id: 3 }, + start: { type: 'int32', id: 4 }, + end: { type: 'int32', id: 5 }, + id: { type: 'int32', id: 6 }, + updatetime: { type: 'int32', id: 7 }, + order: { type: 'int32', id: 8 }, + ctrlMode: { type: 'string', id: 9 }, + dayTimes: { type: 'int32', id: 10 }, }, }, }, }; const baiduMapRoot = protobuf.Root.fromJSON(baiduMapJson); -const isQuanX = typeof $task != "undefined"; +const isQuanX = typeof $task != 'undefined'; const binaryBody = isQuanX ? new Uint8Array($response.bodyBytes) : $response.body; @@ -4536,7 +4536,7 @@ const prefixLength = new DataView( // 解析RepHead const repHeadData = binaryBody.slice(beginOffset, beginOffset + prefixLength); -const repHeadType = baiduMapRoot.lookupType("RepHead"); +const repHeadType = baiduMapRoot.lookupType('RepHead'); const repHeadMessage = repHeadType.decode(repHeadData); const originMd5 = repHeadMessage.md5; //console.log(`解析出的原始repHead长度:${repHeadType.encode(repHeadMessage).finish().length}`); @@ -4559,7 +4559,7 @@ for (let i = 0; i < repHeadMessage.messageHead.length; i++) { currentOffset + targetDataLength ); - if (name === "Result") { + if (name === 'Result') { // Result我们无需修改 const resultType = baiduMapRoot.lookupType(name); const resultMessage = resultType.decode(targetData); @@ -4567,17 +4567,17 @@ for (let i = 0; i < repHeadMessage.messageHead.length; i++) { console.log(`解析出的md5和原始md5相同?:${parseMd5 === originMd5}`); newResult = resultType.encode(resultMessage).finish(); //console.log(`解析出的Result:${JSON.stringify(resultMessage)}`); - } else if (name === "Ads") { + } else if (name === 'Ads') { // 对Ads进行修改 const adsType = baiduMapRoot.lookupType(name); let adsMessage = adsType.decode(targetData); for (let j = 0; j < adsMessage.content.length; j++) { let item = adsMessage.content[j]; if ( - (item.type.indexOf("_banner") !== -1 || - item.type.indexOf("splash_screen1040") !== -1) && - item.hasOwnProperty("start") && - item.hasOwnProperty("end") + (item.type.indexOf('_banner') !== -1 || + item.type.indexOf('splash_screen1040') !== -1) && + item.hasOwnProperty('start') && + item.hasOwnProperty('end') ) { adsMessage.content[j].start = 1648746061; adsMessage.content[j].end = 1648832461; diff --git a/Scripts/AdBlock/Other/FlyPiggy.js b/Scripts/AdBlock/Other/FlyPiggy.js index 5d6332a..9b01a0e 100644 --- a/Scripts/AdBlock/Other/FlyPiggy.js +++ b/Scripts/AdBlock/Other/FlyPiggy.js @@ -1,21 +1,13 @@ -/* - -Author:@ddgksf2013 - -通知频道:https://t.me/ddgksf2021 - -*/ var body = $response.body; -var ddgksf2013 = JSON.parse(body); +var response = JSON.parse(body); -if (ddgksf2013.Variables.data.threaddetail) -{ -ddgksf2013.Variables.data.threaddetail.tagadv = ""; - ddgksf2013.Variables.data.threaddetail.threadapp_ad_video = []; - ddgksf2013.Variables.data.threaddetail.pingyouadv = ""; - ddgksf2013.Variables.data.threaddetail.middleadv = ""; - ddgksf2013.Variables.data.threaddetail.bottomadv = ""; - ddgksf2013.Variables.data.threaddetail.appdetailadv = []; +if (response.Variables.data.threaddetail) { + response.Variables.data.threaddetail.tagadv = ''; + response.Variables.data.threaddetail.threadapp_ad_video = []; + response.Variables.data.threaddetail.pingyouadv = ''; + response.Variables.data.threaddetail.middleadv = ''; + response.Variables.data.threaddetail.bottomadv = ''; + response.Variables.data.threaddetail.appdetailadv = []; } -$done({body: JSON.stringify(ddgksf2013)}); \ No newline at end of file +$done({ body: JSON.stringify(response) }); diff --git a/Scripts/AdBlock/Other/Quark.js b/Scripts/AdBlock/Other/Quark.js index 13df050..a9a6a9b 100644 --- a/Scripts/AdBlock/Other/Quark.js +++ b/Scripts/AdBlock/Other/Quark.js @@ -1,4 +1,4 @@ -var version_ = "jsjiami.com.v7"; +var version_ = 'jsjiami.com.v7'; var _0x412946 = _0xd235; ((function ( _0x1e6c3f, @@ -11,13 +11,13 @@ var _0x412946 = _0xd235; ) { return ( (_0x1e6c3f = _0x1e6c3f >> 0x4), - (_0x21ad39 = "hs"), - (_0xd358b = "hs"), + (_0x21ad39 = 'hs'), + (_0xd358b = 'hs'), (function (_0x4ad759, _0x4be1a3, _0xa0871e, _0x5d549c, _0x1faed9) { var _0x39032c = _0xd235; - (_0x5d549c = "tfi"), + (_0x5d549c = 'tfi'), (_0x21ad39 = _0x5d549c + _0x21ad39), - (_0x1faed9 = "up"), + (_0x1faed9 = 'up'), (_0xd358b += _0x1faed9), (_0x21ad39 = _0xa0871e(_0x21ad39)), (_0xd358b = _0xa0871e(_0xd358b)), @@ -26,16 +26,16 @@ var _0x412946 = _0xd235; while (!![] && --_0x1d3fed + _0x4be1a3) { try { _0x5d549c = - -parseInt(_0x39032c(0x1aa, "YMkj")) / 0x1 + - -parseInt(_0x39032c(0x19c, "#)mD")) / 0x2 + - (-parseInt(_0x39032c(0x1b9, "8!ZH")) / 0x3) * - (parseInt(_0x39032c(0x1db, "l)%1")) / 0x4) + - (-parseInt(_0x39032c(0x175, "]89@")) / 0x5) * - (-parseInt(_0x39032c(0x1d1, "2[Ac")) / 0x6) + - parseInt(_0x39032c(0x18e, "8!ZH")) / 0x7 + - (-parseInt(_0x39032c(0x1b6, "vViI")) / 0x8) * - (parseInt(_0x39032c(0x1bf, "J8iM")) / 0x9) + - parseInt(_0x39032c(0x180, "t9W!")) / 0xa; + -parseInt(_0x39032c(0x1aa, 'YMkj')) / 0x1 + + -parseInt(_0x39032c(0x19c, '#)mD')) / 0x2 + + (-parseInt(_0x39032c(0x1b9, '8!ZH')) / 0x3) * + (parseInt(_0x39032c(0x1db, 'l)%1')) / 0x4) + + (-parseInt(_0x39032c(0x175, ']89@')) / 0x5) * + (-parseInt(_0x39032c(0x1d1, '2[Ac')) / 0x6) + + parseInt(_0x39032c(0x18e, '8!ZH')) / 0x7 + + (-parseInt(_0x39032c(0x1b6, 'vViI')) / 0x8) * + (parseInt(_0x39032c(0x1bf, 'J8iM')) / 0x9) + + parseInt(_0x39032c(0x180, 't9W!')) / 0xa; } catch (_0x405dab) { _0x5d549c = _0xa0871e; } finally { @@ -48,10 +48,10 @@ var _0x412946 = _0xd235; : (_0xa0871e = _0x1faed9); else { if ( - _0xa0871e == _0x33d093["replace"](/[YrxdfWVUFDyBIuHbKLhX=]/g, "") + _0xa0871e == _0x33d093['replace'](/[YrxdfWVUFDyBIuHbKLhX=]/g, '') ) { if (_0x5d549c === _0x4be1a3) { - _0x28002c["un" + _0x21ad39](_0x1faed9); + _0x28002c['un' + _0x21ad39](_0x1faed9); break; } _0x28002c[_0xd358b](_0x1faed9); @@ -72,13 +72,13 @@ var _0x412946 = _0xd235; _0x183b22 ) { return ( - (_0x194479 = "\x73\x70\x6c\x69\x74"), + (_0x194479 = '\x73\x70\x6c\x69\x74'), (_0xe541ea = arguments[0x0]), - (_0xe541ea = _0xe541ea[_0x194479]("")), + (_0xe541ea = _0xe541ea[_0x194479]('')), (_0x37c1d2 = `\x72\x65\x76\x65\x72\x73\x65`), - (_0xe541ea = _0xe541ea[_0x37c1d2]("\x76")), + (_0xe541ea = _0xe541ea[_0x37c1d2]('\x76')), (_0x314e54 = `\x6a\x6f\x69\x6e`), - (0x12823c, _0xe541ea[_0x314e54]("")) + (0x12823c, _0xe541ea[_0x314e54]('')) ); } ) @@ -94,29 +94,29 @@ _0x582a) && (version_ = _0x582a); jrrBm: function (_0x52de88, _0x2a0fea) { return _0x52de88 === _0x2a0fea; }, - IYPUM: _0x444e62(0x1bb, "FS2M"), - ZpSWE: _0x444e62(0x183, "l)%1"), + IYPUM: _0x444e62(0x1bb, 'FS2M'), + ZpSWE: _0x444e62(0x183, 'l)%1'), mlSrt: function (_0x4f9b8f, _0x447348) { return _0x4f9b8f === _0x447348; }, }, - _0x4be2a6 = _0x56675b[_0x444e62(0x185, "Q!qj")]( + _0x4be2a6 = _0x56675b[_0x444e62(0x185, 'Q!qj')]( typeof window, - _0x444e62(0x1b0, "2Rbe") + _0x444e62(0x1b0, '2Rbe') ) ? window - : _0x56675b[_0x444e62(0x17c, "Bm[$")]( + : _0x56675b[_0x444e62(0x17c, 'Bm[$')]( typeof process, - _0x56675b["IYPUM"] + _0x56675b['IYPUM'] ) && - typeof require === _0x56675b[_0x444e62(0x17b, "ENXP")] && - _0x56675b[_0x444e62(0x1ca, "ST6i")]( + typeof require === _0x56675b[_0x444e62(0x17b, 'ENXP')] && + _0x56675b[_0x444e62(0x1ca, 'ST6i')]( typeof global, - _0x56675b[_0x444e62(0x16d, "*KK6")] + _0x56675b[_0x444e62(0x16d, '*KK6')] ) ? global : this; - _0x4be2a6["setInterval"](_0x54e194, 0x7d0); + _0x4be2a6['setInterval'](_0x54e194, 0x7d0); })(); function _0xd235(_0x881cfd, _0x31c139) { var _0x52bf78 = _0x582a(); @@ -124,35 +124,35 @@ function _0xd235(_0x881cfd, _0x31c139) { (_0xd235 = function (_0x24e5b1, _0x16a5e2) { _0x24e5b1 = _0x24e5b1 - 0x16a; var _0xb8c7de = _0x52bf78[_0x24e5b1]; - if (_0xd235["pTCaYN"] === undefined) { + if (_0xd235['pTCaYN'] === undefined) { var _0x54e194 = function (_0x54d668) { var _0x42dd97 = - "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/="; - var _0x3a2582 = "", - _0x3eb3bd = ""; + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/='; + var _0x3a2582 = '', + _0x3eb3bd = ''; for ( var _0x31ec84 = 0x0, _0x2560e4, _0xa95f06, _0x4cf6be = 0x0; - (_0xa95f06 = _0x54d668["charAt"](_0x4cf6be++)); + (_0xa95f06 = _0x54d668['charAt'](_0x4cf6be++)); ~_0xa95f06 && ((_0x2560e4 = _0x31ec84 % 0x4 ? _0x2560e4 * 0x40 + _0xa95f06 : _0xa95f06), _0x31ec84++ % 0x4) - ? (_0x3a2582 += String["fromCharCode"]( + ? (_0x3a2582 += String['fromCharCode']( 0xff & (_0x2560e4 >> ((-0x2 * _0x31ec84) & 0x6)) )) : 0x0 ) { - _0xa95f06 = _0x42dd97["indexOf"](_0xa95f06); + _0xa95f06 = _0x42dd97['indexOf'](_0xa95f06); } for ( - var _0x3234b8 = 0x0, _0x2746b8 = _0x3a2582["length"]; + var _0x3234b8 = 0x0, _0x2746b8 = _0x3a2582['length']; _0x3234b8 < _0x2746b8; _0x3234b8++ ) { _0x3eb3bd += - "%" + - ("00" + _0x3a2582["charCodeAt"](_0x3234b8)["toString"](0x10))[ - "slice" + '%' + + ('00' + _0x3a2582['charCodeAt'](_0x3234b8)['toString'](0x10))[ + 'slice' ](-0x2); } return decodeURIComponent(_0x3eb3bd); @@ -161,7 +161,7 @@ function _0xd235(_0x881cfd, _0x31c139) { var _0x4463d7 = [], _0x1ab425 = 0x0, _0x3a076c, - _0x4180ba = ""; + _0x4180ba = ''; _0x2653c6 = _0x54e194(_0x2653c6); var _0x5b0acc; for (_0x5b0acc = 0x0; _0x5b0acc < 0x100; _0x5b0acc++) { @@ -171,7 +171,7 @@ function _0xd235(_0x881cfd, _0x31c139) { (_0x1ab425 = (_0x1ab425 + _0x4463d7[_0x5b0acc] + - _0x559a20["charCodeAt"](_0x5b0acc % _0x559a20["length"])) % + _0x559a20['charCodeAt'](_0x5b0acc % _0x559a20['length'])) % 0x100), (_0x3a076c = _0x4463d7[_0x5b0acc]), (_0x4463d7[_0x5b0acc] = _0x4463d7[_0x1ab425]), @@ -180,7 +180,7 @@ function _0xd235(_0x881cfd, _0x31c139) { (_0x5b0acc = 0x0), (_0x1ab425 = 0x0); for ( var _0x2085e7 = 0x0; - _0x2085e7 < _0x2653c6["length"]; + _0x2085e7 < _0x2653c6['length']; _0x2085e7++ ) { (_0x5b0acc = (_0x5b0acc + 0x1) % 0x100), @@ -188,8 +188,8 @@ function _0xd235(_0x881cfd, _0x31c139) { (_0x3a076c = _0x4463d7[_0x5b0acc]), (_0x4463d7[_0x5b0acc] = _0x4463d7[_0x1ab425]), (_0x4463d7[_0x1ab425] = _0x3a076c), - (_0x4180ba += String["fromCharCode"]( - _0x2653c6["charCodeAt"](_0x2085e7) ^ + (_0x4180ba += String['fromCharCode']( + _0x2653c6['charCodeAt'](_0x2085e7) ^ _0x4463d7[ (_0x4463d7[_0x5b0acc] + _0x4463d7[_0x1ab425]) % 0x100 ] @@ -197,17 +197,17 @@ function _0xd235(_0x881cfd, _0x31c139) { } return _0x4180ba; }; - (_0xd235["MRVxhq"] = _0xd235ef), + (_0xd235['MRVxhq'] = _0xd235ef), (_0x881cfd = arguments), - (_0xd235["pTCaYN"] = !![]); + (_0xd235['pTCaYN'] = !![]); } var _0x1e7890 = _0x52bf78[0x0], _0x2da6d7 = _0x24e5b1 + _0x1e7890, _0x582a8f = _0x881cfd[_0x2da6d7]; return ( !_0x582a8f - ? (_0xd235["cKenCw"] === undefined && (_0xd235["cKenCw"] = !![]), - (_0xb8c7de = _0xd235["MRVxhq"](_0xb8c7de, _0x16a5e2)), + ? (_0xd235['cKenCw'] === undefined && (_0xd235['cKenCw'] = !![]), + (_0xb8c7de = _0xd235['MRVxhq'](_0xb8c7de, _0x16a5e2)), (_0x881cfd[_0x2da6d7] = _0xb8c7de)) : (_0xb8c7de = _0x582a8f), _0xb8c7de @@ -221,25 +221,25 @@ var _0x1e7890 = (function () { sarsz: function (_0x23875d, _0x36e8a8) { return _0x23875d !== _0x36e8a8; }, - vtLPT: "cGCJn", + vtLPT: 'cGCJn', }, _0x283469 = !![]; return function (_0x1e081b, _0x4c38df) { var _0x8a912c = _0xd235; if ( - _0x3a5e73[_0x8a912c(0x1ba, "vnO)")]( - "cGCJn", - _0x3a5e73[_0x8a912c(0x1d9, "v7R8")] + _0x3a5e73[_0x8a912c(0x1ba, 'vnO)')]( + 'cGCJn', + _0x3a5e73[_0x8a912c(0x1d9, 'v7R8')] ) ) - _0x142377[_0x8a912c(0x186, "l)%1")](_0x8a912c(0x1ab, "S@V6")) && - delete _0x12b5d2[_0x8a912c(0x1a0, "l)%1")][_0x51d64d]; + _0x142377[_0x8a912c(0x186, 'l)%1')](_0x8a912c(0x1ab, 'S@V6')) && + delete _0x12b5d2[_0x8a912c(0x1a0, 'l)%1')][_0x51d64d]; else { var _0x1c80af = _0x283469 ? function () { var _0x1fec6b = _0x8a912c; if (_0x4c38df) { - var _0x4e74ec = _0x4c38df[_0x1fec6b(0x1cc, "zXvO")]( + var _0x4e74ec = _0x4c38df[_0x1fec6b(0x1cc, 'zXvO')]( _0x1e081b, arguments ); @@ -257,21 +257,21 @@ var _0x1e7890 = (function () { fcGSY: function (_0x1dee61, _0x58ac6d) { return _0x1dee61(_0x58ac6d); }, - DzeBa: "DipIl", - KKMhI: _0x3c329e(0x16f, "%%*F"), + DzeBa: 'DipIl', + KKMhI: _0x3c329e(0x16f, '%%*F'), mQqFh: function (_0x5d39ee, _0x324e2a) { return _0x5d39ee(_0x324e2a); }, - mVEkh: _0x3c329e(0x1ce, "2Rbe"), + mVEkh: _0x3c329e(0x1ce, '2Rbe'), irZDF: function (_0x4f2be6, _0x2aca1d) { return _0x4f2be6 + _0x2aca1d; }, - KwKxw: "chain", - cWvRF: "input", + KwKxw: 'chain', + cWvRF: 'input', dcIRK: function (_0x295552, _0x2875af) { return _0x295552 === _0x2875af; }, - iAOhW: "AbSeu", + iAOhW: 'AbSeu', pvOzY: function (_0x5abd7f) { return _0x5abd7f(); }, @@ -279,40 +279,40 @@ var _0x1e7890 = (function () { return _0x3522eb(_0x3b7f60, _0x27bcef); }, }; - _0x5db9bc[_0x3c329e(0x1d5, "9*mh")](_0x1e7890, this, function () { + _0x5db9bc[_0x3c329e(0x1d5, '9*mh')](_0x1e7890, this, function () { var _0x5da4be = _0x3c329e; - if (_0x5da4be(0x19e, "vnO)") === _0x5db9bc[_0x5da4be(0x1be, "z8Qg")]) - _0x5db9bc[_0x5da4be(0x1a1, "!Ue2")](_0x45b28d, "0"); + if (_0x5da4be(0x19e, 'vnO)') === _0x5db9bc[_0x5da4be(0x1be, 'z8Qg')]) + _0x5db9bc[_0x5da4be(0x1a1, '!Ue2')](_0x45b28d, '0'); else { - var _0x16d056 = new RegExp(_0x5db9bc[_0x5da4be(0x181, "&i&*")]), + var _0x16d056 = new RegExp(_0x5db9bc[_0x5da4be(0x181, '&i&*')]), _0xc42230 = new RegExp( - "\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", - "i" + '\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)', + 'i' ), - _0x301c33 = _0x5db9bc[_0x5da4be(0x1a6, "8!ZH")]( + _0x301c33 = _0x5db9bc[_0x5da4be(0x1a6, '8!ZH')]( _0x54e194, - _0x5db9bc[_0x5da4be(0x17f, "vViI")] + _0x5db9bc[_0x5da4be(0x17f, 'vViI')] ); if ( - !_0x16d056[_0x5da4be(0x1c7, "t9W!")]( - _0x5db9bc[_0x5da4be(0x196, "8UA]")]( + !_0x16d056[_0x5da4be(0x1c7, 't9W!')]( + _0x5db9bc[_0x5da4be(0x196, '8UA]')]( _0x301c33, - _0x5db9bc[_0x5da4be(0x18b, "ST6i")] + _0x5db9bc[_0x5da4be(0x18b, 'ST6i')] ) ) || - !_0xc42230[_0x5da4be(0x199, "82DE")]( - _0x5db9bc["irZDF"](_0x301c33, _0x5db9bc[_0x5da4be(0x18c, "vViI")]) + !_0xc42230[_0x5da4be(0x199, '82DE')]( + _0x5db9bc['irZDF'](_0x301c33, _0x5db9bc[_0x5da4be(0x18c, 'vViI')]) ) ) - _0x301c33("0"); + _0x301c33('0'); else { if ( - _0x5db9bc["dcIRK"]( - _0x5da4be(0x16e, "ST6i"), - _0x5db9bc[_0x5da4be(0x1cb, "vBfx")] + _0x5db9bc['dcIRK']( + _0x5da4be(0x16e, 'ST6i'), + _0x5db9bc[_0x5da4be(0x1cb, 'vBfx')] ) ) - _0x5db9bc[_0x5da4be(0x172, "h8[n")](_0x54e194); + _0x5db9bc[_0x5da4be(0x172, 'h8[n')](_0x54e194); else return _0x103ebd; } } @@ -324,16 +324,16 @@ var _0x16a5e2 = (function () { AxlNj: function (_0x339d6c, _0x4e41e9) { return _0x339d6c === _0x4e41e9; }, - URQrD: _0x123e18(0x177, "8!ZH"), + URQrD: _0x123e18(0x177, '8!ZH'), }, _0x8a2e69 = !![]; return function (_0x3e07c3, _0x4b7558) { var _0x1332b0 = _0x123e18; - if (_0x5a7f23["AxlNj"](_0x1332b0(0x1c5, "J8iM"), _0x5a7f23["URQrD"])) { + if (_0x5a7f23['AxlNj'](_0x1332b0(0x1c5, 'J8iM'), _0x5a7f23['URQrD'])) { var _0x198acc = _0x8a2e69 ? function () { if (_0x4b7558) { - var _0x2b4f70 = _0x4b7558["apply"](_0x3e07c3, arguments); + var _0x2b4f70 = _0x4b7558['apply'](_0x3e07c3, arguments); return (_0x4b7558 = null), _0x2b4f70; } } @@ -341,15 +341,15 @@ var _0x16a5e2 = (function () { return (_0x8a2e69 = ![]), _0x198acc; } else { var _0xb80552 = - _0x5091ac[_0x1332b0(0x1dd, "Q!qj")][_0x1332b0(0x17a, "]A(A")][ - _0x1332b0(0x1d7, "t9W!") + _0x5091ac[_0x1332b0(0x1dd, 'Q!qj')][_0x1332b0(0x17a, ']A(A')][ + _0x1332b0(0x1d7, 't9W!') ](_0x56c89b), _0x78627b = _0x57bf40[_0xfd733b], _0x541ffd = _0x49ffbd[_0x78627b] || _0xb80552; - (_0xb80552["__proto__"] = - _0x4e2a13[_0x1332b0(0x192, "YE(U")](_0x1eddda)), - (_0xb80552[_0x1332b0(0x1b7, "BH9%")] = - _0x541ffd[_0x1332b0(0x1c4, "2Rbe")]["bind"](_0x541ffd)), + (_0xb80552['__proto__'] = + _0x4e2a13[_0x1332b0(0x192, 'YE(U')](_0x1eddda)), + (_0xb80552[_0x1332b0(0x1b7, 'BH9%')] = + _0x541ffd[_0x1332b0(0x1c4, '2Rbe')]['bind'](_0x541ffd)), (_0x365299[_0x78627b] = _0xb80552); } }; @@ -360,85 +360,85 @@ var _0x16a5e2 = (function () { gErEB: function (_0x22c3fb, _0x2b53d2) { return _0x22c3fb !== _0x2b53d2; }, - djawc: _0x3afcaa(0x1d8, "t9W!"), + djawc: _0x3afcaa(0x1d8, 't9W!'), ODtDl: function (_0x273e5e, _0x4e666) { return _0x273e5e === _0x4e666; }, - MisHc: _0x3afcaa(0x176, "73eR"), - XzCSm: "function", - aVBIv: "warn", - HWZII: "info", - etxwP: "error", - Vsbgt: _0x3afcaa(0x17d, "YE(U"), + MisHc: _0x3afcaa(0x176, '73eR'), + XzCSm: 'function', + aVBIv: 'warn', + HWZII: 'info', + etxwP: 'error', + Vsbgt: _0x3afcaa(0x17d, 'YE(U'), xnWTt: function (_0x881937, _0x29f862) { return _0x881937 < _0x29f862; }, - QmSNK: _0x3afcaa(0x17e, "bAeV"), - noJZp: _0x3afcaa(0x1d6, "8UA]"), + QmSNK: _0x3afcaa(0x17e, 'bAeV'), + noJZp: _0x3afcaa(0x1d6, '8UA]'), }, - _0x5ec74e = _0x52e42e[_0x3afcaa(0x1c3, "]A(A")]( + _0x5ec74e = _0x52e42e[_0x3afcaa(0x1c3, ']A(A')]( typeof window, - _0x52e42e[_0x3afcaa(0x1c8, "MpNU")] + _0x52e42e[_0x3afcaa(0x1c8, 'MpNU')] ) ? window - : _0x52e42e[_0x3afcaa(0x1d2, "vViI")]( + : _0x52e42e[_0x3afcaa(0x1d2, 'vViI')]( typeof process, - _0x52e42e[_0x3afcaa(0x1c0, "z8Qg")] + _0x52e42e[_0x3afcaa(0x1c0, 'z8Qg')] ) && - _0x52e42e["ODtDl"](typeof require, _0x52e42e["XzCSm"]) && - _0x52e42e["ODtDl"](typeof global, _0x52e42e[_0x3afcaa(0x1af, "WSdb")]) + _0x52e42e['ODtDl'](typeof require, _0x52e42e['XzCSm']) && + _0x52e42e['ODtDl'](typeof global, _0x52e42e[_0x3afcaa(0x1af, 'WSdb')]) ? global : this, - _0x1fea28 = (_0x5ec74e[_0x3afcaa(0x190, "FS2M")] = - _0x5ec74e["console"] || {}), + _0x1fea28 = (_0x5ec74e[_0x3afcaa(0x190, 'FS2M')] = + _0x5ec74e['console'] || {}), _0x36561c = [ - _0x3afcaa(0x1c2, "2Rbe"), - _0x52e42e[_0x3afcaa(0x195, "ENXP")], - _0x52e42e[_0x3afcaa(0x1c6, "bAeV")], - _0x52e42e[_0x3afcaa(0x1a3, "]A(A")], - "exception", - "table", - _0x52e42e[_0x3afcaa(0x189, "h8[n")], + _0x3afcaa(0x1c2, '2Rbe'), + _0x52e42e[_0x3afcaa(0x195, 'ENXP')], + _0x52e42e[_0x3afcaa(0x1c6, 'bAeV')], + _0x52e42e[_0x3afcaa(0x1a3, ']A(A')], + 'exception', + 'table', + _0x52e42e[_0x3afcaa(0x189, 'h8[n')], ]; for ( var _0x558777 = 0x0; - _0x52e42e["xnWTt"](_0x558777, _0x36561c[_0x3afcaa(0x174, "Zu]^")]); + _0x52e42e['xnWTt'](_0x558777, _0x36561c[_0x3afcaa(0x174, 'Zu]^')]); _0x558777++ ) { - if (_0x52e42e[_0x3afcaa(0x1b8, "YMkj")] !== _0x3afcaa(0x18a, "l)%1")) { - var _0x269024 = _0x2e0748[_0x3afcaa(0x1dc, "&i&*")]( + if (_0x52e42e[_0x3afcaa(0x1b8, 'YMkj')] !== _0x3afcaa(0x18a, 'l)%1')) { + var _0x269024 = _0x2e0748[_0x3afcaa(0x1dc, '&i&*')]( _0x5216fa, arguments ); return (_0x4c6ecd = null), _0x269024; } else { - var _0x514426 = _0x52e42e["noJZp"][_0x3afcaa(0x1ac, "*KK6")]("|"), + var _0x514426 = _0x52e42e['noJZp'][_0x3afcaa(0x1ac, '*KK6')]('|'), _0x3ea11e = 0x0; while (!![]) { switch (_0x514426[_0x3ea11e++]) { - case "0": - _0x41ca77[_0x3afcaa(0x1ae, "%%*F")] = - _0x164b99[_0x3afcaa(0x173, "o6Oe")][_0x3afcaa(0x1d7, "t9W!")]( + case '0': + _0x41ca77[_0x3afcaa(0x1ae, '%%*F')] = + _0x164b99[_0x3afcaa(0x173, 'o6Oe')][_0x3afcaa(0x1d7, 't9W!')]( _0x164b99 ); continue; - case "1": + case '1': var _0x164b99 = _0x1fea28[_0x505332] || _0x41ca77; continue; - case "2": - _0x41ca77[_0x3afcaa(0x1da, "QSZQ")] = - _0x16a5e2[_0x3afcaa(0x193, "8UA]")](_0x16a5e2); + case '2': + _0x41ca77[_0x3afcaa(0x1da, 'QSZQ')] = + _0x16a5e2[_0x3afcaa(0x193, '8UA]')](_0x16a5e2); continue; - case "3": + case '3': var _0x505332 = _0x36561c[_0x558777]; continue; - case "4": + case '4': _0x1fea28[_0x505332] = _0x41ca77; continue; - case "5": + case '5': var _0x41ca77 = - _0x16a5e2[_0x3afcaa(0x184, "Bm[$")][_0x3afcaa(0x1cf, "v7R8")][ - _0x3afcaa(0x1a9, "bAeV") + _0x16a5e2[_0x3afcaa(0x184, 'Bm[$')][_0x3afcaa(0x1cf, 'v7R8')][ + _0x3afcaa(0x1a9, 'bAeV') ](_0x16a5e2); continue; } @@ -448,142 +448,142 @@ var _0x16a5e2 = (function () { } }); _0x24e5b1(); -var obj = JSON[_0x412946(0x1b1, "82DE")]($response[_0x412946(0x1ad, "SJDy")]), - keysToDelete = ["cms_"]; -for (var key in obj["result"]) { - key["includes"](_0x412946(0x1d0, "8UA]")) && - delete obj[_0x412946(0x1a5, "!Ue2")][key]; +var obj = JSON[_0x412946(0x1b1, '82DE')]($response[_0x412946(0x1ad, 'SJDy')]), + keysToDelete = ['cms_']; +for (var key in obj['result']) { + key['includes'](_0x412946(0x1d0, '8UA]')) && + delete obj[_0x412946(0x1a5, '!Ue2')][key]; } -$done({ body: JSON[_0x412946(0x19b, ")&Gu")](obj) }); +$done({ body: JSON[_0x412946(0x19b, ')&Gu')](obj) }); function _0x582a() { var _0x25b956 = (function () { return [ ...[ version_, - "hjVsVFjKriUaVmuid.cyformuY.IDHv7LBWxLXbU==", - "aIhcG8o3W5BcP8oGW5i", - "D2/cQSkOW549", - "WORcSH/cKrhdMHHRW4bc", - "WOaWWRRcN8kDla", - "W6dcImkqW5hcVW", - "bmodWRqGWQS", - "WQVcRmo0EqpcU0ddTKNdTq", - "dY1OpCkCyeNcPCov", - "zSkRW6W8sW", - "W6JdSCoJWQrD", - "W7HfugNdSW", - "WO5lDCkiW6S", - "ECoNWR4fvq", - "vZPBf8oqdfpcPrzXlXei", - "WPpcMCohWOTs", - "W7WIW50hfa", - "vSk8q8ofoSobaHW", - "W6hdRmo/WPveW6CAWOf7WRT6", - "WPP2WR0PW7W", - "wCkNtSoko8omcae", - "W7K6W5ydWOzaWRTx", - "W7tdUSkumaG", - "bCkToH82", - "D8kOx8oJiq", - "j8o3WPy0WOW", - "D8oMWO08EW", - "WQfNWPexW5a3WO1HWPi", - "WPFdU8oQWRddOaJdUSoMWQRdUSowx1y", - "W7hdNCkbbae", - "W5lcSa/cPmodW7hcKq", - "zSobWROhCq", - "W65Ex24", - "nmkqW60q", - "WQNcPSo0EK3dRqFdTKNdGGGFdq", - "xCknW70IEa", - "p8klW5KWW74", - "zMRdGu5p", - "W6SGW63cVwST", + 'hjVsVFjKriUaVmuid.cyformuY.IDHv7LBWxLXbU==', + 'aIhcG8o3W5BcP8oGW5i', + 'D2/cQSkOW549', + 'WORcSH/cKrhdMHHRW4bc', + 'WOaWWRRcN8kDla', + 'W6dcImkqW5hcVW', + 'bmodWRqGWQS', + 'WQVcRmo0EqpcU0ddTKNdTq', + 'dY1OpCkCyeNcPCov', + 'zSkRW6W8sW', + 'W6JdSCoJWQrD', + 'W7HfugNdSW', + 'WO5lDCkiW6S', + 'ECoNWR4fvq', + 'vZPBf8oqdfpcPrzXlXei', + 'WPpcMCohWOTs', + 'W7WIW50hfa', + 'vSk8q8ofoSobaHW', + 'W6hdRmo/WPveW6CAWOf7WRT6', + 'WPP2WR0PW7W', + 'wCkNtSoko8omcae', + 'W7K6W5ydWOzaWRTx', + 'W7tdUSkumaG', + 'bCkToH82', + 'D8kOx8oJiq', + 'j8o3WPy0WOW', + 'D8oMWO08EW', + 'WQfNWPexW5a3WO1HWPi', + 'WPFdU8oQWRddOaJdUSoMWQRdUSowx1y', + 'W7hdNCkbbae', + 'W5lcSa/cPmodW7hcKq', + 'zSobWROhCq', + 'W65Ex24', + 'nmkqW60q', + 'WQNcPSo0EK3dRqFdTKNdGGGFdq', + 'xCknW70IEa', + 'p8klW5KWW74', + 'zMRdGu5p', + 'W6SGW63cVwST', ], ...(function () { return [ ...[ - "W7aNW7tcRa", - "WQKLiarzWP0", - "WQD9WOCBW5G5WOPIWO8", - "tdDuW5xcIqNdSHjgW4/cHCkH", - "hghdRHWiW794u8oMW6Hb", - "oSoOW69YWPK", - "bsGDxci", - "qSkSxSotiSoC", - "W51mW5fWBa", - "W6rvqe3dMW", - "gIT/pSkJ", - "hwhdQsakW78", - "W4LkW6vwwCkP", - "W47cNSkPW4FcUq", - "EmouWPujsqe", - "hmkwW5ODW7K", - "WQTdACkP", - "W5RdNmklprCtW4PaW6xdQCo+", - "WP3dTGZdVq", - "W6LTdmkWkq", - "nqiZFq", - "jSoDW4j9WPqYrGe", - "nW9sWRpdRW", - "tgNdP8kYWOJcRLpdUmog", - "W7qJW7xcQ20", - "oSoqW4DTWQW", - "pWVcIXC0Fq3cLI7cJdW", - "cSoVWOHzomo4WQ07lwpdKGxdTa", - "WRJcKmogrNy", - "jCkhWRqVzcZcNrm", - "BvZdVCkvDCkxWP7dVW", - "WR/cHCoGr28", - "WPdcMSk0W6ZcLvZcGW", - "pCoWW4vhWPm", - "W57cVqVcSSopW6K", - "vMldVSksyG", - "mXBcLCopW54", - "hxn6mCoc", - "x8ohWOHXomkrq8kiWPy4FmoyWRK", - "fgbSo8oa", + 'W7aNW7tcRa', + 'WQKLiarzWP0', + 'WQD9WOCBW5G5WOPIWO8', + 'tdDuW5xcIqNdSHjgW4/cHCkH', + 'hghdRHWiW794u8oMW6Hb', + 'oSoOW69YWPK', + 'bsGDxci', + 'qSkSxSotiSoC', + 'W51mW5fWBa', + 'W6rvqe3dMW', + 'gIT/pSkJ', + 'hwhdQsakW78', + 'W4LkW6vwwCkP', + 'W47cNSkPW4FcUq', + 'EmouWPujsqe', + 'hmkwW5ODW7K', + 'WQTdACkP', + 'W5RdNmklprCtW4PaW6xdQCo+', + 'WP3dTGZdVq', + 'W6LTdmkWkq', + 'nqiZFq', + 'jSoDW4j9WPqYrGe', + 'nW9sWRpdRW', + 'tgNdP8kYWOJcRLpdUmog', + 'W7qJW7xcQ20', + 'oSoqW4DTWQW', + 'pWVcIXC0Fq3cLI7cJdW', + 'cSoVWOHzomo4WQ07lwpdKGxdTa', + 'WRJcKmogrNy', + 'jCkhWRqVzcZcNrm', + 'BvZdVCkvDCkxWP7dVW', + 'WR/cHCoGr28', + 'WPdcMSk0W6ZcLvZcGW', + 'pCoWW4vhWPm', + 'W57cVqVcSSopW6K', + 'vMldVSksyG', + 'mXBcLCopW54', + 'hxn6mCoc', + 'x8ohWOHXomkrq8kiWPy4FmoyWRK', + 'fgbSo8oa', ], ...(function () { return [ - "WRv0W4JcMveCWOxcHG", - "vwJdPa", - "gbP1dmkX", - "twJdKmkJWPZcRLpdUG", - "lCkYW7msya", - "WOf9xCkeW40", - "fwSFuq", - "W40gW5OBjW", - "ncj5WRBdIW", - "aCoSWO4+WO8", - "WROBlCo2W44", - "gSkpo8olia", - "haJcK8oOW6a", - "ugNdQSkJ", - "WPddVrpdK8owWONcLKtdIa", - "nCkuW7aR", - "zWFdVwRcImoxlZHFWPe", - "w8o1WO8Quq", - "W5RdSCkxbq8", - "W7bxlSkUhW", - "WO4IcJTJ", - "y8kfWRaiWOLJWOVcV8o+WOqP", - "a2Ccqq", - "fgaiqmkavG3cTre", - "WPBdUZddT8oT", - "mfVdQICjW79YFSop", - "aSo5gCkxEmkrwZThWO/cHCogW5a", - "WRNcOSo6WO9I", - "WQTUWRSpW4RdKJ3cSSkAc8kZ", - "WRuZoaHuWO4", - "oq/cHXiXbuRcTWZcTrBcH8ka", - "WQa5WQhcNCkK", - "W5nemmkmea", - "lCoIWO4PWO4", - "nmohW79QWPiYrWH6swZcQ8kaqXhdJq", - "w2pdImkPta", - "gmoDW4HGWQC", - "i8kOfWiB", + 'WRv0W4JcMveCWOxcHG', + 'vwJdPa', + 'gbP1dmkX', + 'twJdKmkJWPZcRLpdUG', + 'lCkYW7msya', + 'WOf9xCkeW40', + 'fwSFuq', + 'W40gW5OBjW', + 'ncj5WRBdIW', + 'aCoSWO4+WO8', + 'WROBlCo2W44', + 'gSkpo8olia', + 'haJcK8oOW6a', + 'ugNdQSkJ', + 'WPddVrpdK8owWONcLKtdIa', + 'nCkuW7aR', + 'zWFdVwRcImoxlZHFWPe', + 'w8o1WO8Quq', + 'W5RdSCkxbq8', + 'W7bxlSkUhW', + 'WO4IcJTJ', + 'y8kfWRaiWOLJWOVcV8o+WOqP', + 'a2Ccqq', + 'fgaiqmkavG3cTre', + 'WPBdUZddT8oT', + 'mfVdQICjW79YFSop', + 'aSo5gCkxEmkrwZThWO/cHCogW5a', + 'WRNcOSo6WO9I', + 'WQTUWRSpW4RdKJ3cSSkAc8kZ', + 'WRuZoaHuWO4', + 'oq/cHXiXbuRcTWZcTrBcH8ka', + 'WQa5WQhcNCkK', + 'W5nemmkmea', + 'lCoIWO4PWO4', + 'nmohW79QWPiYrWH6swZcQ8kaqXhdJq', + 'w2pdImkPta', + 'gmoDW4HGWQC', + 'i8kOfWiB', ]; })(), ]; @@ -601,37 +601,37 @@ function _0x54e194(_0x9dc76a) { BPfHK: function (_0x20e04c, _0x11dfcf) { return _0x20e04c !== _0x11dfcf; }, - rpAiL: _0x40e4d9(0x18d, ")&Gu"), - NDXMG: _0x40e4d9(0x198, "82DE"), + rpAiL: _0x40e4d9(0x18d, ')&Gu'), + NDXMG: _0x40e4d9(0x198, '82DE'), mUrmH: function (_0x3785a4, _0x25c10f) { return _0x3785a4 === _0x25c10f; }, - REJXy: _0x40e4d9(0x187, "k@#N"), - JoYiA: "SciMV", + REJXy: _0x40e4d9(0x187, 'k@#N'), + JoYiA: 'SciMV', lnSys: function (_0x2aed22, _0x1e988c) { return _0x2aed22 === _0x1e988c; }, - jJNwB: _0x40e4d9(0x19a, "9*mh"), - BePLt: _0x40e4d9(0x1b5, "YMkj"), - ARgcH: _0x40e4d9(0x1b2, "vnO)"), + jJNwB: _0x40e4d9(0x19a, '9*mh'), + BePLt: _0x40e4d9(0x1b5, 'YMkj'), + ARgcH: _0x40e4d9(0x1b2, 'vnO)'), tOvaO: function (_0x41acf3) { return _0x41acf3(); }, jFCkD: function (_0xf5d16c, _0x4c4c9d) { return _0xf5d16c !== _0x4c4c9d; }, - OQPse: _0x40e4d9(0x1a7, "vViI"), + OQPse: _0x40e4d9(0x1a7, 'vViI'), yPyqO: function (_0x4d9aeb, _0x258259) { return _0x4d9aeb === _0x258259; }, hbqGM: function (_0x1ed077, _0x4e3183) { return _0x1ed077 % _0x4e3183; }, - OkqgZ: _0x40e4d9(0x178, "ST6i"), + OkqgZ: _0x40e4d9(0x178, 'ST6i'), UNfkP: function (_0x5d6e3d) { return _0x5d6e3d(); }, - wykWH: _0x40e4d9(0x1bd, "o6Oe"), + wykWH: _0x40e4d9(0x1bd, 'o6Oe'), iIFMz: function (_0x131a06, _0x515f7a) { return _0x131a06(_0x515f7a); }, @@ -639,56 +639,56 @@ function _0x54e194(_0x9dc76a) { function _0x51f4af(_0x33a57b) { var _0x10b0c8 = _0x40e4d9; if ( - _0x26a7d5["mUrmH"]( - _0x26a7d5[_0x10b0c8(0x1a8, "8UA]")], - _0x26a7d5[_0x10b0c8(0x171, "%%*F")] + _0x26a7d5['mUrmH']( + _0x26a7d5[_0x10b0c8(0x1a8, '8UA]')], + _0x26a7d5[_0x10b0c8(0x171, '%%*F')] ) ) { if ( - _0x26a7d5[_0x10b0c8(0x188, "w)ba")]( + _0x26a7d5[_0x10b0c8(0x188, 'w)ba')]( typeof _0x33a57b, - _0x26a7d5[_0x10b0c8(0x1d4, "*KK6")] + _0x26a7d5[_0x10b0c8(0x1d4, '*KK6')] ) ) { - if (_0x26a7d5[_0x10b0c8(0x1d3, "w)ba")] === _0x26a7d5["ARgcH"]) { - var _0xd39cfe = _0x26a7d5["BPfHK"]( + if (_0x26a7d5[_0x10b0c8(0x1d3, 'w)ba')] === _0x26a7d5['ARgcH']) { + var _0xd39cfe = _0x26a7d5['BPfHK']( typeof _0x1ab425, - _0x26a7d5[_0x10b0c8(0x191, "vViI")] + _0x26a7d5[_0x10b0c8(0x191, 'vViI')] ) ? _0x3a076c - : typeof _0x4180ba === _0x26a7d5[_0x10b0c8(0x1c9, "WSdb")] && - _0x26a7d5["mUrmH"]( + : typeof _0x4180ba === _0x26a7d5[_0x10b0c8(0x1c9, 'WSdb')] && + _0x26a7d5['mUrmH']( typeof _0x5b0acc, - _0x26a7d5[_0x10b0c8(0x19f, "SJDy")] + _0x26a7d5[_0x10b0c8(0x19f, 'SJDy')] ) && - _0x26a7d5[_0x10b0c8(0x197, "gYJS")]( + _0x26a7d5[_0x10b0c8(0x197, 'gYJS')]( typeof _0x2085e7, - _0x10b0c8(0x16a, "9*mh") + _0x10b0c8(0x16a, '9*mh') ) ? _0xa1fac8 : this; - _0xd39cfe[_0x10b0c8(0x19d, "QSZQ")](_0x54b52b, 0x7d0); + _0xd39cfe[_0x10b0c8(0x19d, 'QSZQ')](_0x54b52b, 0x7d0); } else { var _0x56233d = function () { while (!![]) {} }; - return _0x26a7d5["tOvaO"](_0x56233d); + return _0x26a7d5['tOvaO'](_0x56233d); } } else { if ( - _0x26a7d5["jFCkD"]( - ("" + _0x33a57b / _0x33a57b)[_0x26a7d5[_0x10b0c8(0x1bc, "BH9%")]], + _0x26a7d5['jFCkD']( + ('' + _0x33a57b / _0x33a57b)[_0x26a7d5[_0x10b0c8(0x1bc, 'BH9%')]], 0x1 ) || - _0x26a7d5["yPyqO"]( - _0x26a7d5[_0x10b0c8(0x1a2, "YE(U")](_0x33a57b, 0x14), + _0x26a7d5['yPyqO']( + _0x26a7d5[_0x10b0c8(0x1a2, 'YE(U')](_0x33a57b, 0x14), 0x0 ) ) { if ( - _0x26a7d5[_0x10b0c8(0x1cd, "o6Oe")]( - _0x26a7d5["OkqgZ"], - _0x26a7d5[_0x10b0c8(0x16c, "73eR")] + _0x26a7d5[_0x10b0c8(0x1cd, 'o6Oe')]( + _0x26a7d5['OkqgZ'], + _0x26a7d5[_0x10b0c8(0x16c, '73eR')] ) ) { if (_0x39102f) return _0x44b0f9; @@ -697,18 +697,18 @@ function _0x54e194(_0x9dc76a) { } else debugger; } _0x51f4af(++_0x33a57b); - } else delete _0x1123e1[_0x10b0c8(0x1a4, "QSZQ")][_0x8e692a]; + } else delete _0x1123e1[_0x10b0c8(0x1a4, 'QSZQ')][_0x8e692a]; } try { - if (_0x26a7d5[_0x40e4d9(0x170, "BH9%")]("EXELz", _0x26a7d5["wykWH"])) { + if (_0x26a7d5[_0x40e4d9(0x170, 'BH9%')]('EXELz', _0x26a7d5['wykWH'])) { var _0x1a45ca = function () { while (!![]) {} }; - return _0x26a7d5[_0x40e4d9(0x182, "MpNU")](_0x1a45ca); + return _0x26a7d5[_0x40e4d9(0x182, 'MpNU')](_0x1a45ca); } else { if (_0x9dc76a) return _0x51f4af; - else _0x26a7d5[_0x40e4d9(0x18f, "w)ba")](_0x51f4af, 0x0); + else _0x26a7d5[_0x40e4d9(0x18f, 'w)ba')](_0x51f4af, 0x0); } } catch (_0x55791a) {} } -var version_ = "jsjiami.com.v7"; +var version_ = 'jsjiami.com.v7';