MCPcopy
hub / github.com/UnblockNeteaseMusic/server / I

Function I

precompiled/app.js:4–4  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2(()=>{var e={15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(4099),r(9071);let i=r(6982),o=r(7016).parse,s=r(3480).stringify,a="e82ckenh8dichen8",c="rFgB&h#%2?^eDg:Q",u=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},l=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>l(e,a),decrypt:e=>u(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),c=`nobody${t.path}use${a}md5forencrypt`,u=i.createHash("md5").update(c).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${u}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},api:{encryptRequest:(e,t)=>({url:(e=o(e)).href.replace(/\w*api/,"api"),body:s(t)})},linuxapi:{encrypt:e=>l(e,c),decrypt:e=>u(e,c),encryptRequest:(t,r)=>{let i=JSON.stringify({method:"POST",url:(t=o(t)).href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=Buffer.from(i.randomBytes(32).toString("hex")),o=i.randomBytes(8),a=`-----BEGIN PUBLIC KEY-----
3MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB
4-----END PUBLIC KEY-----`,c=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),c=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:c.slice(0,s),iv:c.slice(s,s+o)}})(r,o,256,16),u=i.createCipheriv("aes-256-cbc",c.key,c.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:a,padding:i.constants.RSA_PKCS1_PADDING},r).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e),uuid:()=>i.randomUUID()}};try{e.exports.kuwoapi=r(9726)}catch(e){}},37:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),c=Symbol("pino.lsCache"),u=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),p=Symbol("pino.write"),h=Symbol("pino.redactFmt"),d=Symbol("pino.time"),g=Symbol("pino.timeSliceIndex"),y=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),k=Symbol.for("pino.formatters"),j=Symbol.for("pino.hooks");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:c,chindingsSym:u,parsedChindingsSym:l,asJsonSym:f,writeSym:p,serializersSym:O,redactFmtSym:h,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:Symbol.for("pino.metadata"),useOnlyCustomLevelsSym:s,formattersSym:k,hooksSym:j,mixinMergeStrategySym:x}},82:(e,t,r)=>{"use strict";var i=r(8585),o=r(3695),s=r(8142),a=r(4526),c=r(1512),u=r(9589);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=c(t),o=u(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},148:(e,t,r)=>{"use strict";var i=r(5422),o=r(1820);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},181:e=>{"use strict";e.exports=require("buffer")},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function c(e,t,r){let i;if(this.overflow){if(1===(i=this[a].write(e).split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;e<i.length;e++)try{l(this,this.mapper(i[e]))}catch(e){return r(e)}if(this.overflow=this[s].length>this.maxLength,this.overflow&&!this.skipOverflow)return void r(Error("maximum buffer reached"));r()}function u(e){if(this[s]+=this[a].end(),this[s])try{l(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=c,r.flush=u,r.readableObjectMode=!0;let l=new i(r);return l[s]="",l[a]=new o("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,c=r(7048);function u(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&p(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)u(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code)if(this.sync)try{c(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100);else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),!this.sync)return void i.write(this.fd,this._writingBuf,"utf8",this.release);try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?p(this):this._ending?r>0?p(this):(this._writing=!1,h(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function p(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>0x1000000?(t=t.slice(0,0x1000000),e._buf=e._buf.slice(0x1000000)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function h(e){if(-1===e.fd)return void e.once("ready",h.bind(null,e));i.close(e.fd,t=>{if(t)return void e.emit("error",t);e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&p(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||p(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening)return void this.once("ready",()=>{this.reopen(e)});if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),u(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");return this._opening?void this.once("ready",()=>{this.end()}):this._ending?void 0:(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0)?void p(this):void(!this._writing&&h(this))},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;c(100)}},l.prototype.destroy=function(){this.destroyed||h(this)},e.exports=l},408:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var o=r(181).Buffer,s=r(9023).inspect,a=s&&s.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,i=o.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=a,o.prototype.copy.call(t,i,r),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var o=t.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,a),0==(e-=a)){a===s.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(a));break}++i}return this.length-=i,t}},{key:a,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,o,s;i=e,o=t,s=r[t],o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e),t}()},419:(e,t,r)=>{"use strict";e.exports=o;var i=r(9585);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(3081)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},470:(e,t,r)=>{"use strict";var i=r(2870),o=r(6880),s=r(5032),a=r(8364),c=r(4068),u=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=s(e);if(i(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},487:(e,t,r)=>{"use strict";var i=r(8173),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},488:(e,t,r)=>{"use strict";var i=r(697),o=r(5092),s=r(2675),a=r(4285);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},506:(e,t,r)=>{"use strict";var i=r(6814),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},574:(e,t,r)=>{"use strict";var i=r(3746),o=r(877),s=r(8034),a=r(6728),c=r(8078)("iterator");e.exports=function(e){if(!s(e))return o(e,c)||o(e,"@@iterator")||a[i(e)]}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,c,u=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,p=global.Uint8Array||function(){},h=r(9023);o=h&&h.debuglog?h.debuglog("stream"):function(){};var d=r(408),g=r(849),y=r(6906).getHighWaterMark,m=r(8396).F,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3081)(O,l);var S=g.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(5535),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",o),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7549).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(5535),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,r,i,s){o("readableAddChunk",t);var a,c,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,u);else if(s||(c=function(e,t){var r;return f.isBuffer(t)||t instanceof p||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),c)S(e,c);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===f.prototype||(a=t,t=f.from(a)),i)u.endEmitted?S(e,new _):j(e,u,t,!0);else if(u.ended)S(e,new v);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?j(e,u,t,!1):M(e,u)):j(e,u,t,!1)}else i||(u.reading=!1,M(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function j(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),M(e,t)}function T(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function A(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function C(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function $(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=g.destroy,O.prototype._undestroy=g.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=f.from(e,t),t=""),r=!0),k(this,e,t,!1,r)},O.prototype.unshift=function(e){return k(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=r(7549).I);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,o="";null!==i;)o+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},O.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?$(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&$(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e<r.highWaterMark)&&o("length less than watermark",s=!0),r.ended||r.reading?o("reading or ended",s=!1):s&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(i,r))),null===(t=e>0?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&$(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r,i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,o("pipe count=%d opts=%j",s.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?y:c;function c(){o("onend"),e.end()}s.endEmitted?process.nextTick(a):i.once("end",a),e.on("unpipe",function t(r,a){o("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),i.removeListener("end",c),i.removeListener("end",y),i.removeListener("data",p),f=!0,s.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=(r=i,function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(r,"data")&&(e.flowing=!0,I(r))});e.on("drain",l);var f=!1;function p(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==q(s.pipes,e))&&!f&&(o("false write response, pause",s.awaitDrain),s.awaitDrain++),i.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===u(e,"error")&&S(e,t)}function d(){e.removeListener("finish",g),y()}function g(){o("onfinish"),e.removeListener("close",d),y()}function y(){o("unpipe"),i.unpipe(e)}return i.on("data",p),!function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",g),e.emit("pipe",i),s.flowing||(o("pipe resume"),i.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<o;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||process.nextTick(N,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(A,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(A,this),t},O.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(o("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,process.nextTick(C,e,t))),r.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){if(o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!r.objectMode||null!=s)(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a<x.length;a++)e.on(x[a],this.emit.bind(this,x[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=r(916)),a(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=D,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===c&&(c=r(1027)),c(O,e,t)})},617:(e,t,r)=>{"use strict";let i=r(9271)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},623:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},673:(e,t,r)=>{"use strict";var i=r(2025),o=r(8497),s=r(6880),a=r(8813),c=r(4833),u=r(8078),l=r(6154),f=r(2250),p=r(3892),h=o&&o.prototype,d=u("species"),g=!1,y=s(i.PromiseRejectionEvent);e.exports={CONSTRUCTOR:a("Promise",function(){var e=c(o),t=e!==String(o);if(!t&&66===p||f&&!(h.catch&&h.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((r.constructor={})[d]=i,!(g=r.then(function(){})instanceof i))return!0}return!t&&("BROWSER"===l||"DENO"===l)&&!y}),REJECTION_EVENT:y,SUBCLASSING:g}},697:(e,t,r)=>{"use strict";var i=r(2025),o=r(5212).f,s=r(4164),a=r(5369),c=r(722),u=r(8629),l=r(8813);e.exports=function(e,t){var r,f,p,h,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||c(g,{}):i[g]&&i[g].prototype)for(f in t){if(h=t[f],p=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!l(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;u(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),a(r,f,h,e)}}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),c=r(8183),{lsCacheSym:u,chindingsSym:l,parsedChindingsSym:f,writeSym:p,serializersSym:h,formatOptsSym:d,endSym:g,stringifiersSym:y,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(37);function O(){}function k(e,t,i,o){if(t&&"function"==typeof t)return j((t=t.bind(o))(e),i,e);try{let t=r(9640).prettyFactory||r(9640);return t.asMetaWrapper=j,j(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function j(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,R(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,c=this.lastMsg,u=i[x],l=u.log?u.log(a):a,f=i[E];c&&l&&!l.hasOwnProperty(f)&&(l[f]=c);let p=Object.assign({level:this.lastLevel,time:s},l,null),d=i[h],g=Object.keys(d);for(var m=0;m<g.length;m++){let e=g[m];void 0!==p[e]&&(p[e]=d[e](p[e]))}for(let e in o)p.hasOwnProperty(e)||(p[e]=o[e]);let b=i[y][w],v=e("function"==typeof b?b(p):p);void 0!==v&&(R(t,this),t.write(v))}}}function T(e){let t=new a(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=O,t.end=O,t.flushSync=O,t.destroy=O;return}t.removeListener("error",e),t.emit("error",r)}),t}function R(e,t){!0===e[v]&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}e.exports={noop:O,buildSafeSonicBoom:T,getPrettyStream:k,asChindings:function(e,t){let r,i=e[l],o=e[m],s=e[y],a=s[b],c=e[h];for(let u in t=(0,e[x].bindings)(t))if(r=t[u],!0===("level"!==u&&"serializers"!==u&&"formatters"!==u&&"customLevels"!==u&&t.hasOwnProperty(u)&&void 0!==r)){if(r=c[u]?c[u](r):r,void 0===(r=(s[u]||a||o)(r)))continue;i+=',"'+u+'":'+r}return i},asJson:function(e,t,r,i){let o,s=this[m],a=this[y],c=this[g],f=this[l],p=this[h],d=this[x],v=this[E],w=this[u][r]+i;w+=f;let _=void 0===e.hasOwnProperty;d.log&&(e=d.log(e)),void 0!==t&&(e[v]=t);let S=a[b];for(let t in e)if(o=e[t],(_||e.hasOwnProperty(t))&&void 0!==o){o=p[t]?p[t](o):o;let e=a[t]||S;switch(typeof o){case"undefined":case"function":continue;case"number":!1===Number.isFinite(o)&&(o=null);case"boolean":e&&(o=e(o));break;case"string":o=(e||function(e){let t="",r=0,i=!1,o=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a<s&&o>=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'})(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+c},genLog:function(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,c=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===c&&0===a.length?r=[null]:(c=a.shift(),r=a),this[p](t,i(c,r,this[d]),e)}else this[p](null,i(t,a,this[d]),e)}},createArgsNormalizer:function(e){return function(t,r={},i){var o;if("string"==typeof r?(i=T({dest:r,sync:!0}),r={}):"string"==typeof i?i=T({dest:i,sync:!0}):(r instanceof a||r.writable||r._writableState)&&(i=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);let{enabled:s,prettyPrint:c,prettifier:u,messageKey:l}=r;return!1===s&&(r.level="silent"),(i=i||process.stdout)===process.stdout&&i.fd>=0&&(o=i).write===o.constructor.prototype.write&&(i=T({fd:i.fd,sync:!0})),c&&(i=k(Object.assign({messageKey:l},c),u,i,t)),{opts:r,stream:i}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o},stringify:function(e){try{return JSON.stringify(e)}catch(t){return c(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},722:(e,t,r)=>{"use strict";var i=r(2025),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},777:(e,t,r)=>{"use strict";r(8546)},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},823:(e,t,r)=>{"use strict";var i=r(5773),o=r(487),s=r(1451),a=r(7417),c=r(1428),u=r(9900),l=r(8348),f=o.has,p=o.remove;e.exports=function(e){var t=i(this),r=c(e),o=s(t);return a(t)<=r.size?u(t,function(e){r.includes(e)&&p(o,e)}):l(r.getIterator(),function(e){f(o,e)&&p(o,e)}),o}},833:(e,t,r)=>{"use strict";var i=r(5871),o=r(8350).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},849:e=>{"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var s=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):o?(process.nextTick(r,s),o(e)):process.nextTick(r,s)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},857:e=>{"use strict";e.exports=require("os")},877:(e,t,r)=>{"use strict";var i=r(5869),o=r(8034);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},888:(e,t,r)=>{"use strict";var i=r(5869),o=TypeError,s=function(e){var t,r;this.promise=new e(function(e,i){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=i}),this.resolve=i(t),this.reject=i(r)};e.exports.f=function(e){return new s(e)}},916:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(9919),a=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[a]=null,e[c]=null,t(d(r,!1)))}}function y(e){process.nextTick(g,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[h]},next:function(){var e,t,r=this,i=this[u];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[u]?t(r[u]):e(d(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l])return void t(d(void 0,!0));e[p](t,r)},r)}));else{var s=this[h].read();if(null!==s)return Promise.resolve(d(s,!1));t=new Promise(this[p])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(d(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var i=r[h].read();i?(r[f]=null,r[a]=null,r[c]=null,e(d(i,!1))):(r[a]=e,r[c]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[f]=null,r[a]=null,r[c]=null,t(e)),r[u]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[c]=null,i(d(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},992:(e,t,r)=>{"use strict";var i=r(8173),o=Error,s=i("".replace),a=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,c,"");return e}},1013:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var c=1;c<s;c++)a[c]=o(r[c]);return a.join(" ")}if("string"!=typeof e)return e;var u=r.length;if(0===u)return e;for(var l="",f=0,p=-1,h=e&&e.length||0,d=0;d<h;){if(37===e.charCodeAt(d)&&d+1<h){switch(p=p>-1?p:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=u||null==r[f])break;p<d&&(l+=e.slice(p,d)),l+=Number(r[f]),p=d+2,d++;break;case 105:if(f>=u||null==r[f])break;p<d&&(l+=e.slice(p,d)),l+=Math.floor(Number(r[f])),p=d+2,d++;break;case 79:case 111:case 106:if(f>=u||void 0===r[f])break;p<d&&(l+=e.slice(p,d));var g=typeof r[f];if("string"===g){l+="'"+r[f]+"'",p=d+2,d++;break}if("function"===g){l+=r[f].name||"<anonymous>",p=d+2,d++;break}l+=o(r[f]),p=d+2,d++;break;case 115:if(f>=u)break;p<d&&(l+=e.slice(p,d)),l+=String(r[f]),p=d+2,d++;break;case 37:p<d&&(l+=e.slice(p,d)),l+="%",p=d+2,d++,f--}++f}++d}return -1===p?e:(p<h&&(l+=e.slice(p)),l)}},1021:(e,t,r)=>{"use strict";var i=r(3531),o=r(4164);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},1022:e=>{"use strict";function t(e,t){return null!=e&&("hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t))}function r(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r<i;)o=o[t[r]];return o}function i(e,t,r){if(e.depth===r)return i(e.parent,t,r);var o={parent:e,key:t,depth:r,children:[]};return e.children.push(o),o}function o(e,t,r){let i=e,o=[];do o.push(i.key),i=i.parent;while(null!=i.parent)return{path:o,value:t,target:r}}e.exports={groupRedact:function(e,t,i,o,s){let a=r(e,t);if(null==a||"string"==typeof a)return{keys:null,values:null,target:a,flat:!0};let c=Object.keys(a),u=c.length,l=t.length,f=s?[...t]:void 0,p=Array(u);for(var h=0;h<u;h++){let e=c[h];p[h]=a[e],s?(f[l]=e,a[e]=i(a[e],f)):o?a[e]=i(a[e]):a[e]=i}return{keys:c,values:p,target:a,flat:!0}},groupRestore:function({keys:e,values:t,target:r}){if(null==r||"string"==typeof r)return;let i=e.length;for(var o=0;o<i;o++)r[e[o]]=t[o]},nestedRedact:function(e,s,a,c,u,l,f){let p=r(s,a);if(null==p)return;let h=Object.keys(p),d=h.length;for(var g=0;g<d;g++)!function(e,r,s,a,c,u,l,f){let p=c.length,h=p-1,d=s;var g,y,m,b,v,w=-1,_=null,S=!1,x=0,E={parent:null,key:null,children:[],depth:0};if(m=g=r[s],"object"==typeof g){for(;null!=g&&++w<p&&(x+=1,s=c[w],"*"===s||_||"object"==typeof g&&s in g);)if("*"!==s||("*"===_&&(S=!0),_=s,w===h)){if(_){let p=Object.keys(g);for(var O=0;O<p.length;O++){let _=p[O];if(v=g[_],b="*"===s,S)E=i(E,_,x),m=function e(r,s,a,c,u,l,f,p,h,d,g,y,m,b,v,w,_,S,x,E){if(0===s&&(m||"object"==typeof r&&null!==r&&a in r))if(y=m?r:r[a],g=v!==w?y:f?p?l(y,[...c,h,...u]):l(y):l,m){let e=o(_,y,x);S.push(e),d[b]=g}else if(r[a]===g);else if(void 0===g&&void 0!==l||t(r,a)&&g===y);else{let e=o(i(_,a,E+1),y,x);S.push(e),r[a]=g}for(let t in r)"object"==typeof r[t]&&(_=i(_,t,E),e(r[t],s-1,a,c,u,l,f,p,h,d,g,y,m,b,v,w,_,S,x,E+1))}(v,w-1,s,a,c,u,l,f,d,g,y,m,b,_,w,h,E,e,r[d],x+1);else if(b||"object"==typeof v&&null!==v&&s in v)if(m=b?v:v[s],y=w!==h?m:l?f?u(m,[...a,d,...c]):u(m):u,b){let t=o(i(E,_,x),m,r[d]);e.push(t),g[_]=y}else if(v[s]===y);else if(void 0===y&&void 0!==u||t(v,s)&&y===m)E=i(E,_,x);else{E=i(E,_,x);let t=o(i(E,s,x+1),m,r[d]);e.push(t),v[s]=y}}_=null}else{if(m=g[s],E=i(E,s,x),y=w!==h?m:l?f?u(m,[...a,d,...c]):u(m):u,t(g,s)&&y===m||void 0===y&&void 0!==u);else{let t=o(E,m,r[d]);e.push(t),g[s]=y}g=g[s]}if("object"!=typeof g)break}}}(e,p,h[g],a,c,u,l,f);return e},nestedRestore:function(e){for(let t=0;t<e.length;t++){let{target:r,path:i,value:o}=e[t],s=r;for(let e=i.length-1;e>0;e--)s=s[i[e]];s[i[0]]=o}}}},1027:(e,t,r)=>{"use strict";function i(e,t,r,i,o,s,a){try{var c=e[s](a),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(i,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var s=r(8396).F.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new s("iterable",["Iterable"],t);var a,c=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var i,o,s;i=e,o=t,s=r[t],o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),u=!1;function l(){return f.apply(this,arguments)}function f(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push((yield t))?l():u=!1}catch(e){c.destroy(e)}},(f=function(){var t=this,r=arguments;return new Promise(function(o,s){var a=e.apply(t,r);function c(e){i(a,o,s,c,u,"next",e)}function u(e){i(a,o,s,c,u,"throw",e)}c(void 0)})}).apply(this,arguments)}return c._read=function(){u||(u=!0,l())},c}},1037:(e,t,r)=>{"use strict";var i=r(5773),o=r(487),s=r(7417),a=r(1428),c=r(9900),u=r(8348),l=o.Set,f=o.add,p=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?u(r.getIterator(),function(e){p(t,e)&&f(o,e)}):c(t,function(e){r.includes(e)&&f(o,e)}),o}},1075:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:i(e)}},resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},1084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071),r(4099);let i=(e,t)=>e.includes(t);e.exports={isHost:i,isHostWrapper:e=>t=>i(e,t),cookieToMap:e=>e.split(";").map(e=>e.trim().split("=")).reduce((e,[t,r])=>({...e,[t]:r}),{}),mapToCookie:e=>Object.entries(e).map(([e,t])=>`${e}=${t}`).join("; ")}},1088:e=>{"use strict";e.exports={}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071),r(4914);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(4337),c=process.env.NEW_QQ_COOKIE||process.env.QQ_COOKIE,u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:c||null},l=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),f=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?+!o.ENABLE_FLAC:2).map(t=>((e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0";return s("GET","https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}})),u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl;return s("GET",i,{range:"bytes=0-8191","accept-encoding":"identity"}).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})})(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),p=a("provider/qq");e.exports={check:e=>{let t=Math.floor(Date.now()/1e3),r=((c||"").match(/musickey_createtime=(\d+)/)||[])[1]||"",i=parseInt(r,10)+259200;return r&&i-t<600&&(()=>{let e=(c.match(/qqrefresh_token=([^;]*)/)||[])[1]||"",t=(c.match(/qqmusic_key=([^;]*)/)||[])[1]||"",r=parseInt((c.match(/uin=(\d+)/)||[])[1]||0,10);return s("POST","https://u.y.qq.com/cgi-bin/musicu.fcg",{Cookie:c,"Content-Type":"application/json"},JSON.stringify({req:{module:"music.login.LoginServer",method:"Login",param:{refresh_token:e,musickey:t,musicid:r}}})).then(e=>e.json()).then(e=>{var t;let r=(null==(t=e.req)?void 0:t.data)||{},i=r.musickey,o=r.musickeyCreateTime;if(!i||!o)return;let s=c;s=s.replace(/(qqmusic_key=)[^;]*/,`$1${i}`).replace(/(qm_keyst=)[^;]*/,`$1${i}`).replace(/(psrf_musickey_createtime=)[^;]*/,`$1${o}`),process.env.NEW_QQ_COOKIE=s,u.cookie=s,c=s})})(),p.cache(e,()=>(e=>s("GET","https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}})),u).then(e=>e.json()).then(t=>{let r=o(t.search.data.body.song.list.map(l),e);return r?r.id:Promise.reject()}))(e)).then(f)},track:f}},1142:(e,t,r)=>{"use strict";var i=r(697),o=r(7854);i({target:"Set",proto:!0,real:!0,forced:!r(6707)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:o})},1144:(e,t,r)=>{var i=r(181),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},1185:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},1196:(e,t,r)=>{"use strict";var i=r(1651),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1202:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(4285);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},1262:(e,t,r)=>{"use strict";var i=r(8173),o=r(6078),s=r(6880),a=r(2870),c=r(8585),u=r(6043).CONFIGURABLE,l=r(4833),f=r(9434),p=f.enforce,h=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=c&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(c?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=p(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&h(this).source||l(this)},"toString")},1265:(e,t,r)=>{"use strict";let i=r(9950),o=r(6565),s=r(1075);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},1294:(e,t,r)=>{"use strict";var i,o,s,a=r(6078),c=r(6880),u=r(3531),l=r(2397),f=r(470),p=r(5369),h=r(8078),d=r(2250),g=h("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!u(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=l(i)),c(i[g])||p(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},1428:(e,t,r)=>{"use strict";var i=r(5869),o=r(4526),s=r(1196),a=r(6724),c=r(6718),u="Invalid size",l=RangeError,f=TypeError,p=Math.max,h=function(e,t){this.set=e,this.size=p(t,0),this.has=i(e.has),this.keys=i(e.keys)};h.prototype={getIterator:function(){return c(o(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw new f(u);var r=a(t);if(r<0)throw new l(u);return new h(e,r)}},1429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071),r(6352),r(7903),r(6834);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:c}=r(4337),{logScope:u}=r(6166),l=u("provider/bodian"),f=(Math.floor(Math.random()*(1e11+1))+0).toString(),p=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),h=e=>{let t={"user-agent":"Dart/2.19 (dart:io)",plat:"ar",channel:"aliopen",devid:f,ver:"3.9.0",host:"bd-api.kuwo.cn","X-Forwarded-For":"1.0.1.114"},r=`http://bd-api.kuwo.cn/api/play/music/v2/audioUrl?&br=${o.ENABLE_FLAC?"2000kflac":"320kmp3"}&musicId=${e}`;return r=(e=>{let t=new URL(e),r=Date.now(),i=(e+=`&timestamp=${r}`).substring(e.indexOf("?")+1).replace(/[^a-zA-Z0-9]/g,"").split("").sort(),o=`kuwotest${i.join("")}${t.pathname}`,a=s.md5.digest(o);return`${e}&sign=${a}`})(r),a("POST","http://bd-api.kuwo.cn/api/service/advert/watch?uid=-1&token=&timestamp=1724306124436&sign=15a676d66285117ad714e8c8371691da",{"user-agent":"Dart/2.19 (dart:io)",plat:"ar",channel:"aliopen",devid:f,ver:"3.9.0",host:"bd-api.kuwo.cn",qimei36:"1e9970cbcdc20a031dee9f37100017e1840e","content-type":"application/json; charset=utf-8"},JSON.stringify({type:5,subType:5,musicId:0,adToken:""})).then(e=>e.body()).then(e=>l.debug(`bodian ad free response: ${e}`)).then(()=>a("GET",r,t).then(e=>e.json()).then(e=>e&&200===e.code&&"object"==typeof e.data&&e.data.audioUrl||Promise.reject()).catch(()=>i().bodian.track(e)))},d=c("provider/bodian");e.exports={check:e=>d.cache(e,()=>(e=>a("GET","http://search.kuwo.cn/r.s?&correct=1&vipver=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+encodeURIComponent(e.keyword.replace(" - "," "))).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=o(t.content[1].musicpage.abslist.map(p),e);return r?r.id:Promise.reject()}))(e)).then(h),track:h}},1451:(e,t,r)=>{"use strict";var i=r(487),o=r(9900),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},1501:(e,t,r)=>{"use strict";var i=r(697),o=r(2675),s=r(3845),a=r(6465).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i<r;)s(arguments[i++],function(e,r){a(t,e,r)},{AS_ENTRIES:!0});return t}})},1512:(e,t,r)=>{"use strict";var i=r(7644),o=r(3561);e.exports=function(e){return i(o(e))}},1517:e=>{"use strict";e.exports=function(e){return e}},1561:(e,t,r)=>{"use strict";r(9268)},1576:(e,t,r)=>{"use strict";var i=r(2025).navigator,o=i&&i.userAgent;e.exports=o?String(o):""},1651:(e,t,r)=>{"use strict";e.exports=!r(6078)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},1727:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(4337),a=s("provider/pyncmd");e.exports={check:e=>a.cache(e,()=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(+!i.ENABLE_FLAC,i.ENABLE_FLAC?1:2)).then(e=>e.json()).then(e=>e&&"object"==typeof e&&!1 in e?Promise.reject():e.br>0?e.url:Promise.reject()))}},1806:(e,t,r)=>{"use strict";var i=r(697),o=r(8585),s=r(2025),a=r(7776),c=r(8173),u=r(1196),l=r(6880),f=r(3531),p=r(6475),h=r(2870),d=r(6790),g=r(2913),y=r(3557),m=r(6078),b=r(9997),v=r(2436),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=c("".charAt),j=c("".slice),T=c(/./.exec),R=c([].push),P=/^\d$/,M=/^[1-9]$/,L=/^[\d-]$/,A=/^[\t\n\r ]$/,N=function(e,t){var r=new $(e=d(e),0,""),i=r.parse(),o=i.value,s=r.skip(A,i.end);if(s<e.length)throw new S('Unexpected extra character: "'+k(e,s)+'" after the parsed data at: '+s);return l(t)?C({"":o},"",t,i):o},C=function(e,t,r,i){var o,s,a,c,l,d=e[t],y=i&&d===i.value,m=y&&"string"==typeof i.source?{source:i.source}:{};if(f(d)){var b=p(d),v=y?i.nodes:b?[]:{};if(b)for(c=0,o=v.length,a=g(d);c<a;c++)I(d,c,C(d,""+c,r,c<o?v[c]:void 0));else for(c=0,a=g(s=E(d));c<a;c++)I(d,l=s[c],C(d,l,r,h(v,l)?v[l]:void 0))}return u(r,e,t,d,m)},I=function(e,t,r){if(o){var i=O(e,t);if(i&&!i.configurable)return}void 0===r?delete e[t]:y(e,t,r)},D=function(e,t,r,i){this.value=e,this.end=t,this.source=r,this.nodes=i},$=function(e,t){this.source=e,this.index=t};$.prototype={fork:function(e){return new $(this.source,e)},parse:function(){var e=this.source,t=this.skip(A,this.index),r=this.fork(t),i=k(e,t);if(T(L,i))return r.number();switch(i){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new S('Unexpected character: "'+i+'" at: '+t)},node:function(e,t,r,i,o){return new D(t,i,e?null:j(this.source,r,i),o)},object:function(){for(var e=this.source,t=this.index+1,r=!1,i={},o={};t<e.length;){if("}"===k(e,t=this.until(['"',"}"],t))&&!r){t++;break}var s=this.fork(t).string(),a=s.value;t=s.end,t=this.until([":"],t)+1,t=this.skip(A,t),y(o,a,s=this.fork(t).parse()),y(i,a,s.value);var c=k(e,t=this.until([",","}"],s.end));if(","===c)r=!0,t++;else if("}"===c){t++;break}}return this.node(1,i,this.index,t,o)},array:function(){for(var e=this.source,t=this.index+1,r=!1,i=[],o=[];t<e.length;){if("]"===k(e,t=this.skip(A,t))&&!r){t++;break}var s=this.fork(t).parse();if(R(o,s),R(i,s.value),","===k(e,t=this.until([",","]"],s.end)))r=!0,t++;else if("]"===k(e,t)){t++;break}}return this.node(1,i,this.index,t,o)},string:function(){var e=this.index,t=b(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===k(e,r)&&r++,"0"===k(e,r))r++;else if(T(M,k(e,r)))r=this.skip(P,r+1);else throw new S("Failed to parse number at: "+r);if("."===k(e,r)&&(r=this.skip(P,r+1)),("e"===k(e,r)||"E"===k(e,r))&&(("+"===k(e,++r)||"-"===k(e,r))&&r++,r===(r=this.skip(P,r))))throw new S("Failed to parse number's exponent value at: "+r);return this.node(0,_(j(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,i=r+t.length;if(j(this.source,r,i)!==t)throw new S("Failed to parse value at: "+r);return this.node(0,e,r,i)},skip:function(e,t){for(var r=this.source;t<r.length&&T(e,k(r,t));t++);return t},until:function(e,t){t=this.skip(A,t);for(var r=k(this.source,t),i=0;i<e.length;i++)if(e[i]===r)return t;throw new S('Unexpected character: "'+r+'" at: '+t)}};var B=m(function(){var e,t="9007199254740993";return x(t,function(t,r,i){e=i.source}),e!==t}),q=v&&!m(function(){return 1/x("-0 ")!=-1/0});i({target:"JSON",stat:!0,forced:B},{parse:function(e,t){return q&&!l(t)?x(e):N(e,t)}})},1808:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(6465),c=r(4285),u=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new u;return c(t,function(e,o){l(i,r(e,o,t),e)}),i}})},1820:(e,t,r)=>{"use strict";var i=r(7776),o=r(6880),s=r(6814),a=r(4429),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,c(e))}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}},1852:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1933:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(6465),c=r(4285),u=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new u;return c(t,function(e,o){l(i,o,r(e,o,t))}),i}})},1976:(e,t,r)=>{"use strict";var i=r(697),o=r(1196),s=r(5869),a=r(4526),c=r(6718),u=r(9415),l=r(4296),f=r(9384),p=r(623),h=r(8918),d=r(2250),g=!d&&!p("map",function(){}),y=!d&&!g&&h("map",TypeError),m=d||g||y,b=u(function(){var e=this.iterator,t=a(o(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){a(this);try{s(e)}catch(e){f(this,"throw",e)}return y?o(y,this,e):new b(c(this),{mapper:e})}})},1999:(e,t,r)=>{"use strict";var i=r(7776),o=r(6880),s=r(4214),a=r(3531),c=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new c(e):e}},2018:e=>{"use strict";e.exports=require("tty")},2020:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2025:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:c}=r(4337),u=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),l=e=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_5.1.0.0_B_jiakong_vh.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(+!o.ENABLE_FLAC).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>(e.match(/http[^\s$"]+/)||[])[0]||Promise.reject()).catch(()=>i().kuwo.track(e)),f=c("provider/kuwo");e.exports={check:e=>f.cache(e,()=>(e=>a("GET","http://search.kuwo.cn/r.s?&correct=1&vipver=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+encodeURIComponent(e.keyword.replace(" - "," "))).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=o(t.content[1].musicpage.abslist.map(u),e);return r?r.id:Promise.reject()}))(e)).then(l),track:l}},2083:(e,t,r)=>{"use strict";var i=r(697),o=r(2749);i({target:"Set",proto:!0,real:!0,forced:!r(6707)("isSubsetOf",function(e){return e})},{isSubsetOf:o})},2122:(e,t,r)=>{"use strict";r(6315)},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:c,formattersSym:u,hooksSym:l}=r(37),{noop:f,genLog:p}=r(711),h={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=p(h.fatal,e);return function(...e){let r=this[c];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>p(h.error,e),warn:e=>p(h.warn,e),info:e=>p(h.info,e),debug:e=>p(h.debug,e),trace:e=>p(h.trace,e)},g=Object.keys(h).reduce((e,t)=>(e[h[t]]=t,e),{});e.exports={initialLsCache:Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{}),genLsCache:function(e){let t=e[u].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e},levelMethods:d,getLevel:function(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],c=this[a],u=this[l].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=!function(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}(e,c)?p(r[e],u):d[e](u)}this.emit("level-change",e,o,t[i],i)},isLevelEnabled:function(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]},mappings:function(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null;return{labels:Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:g,r),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:h,e)}},assertNoLevelCollisions:function(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){if(![].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(g).map(e=>+e),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}if(!(e in Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:h,t)))throw Error(`default level:${e} must be included in custom levels`)}}},2203:e=>{"use strict";e.exports=require("stream")},2205:(e,t,r)=>{"use strict";let i=r(6208),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{rx:a,validator:c}=i,u=c({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){let{paths:r,censor:c}=function(e){if(Array.isArray(e))return u(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),u({paths:t,censor:r}),{paths:t,censor:r}}(e),f=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:c}=i,u=`${t.substr(c,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(u)}),e[o].push(u),e},{}),p={[o]:i({paths:r,censor:c,serialize:t,strict:!1})};return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>((...e)=>"function"==typeof c?t(c(...e)):t(c))(e,[r]);else{let o="function"==typeof c?(e,t)=>c(e,[r,...t]):c;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},p)}},2250:e=>{"use strict";e.exports=!1},2262:(e,t,r)=>{"use strict";var i=r(697),o=r(3845),s=r(5869),a=r(4526),c=r(6718),u=r(9384),l=r(8918),f=r(6234),p=r(6078),h=TypeError,d=p(function(){[].keys().reduce(function(){},void 0)}),g=!d&&l("reduce",h);i({target:"Iterator",proto:!0,real:!0,forced:d||g},{reduce:function(e){a(this);try{s(e)}catch(e){u(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(g)return f(g,this,t?[e]:[e,r]);var i=c(this),l=0;if(o(i,function(i){t?(t=!1,r=i):r=e(r,i,l),l++},{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return r}})},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),c=r(5262),u=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:p}=r(2129),{createArgsNormalizer:h,asChindings:d,final:g,stringify:y,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(711),{version:w}=r(6011),{mixinMergeStrategySym:_}=r(37),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:k,streamSym:j,stringifySym:T,stringifiersSym:R,setLevelSym:P,endSym:M,formatOptsSym:L,messageKeySym:A,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:I,formattersSym:D,hooksSym:$}=u,{epochTime:B,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:B,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=h(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:u,crlf:h,serializers:g,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:H,customLevels:V,useLevelLabels:Y,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);Y&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=K):(Q||X)&&!Y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),t=Q||X,ei.level=function(e,r){return{[t]:r}}):(Q||X)&&Y&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),r=Q||X,ei.level=function(e,t){return{[r]:e}}),g[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=g[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=u?s(u,y):{},es=u?{stringify:eo[x]}:{stringify:y},ea="}"+(h?`\r
5`:`
6`),ec=d.bind(null,{[S]:"",[E]:g,[R]:eo,[T]:y,[D]:ei}),eu="";null!==F&&(eu=ec(void 0===W?F:Object.assign({},F,{name:W})));let el=m instanceof Function?m:m?B:q,ef=el().indexOf(":")+1;if(et&&!V)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);return l(H,V,et),Object.assign(i,{levels:f(V,et),[I]:et,[j]:a,[O]:el,[k]:ef,[T]:y,[R]:eo,[M]:ea,[L]:es,[A]:w,[N]:U,[E]:g,[C]:Z,[_]:ee,[S]:eu,[D]:ei,[$]:en,silent:v}),Object.setPrototypeOf(i,c()),p(i),i[P](H),i}function K(e,t){return{level:e}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=g,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=u,e.exports.version=w,e.exports.default=J,e.exports.pino=J},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:c}=r(8167),u=r(5550)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:p,LEVEL_KEY:h,LEVEL_LABEL:d,TIMESTAMP_KEY:g,LOGGER_KEYS:y,LEVELS:m}=r(4249);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+l);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,l);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r=`
7`}){let i=e.split(/\r?\n/);for(let e=1;e<i.length;e+=1)i[e]=t+i[e];return i.join(r)}function x({input:e,ident:t=" ",eol:r=`

Callers 3

PFunction · 0.70
CFunction · 0.70
app.jsFile · 0.70

Calls 3

oFunction · 0.70
OFunction · 0.70
yFunction · 0.70

Tested by

no test coverage detected