/****************************** 脚本功能:汤头条轻量版——解锁—金币视频—VIP视频 网站链接:https://p5.ymvfegagd.net/ 脚本功能:海角社区——解锁—金币视频—VIP视频 网站链接:https://haijiao.fun/ 脚本功能:50度灰——解锁—金币视频—VIP视频 网站链接:https://p1.6p3ucmp.com 脚本功能:小蓝视频——解锁—金币视频—VIP视频 网站链接:https://p4.gv009.fun 脚本功能:水果派——解锁—金币视频—VIP视频 网站链接:https://b10b.rgjughj.com/ 脚本功能:Pornhub中文版——解锁—金币视频—VIP视频 网站链接:https://042.imwlgne.com/ 脚本功能:91Porn——解锁—金币视频—VIP视频 网站链接:https://39d.dzhttuyq.com/ 脚本功能:91泡芙——解锁—金币视频—VIP视频 网站链接:https://3a30e.jmcruygi.com/ 脚本功能:园区淫乱——解锁—金币视频—VIP视频 网站链接:https://1a8a5.bysrhom.com/ 脚本功能:KISSAV——解锁—金币视频—VIP视频 网站链接:https://f67d.wjugetce.cc/ 脚本功能:TikTok成人版——解锁—金币视频—VIP视频 网站链接:https://3a38c.qrgnedmo.com/ 脚本功能:新版滴滴——解锁—金币视频—VIP视频 网站链接:https://4300.wgztmcod.com/ 脚本功能:91制片厂——解锁—金币视频—VIP视频 网站链接:https://48b.vrnmnuj.com/ 脚本功能:51萝莉——解锁—金币视频—VIP视频 网站链接:https://f019.jziofio.com/ 脚本功能:果冻传媒破解版——解锁—金币视频—VIP视频 网站链接:https://829.ejijzff.com/ 脚本功能:91短视频——解锁—金币视频—VIP视频 网站链接:https://b400a.woznungkb.me/ 脚本功能:91av——解锁—金币视频—VIP视频 网站链接:https://d8c7.kmxtuasi.com/ 脚本功能:妻友——解锁—金币视频—VIP视频 网站链接:https://ab4.bwsdfow.net/ 脚本功能:小蓝视频——解锁—金币视频—VIP视频 网站链接:https://01a.eiimfvka.com/ 脚本功能:91视频全能版——解锁—金币视频—VIP视频 网站链接:https://e6f55.gbuiqpc.com/ 脚本功能:Pilipili——解锁—金币视频—VIP视频 网站链接:https://d16f2.sddujex.com/ 脚本功能:麻豆传媒——解锁—金币视频—VIP视频 网站链接:https://e449.jdgrutiw.net/ 脚本功能:51动漫——解锁—金币视频—VIP视频 网站链接:https://515f7.gwwofejb.com/ 脚本功能:杏吧论坛——解锁—金币视频—VIP视频 网站链接:https://aff.xbclub.co/ 脚本功能:暗网禁区——解锁—金币视频—VIP视频 网站链接:https://aff.awjqapp.com/ 脚本功能:51猎奇——解锁—金币视频—VIP视频 网站链接:https://650b.ofygmxlo.com/ 脚本功能:AI色色——解锁—金币视频—VIP视频 网站链接:https://aiss.one/ 脚本功能:缅北禁地——解锁—金币视频—VIP视频 网站链接:https://ed2b5.odehqfpw.com/ 脚本功能:抖阴Porn——解锁—金币视频—VIP视频 网站链接:https://130.ztaqgtu.com/ 脚本功能:暗网解密——解锁—金币视频—VIP视频 网站链接:https://85ec7.cegbkczv.net/ 脚本功能:GTV——解锁—金币视频—VIP视频 网站链接:https://d1f7d.etaxhjvt.com/af/abaZg 脚本功能:换妻俱乐部——解锁—金币视频—VIP视频 网站链接:https://dfbd.bwsdfow.net/?code=aMubZ 脚本功能:每日大赛——解锁—金币视频—VIP视频 网站链接:https://b6d29.ryslctkz.com/ 脚本功能:#水果派——解锁—金币视频—VIP视频 网站链接:https://16935a0b.rgjughj.com/af/ftkG 脚本功能:91暗网——解锁—金币视频—VIP视频 网站链接:https://aff.hdapp.fun/ 脚本功能:AV大全——解锁—金币视频—VIP视频 网站链接:https://p4.gv009.fun ******************************* [rewrite_local] ^https:\/\/[^\/]*\..*\.cn\/\w+\/[a-z0-9]{32}\/[a-z0-9]{32}\.m3u8(\?.*)? url script-request-header https://raw.githubusercontent.com/89996462/Quantumult-X/main/ghs/sssss.js [mitm] hostname = 120play.*.cn,h5play.*.com,long.*.cn,*.fipxor.cn,*.10play.zbzfwi.cn *******************************/ var _0xodf='jsjiami.com.v7';function _0x3705(_0xb47828,_0x1136cb){const _0x5a0e64=_0x5a0e();return _0x3705=function(_0x3705b5,_0x356fc7){_0x3705b5=_0x3705b5-0x81;let _0x1306e3=_0x5a0e64[_0x3705b5];if(_0x3705['yytuYM']===undefined){var _0x11c62c=function(_0x4de188){const _0x2c4fab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x321eef='',_0x2f732a='';for(let _0x2e103f=0x0,_0x25475a,_0x2bfe9f,_0x556b4e=0x0;_0x2bfe9f=_0x4de188['charAt'](_0x556b4e++);~_0x2bfe9f&&(_0x25475a=_0x2e103f%0x4?_0x25475a*0x40+_0x2bfe9f:_0x2bfe9f,_0x2e103f++%0x4)?_0x321eef+=String['fromCharCode'](0xff&_0x25475a>>(-0x2*_0x2e103f&0x6)):0x0){_0x2bfe9f=_0x2c4fab['indexOf'](_0x2bfe9f);}for(let _0x46e158=0x0,_0x3bc857=_0x321eef['length'];_0x46e158<_0x3bc857;_0x46e158++){_0x2f732a+='%'+('00'+_0x321eef['charCodeAt'](_0x46e158)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f732a);};const _0x2ef345=function(_0x553bc1,_0x4e1bd0){let _0x3612d9=[],_0x52e57f=0x0,_0x314eff,_0x599128='';_0x553bc1=_0x11c62c(_0x553bc1);let _0x3776a3;for(_0x3776a3=0x0;_0x3776a3<0x100;_0x3776a3++){_0x3612d9[_0x3776a3]=_0x3776a3;}for(_0x3776a3=0x0;_0x3776a3<0x100;_0x3776a3++){_0x52e57f=(_0x52e57f+_0x3612d9[_0x3776a3]+_0x4e1bd0['charCodeAt'](_0x3776a3%_0x4e1bd0['length']))%0x100,_0x314eff=_0x3612d9[_0x3776a3],_0x3612d9[_0x3776a3]=_0x3612d9[_0x52e57f],_0x3612d9[_0x52e57f]=_0x314eff;}_0x3776a3=0x0,_0x52e57f=0x0;for(let _0x154102=0x0;_0x154102<_0x553bc1['length'];_0x154102++){_0x3776a3=(_0x3776a3+0x1)%0x100,_0x52e57f=(_0x52e57f+_0x3612d9[_0x3776a3])%0x100,_0x314eff=_0x3612d9[_0x3776a3],_0x3612d9[_0x3776a3]=_0x3612d9[_0x52e57f],_0x3612d9[_0x52e57f]=_0x314eff,_0x599128+=String['fromCharCode'](_0x553bc1['charCodeAt'](_0x154102)^_0x3612d9[(_0x3612d9[_0x3776a3]+_0x3612d9[_0x52e57f])%0x100]);}return _0x599128;};_0x3705['tnHSkW']=_0x2ef345,_0xb47828=arguments,_0x3705['yytuYM']=!![];}const _0x18cc81=_0x5a0e64[0x0],_0x46e343=_0x3705b5+_0x18cc81,_0x4f9ce0=_0xb47828[_0x46e343];return!_0x4f9ce0?(_0x3705['QngwMY']===undefined&&(_0x3705['QngwMY']=!![]),_0x1306e3=_0x3705['tnHSkW'](_0x1306e3,_0x356fc7),_0xb47828[_0x46e343]=_0x1306e3):_0x1306e3=_0x4f9ce0,_0x1306e3;},_0x3705(_0xb47828,_0x1136cb);}const _0x1dd9e0=_0x3705;if(function(_0x5cca9c,_0x585b97,_0x188cee,_0x22420e,_0x4e2507,_0x2a381b,_0xc79cfb){return _0x5cca9c=_0x5cca9c>>0x3,_0x2a381b='hs',_0xc79cfb='hs',function(_0x26565e,_0x4b2fd5,_0x11c9c9,_0x112288,_0x1597d5){const _0x2aef62=_0x3705;_0x112288='tfi',_0x2a381b=_0x112288+_0x2a381b,_0x1597d5='up',_0xc79cfb+=_0x1597d5,_0x2a381b=_0x11c9c9(_0x2a381b),_0xc79cfb=_0x11c9c9(_0xc79cfb),_0x11c9c9=0x0;const _0x5ccdbe=_0x26565e();while(!![]&&--_0x22420e+_0x4b2fd5){try{_0x112288=parseInt(_0x2aef62(0x8b,'b@z$'))/0x1*(parseInt(_0x2aef62(0x8c,'mafV'))/0x2)+parseInt(_0x2aef62(0x94,'FtjB'))/0x3*(-parseInt(_0x2aef62(0x8d,'lw!8'))/0x4)+-parseInt(_0x2aef62(0x9d,'kzIs'))/0x5*(parseInt(_0x2aef62(0x91,'h3Fq'))/0x6)+-parseInt(_0x2aef62(0x9e,'1#]4'))/0x7*(-parseInt(_0x2aef62(0x8f,'ZXCC'))/0x8)+parseInt(_0x2aef62(0x87,'3VNO'))/0x9*(parseInt(_0x2aef62(0x89,'rPBT'))/0xa)+-parseInt(_0x2aef62(0x95,'1#]4'))/0xb*(-parseInt(_0x2aef62(0x81,'kzIs'))/0xc)+-parseInt(_0x2aef62(0x9b,'4VWs'))/0xd;}catch(_0x31470b){_0x112288=_0x11c9c9;}finally{_0x1597d5=_0x5ccdbe[_0x2a381b]();if(_0x5cca9c<=_0x22420e)_0x11c9c9?_0x4e2507?_0x112288=_0x1597d5:_0x4e2507=_0x1597d5:_0x11c9c9=_0x1597d5;else{if(_0x11c9c9==_0x4e2507['replace'](/[dbwKxYVyJLeEPDBCkRrH=]/g,'')){if(_0x112288===_0x4b2fd5){_0x5ccdbe['un'+_0x2a381b](_0x1597d5);break;}_0x5ccdbe[_0xc79cfb](_0x1597d5);}}}}}(_0x188cee,_0x585b97,function(_0x1ecea5,_0x5be53f,_0x576948,_0x31e753,_0x148df9,_0xb9ab31,_0x221bfd){return _0x5be53f='\x73\x70\x6c\x69\x74',_0x1ecea5=arguments[0x0],_0x1ecea5=_0x1ecea5[_0x5be53f](''),_0x576948='\x72\x65\x76\x65\x72\x73\x65',_0x1ecea5=_0x1ecea5[_0x576948]('\x76'),_0x31e753='\x6a\x6f\x69\x6e',(0x1826a1,_0x1ecea5[_0x31e753](''));});}(0x650,0x47ed1,_0x5a0e,0xcc),_0x5a0e){}let {headers,url}=$request,isQX=typeof $task!=='undefined',isSurge=typeof $httpClient!=='undefined'&&!isQX,isLoon=typeof $loon!==_0x1dd9e0(0x97,'e2gI'),playURL=url[_0x1dd9e0(0x9f,'mafV')](/\/\/(?!long)[^\.]+\./,_0x1dd9e0(0x8e,'@L8a'))['replace'](/\.m3u8/,_0x1dd9e0(0x99,')awn'));headers[_0x1dd9e0(0x82,'B5o@')](_0x1dd9e0(0x9c,'$DOb'))&&(console[_0x1dd9e0(0xa1,'b8j&')]('通杀Crack~'),isQX&&$notify(_0x1dd9e0(0xa0,'yG3)'),'>_\x20点击此通知可跳转观看\x20🔞','',{'open-url':playURL}),isSurge&&$notification[_0x1dd9e0(0x86,'xAHc')](_0x1dd9e0(0xa4,'v)po'),_0x1dd9e0(0x85,'^*k^'),'',{'url':playURL}),isLoon&&$notification[_0x1dd9e0(0xa2,'R^z1')]('彭于晏提示❗️视频链接捕获成功',_0x1dd9e0(0x90,'h3Fq'),'',{'openUrl':playURL}));$done({'response':{'headers':headers}});function _0x5a0e(){const _0x16615f=(function(){return[_0xodf,'wejPsdjYKRiJEaCCHmbire.yVcyoKmxD.kKvLk7B==','WRhcU8oKnIXtmq','DeyPrCo/W7m5WR8','WORdR8kx54gl5yw45Q+R6ygx55+c5y+w6lE36l6V6ksw55YnWOpXH7Au','W5u4uCoJ','W4/dL8kmpND5F3lcUq','DezrkSk6WQq9WRVdMWn7wG','W5SPrmkvqSkbuCkhW4/cSbm','tvTBW4FcTSkLW63cRmogW5eGWRC5','W6ZdGbtdTcZdQra','oSkniKtdK8k/W5nTy8kwA8kd','kSo0BCo+hdhcTv4'].concat((function(){return['W4pdMgtcRxfuBG','W6nEbCocW7rFWP5QW5C','pNbI54oQ5ysx5Q686yk3552t5y+G6lEl6l+x6kwg5569W4FWO7wU','nKSMnSk4WRpdUq','WOdcGmkhWQhdRmofdfzJ','WRJcLq8axdK/W4yuWRpdQW','WRRdU8kmsh90aCkMEHZcTG','uCk0vGWnW6JcN1ZcTSkVW7iFeW','WONcGsCRw8oSWR4OWR9SW7L/ia','qSomEKXpWRdcO2pdUq','vmk2vG8kWO7dHwBcG8kzW4W','FmkKWQOGWPi','WOpcLCk3DqNcKCkqW68'].concat((function(){return['otJcU8k7WOBcOmkngmoyWOS3xgq','WR3dJSkSuZ/cHCoBW51cWP54csRcR20FW6ZcRGZcM38','lYZdL8kcW4W0jHVdQNpcICoLWRW','uCk8vWGpWQddJNJcSmkHW4W','ECoAyX7cH8oUW5a','5B2c5lIF5PUG5O2Q56wX4P+y77QV6kEP6Ak26zkl5O2k5OYc6iYz5OM35yMQ','W6BcNmo+','W78FWQ7cSa','y8o4WQTKWPitF8kEtWuLCuy','5B6p5lUy5PIz5O6W56Al4P2T77Qo6kwP6Ak56zcA5O+I5O+Z6iYn5OUb5yQ9','lY/cRmoQWOrPCq8','W5vohmkFWQ7cSN7dGf96BHHcWPq'];}()));}()));}());_0x5a0e=function(){return _0x16615f;};return _0x5a0e();};var version_ = 'jsjiami.com.v7'; function Env(t,e){class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,a)=>{s.call(this,t,(t,s,r)=>{t?a(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const a=this.getdata(t);if(a)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,a)=>e(a))})}runScript(t,e){return new Promise(s=>{let a=this.getdata("@chavy_boxjs_userCfgs.httpapi");a=a?a.replace(/\n/g,"").trim():a;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[i,o]=a.split("@"),n={url:`http://${o}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":i,Accept:"*/*"},timeout:r};this.post(n,(t,e,a)=>s(a))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),a=!s&&this.fs.existsSync(e);if(!s&&!a)return{};{const a=s?t:e;try{return JSON.parse(this.fs.readFileSync(a))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),a=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):a?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const a=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of a)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,a)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[a+1])>>0==+e[a+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,a]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,a,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,a,r]=/^@(.*?)\.(.*?)$/.exec(e),i=this.getval(a),o=a?"null"===i?null:i||"{}":"{}";try{const e=JSON.parse(o);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),a)}catch(e){const i={};this.lodash_set(i,r,t),s=this.setval(JSON.stringify(i),a)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,a)=>{!t&&s&&(s.body=a,s.statusCode=s.status?s.status:s.statusCode,s.status=s.statusCode),e(t,s,a)});break;case"Quantumult X":this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:a,headers:r,body:i,bodyBytes:o}=t;e(null,{status:s,statusCode:a,headers:r,body:i,bodyBytes:o},i,o)},t=>e(t&&t.error||"UndefinedError"));break;case"Node.js":let s=require("iconv-lite");this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:a,statusCode:r,headers:i,rawBody:o}=t,n=s.decode(o,this.encoding);e(null,{status:a,statusCode:r,headers:i,rawBody:o,body:n},n)},t=>{const{message:a,response:r}=t;e(a,r,r&&s.decode(r.rawBody,this.encoding))})}}post(t,e=(()=>{})){const s=t.method?t.method.toLocaleLowerCase():"post";switch(t.body&&t.headers&&!t.headers["Content-Type"]&&!t.headers["content-type"]&&(t.headers["content-type"]="application/x-www-form-urlencoded"),t.headers&&(delete t.headers["Content-Length"],delete t.headers["content-length"]),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient[s](t,(t,s,a)=>{!t&&s&&(s.body=a,s.statusCode=s.status?s.status:s.statusCode,s.status=s.statusCode),e(t,s,a)});break;case"Quantumult X":t.method=s,this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:a,headers:r,body:i,bodyBytes:o}=t;e(null,{status:s,statusCode:a,headers:r,body:i,bodyBytes:o},i,o)},t=>e(t&&t.error||"UndefinedError"));break;case"Node.js":let a=require("iconv-lite");this.initGotEnv(t);const{url:r,...i}=t;this.got[s](r,i).then(t=>{const{statusCode:s,statusCode:r,headers:i,rawBody:o}=t,n=a.decode(o,this.encoding);e(null,{status:s,statusCode:r,headers:i,rawBody:o,body:n},n)},t=>{const{message:s,response:r}=t;e(s,r,r&&a.decode(r.rawBody,this.encoding))})}}time(t,e=null){const s=e?new Date(e):new Date;let a={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in a)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[e]:("00"+a[e]).substr((""+a[e]).length)));return t}queryStr(t){let e="";for(const s in t){let a=t[s];null!=a&&""!==a&&("object"==typeof a&&(a=JSON.stringify(a)),e+=`${s}=${a}&`)}return e=e.substring(0,e.length-1),e}msg(e=t,s="",a="",r){const i=t=>{switch(typeof t){case void 0:return t;case"string":switch(this.getEnv()){case"Surge":case"Stash":default:return{url:t};case"Loon":case"Shadowrocket":return t;case"Quantumult X":return{"open-url":t};case"Node.js":return}case"object":switch(this.getEnv()){case"Surge":case"Stash":case"Shadowrocket":default:{let e=t.url||t.openUrl||t["open-url"];return{url:e}}case"Loon":{let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}case"Quantumult X":{let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl,a=t["update-pasteboard"]||t.updatePasteboard;return{"open-url":e,"media-url":s,"update-pasteboard":a}}case"Node.js":return}default:return}};if(!this.isMute)switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:$notification.post(e,s,a,i(r));break;case"Quantumult X":$notify(e,s,a,i(r));break;case"Node.js":}if(!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),a&&t.push(a),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":case"Quantumult X":default:this.log("",`❗️${this.name}, 错误!`,t);break;case"Node.js":this.log("",`❗️${this.name}, 错误!`,t.stack)}}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;switch(this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":case"Quantumult X":default:$done(t);break;case"Node.js":process.exit(1)}}}(t,e)}