"User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 xzone/9.15.1 station_id/5500fe01916edfe0738b4e43"
functionMagicJS(e="MagicJS",t="INFO"){constr=()=>{conste=typeof$loon!=="undefined";constt=typeof$task!=="undefined";constn=typeofmodule!=="undefined";constr=typeof$httpClient!=="undefined"&&!e;consti=typeof$storm!=="undefined";consto=typeof$environment!=="undefined"&&typeof$environment["stash-build"]!=="undefined";consts=r||e||i||o;consta=typeofimportModule!=="undefined";return{isLoon:e,isQuanX:t,isNode:n,isSurge:r,isStorm:i,isStash:o,isSurgeLike:s,isScriptable:a,getname(){if(e){return"Loon"}elseif(t){return"QuantumultX"}elseif(n){return"NodeJS"}elseif(r){return"Surge"}elseif(a){return"Scriptable"}else{return"unknown"}},getbuild(){if(r){return$environment["surge-build"]}elseif(o){return$environment["stash-build"]}elseif(i){return$storm.buildVersion}},getlanguage(){if(r||o){return$environment["language"]}},getversion(){if(r){return$environment["surge-version"]}elseif(o){return$environment["stash-version"]}elseif(i){return$storm.appVersion}elseif(n){returnprocess.version}},getsystem(){if(r){return$environment["system"]}elseif(n){returnprocess.platform}},getsystemVersion(){if(i){return$storm.systemVersion}},getdeviceName(){if(i){return$storm.deviceName}}}};consti=(n,e="INFO")=>{letr=e;consti={SNIFFER:6,DEBUG:5,INFO:4,NOTIFY:3,WARNING:2,ERROR:1,CRITICAL:0,NONE:-1};consto={SNIFFER:"",DEBUG:"",INFO:"",NOTIFY:"",WARNING:"❗ ",ERROR:"❌ ",CRITICAL:"❌ ",NONE:""};constt=(e,t="INFO")=>{if(!(i[r]<i[t.toUpperCase()]))console.log(`[${t}] [${n}]\n${o[t.toUpperCase()]}${e}\n`)};consts=e=>{r=e};return{setLevel:s,sniffer:e=>{t(e,"SNIFFER")},debug:e=>{t(e,"DEBUG")},info:e=>{t(e,"INFO")},notify:e=>{t(e,"NOTIFY")},warning:e=>{t(e,"WARNING")},error:e=>{t(e,"ERROR")},retry:e=>{t(e,"RETRY")}}};returnnewclass{constructor(e,t){this._startTime=Date.now();this.version="3.0.0";this.scriptName=e;this.env=r();this.logger=i(e,t);this.http=typeofMagicHttp==="function"?MagicHttp(this.env,this.logger):undefined;this.data=typeofMagicData==="function"?MagicData(this.env,this.logger):undefined;this.notification=typeofMagicNotification==="function"?MagicNotification(this.scriptName,this.env,this.logger,this.http):undefined;this.utils=typeofMagicUtils==="function"?MagicUtils(this.env,this.logger):undefined;this.qinglong=typeofMagicQingLong==="function"?MagicQingLong(this.env,this.data,this.logger):undefined;if(typeofthis.data!=="undefined"){lete=this.data.read("magic_loglevel");constn=this.data.read("magic_bark_url");if(e){this.logger.setLevel(e.toUpperCase())}if(n){this.notification.setBark(n)}}}getisRequest(){returntypeof$request!=="undefined"&&typeof$response==="undefined"}getisResponse(){returntypeof$response!=="undefined"}getisDebug(){returnthis.logger.level==="DEBUG"}getrequest(){returntypeof$request!=="undefined"?$request:undefined}getresponse(){if(typeof$response!=="undefined"){if($response.hasOwnProperty("status"))$response["statusCode"]=$response["status"];if($response.hasOwnProperty("statusCode"))$response["status"]=$response["statusCode"];return$response}else{returnundefined}}done=(e={})=>{this._endTime=Date.now();lett=(this._endTime-this._startTime)/1e3;this.logger.info(`SCRIPT COMPLETED: ${t} S.`);if(typeof$done!=="undefined"){$done(e)}}}(e,t)}functionMagicHttp(u,c){constt="Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1";constn="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edg/84.0.522.59"