From a918455aed15a389e2358b1c28b6536f5606b1fe Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sun, 19 May 2024 17:07:41 +0800 Subject: [PATCH] infra(package): release v0.27.7 Signed-off-by: pan93412 --- package.json | 2 +- precompiled/app.js | 10 +++++----- precompiled/bridge.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index dc0e43d7ba..2157901b2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@unblockneteasemusic/server", - "version": "0.27.6-patch.1", + "version": "0.27.7", "description": "Revive unavailable songs for Netease Cloud Music", "main": "src/provider/match.js", "bin": { diff --git a/precompiled/app.js b/precompiled/app.js index 946056f12f..16e0749f72 100644 --- a/precompiled/app.js +++ b/precompiled/app.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -(()=>{var e={6718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3014),r(6198),r(5772),r(6233),r(6724),r(822),r(7821),r(8280),r(4334),r(8536),r(5287),r(1981),r(6539),r(9630),r(7021),r(9024),r(5907),r(6584),r(4732),r(9846),r(9758),r(4910),r(7847),r(5386),r(2752),r(3e3),r(9179),r(321),r(1136),r(4488),r(2729),r(7831),r(3437),r(5751),r(139),r(3025),r(8620),r(1276),r(6465),r(2486);let{EventEmitter:i}=r(4434),{logScope:o}=r(6166),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2672:(e,t,r)=>{"use strict";let i=r(4434),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},3946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(7777),r(9614),r(7921),r(2520),r(9541),r(5907),r(7021),r(9024),r(5244),r(8920),r(7113);let i={width:80,_program:{},_options:[],program:(e={})=>(i._program=e,i),option:(e,t={})=>(e=Array.isArray(e)?e:[e],t.dest=t.dest||e.slice(-1)[0].toLowerCase().replace(/^-+/,"").replace(/-[a-z]/g,e=>e.slice(1).toUpperCase()),t.help=t.help||({help:"output usage information",version:"output the version number"})[t.action],i._options.push(Object.assign(t,{flags:e,positional:!e[0].startsWith("-")})),i),parse:e=>{let t=i._options.map((e,t)=>e.positional?t:null).filter(e=>null!==e),o={};i._options.forEach((e,t)=>e.positional?null:e.flags.forEach(e=>o[e]=t)),i._program.name=i._program.name||r(6928).parse(e[1]).base;let s=e.slice(2).reduce((e,t)=>/^-[^-]/.test(t)?e.concat(t.slice(1).split("").map(e=>"-"+e)):e.concat(t),[]),l=0;for(;le in o),a=-1===t?s.length:l+t;0===(e=s.slice(l,a)).length&&(i._options[f].positional?c(`the following arguments are required: ${r}`):"+"===i._options[f].nargs?c(`argument ${r}: expected at least one argument`):c(`argument ${r}: expected one argument`)),"+"!==i._options[f].nargs?(e=e[0],l+=1):l=a}i[i._options[f].dest]=e}return t.length&&c(`the following arguments are required: ${t.map(e=>i._options[e].flags[0]).join(", ")}`),i}},o=e=>Array(e+1).join(" "),s=()=>{let e=i._options.map(e=>{let t=e.flags.sort((e,t)=>e.length-t.length)[0],r=e.metavar||e.dest;return e.positional?"+"===e.nargs?`${r} [${r} ...]`:`${r}`:["store_true","store_false","help","version"].includes(e.action)?`[${t}]`:"+"===e.nargs?`[${t} ${r} [${r} ...]]`:`[${t} ${r}]`}),t=i.width,r=`usage: ${i._program.name}`,s=[r];e.map(e=>" "+e).forEach(e=>{s[s.length-1].length+e.length{s();let e=i._options.filter(e=>e.positional).map(e=>[e.metavar||e.dest,e.help]),t=i._options.filter(e=>!e.positional).map(e=>{let{flags:t}=e,r=e.metavar||e.dest;return[["store_true","store_false","help","version"].includes(e.action)?t.map(e=>`${e}`).join(", "):"+"===e.nargs?t.map(e=>`${e} ${r} [${r} ...]`).join(", "):t.map(e=>`${e} ${r}`).join(", "),e.help]}),r=Math.max.apply(null,e.concat(t).map(e=>e[0].length));r=r>30?30:r;let a=i.width-r-4,u=e=>{let t=e=>Array.from(Array(Math.ceil(e.length/a)).keys()).map(t=>e.slice(t*a,(t+1)*a)).join("\n"+o(r+4));e[0].length{console.log(i._program.version),process.exit()},c=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},6406:(e,t,r)=>{"use strict";let i={qq:r(1128),kugou:r(2777),kuwo:r(2076),migu:r(8516),joox:r(9222),youtube:r(8829),youtubedl:r(5374),ytdlp:r(9282),bilibili:r(8114),pyncmd:r(4108)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921);let i=r(6982),o=r(7016).parse,s=r(3480).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(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=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),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=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=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:u.slice(0,s),iv:u.slice(s,s+o)}})(r,o,256,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",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)}};try{e.exports.kuwoapi=r(9726)}catch(e){}},8729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),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"}}},15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},7591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},6587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},7229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},6117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(2520),r(9541),r(5907),r(6584),r(4732),r(9846),r(9758),r(4910),r(7847),r(5386),r(2752),r(3e3),r(9179),r(321),r(1136),r(4488),r(2729),r(7831),r(3437),r(5751),r(139),r(3025),r(8620),r(1276),r(6465),r(2486),r(8142),r(3679),r(7021),r(9024),r(8484),r(4493),r(8920),r(7113);let i=r(7016).parse,o=r(23),s=r(2965),a=r(3093),u=r(3480),{isHost:c,cookieToMap:l,mapToCookie:f}=r(1084),{getManagedCacheStorage:h}=r(6718),{logScope:p}=r(6166),d=p("hook"),g=h("hook");g.aliveDuration=6048e5;let y=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),m="true"===(process.env.BLOCK_ADS||"").toLowerCase(),b="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),v="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),w=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),_={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};_.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","interface.music.163.com.163jiasu.com","interface3.music.163.com.163jiasu.com"]),_.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/v2/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query","/api/music-vip-membership/client/vip/info"]);let S=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];_.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(S.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>c(e,"music.163.com"))&&(e.decision="proxy"),process.env.NETEASE_COOKIE&&r.path.includes("url")){var a=l(t.headers.cookie);Object.entries(l(process.env.NETEASE_COOKIE)).forEach(([e,t])=>{a[e]=t}),t.headers.cookie=f(a),d.debug("Replace netease cookie")}if([r.hostname,t.headers.host].some(e=>_.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",!(t.url.includes("stream")||t.url.includes("/eapi/cloud/upload/check"))&&(t.headers["Accept-Encoding"]="gzip, deflate",s)){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path)return x(e);if("/api/song/enhance/download/url/v1"===a.path)return E(e);m&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),b&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&d.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(_.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},_.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&_.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(y){let e="/api/music-vip-membership/client/vip/info";if("/batch"===a.path||"/api/batch"===a.path||a.path===e){let t=a.path===e?a.jsonBody:a.jsonBody[e],r={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(t&&(0===w.length||w.includes(t.data.userId)))try{let i=(t.data.now||new Date().getTime())+316224e5;t.data.redVipLevel=7,t.data.redVipAnnualCount=1,t.data.musicPackage={...r,...t.data.musicPackage,vipCode:230,vipLevel:7,expireTime:i},t.data.associator={...r,...t.data.associator,vipCode:100,vipLevel:7,expireTime:i},v&&(t.data.redplus={...r,...t.data.redplus,vipCode:300,vipLevel:7,expireTime:i},t.data.albumVip={...r,...t.data.albumVip,vipCode:400,vipLevel:0,expireTime:i}),a.path===e?a.jsonBody=t:a.jsonBody[e]=t}catch(e){d.debug({err:e},"Unable to apply the local VIP.")}}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return O(e);if("/api/song/like"===a.path)return k(e)}else if(a.path.includes("url"))return T(e);else if(a.path.includes("/usertool/sound/"))return R(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&R(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return P(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=JSON.stringify(a.jsonBody,(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&d.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},_.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>_.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},_.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=_.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let x=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,e_r:a,header:u}=i.param;i.param={ids:`["${e}"]`,br:r,e_r:a,header:u},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},E=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url/v1";if(i.forward){let{id:e,level:r,immerseType:a}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,level:r,immerseType:a,e_r:u,header:c}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a,e_r:u,header:c},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},O=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&d.error(e))},k=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0,a=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>(a=e.userPoint.userId,s("GET",`http://music.163.com/api/user/playlist?uid=${a}&limit=1`,t.headers).then(e=>e.json()))).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&d.error(e))},j=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),T=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,c=Number(process.env.MIN_BR)||0,l=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o={android:"0.0.0",osx:"0.0.0"},s={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let a=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||a.os,l=t.appver||a.appver;if(c in o&&((e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]})(o[c],l))return g.cache(s,()=>j(s)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&d.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(l=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&d.error(e))},R=e=>{d.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},P=e=>{d.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=_},9726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921),r(7021),r(9024);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let p=o(8*l.length).map(()=>0),d=0;return l.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},6166:(e,t,r)=>{"use strict";var i;let o=r(2306),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(6718),a=r(9588),u=r(3186),c=r(2965),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>c("GET",`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`).then(e=>e.json()).then(t=>{let r=u(t.data.result.map(l),e);return r?r.id:Promise.reject()}),h=e=>c("GET","https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e)),p=s("provider/bilibili");e.exports={check:e=>p.cache(e,()=>f(e)).then(h),track:h}},9041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(8142),r(3679),r(7777),r(9614),r(7921);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},c=(e,t)=>{if(!t)return i("GET","https://music.163.com/api/song/detail?ids=["+e+"]").then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()});{let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}},l=o("provider/find");e.exports=(e,t)=>t?c(e,t):l.cache(e,()=>c(e))},9588:(e,t,r)=>{"use strict";let i=r(2965);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(8484);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>a("GET","http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(l(e))+"&sin=0&ein=30",c).then(e=>e.body()).then(t=>{let r=o(JSON.parse(t.replace(/'/g,'"')).itemlist.map(f),e);return r?r.id:Promise.reject()}),p=e=>a("GET","http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime(),c).then(e=>e.jsonp()).then(e=>(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3")||Promise.reject()).catch(()=>i().joox.track(e)),d=u("provider/joox");e.exports={check:e=>d.cache(e,()=>h(e)).then(p),track:p}},2777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>a("GET","http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10").then(e=>e.json()).then(t=>o(t.data.info.map(c),e)||Promise.reject()).catch(()=>i().kugou.search(e)),f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""};return a("GET","http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),search:l}},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=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","http://search.kuwo.cn/r.s?&correct=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(c),e);return r?r.id:Promise.reject()}),f=e=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_1.1.9_oppo_118980_320.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).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)),h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},3093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3014),r(6198),r(5772),r(6233),r(6724),r(822),r(7821),r(8280),r(4334),r(8536),r(5287),r(1981),r(6539),r(9630),r(2520),r(9541),r(5907),r(4525),r(9614),r(7921),r(8920),r(7113),r(5407),r(8790),r(7021),r(9024);let i=r(9041),o=r(2965),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(6406),{isHostWrapper:u}=r(1084),c=r(806),l=r(7591),f=r(8729),{logScope:h}=r(6166),p=r(15),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new c(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),{...i,source:e}}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),l=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new c("any source");l=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=l;return d.debug({audioInfo:u,audioData:l},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),l}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new l(e,s.statusCode);r.url=s.url.href;let c=await s.body(!0);try{let e=function(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;"ID3"===e.slice(0,3).toString()&&(r=6,r=10+e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0));let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}(c);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=parseInt(r.url.match(/-(\d+)k\.m4a/));isNaN(e)?e=192e3:e<96||e>999?e=192e3:e*=1e3,r.br=e}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,"8192"!==a["content-length"])?Promise.reject():r}e.exports=b},8516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>s("GET","https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1",u).then(e=>e.json()).then(t=>{let r=o(((t||{}).musics||[]).map(c),e);return r?r.id:Promise.reject()}),f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},4108:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(6718),a=e=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(i.ENABLE_FLAC?0:1,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()),u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=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}))}),l=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(c),e);return r?r.id:Promise.reject()}),f=(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)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(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=>p.cache(e,()=>l(e)).then(h),track:h}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9105),r(8584),r(5907),e.exports=(e,t)=>{let{duration:r}=t;return e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r))||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},5374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8484);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),s=r(8696),a=r(6587),{spawnStdout:u}=r(5319),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("youtube-dl");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921),r(8484),r(9105),r(8584);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1];return Function([t],RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0]+"\n"+r)}),f=e=>i("GET",`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()}),h=e=>i("GET",`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]).contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return t?t.videoRenderer.videoId:Promise.reject()}),p=e=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)});e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(p),track:p}},9282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8484);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),{spawnStdout:s}=r(5319),a=r(816),u=r(7229),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("yt-dlp");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},2965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(7777),r(8484);let i=r(3106),o=r(8611),s=r(5692),a=r(2672),u=r(15),{logScope:c}=r(6166),l=r(7016).parse,f=r(7016).format,h=c("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,c)=>{let p=l(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",...w},o);return new Promise((r,l)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==c||c.on(a,m),null!==(g=null==c?void 0:c.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(2520),r(9541),r(5907),r(8142),r(3679);let i=r(9896),o=r(6897),s=r(6928),a=r(7016).parse,{logScope:u}=r(6166),c=u("server"),l=r(47),f=r(6117),h=r(2965),{isHost:p}=r(1084),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` +(()=>{var e={6718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6264),r(3440),r(2946),r(107),r(422),r(452),r(2536),r(5126),r(4128),r(3418),r(4221),r(5711),r(6845),r(9704),r(8691),r(4738),r(7225),r(8098),r(1154),r(3448),r(9536),r(5312),r(1837),r(7024),r(8422),r(3169),r(5673),r(3255),r(5814),r(6894),r(4535),r(5477),r(7367),r(4681),r(3825),r(564),r(586),r(4714),r(8244),r(5572);let{EventEmitter:i}=r(4434),{logScope:o}=r(6166),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2672:(e,t,r)=>{"use strict";let i=r(4434),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},3946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1267),r(1608),r(4399),r(4830),r(511),r(7225),r(8691),r(4738),r(3734),r(9926),r(7555);let i={width:80,_program:{},_options:[],program:(e={})=>(i._program=e,i),option:(e,t={})=>(e=Array.isArray(e)?e:[e],t.dest=t.dest||e.slice(-1)[0].toLowerCase().replace(/^-+/,"").replace(/-[a-z]/g,e=>e.slice(1).toUpperCase()),t.help=t.help||({help:"output usage information",version:"output the version number"})[t.action],i._options.push(Object.assign(t,{flags:e,positional:!e[0].startsWith("-")})),i),parse:e=>{let t=i._options.map((e,t)=>e.positional?t:null).filter(e=>null!==e),o={};i._options.forEach((e,t)=>e.positional?null:e.flags.forEach(e=>o[e]=t)),i._program.name=i._program.name||r(6928).parse(e[1]).base;let s=e.slice(2).reduce((e,t)=>/^-[^-]/.test(t)?e.concat(t.slice(1).split("").map(e=>"-"+e)):e.concat(t),[]),l=0;for(;le in o),a=-1===t?s.length:l+t;0===(e=s.slice(l,a)).length&&(i._options[f].positional?c(`the following arguments are required: ${r}`):"+"===i._options[f].nargs?c(`argument ${r}: expected at least one argument`):c(`argument ${r}: expected one argument`)),"+"!==i._options[f].nargs?(e=e[0],l+=1):l=a}i[i._options[f].dest]=e}return t.length&&c(`the following arguments are required: ${t.map(e=>i._options[e].flags[0]).join(", ")}`),i}},o=e=>Array(e+1).join(" "),s=()=>{let e=i._options.map(e=>{let t=e.flags.sort((e,t)=>e.length-t.length)[0],r=e.metavar||e.dest;return e.positional?"+"===e.nargs?`${r} [${r} ...]`:`${r}`:["store_true","store_false","help","version"].includes(e.action)?`[${t}]`:"+"===e.nargs?`[${t} ${r} [${r} ...]]`:`[${t} ${r}]`}),t=i.width,r=`usage: ${i._program.name}`,s=[r];e.map(e=>" "+e).forEach(e=>{s[s.length-1].length+e.length{s();let e=i._options.filter(e=>e.positional).map(e=>[e.metavar||e.dest,e.help]),t=i._options.filter(e=>!e.positional).map(e=>{let{flags:t}=e,r=e.metavar||e.dest;return[["store_true","store_false","help","version"].includes(e.action)?t.map(e=>`${e}`).join(", "):"+"===e.nargs?t.map(e=>`${e} ${r} [${r} ...]`).join(", "):t.map(e=>`${e} ${r}`).join(", "),e.help]}),r=Math.max.apply(null,e.concat(t).map(e=>e[0].length));r=r>30?30:r;let a=i.width-r-4,u=e=>{let t=e=>Array.from(Array(Math.ceil(e.length/a)).keys()).map(t=>e.slice(t*a,(t+1)*a)).join("\n"+o(r+4));e[0].length{console.log(i._program.version),process.exit()},c=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},6406:(e,t,r)=>{"use strict";let i={qq:r(1128),kugou:r(2777),kuwo:r(2076),migu:r(8516),joox:r(9222),youtube:r(8829),youtubedl:r(5374),ytdlp:r(9282),bilibili:r(8114),pyncmd:r(1727)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399);let i=r(6982),o=r(7016).parse,s=r(3480).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(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=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),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=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=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:u.slice(0,s),iv:u.slice(s,s+o)}})(r,o,256,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",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)}};try{e.exports.kuwoapi=r(9726)}catch(e){}},8729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),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"}}},15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},7591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},6587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},7229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},6117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(4830),r(511),r(7225),r(8098),r(1154),r(3448),r(9536),r(5312),r(1837),r(7024),r(8422),r(3169),r(5673),r(3255),r(5814),r(6894),r(4535),r(5477),r(7367),r(4681),r(3825),r(564),r(586),r(4714),r(8244),r(5572),r(8580),r(2489),r(8691),r(4738),r(8398),r(1703),r(9926),r(7555);let i=r(7016).parse,o=r(23),s=r(2965),a=r(3093),u=r(3480),{isHost:c,cookieToMap:l,mapToCookie:f}=r(1084),{getManagedCacheStorage:h}=r(6718),{logScope:p}=r(6166),d=p("hook"),g=h("hook");g.aliveDuration=6048e5;let y=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),m="true"===(process.env.BLOCK_ADS||"").toLowerCase(),b="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),v="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),w=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),_={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};_.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","interface.music.163.com.163jiasu.com","interface3.music.163.com.163jiasu.com"]),_.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/v2/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query","/api/music-vip-membership/client/vip/info"]);let S=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];_.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(S.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>c(e,"music.163.com"))&&(e.decision="proxy"),process.env.NETEASE_COOKIE&&r.path.includes("url")){var a=l(t.headers.cookie);Object.entries(l(process.env.NETEASE_COOKIE)).forEach(([e,t])=>{a[e]=t}),t.headers.cookie=f(a),d.debug("Replace netease cookie")}if([r.hostname,t.headers.host].some(e=>_.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",!(t.url.includes("stream")||t.url.includes("/eapi/cloud/upload/check"))&&(t.headers["Accept-Encoding"]="gzip, deflate",s)){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path)return x(e);if("/api/song/enhance/download/url/v1"===a.path)return E(e);m&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),b&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&d.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(_.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},_.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&_.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(y){let e="/api/music-vip-membership/client/vip/info";if("/batch"===a.path||"/api/batch"===a.path||a.path===e){let t=a.path===e?a.jsonBody:a.jsonBody[e],r={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(t&&(0===w.length||w.includes(t.data.userId)))try{let i=(t.data.now||new Date().getTime())+316224e5;t.data.redVipLevel=7,t.data.redVipAnnualCount=1,t.data.musicPackage={...r,...t.data.musicPackage,vipCode:230,vipLevel:7,expireTime:i},t.data.associator={...r,...t.data.associator,vipCode:100,vipLevel:7,expireTime:i},v&&(t.data.redplus={...r,...t.data.redplus,vipCode:300,vipLevel:7,expireTime:i},t.data.albumVip={...r,...t.data.albumVip,vipCode:400,vipLevel:0,expireTime:i}),a.path===e?a.jsonBody=t:a.jsonBody[e]=t}catch(e){d.debug({err:e},"Unable to apply the local VIP.")}}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return O(e);if("/api/song/like"===a.path)return k(e)}else if(a.path.includes("url"))return T(e);else if(a.path.includes("/usertool/sound/"))return R(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&R(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return P(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=JSON.stringify(a.jsonBody,(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&d.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},_.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>_.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},_.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=_.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let x=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,e_r:a,header:u}=i.param;i.param={ids:`["${e}"]`,br:r,e_r:a,header:u},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},E=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url/v1";if(i.forward){let{id:e,level:r,immerseType:a}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,level:r,immerseType:a,e_r:u,header:c}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a,e_r:u,header:c},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},O=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&d.error(e))},k=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0,a=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>(a=e.userPoint.userId,s("GET",`http://music.163.com/api/user/playlist?uid=${a}&limit=1`,t.headers).then(e=>e.json()))).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&d.error(e))},j=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),T=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,c=Number(process.env.MIN_BR)||0,l=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o={android:"0.0.0",osx:"0.0.0"},s={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let a=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||a.os,l=t.appver||a.appver;if(c in o&&((e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]})(o[c],l))return g.cache(s,()=>j(s)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&d.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(l=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&d.error(e))},R=e=>{d.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},P=e=>{d.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=_},9726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399),r(8691),r(4738);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let p=o(8*l.length).map(()=>0),d=0;return l.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},6166:(e,t,r)=>{"use strict";var i;let o=r(2306),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(6718),a=r(9588),u=r(3186),c=r(2965),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>c("GET",`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`).then(e=>e.json()).then(t=>{let r=u(t.data.result.map(l),e);return r?r.id:Promise.reject()}),h=e=>c("GET","https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e)),p=s("provider/bilibili");e.exports={check:e=>p.cache(e,()=>f(e)).then(h),track:h}},9041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(8580),r(2489),r(1267),r(1608),r(4399);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},c=(e,t)=>{if(!t)return i("GET","https://music.163.com/api/song/detail?ids=["+e+"]").then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()});{let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}},l=o("provider/find");e.exports=(e,t)=>t?c(e,t):l.cache(e,()=>c(e))},9588:(e,t,r)=>{"use strict";let i=r(2965);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(8398);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>a("GET","http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(l(e))+"&sin=0&ein=30",c).then(e=>e.body()).then(t=>{let r=o(JSON.parse(t.replace(/'/g,'"')).itemlist.map(f),e);return r?r.id:Promise.reject()}),p=e=>a("GET","http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime(),c).then(e=>e.jsonp()).then(e=>(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3")||Promise.reject()).catch(()=>i().joox.track(e)),d=u("provider/joox");e.exports={check:e=>d.cache(e,()=>h(e)).then(p),track:p}},2777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>a("GET","http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10").then(e=>e.json()).then(t=>o(t.data.info.map(c),e)||Promise.reject()).catch(()=>i().kugou.search(e)),f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""};return a("GET","http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),search:l}},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=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","http://search.kuwo.cn/r.s?&correct=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(c),e);return r?r.id:Promise.reject()}),f=e=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_1.1.9_oppo_118980_320.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).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)),h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},3093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6264),r(3440),r(2946),r(107),r(422),r(452),r(2536),r(5126),r(4128),r(3418),r(4221),r(5711),r(6845),r(9704),r(4830),r(511),r(7225),r(68),r(1608),r(4399),r(9926),r(7555),r(6793),r(4988),r(8691),r(4738);let i=r(9041),o=r(2965),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(6406),{isHostWrapper:u}=r(1084),c=r(806),l=r(7591),f=r(8729),{logScope:h}=r(6166),p=r(15),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new c(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),{...i,source:e}}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),l=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new c("any source");l=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=l;return d.debug({audioInfo:u,audioData:l},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),l}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new l(e,s.statusCode);r.url=s.url.href;let c=await s.body(!0);try{let e=function(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;"ID3"===e.slice(0,3).toString()&&(r=6,r=10+e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0));let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}(c);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=parseInt(r.url.match(/-(\d+)k\.m4a/));isNaN(e)?e=192e3:e<96||e>999?e=192e3:e*=1e3,r.br=e}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,"8192"!==a["content-length"])?Promise.reject():r}e.exports=b},8516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>s("GET","https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1",u).then(e=>e.json()).then(t=>{let r=o(((t||{}).musics||[]).map(c),e);return r?r.id:Promise.reject()}),f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},1727:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(6718),a=e=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(i.ENABLE_FLAC?0:1,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()),u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=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}))}),l=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(c),e);return r?r.id:Promise.reject()}),f=(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)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(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=>p.cache(e,()=>l(e)).then(h),track:h}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9991),r(5877),r(7225),e.exports=(e,t)=>{let{duration:r}=t;return e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r))||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},5374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8398);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),s=r(8696),a=r(6587),{spawnStdout:u}=r(5319),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("youtube-dl");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399),r(8398),r(9991),r(5877);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1];return Function([t],RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0]+"\n"+r)}),f=e=>i("GET",`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()}),h=e=>i("GET",`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]).contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return t?t.videoRenderer.videoId:Promise.reject()}),p=e=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)});e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(p),track:p}},9282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8398);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),{spawnStdout:s}=r(5319),a=r(816),u=r(7229),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("yt-dlp");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},2965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1267),r(8398);let i=r(3106),o=r(8611),s=r(5692),a=r(2672),u=r(15),{logScope:c}=r(6166),l=r(7016).parse,f=r(7016).format,h=c("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,c)=>{let p=l(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",...w},o);return new Promise((r,l)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==c||c.on(a,m),null!==(g=null==c?void 0:c.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(4830),r(511),r(7225),r(8580),r(2489);let i=r(9896),o=r(9278),s=r(6928),a=r(7016).parse,{logScope:u}=r(6166),c=u("server"),l=r(2428),f=r(6117),h=r(2965),{isHost:p}=r(1084),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` function FindProxyForURL(url, host) { if (${Array.from(f.target.host).map(e=>`host == '${e}'`).join(" || ")}) { return 'PROXY ${r.hostname}:${r.port||80}' @@ -9,7 +9,7 @@ ${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEac } `)}else{let r={res:t,req:e};Promise.resolve().then(()=>d.protect(r)).then(()=>d.authenticate(r)).then(()=>f.request.before(r)).then(()=>d.filter(r)).then(()=>d.log(r)).then(()=>d.mitm.request(r)).then(()=>f.request.after(r)).then(()=>d.mitm.response(r)).catch(()=>d.mitm.close(r))}},tunnel:(e,t,r)=>{let i={req:e,socket:t,head:r};Promise.resolve().then(()=>d.protect(i)).then(()=>d.authenticate(i)).then(()=>f.connect.before(i)).then(()=>d.filter(i)).then(()=>d.log(i)).then(()=>d.tunnel.connect(i)).then(()=>d.tunnel.dock(i)).then(()=>f.negotiate.before(i)).then(()=>d.tunnel.pipe(i)).catch(()=>d.tunnel.close(i))}},abort:e=>{e&&e.end(),e&&!e.destroyed&&e.destroy()},protect:e=>{let{req:t,res:r,socket:i}=e;t&&t.on("error",()=>d.abort(t.socket,"req")),r&&r.on("error",()=>d.abort(r.socket,"res")),i&&i.on("error",()=>d.abort(i,"socket"))},log:e=>{let{req:t,socket:r,decision:i}=e;r&&(r?c.debug({decision:i,url:t.url},"TUNNEL"):c.debug({decision:i,host:a(t.url).host,encrypted:t.socket.encrypted},`MITM${t.socket.encrypted?" (ssl)":""}`))},authenticate:e=>{let{req:t,res:r,socket:i}=e,o=Buffer.from((t.headers["proxy-authorization"]||"").split(/\s+/).pop()||"","base64").toString();if("proxy-authorization"in t.headers&&delete t.headers["proxy-authorization"],b.authentication&&o!==b.authentication&&(i||t.url.startsWith("http://")))return i?i.write('HTTP/1.1 407 Proxy Auth Required\r\nProxy-Authenticate: Basic realm="realm"\r\n\r\n'):r.writeHead(407,{"proxy-authenticate":'Basic realm="realm"'}),Promise.reject(e.error="authenticate")},filter:e=>{if(e.decision||e.req.local)return;let t=a((e.socket?"https://":"")+e.req.url),r=e=>-1!==t.href.search(RegExp(e,"g"));try{let t=b.whitelist.some(r),i=b.blacklist.some(r);if(!t&&i)return Promise.reject(e.error="filter")}catch(t){e.error=t}},mitm:{request:e=>new Promise((t,r)=>{if("close"===e.decision)return r(e.error=e.decision);let{req:i}=e;p(i.url,"bilivideo.com")&&(i.headers.referer="https://www.bilibili.com/",i.headers["user-agent"]="okhttp/3.4.1");let o=a(i.url),s=h.configure(i.method,o,i.headers);e.proxyReq=h.create(o)(s).on("response",r=>t(e.proxyRes=r)).on("error",t=>r(e.error=t)),i.readable?i.pipe(e.proxyReq):e.proxyReq.end(i.body)}),response:e=>{let{res:t,proxyRes:r}=e;r.on("error",()=>d.abort(r.socket,"proxyRes")),t.writeHead(r.statusCode,r.headers),r.readable?r.pipe(t):t.end(r.body)},close:e=>{d.abort(e.res.socket,"mitm")}},tunnel:{connect:e=>new Promise((t,r)=>{if("close"===e.decision)return r(e.error=e.decision);let{req:i}=e,s=a("https://"+i.url);if(global.proxy&&!i.local){let o=h.configure(i.method,s,i.headers);h.create(d)(o).on("connect",(r,i)=>t(e.proxySocket=i)).on("error",t=>r(e.error=t)).end()}else{let i=o.connect(s.port||443,h.translate(s.hostname)).on("connect",()=>t(e.proxySocket=i)).on("error",t=>r(e.error=t))}}),dock:e=>new Promise(t=>{let{req:r,head:i,socket:o}=e;o.once("data",r=>t(e.head=Buffer.concat([i,r]))).write(`HTTP/${r.httpVersion} 200 Connection established\r \r -`)}).then(t=>e.socket.sni=l(t)).catch(e=>e&&c.error(e)),pipe:e=>{if("blank"===e.decision)return Promise.reject(e.error=e.decision);let{head:t,socket:r,proxySocket:i}=e;i.on("error",()=>d.abort(e.proxySocket,"proxySocket")),i.write(t),r.pipe(i),i.pipe(r)},close:e=>{d.abort(e.socket,"tunnel")}}},g=process.env.SIGN_CERT||s.join(__dirname,"..","server.crt"),y=process.env.SIGN_KEY||s.join(__dirname,"..","server.key"),m={key:i.readFileSync(y),cert:i.readFileSync(g)},b={http:r(8611).createServer().on("request",d.core.mitm).on("connect",d.core.tunnel),https:r(5692).createServer(m).on("request",d.core.mitm).on("connect",d.core.tunnel)};b.whitelist=[],b.blacklist=["://127\\.\\d+\\.\\d+\\.\\d+","://localhost"],b.authentication=null,e.exports=b},47:e=>{"use strict";e.exports=e=>{let t=e.length,r=43,i=(e=r)=>isNaN(e);if(r+1>t||i()||(r+=1+e[r],r+2>t||i())||(r+=2+e.readInt16BE(r),r+1>t||i())||(r+=1+e[r],r+2>t||i()))return null;let o=e.readInt16BE(r);r+=2;let s=r+o;if(s>t||i(s))return null;for(t=s;r+4<=t||i();){let o=e.readInt16BE(r),s=e.readInt16BE(r+2);if(r+=4,0!==o){r+=s;continue}if(r+2>t||i())break;let a=e.readInt16BE(r);if(r+=2,r+a>t)break;for(;r+3<=t||i();){let o=e[r],s=e.readInt16BE(r+1);if(r+=3,0!==o){r+=s;continue}if(r+s>t||i())return null;return e.toString("ascii",r,r+s)}}return null}},5319:(e,t,r)=>{"use strict";let i=r(5317),{logScope:o}=r(6166),s=r(1828),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},1084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(8920),r(7113),r(5907);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("; ")}},7048:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},5402:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==y(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},k=function(){return d(e)},j={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return k()},WW:function(){return h(k())},N:function(){return g(e)}};return t.replace(a,function(e){return e in j?j[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(9491),o=r(5486),s=r(3081),a=r(3049),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(p,i.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},p.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=p},5486:(e,t,r)=>{var i=r(5645),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||p()},p=function(){l=!1,c||r.call(e)},d=function(){c=!1,l||r.call(e)},g=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",p)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",p),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",g),e.on("end",d),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",m),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("exit",g),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",m)}};e.exports=s},4408:(e,t,r)=>{"use strict";let i=r(7054),o=r(2023),s=r(3610),a=r(5014),{groupRedact:u,nestedRedact:c}=r(5158),l=r(4613),f=r(6600),h=i(),p=e=>e;function d(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",d="function"==typeof f,g=d&&f.length>1;if(0===t.length)return r||p;h({paths:t,serialize:r,censor:f});let{wildcards:y,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m});return s({secret:b,wcLen:m,serialize:r,strict:!("strict"in e)||e.strict,isCensorFct:d,censorFctTakesPath:g},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:y,wcLen:m}))}p.restore=p,d.rx=f,d.validator=i,e.exports=d},5158:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(6600);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0],c=(a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e)).indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},3610:(e,t,r)=>{"use strict";let i=r(6600);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` +`)}).then(t=>e.socket.sni=l(t)).catch(e=>e&&c.error(e)),pipe:e=>{if("blank"===e.decision)return Promise.reject(e.error=e.decision);let{head:t,socket:r,proxySocket:i}=e;i.on("error",()=>d.abort(e.proxySocket,"proxySocket")),i.write(t),r.pipe(i),i.pipe(r)},close:e=>{d.abort(e.socket,"tunnel")}}},g=process.env.SIGN_CERT||s.join(__dirname,"..","server.crt"),y=process.env.SIGN_KEY||s.join(__dirname,"..","server.key"),m={key:i.readFileSync(y),cert:i.readFileSync(g)},b={http:r(8611).createServer().on("request",d.core.mitm).on("connect",d.core.tunnel),https:r(5692).createServer(m).on("request",d.core.mitm).on("connect",d.core.tunnel)};b.whitelist=[],b.blacklist=["://127\\.\\d+\\.\\d+\\.\\d+","://localhost"],b.authentication=null,e.exports=b},2428:e=>{"use strict";e.exports=e=>{let t=e.length,r=43,i=(e=r)=>isNaN(e);if(r+1>t||i()||(r+=1+e[r],r+2>t||i())||(r+=2+e.readInt16BE(r),r+1>t||i())||(r+=1+e[r],r+2>t||i()))return null;let o=e.readInt16BE(r);r+=2;let s=r+o;if(s>t||i(s))return null;for(t=s;r+4<=t||i();){let o=e.readInt16BE(r),s=e.readInt16BE(r+2);if(r+=4,0!==o){r+=s;continue}if(r+2>t||i())break;let a=e.readInt16BE(r);if(r+=2,r+a>t)break;for(;r+3<=t||i();){let o=e[r],s=e.readInt16BE(r+1);if(r+=3,0!==o){r+=s;continue}if(r+s>t||i())return null;return e.toString("ascii",r,r+s)}}return null}},5319:(e,t,r)=>{"use strict";let i=r(5317),{logScope:o}=r(6166),s=r(1828),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},1084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9926),r(7555),r(7225);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("; ")}},7048:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},5402:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==y(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},k=function(){return d(e)},j={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return k()},WW:function(){return h(k())},N:function(){return g(e)}};return t.replace(a,function(e){return e in j?j[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(9491),o=r(5486),s=r(3081),a=r(3049),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(p,i.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},p.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=p},5486:(e,t,r)=>{var i=r(5645),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||p()},p=function(){l=!1,c||r.call(e)},d=function(){c=!1,l||r.call(e)},g=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",p)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",p),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",g),e.on("end",d),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",m),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("exit",g),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",m)}};e.exports=s},4408:(e,t,r)=>{"use strict";let i=r(7054),o=r(2023),s=r(3610),a=r(5014),{groupRedact:u,nestedRedact:c}=r(5158),l=r(4613),f=r(6600),h=i(),p=e=>e;function d(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",d="function"==typeof f,g=d&&f.length>1;if(0===t.length)return r||p;h({paths:t,serialize:r,censor:f});let{wildcards:y,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m});return s({secret:b,wcLen:m,serialize:r,strict:!("strict"in e)||e.strict,isCensorFct:d,censorFctTakesPath:g},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:y,wcLen:m}))}p.restore=p,d.rx=f,d.validator=i,e.exports=d},5158:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(6600);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0],c=(a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e)).indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},3610:(e,t,r)=>{"use strict";let i=r(6600);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` if (typeof o !== 'object' || o == null) { ${!0===o?"throw Error('fast-redact: primitives cannot be redacted')":!1===t?"return o":"return this.serialize(o)"} } @@ -72,10 +72,10 @@ ${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEac ${i} ${e} return o - `}(s,r,a)).bind(u)}}},6600:e=>{"use strict";e.exports=/[^.[\]]+|\[((?:.)*?)\]/g},4613:e=>{"use strict";e.exports=function(e){let{secret:t,censor:r,compileRestore:i,serialize:o,groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}=e,l=[{secret:t,censor:r,compileRestore:i}];return!1!==o&&l.push({serialize:o}),c>0&&l.push({groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}),Object.assign(...l)}},7054:(e,t,r)=>{"use strict";let{createContext:i,runInContext:o}=r(9154);e.exports=function(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=e=>`fast-redact – Invalid path (${e})`}=e;return function({paths:e}){e.forEach(e=>{if("string"!=typeof e)throw Error(t());try{if(/〇/.test(e))throw Error();let t=new Proxy({},{get:()=>t,set:()=>{throw Error()}}),r=("["===e[0]?"":".")+e.replace(/^\*/,"〇").replace(/\.\*/g,".〇").replace(/\[\*\]/g,"[〇]");if(/\n|\r|;/.test(r)||/\/\*/.test(r))throw Error();o(` + `}(s,r,a)).bind(u)}}},6600:e=>{"use strict";e.exports=/[^.[\]]+|\[((?:.)*?)\]/g},4613:e=>{"use strict";e.exports=function(e){let{secret:t,censor:r,compileRestore:i,serialize:o,groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}=e,l=[{secret:t,censor:r,compileRestore:i}];return!1!==o&&l.push({serialize:o}),c>0&&l.push({groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}),Object.assign(...l)}},7054:(e,t,r)=>{"use strict";let{createContext:i,runInContext:o}=r(6773);e.exports=function(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=e=>`fast-redact – Invalid path (${e})`}=e;return function({paths:e}){e.forEach(e=>{if("string"!=typeof e)throw Error(t());try{if(/〇/.test(e))throw Error();let t=new Proxy({},{get:()=>t,set:()=>{throw Error()}}),r=("["===e[0]?"":".")+e.replace(/^\*/,"〇").replace(/\.\*/g,".〇").replace(/\[\*\]/g,"[〇]");if(/\n|\r|;/.test(r)||/\/\*/.test(r))throw Error();o(` (function () { 'use strict' o${r} if ([o${r}].length !== 1) throw Error() })() - `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},8183:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var p,d=function e(o,s,a,l,f,h,p){if(h+=1,"object"==typeof o&&null!==o){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(d=0;d0)for(var i=0;i{"use strict";e.exports=function(e){return e}},3081:(e,t,r)=>{try{var i=r(9023);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3522)}},3522:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5463:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5645:(e,t,r)=>{var i=r(4037);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},3710:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(202),s=r(2896);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},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")},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(37),{noop:f,genLog:h}=r(711),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:y,genLsCache:function(e){let t=e[c].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],u=this[a],c=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,u)?h(r[e],c):d[e](c)}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:p,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:p,t)))throw Error(`default level:${e} must be included in custom levels`)}}},6011:(e,t,r)=>{"use strict";let{version:i}=r(9571);e.exports={version:i}},5262:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(4434),o=r(361),s=r(1517),a=r(617),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:k,formatOptsSym:j,stringifiersSym:T}=r(37),{getLevel:R,setLevel:P,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(2129),{asChindings:I,asJson:D,buildFormatters:B,stringify:$}=r(711),{version:q}=r(6011),U=r(2205),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},2205:(e,t,r)=>{"use strict";let i=r(4408),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{rx:a,validator:u}=i,c=u({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:u}=function(e){if(Array.isArray(e))return c(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),c({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:u}=i,c=`${t.substr(u,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(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},p=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>p(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},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"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=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"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:k,hooksSym:j,mixinMergeStrategySym:x}},6751:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),u=r(8183),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:p,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,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),d=i[p],g=Object.keys(d);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=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+u},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,u=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===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](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:u,prettifier:c,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})),u&&(i=k(Object.assign({messageKey:l},u),c,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 u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),u=r(5262),c=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(2129),{createArgsNormalizer:p,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:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:I,formattersSym:D,hooksSym:B}=c,{epochTime:$,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:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=p(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:p,serializers:g,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:H,customLevels:K,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=V):(Q||X)&&!Y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,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"),ei.level=(r=Q||X,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=c?s(c,y):{},es=c?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:g,[R]:eo,[T]:y,[D]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!K)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,K,et),Object.assign(i,{levels:f(K,et),[I]:et,[j]:a,[O]:ec,[k]:el,[T]:y,[R]:eo,[M]:"}"+(p?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:g,[C]:Z,[_]:ee,[S]:eu,[D]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[P](H),i}function V(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=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},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))}}}},9950:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6565:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},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:{}})},9271:(e,t,r)=>{"use strict";let{format:i}=r(9023);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){let u;return u=e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s,{code:o,name:r,message:u}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},6586:(e,t,r)=>{var i=r(5645),o=r(5486),s=r(9896),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},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 u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=d+2,d++;break}l+=o(r[f]),h=d+2,d++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u;let c,l;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(c="must not be",t=t.replace(/^not /,"")):c="must be",s=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-s.length,a)===s)l=`The ${e} ${c} ${i(t,"type")}`;else{let r=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";l=`The "${e}" ${r} ${c} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5535:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(605),s=r(3581);r(3081)(l,o);for(var a=i(s.prototype),u=0;u{"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)}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,h=global.Uint8Array||function(){},p=r(9023);o=p&&p.debuglog?p.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,u,c,l,p,d=e._readableState;if(null===t)d.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,d);else{if(s||(a=d,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),p=c),p)S(e,p);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)d.endEmitted?S(e,new _):j(e,d,t,!0);else if(d.ended)S(e,new v);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?j(e,d,t,!1):M(e,d)):j(e,d,t,!1)}}else i||(d.reading=!1,M(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return 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(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,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 B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(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=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?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&&B(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=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,I(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),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",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.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;s0,!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(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(C,this,e))),e.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){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{"use strict";e.exports=f;var i=r(8396).F,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5535);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(2664)},u=r(5251),c=r(181).Buffer,l=global.Uint8Array||function(){},f=r(849),h=r(6906).getHighWaterMark,p=r(8396).F,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(5535),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(M,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),M(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(j,e,r,s,o):j(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(5535));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function k(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function j(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,k(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(k(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3081)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,p=this._writableState,g=!1,y=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return y&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=x),p.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(y||(u=e,f=r,null===u?h=new v:"string"==typeof u||p.objectMode||(h=new d("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(p.pendingcb++,g=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,M(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(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"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=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[p]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):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]){t(d(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[p].read();if(null!==s)return Promise.resolve(d(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},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(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),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 eo.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{"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,u=this._writableState&&this._writableState.destroyed;return a||u?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)}}},9919:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).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,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(8396).F,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0,l=u=function(e){t||(t=e),e&&d.forEach(c),m||(d.forEach(c),p(t))},h=!1,u=function(){h||(h=!0,l.apply(void 0,arguments))},g=!1,e.on("close",function(){g=!0}),void 0===i&&(i=r(9919)),i(e,{readable:m,writable:s},function(e){if(e)return u(e);g=!0,u()}),y=!1,function(t){if(!g&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();u(t||new a("pipe"))}}});return f.reduce(l)}},6906:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},5251:(e,t,r)=>{e.exports=r(2203)},9491:(e,t,r)=>{var i=r(2203);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(605)).Stream=i||t,t.Readable=t,t.Writable=r(3581),t.Duplex=r(5535),t.Transform=r(9585),t.PassThrough=r(419),t.finished=r(9919),t.pipeline=r(5629))},9460:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */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)}},4045:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,u=r(7048);function c(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&&h(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)c(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{u(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)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}else{i.write(this.fd,this._writingBuf,"utf8",this.release);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?h(this):this._ending?r>0?h(this):(this._writing=!1,p(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 h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):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 p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}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&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(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;u(100)}},l.prototype.destroy=function(){this.destroyed||p(this)},e.exports=l},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function u(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;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(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=u,r.flush=c,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}},3049:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7549:(e,t,r)=>{"use strict";var i=r(1144).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},2664:(e,t,r)=>{e.exports=r(9023).deprecate},4037:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},6897:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},9154:e=>{"use strict";e.exports=require("vm")},8167:e=>{"use strict";e.exports=require("worker_threads")},3106:e=>{"use strict";e.exports=require("zlib")},6666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(2018));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||c||l||f),p=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:p(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+p(e,t,i,o)+i,g=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>g(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:k,strikethrough:j,black:T,red:R,green:P,yellow:M,blue:A,magenta:L,cyan:N,white:C,gray:I,bgBlack:D,bgRed:B,bgGreen:$,bgYellow:q,bgBlue:U,bgMagenta:F,bgCyan:W,bgWhite:G,blackBright:z,redBright:H,greenBright:J,yellowBright:V,blueBright:K,magentaBright:Y,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=D,t.bgBlackBright=Z,t.bgBlue=U,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=$,t.bgGreenBright=et,t.bgMagenta=F,t.bgMagentaBright=ei,t.bgRed=B,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=q,t.bgYellowBright=er,t.black=T,t.blackBright=z,t.blue=A,t.blueBright=K,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=I,t.green=P,t.greenBright=J,t.hidden=k,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=Y,t.red=R,t.redBright=H,t.reset=w,t.strikethrough=j,t.underline=E,t.white=C,t.whiteBright=X,t.yellow=M,t.yellowBright=V},9640:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(6666),o=r(6586),{Transform:s}=r(9491),a=r(3710),u=r(4045),c=r(5550),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(4249),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(2349),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function k(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),k="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,j=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=(k?t.customLevels:void 0!==T[i])?T[i]:d[i];return e.push([void 0!==s?s:i,o]),e},[]):void 0,P={customLevels:j,customLevelNames:T};k&&!t.customLevels&&(P.customLevels=void 0,P.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=c(t.colorize,R,k);return function(e){let c;if(g(e))c=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;c=t.value}if(u){let e=((k?t.customLevels:void 0!==T[u])?T[u]:d[u])||Number(u);if(c[void 0===s?p:s]0?`${D} ${j}`:j),R&&(D=D.length>0?`${D} ${R}:`:R),!1===D.endsWith(":")&&""!==D&&(D+=":"),O&&(D=D.length>0?`${D} ${O}`:O),D.length>0&&!N&&(D+=r),"Error"===c.type&&c.stack){let e=y({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(D+=r),D+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(D+=" "),D+=t}return D}}function j(e={}){let t=k(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){i(null,t(e))}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=j,e.exports.prettyFactory=k,e.exports.colorizerFactory=c,e.exports.default=j},5550:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(4249),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(6666),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:p,green:d,blue:g,gray:y,cyan:m}=c,b={default:l,60:f,50:h,40:p,30:d,20:g,10:y,message:m,greyMessage:y};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:y}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},4249:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:u}=r(8167),c=r(5550)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,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="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=E({keyName:e,lines:s,eol:r,ident:t}))}),d}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function j(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=S({input:e.stack,ident:r,eol:i}),u=`${r}${a}${i}`;if(s.length>0){let a;let c=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===c.includes(e)):s.filter(e=>!1===c.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=j,t.end=j,t.flushSync=j,t.destroy=j;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(5463);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{k(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:k,splitIgnoreKey:O,createDate:v,isValidDate:w}},2985:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(9023).inherits,a=r(6928),u=r(7048);function c(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}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&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(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._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(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 h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(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._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||p(this)},l.SonicBoom=l,l.default=l,e.exports=l},6271:(e,t,r)=>{"use strict";var i=r(2682),o=r(2656),s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not a function")}},9993:(e,t,r)=>{"use strict";var i=r(6023).has;e.exports=function(e){return i(e),e}},6155:(e,t,r)=>{"use strict";var i=r(4818),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},5647:(e,t,r)=>{"use strict";var i=r(5961).has;e.exports=function(e){return i(e),e}},7836:(e,t,r)=>{"use strict";var i=r(1512),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},6912:(e,t,r)=>{"use strict";var i=r(3293),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not an object")}},4900:(e,t,r)=>{"use strict";var i=r(7902),o=r(273),s=r(1327),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c);if(0===l)return!e&&-1;var f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6570:(e,t,r)=>{"use strict";var i=r(4647),o=r(1105),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4189:(e,t,r)=>{"use strict";var i=r(9274),o=r(9278),s=r(7655);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},920:(e,t,r)=>{"use strict";var i=r(9274),o=r(9028),s=r(6912),a=r(5579),u=r(7050),c=r(3602),l=r(3608),f=r(8196),h=r(9278),p=r(7655),d=r(8963),g=r(4942),y=r(4938),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return c(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{y(c.inner.iterator,"normal")}catch(e){return y(l,"throw",e)}return p(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},9102:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(3293),u=r(696),c=r(9278),l=r(8692),f=r(4189),h=function(e){var t=0===e,r=1===e,h=2===e,p=3===e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(y)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{g[_++]=i,l()}catch(e){c(e)}else i?f(v,e,p||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else g[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},6775:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(3293),u=r(8692),c=r(920),l=r(4942),f=r(4189),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,p):f(c)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},8963:(e,t,r)=>{"use strict";var i,o,s=r(946),a=r(208),u=r(2682),c=r(5579),l=r(3380),f=r(9287),h=r(3608),p=r(6e3),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=c(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},7522:(e,t,r)=>{"use strict";var i=r(6912),o=r(4938);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},1001:(e,t,r)=>{"use strict";var i=r(3608)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},3759:(e,t,r)=>{"use strict";var i=r(3587),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},1628:(e,t,r)=>{"use strict";var i=r(1727),o=r(2682),s=r(3759),a=r(3608)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},475:(e,t,r)=>{"use strict";var i=r(172),o=r(9010),s=r(3222),a=r(2300);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(8668);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},4942:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},7050:(e,t,r)=>{"use strict";var i=r(4647),o=r(2300),s=r(5081);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},5081:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7207:(e,t,r)=>{"use strict";var i=r(4647),o=r(2300),s=r(5081);e.exports=function(e,t,r){i?o.f(e,t,s(0,r)):e[t]=r}},6435:(e,t,r)=>{"use strict";var i=r(9848),o=r(2300);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},9287:(e,t,r)=>{"use strict";var i=r(2682),o=r(2300),s=r(9848),a=r(5748);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},3602:(e,t,r)=>{"use strict";var i=r(9287);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},5748:(e,t,r)=>{"use strict";var i=r(946),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}},4647:(e,t,r)=>{"use strict";var i=r(8668);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},1552:(e,t,r)=>{"use strict";var i=r(946),o=r(3293),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},696:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},413:(e,t,r)=>{"use strict";var i=r(6969),o=r(4485);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},6969:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},4485:(e,t,r)=>{"use strict";var i=r(946),o=r(3759);e.exports="process"===o(i.process)},4115:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1699:(e,t,r)=>{"use strict";var i,o,s=r(946),a=r(4115),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},9768:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2050:(e,t,r)=>{"use strict";var i=r(3587),o=Error,s=i("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},1148:(e,t,r)=>{"use strict";var i=r(7050),o=r(2050),s=r(8672),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},8672:(e,t,r)=>{"use strict";var i=r(8668),o=r(5081);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},5411:(e,t,r)=>{"use strict";var i=r(946),o=r(3222).f,s=r(7050),a=r(9287),u=r(5748),c=r(475),l=r(9943);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):i[g]&&i[g].prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!l(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},8668:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},72:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},7927:(e,t,r)=>{"use strict";var i=r(2409),o=r(6271),s=r(8145),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},8145:(e,t,r)=>{"use strict";var i=r(8668);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9274:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},561:(e,t,r)=>{"use strict";var i=r(4647),o=r(172),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},2927:(e,t,r)=>{"use strict";var i=r(3587),o=r(6271);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2409:(e,t,r)=>{"use strict";var i=r(3759),o=r(3587);e.exports=function(e){if("Function"===i(e))return o(e)}},3587:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},9278:(e,t,r)=>{"use strict";var i=r(946),o=r(2682);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},8692:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1832:(e,t,r)=>{"use strict";var i=r(1628),o=r(7655),s=r(448),a=r(9262),u=r(3608)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},5708:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(2656),u=r(1832),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw new c(a(e)+" is not iterable")}},7655:(e,t,r)=>{"use strict";var i=r(6271),o=r(448);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},2428:(e,t,r)=>{"use strict";var i=r(6271),o=r(6912),s=r(9274),a=r(7754),u=r(8692),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,p=function(e,t){this.set=e,this.size=h(t,0),this.has=i(e.has),this.keys=i(e.keys)};p.prototype={getIterator:function(){return u(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(c);var r=a(t);if(r<0)throw new l(c);return new p(e,r)}},946: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")()},172:(e,t,r)=>{"use strict";var i=r(3587),o=r(9186),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},6290:e=>{"use strict";e.exports={}},7024:(e,t,r)=>{"use strict";var i=r(9278);e.exports=i("document","documentElement")},8496:(e,t,r)=>{"use strict";var i=r(4647),o=r(8668),s=r(1552);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},7938:(e,t,r)=>{"use strict";var i=r(3587),o=r(8668),s=r(3759),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},7220:(e,t,r)=>{"use strict";var i=r(2682),o=r(3293),s=r(2952);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},1383:(e,t,r)=>{"use strict";var i=r(3587),o=r(2682),s=r(208),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},3963:(e,t,r)=>{"use strict";var i=r(3293),o=r(7050);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},8196:(e,t,r)=>{"use strict";var i,o,s,a=r(5047),u=r(946),c=r(3293),l=r(7050),f=r(172),h=r(208),p=r(4874),d=r(6290),g="Object already initialized",y=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new y(g);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=p("state");d[v]=!0,i=function(e,t){if(f(e,v))throw new y(g);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return r}}}},3140:(e,t,r)=>{"use strict";var i=r(3608),o=r(9262),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},1105:(e,t,r)=>{"use strict";var i=r(3759);e.exports=Array.isArray||function(e){return"Array"===i(e)}},2682:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},9943:(e,t,r)=>{"use strict";var i=r(8668),o=r(2682),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8464:(e,t,r)=>{"use strict";var i=r(1628),o=r(172),s=r(448),a=r(3608),u=r(9262),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},448:e=>{"use strict";e.exports=function(e){return null==e}},3293:(e,t,r)=>{"use strict";var i=r(2682);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},4818:(e,t,r)=>{"use strict";var i=r(3293);e.exports=function(e){return i(e)||null===e}},6e3:e=>{"use strict";e.exports=!1},2026:(e,t,r)=>{"use strict";var i=r(9278),o=r(2682),s=r(1512),a=r(6759),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},3662:(e,t,r)=>{"use strict";var i=r(9274);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},3159:(e,t,r)=>{"use strict";var i=r(7927),o=r(9274),s=r(6912),a=r(2656),u=r(3140),c=r(1327),l=r(1512),f=r(5708),h=r(1832),p=r(4938),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),k=!!(r&&r.IS_RECORD),j=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),P=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?R(e[0],e[1],P):R(e[0],e[1])):T?R(e,P):R(e)};if(k)m=e.iterator;else if(j)m=e;else{if(!(b=h(e)))throw new d(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=M(e[v]))&&l(y,_))return _;return new g(!1)}m=f(e,b)}for(S=k?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&l(y,_))return _}return new g(!1)}},4938:(e,t,r)=>{"use strict";var i=r(9274),o=r(6912),s=r(7655);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},2385:(e,t,r)=>{"use strict";var i=r(9274),o=r(5579),s=r(7050),a=r(3602),u=r(3608),c=r(8196),l=r(7655),f=r(3100).IteratorPrototype,h=r(4942),p=r(4938),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},5680:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(8692),u=r(2385),c=r(7522),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},3100:(e,t,r)=>{"use strict";var i,o,s,a=r(8668),u=r(2682),c=r(3293),l=r(5579),f=r(3380),h=r(9287),p=r(3608),d=r(6e3),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!c(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=l(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},9262:e=>{"use strict";e.exports={}},1327:(e,t,r)=>{"use strict";var i=r(8593);e.exports=function(e){return i(e.length)}},9848:(e,t,r)=>{"use strict";var i=r(3587),o=r(8668),s=r(2682),a=r(172),u=r(4647),c=r(561).CONFIGURABLE,l=r(1383),f=r(8196),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!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")||c&&e.name!==t)&&(u?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?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||l(this)},"toString")},6023:(e,t,r)=>{"use strict";var i=r(3587),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},92:(e,t,r)=>{"use strict";var i=r(3587),o=r(3662),s=r(6023),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},5720:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},7422:(e,t,r)=>{"use strict";var i=r(6271),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)}},3824:(e,t,r)=>{"use strict";var i=r(9824);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},5579:(e,t,r)=>{"use strict";var i,o=r(6912),s=r(9900),a=r(9768),u=r(6290),c=r(7024),l=r(1552),f=r(4874),h="prototype",p="script",d=f("IE_PROTO"),g=function(){},y=function(e){return"<"+p+">"+e+""},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+p+":"),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[h]=o(e),r=new g,g[h]=null,r[d]=e):r=v(),void 0===t?r:s.f(r,t)}},9900:(e,t,r)=>{"use strict";var i=r(4647),o=r(7173),s=r(2300),a=r(6912),u=r(7902),c=r(4107);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},2300:(e,t,r)=>{"use strict";var i=r(4647),o=r(8496),s=r(7173),a=r(6912),u=r(2230),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3222:(e,t,r)=>{"use strict";var i=r(4647),o=r(9274),s=r(7310),a=r(5081),u=r(7902),c=r(2230),l=r(172),f=r(8496),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},4779:(e,t,r)=>{"use strict";var i=r(2517),o=r(9768).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},5730:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3380:(e,t,r)=>{"use strict";var i=r(172),o=r(2682),s=r(9186),a=r(4874),u=r(9238),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},1512:(e,t,r)=>{"use strict";var i=r(3587);e.exports=i({}.isPrototypeOf)},2517:(e,t,r)=>{"use strict";var i=r(3587),o=r(172),s=r(7902),a=r(4900).indexOf,u=r(6290),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},4107:(e,t,r)=>{"use strict";var i=r(2517),o=r(9768);e.exports=Object.keys||function(e){return i(e,o)}},7310:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},2952:(e,t,r)=>{"use strict";var i=r(2927),o=r(3293),s=r(3007),a=r(6155);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return s(r),a(i),o(r)&&(t?e(r,i):r.__proto__=i),r}}():void 0)},693:(e,t,r)=>{"use strict";var i=r(9274),o=r(2682),s=r(3293),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw new a("Can't convert object to primitive value")}},9010:(e,t,r)=>{"use strict";var i=r(9278),o=r(3587),s=r(4779),a=r(5730),u=r(6912),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},1371:(e,t,r)=>{"use strict";var i=r(3587),o=r(172),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},671:(e,t,r)=>{"use strict";var i=r(946),o=r(39),s=r(2682),a=r(9943),u=r(1383),c=r(3608),l=r(413),f=r(6969),h=r(6e3),p=r(1699),d=o&&o.prototype,g=c("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.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={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(l||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},39:(e,t,r)=>{"use strict";var i=r(946);e.exports=i.Promise},1362:(e,t,r)=>{"use strict";var i=r(39),o=r(1001),s=r(671).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},9341:(e,t,r)=>{"use strict";var i=r(2300).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},2182:(e,t,r)=>{"use strict";var i=r(6912);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3007:(e,t,r)=>{"use strict";var i=r(448),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},6534:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7073:(e,t,r)=>{"use strict";var i=r(5961),o=r(162),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},9009:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(7073),a=r(8943),u=r(2428),c=r(162),l=r(3662),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},5961:(e,t,r)=>{"use strict";var i=r(3587),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},4499:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(8943),a=r(2428),u=r(162),c=r(3662),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},8900:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).has,s=r(8943),a=r(2428),u=r(162),c=r(3662),l=r(4938);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},8531:(e,t,r)=>{"use strict";var i=r(5647),o=r(8943),s=r(162),a=r(2428);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},2610:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).has,s=r(8943),a=r(2428),u=r(3662),c=r(4938);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(3587),o=r(3662),s=r(5961),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},2117:(e,t,r)=>{"use strict";var i=r(9278),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},8943:(e,t,r)=>{"use strict";var i=r(2927),o=r(5961);e.exports=i(o.proto,"size","get")||function(e){return e.size}},7747:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(7073),a=r(2428),u=r(3662),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},9767:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).add,s=r(7073),a=r(2428),u=r(3662);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},4874:(e,t,r)=>{"use strict";var i=r(9720),o=r(5075),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},208:(e,t,r)=>{"use strict";var i=r(6e3),o=r(946),s=r(5748),a="__core-js_shared__",u=e.exports=o[a]||s(a,{});(u.versions||(u.versions=[])).push({version:"3.37.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},9720:(e,t,r)=>{"use strict";var i=r(208);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},614:(e,t,r)=>{"use strict";var i=r(1699),o=r(8668),s=r(946).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},273:(e,t,r)=>{"use strict";var i=r(7754),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},7902:(e,t,r)=>{"use strict";var i=r(7938),o=r(3007);e.exports=function(e){return i(o(e))}},7754:(e,t,r)=>{"use strict";var i=r(5720);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},8593:(e,t,r)=>{"use strict";var i=r(7754),o=Math.min;e.exports=function(e){var t=i(e);return t>0?o(t,9007199254740991):0}},9186:(e,t,r)=>{"use strict";var i=r(3007),o=Object;e.exports=function(e){return o(i(e))}},2988:(e,t,r)=>{"use strict";var i=r(9274),o=r(3293),s=r(2026),a=r(7655),u=r(693),c=r(3608),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},2230:(e,t,r)=>{"use strict";var i=r(2988),o=r(2026);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},5433:(e,t,r)=>{"use strict";var i=r(9278),o=r(2682),s=r(8464),a=r(3293),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},1727:(e,t,r)=>{"use strict";var i=r(3608)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},9824:(e,t,r)=>{"use strict";var i=r(1628),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},2656:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5075:(e,t,r)=>{"use strict";var i=r(3587),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},6759:(e,t,r)=>{"use strict";var i=r(614);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7173:(e,t,r)=>{"use strict";var i=r(4647),o=r(8668);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},5047:(e,t,r)=>{"use strict";var i=r(946),o=r(2682),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},3608:(e,t,r)=>{"use strict";var i=r(946),o=r(9720),s=r(172),a=r(5075),u=r(614),c=r(6759),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},8846:(e,t,r)=>{"use strict";var i=r(9278),o=r(172),s=r(7050),a=r(1512),u=r(2952),c=r(475),l=r(9341),f=r(7220),h=r(3824),p=r(3963),d=r(1148),g=r(4647),y=r(6e3);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):g&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},9792:(e,t,r)=>{"use strict";var i=r(5411),o=r(1512),s=r(3380),a=r(2952),u=r(475),c=r(5579),l=r(7050),f=r(5081),h=r(3963),p=r(1148),d=r(3159),g=r(3824),y=r(3608)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(new m,i?s(this):w):l(r=i?this:c(w),y,"Error"),void 0!==t&&l(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),l(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=c(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},8790:(e,t,r)=>{"use strict";r(9792)},7777:(e,t,r)=>{"use strict";var i=r(5411),o=r(9186),s=r(1327),a=r(6570),u=r(696);i({target:"Array",proto:!0,arity:1,forced:r(8668)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(5411),o=r(946),s=r(72),a=r(8846),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},4525:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(7422),u=r(9028),c=r(3159);i({target:"Promise",stat:!0,forced:r(1362)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,l=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,l=1;c(e,function(e){var s=u++,c=!1;l++,o(r,t,e).then(function(e){!c&&(c=!0,a[s]={status:"fulfilled",value:e},--l||i(a))},function(e){!c&&(c=!0,a[s]={status:"rejected",reason:e},--l||i(a))})}),--l||i(a)});return f.error&&l(f.value),r.promise}})},5407:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(9278),u=r(7422),c=r(9028),l=r(3159),f=r(1362),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=c(function(){var i=s(t.resolve),a=[],u=0,c=1,d=!1;l(e,function(e){var s=u++,l=!1;c++,o(i,t,e).then(function(e){l||d||(d=!0,f(e))},function(e){!l&&!d&&(l=!0,a[s]=e,--c||p(new r(a,h)))})}),--c||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},5244:(e,t,r)=>{"use strict";var i=r(946),o=r(4647),s=r(6435),a=r(2182),u=r(8668),c=i.RegExp,l=c.prototype;o&&u(function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==i||r!==i})&&s(l,"flags",{configurable:!0,get:a})},2711:(e,t,r)=>{"use strict";var i=r(5411),o=r(9009);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("difference")},{difference:o})},3857:(e,t,r)=>{"use strict";var i=r(5411),o=r(8668),s=r(4499);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("intersection")||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:s})},4044:(e,t,r)=>{"use strict";var i=r(5411),o=r(8900);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isDisjointFrom")},{isDisjointFrom:o})},1905:(e,t,r)=>{"use strict";var i=r(5411),o=r(8531);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isSubsetOf")},{isSubsetOf:o})},1370:(e,t,r)=>{"use strict";var i=r(5411),o=r(2610);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isSupersetOf")},{isSupersetOf:o})},4481:(e,t,r)=>{"use strict";var i=r(5411),o=r(7747);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("symmetricDifference")},{symmetricDifference:o})},5901:(e,t,r)=>{"use strict";var i=r(5411),o=r(9767);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("union")},{union:o})},2520:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(6912),u=r(3293),c=r(8692),l=r(920),f=r(4942),h=r(4189),p=r(6e3),d=l(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,c){var l=function(e){t.done=!0,c(e)},p=function(e){h(r,l,e,l)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var c=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(c)?e.resolve(c).then(h,p):h(c)}catch(e){p(e)}}}catch(e){l(e)}},l)}catch(e){l(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0,forced:p},{filter:function(e){return a(this),s(e),new d(c(this),{predicate:e})}})},9105:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},7021:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},9614:(e,t,r)=>{"use strict";var i=r(5411),o=r(6775);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(6e3)},{map:o})},8920:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(6912),u=r(3293),c=r(9278),l=r(8692),f=r(4189),h=c("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,d=c?void 0:arguments[1],g=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(new p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(c)c=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},8142:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},5907:(e,t,r)=>{"use strict";var i=r(5411),o=r(946),s=r(7836),a=r(6912),u=r(2682),c=r(3380),l=r(6435),f=r(7207),h=r(8668),p=r(172),d=r(3608),g=r(3100).IteratorPrototype,y=r(4647),m=r(6e3),b="constructor",v="Iterator",w=d("toStringTag"),_=TypeError,S=o[v],x=m||!u(S)||S.prototype!==g||!h(function(){S({})}),E=function(){if(s(this,g),c(this)===g)throw new _("Abstract class Iterator not directly constructable")},O=function(e,t){y?l(g,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===g)throw new _("You can't redefine this property");p(this,e)?this[e]=t:f(this,e,t)}}):g[e]=t};p(g,w)||O(w,v),(x||!p(g,b)||g[b]===Object)&&O(b,E),E.prototype=g,i({global:!0,constructor:!0,forced:x},{Iterator:E})},9541:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(6912),u=r(8692),c=r(2385),l=r(7522),f=r(6e3),h=c(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(l(r,i,[t=e.value,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){return a(this),s(e),new h(u(this),{predicate:e})}})},8584:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},9024:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},7921:(e,t,r)=>{"use strict";var i=r(5411),o=r(5680);i({target:"Iterator",proto:!0,real:!0,forced:r(6e3)},{map:o})},7113:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw new c("Reduce of empty iterator with no initial value");return i}})},3679:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8484:(e,t,r)=>{"use strict";var i=r(5411),o=r(4647),s=r(946),a=r(9278),u=r(3587),c=r(9274),l=r(2682),f=r(3293),h=r(1105),p=r(172),d=r(9824),g=r(1327),y=r(7207),m=r(8668),b=r(1371),v=r(614),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=u("".charAt),j=u("".slice),T=u(/./.exec),R=u([].push),P=/^\d$/,M=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){var r=new B(e=d(e),0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(5411),o=r(9993),s=r(6023).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5411),o=r(9993),s=r(6023),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},5772:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);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)}})},6233:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},822:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},6724:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},7821:(e,t,r)=>{"use strict";var i=r(5411),o=r(6534),s=r(9993),a=r(92);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)}})},8280:(e,t,r)=>{"use strict";var i=r(5411),o=r(9993),s=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4334:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=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 c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},8536:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=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 c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},5287:(e,t,r)=>{"use strict";var i=r(5411),o=r(9993),s=r(3159),a=r(6023).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{"use strict";var i=r(5411),o=r(6271),s=r(9993),a=r(92),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw new u("Reduce of empty map with no initial value");return i}})},6539:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9630:(e,t,r)=>{"use strict";var i=r(5411),o=r(6271),s=r(9993),a=r(6023),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw new u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},6584:(e,t,r)=>{"use strict";var i=r(5411),o=r(5647),s=r(5961).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(5411),o=r(5647),s=r(5961).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(9009);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9758:(e,t,r)=>{"use strict";r(2711)},4910:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",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){if(!r(e,e,t))return!1},!0)}})},7847:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(5961),u=r(162),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},5386:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},2752:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(4499);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},3e3:(e,t,r)=>{"use strict";r(3857)},9179:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(8900);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},321:(e,t,r)=>{"use strict";r(4044)},1136:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(8531);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},4488:(e,t,r)=>{"use strict";r(1905)},2729:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(2610);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},7831:(e,t,r)=>{"use strict";r(1370)},3437:(e,t,r)=>{"use strict";var i=r(5411),o=r(3587),s=r(5647),a=r(162),u=r(9824),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},5751:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(5961),u=r(162),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},139:(e,t,r)=>{"use strict";var i=r(5411),o=r(6271),s=r(5647),a=r(162),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw new u("Reduce of empty set with no initial value");return i}})},3025:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},8620:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(7747);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},1276:(e,t,r)=>{"use strict";r(4481)},6465:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(9767);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},2486:(e,t,r)=>{"use strict";r(5901)},9571:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.6-patch.1","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node18-linux-arm64","node18-win-arm64","node18-linux-x64","node18-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.5.6","@types/node":"^20.12.12","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.1.2","browserslist":"^4.23.0","core-js":"^3.37.0","cross-env":"^7.0.3","jest":"^29.7.0","pkg":"^5.8.1","prettier":"^3.2.5","swc-loader":"^0.2.6","terser-webpack-plugin":"^5.3.10","typescript":"^5.4.5","webpack":"^5.91.0","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.9","minimatch":"^3.0.8","minimist":"^1.2.8","semver":"^7.5.4"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.8.1"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(9614),r(7921),r(8142),r(3679),r(5907),r(8920),r(7113),r(7777),r(7021),r(9024);let e=r(8330),t=r(3946).program({name:e.name.replace(/@.+\//,""),version:e.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);if(global.address=t.address,t.port=(t.port||"8080:8081").split(":").map(e=>parseInt(e)),t.port.some(e=>isNaN(e)||e<1||e>65535)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),t.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(t.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),t.endpoint?"-"===t.endpoint?t.endpoint="":/http(s?):\/\/.+/.test(t.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):t.endpoint="https://music.163.com",t.forceHost&&0===r(6897).isIP(t.forceHost)&&(console.log("Please check the server host."),process.exit(1)),t.matchOrder){let e=Object.keys(r(6406).PROVIDERS),i=t.matchOrder;i.some((e,t)=>t!=i.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):i.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=i}t.token&&!/\S+:\S+/.test(t.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:i}=r(6166),o=r(7016).parse,s=r(6117),a=r(8885),{CacheStorageGroup:u}=r(6718),c=i("app"),l=Array.from(s.target.host);global.port=t.port,global.proxy=t.proxyUrl?o(t.proxyUrl):null,global.hosts=l.reduce((e,r)=>Object.assign(e,{[r]:t.forceHost}),{}),a.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=t.cnrelay,t.strict&&a.blacklist.push(".*"),a.authentication=t.token||null,global.endpoint=t.endpoint,t.endpoint&&a.whitelist.push(escape(t.endpoint));let f="true"===process.env.ENABLE_HTTPDNS?[e=>r(2965)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),e=>r(2965)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[]))]:[],h=u.getInstance();setInterval(()=>{h.cleanup()},9e5),Promise.all(f.map(e=>e(l.join(","))).concat(l.map(e=>new Promise((t,i)=>r(2250).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address))))))).then(e=>{let{host:t}=s.target;e.forEach(e=>e.forEach(t.add,t)),a.whitelist=a.whitelist.concat(Array.from(t).map(escape));let r=e=>c.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&a.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&a.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&c.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file + `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},8183:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var p,d=function e(o,s,a,l,f,h,p){if(h+=1,"object"==typeof o&&null!==o){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(d=0;d0)for(var i=0;i{"use strict";e.exports=function(e){return e}},3081:(e,t,r)=>{try{var i=r(9023);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3522)}},3522:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5463:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5645:(e,t,r)=>{var i=r(4037);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},3710:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(202),s=r(2896);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},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")},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(37),{noop:f,genLog:h}=r(711),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:y,genLsCache:function(e){let t=e[c].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],u=this[a],c=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,u)?h(r[e],c):d[e](c)}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:p,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:p,t)))throw Error(`default level:${e} must be included in custom levels`)}}},6011:(e,t,r)=>{"use strict";let{version:i}=r(9571);e.exports={version:i}},5262:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(4434),o=r(361),s=r(1517),a=r(617),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:k,formatOptsSym:j,stringifiersSym:T}=r(37),{getLevel:R,setLevel:P,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(2129),{asChindings:I,asJson:D,buildFormatters:B,stringify:$}=r(711),{version:q}=r(6011),U=r(2205),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},2205:(e,t,r)=>{"use strict";let i=r(4408),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{rx:a,validator:u}=i,c=u({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:u}=function(e){if(Array.isArray(e))return c(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),c({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:u}=i,c=`${t.substr(u,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(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},p=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>p(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},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"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=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"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:k,hooksSym:j,mixinMergeStrategySym:x}},6751:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),u=r(8183),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:p,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(7259).prettyFactory||r(7259);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,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),d=i[p],g=Object.keys(d);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=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+u},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,u=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===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](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:u,prettifier:c,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})),u&&(i=k(Object.assign({messageKey:l},u),c,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 u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),u=r(5262),c=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(2129),{createArgsNormalizer:p,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:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:I,formattersSym:D,hooksSym:B}=c,{epochTime:$,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:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=p(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:p,serializers:g,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:H,customLevels:K,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=V):(Q||X)&&!Y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,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"),ei.level=(r=Q||X,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=c?s(c,y):{},es=c?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:g,[R]:eo,[T]:y,[D]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!K)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,K,et),Object.assign(i,{levels:f(K,et),[I]:et,[j]:a,[O]:ec,[k]:el,[T]:y,[R]:eo,[M]:"}"+(p?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:g,[C]:Z,[_]:ee,[S]:eu,[D]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[P](H),i}function V(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=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},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))}}}},9950:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6565:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},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:{}})},9271:(e,t,r)=>{"use strict";let{format:i}=r(9023);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){let u;return u=e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s,{code:o,name:r,message:u}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},6586:(e,t,r)=>{var i=r(5645),o=r(5486),s=r(9896),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},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 u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=d+2,d++;break}l+=o(r[f]),h=d+2,d++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u;let c,l;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(c="must not be",t=t.replace(/^not /,"")):c="must be",s=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-s.length,a)===s)l=`The ${e} ${c} ${i(t,"type")}`;else{let r=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";l=`The "${e}" ${r} ${c} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5535:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(605),s=r(3581);r(3081)(l,o);for(var a=i(s.prototype),u=0;u{"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)}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,h=global.Uint8Array||function(){},p=r(9023);o=p&&p.debuglog?p.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,u,c,l,p,d=e._readableState;if(null===t)d.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,d);else{if(s||(a=d,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),p=c),p)S(e,p);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)d.endEmitted?S(e,new _):j(e,d,t,!0);else if(d.ended)S(e,new v);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?j(e,d,t,!1):M(e,d)):j(e,d,t,!1)}}else i||(d.reading=!1,M(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return 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(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,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 B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(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=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?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&&B(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=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,I(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),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",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.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;s0,!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(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(C,this,e))),e.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){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{"use strict";e.exports=f;var i=r(8396).F,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5535);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(2664)},u=r(5251),c=r(181).Buffer,l=global.Uint8Array||function(){},f=r(849),h=r(6906).getHighWaterMark,p=r(8396).F,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(5535),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(M,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),M(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(j,e,r,s,o):j(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(5535));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function k(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function j(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,k(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(k(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3081)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,p=this._writableState,g=!1,y=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return y&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=x),p.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(y||(u=e,f=r,null===u?h=new v:"string"==typeof u||p.objectMode||(h=new d("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(p.pendingcb++,g=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,M(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(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"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=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[p]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):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]){t(d(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[p].read();if(null!==s)return Promise.resolve(d(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},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(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),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 eo.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{"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,u=this._writableState&&this._writableState.destroyed;return a||u?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)}}},9919:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).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,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(8396).F,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0,l=u=function(e){t||(t=e),e&&d.forEach(c),m||(d.forEach(c),p(t))},h=!1,u=function(){h||(h=!0,l.apply(void 0,arguments))},g=!1,e.on("close",function(){g=!0}),void 0===i&&(i=r(9919)),i(e,{readable:m,writable:s},function(e){if(e)return u(e);g=!0,u()}),y=!1,function(t){if(!g&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();u(t||new a("pipe"))}}});return f.reduce(l)}},6906:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},5251:(e,t,r)=>{e.exports=r(2203)},9491:(e,t,r)=>{var i=r(2203);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(605)).Stream=i||t,t.Readable=t,t.Writable=r(3581),t.Duplex=r(5535),t.Transform=r(9585),t.PassThrough=r(419),t.finished=r(9919),t.pipeline=r(5629))},9460:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */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)}},4045:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,u=r(7048);function c(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&&h(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)c(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{u(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)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}else{i.write(this.fd,this._writingBuf,"utf8",this.release);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?h(this):this._ending?r>0?h(this):(this._writing=!1,p(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 h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):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 p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}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&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(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;u(100)}},l.prototype.destroy=function(){this.destroyed||p(this)},e.exports=l},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function u(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;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(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=u,r.flush=c,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}},3049:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7549:(e,t,r)=>{"use strict";var i=r(1144).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},2664:(e,t,r)=>{e.exports=r(9023).deprecate},4037:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},9278:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},6773:e=>{"use strict";e.exports=require("vm")},8167:e=>{"use strict";e.exports=require("worker_threads")},3106:e=>{"use strict";e.exports=require("zlib")},6666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(2018));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||c||l||f),p=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:p(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+p(e,t,i,o)+i,g=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>g(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:k,strikethrough:j,black:T,red:R,green:P,yellow:M,blue:A,magenta:L,cyan:N,white:C,gray:I,bgBlack:D,bgRed:B,bgGreen:$,bgYellow:q,bgBlue:U,bgMagenta:F,bgCyan:W,bgWhite:G,blackBright:z,redBright:H,greenBright:J,yellowBright:V,blueBright:K,magentaBright:Y,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=D,t.bgBlackBright=Z,t.bgBlue=U,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=$,t.bgGreenBright=et,t.bgMagenta=F,t.bgMagentaBright=ei,t.bgRed=B,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=q,t.bgYellowBright=er,t.black=T,t.blackBright=z,t.blue=A,t.blueBright=K,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=I,t.green=P,t.greenBright=J,t.hidden=k,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=Y,t.red=R,t.redBright=H,t.reset=w,t.strikethrough=j,t.underline=E,t.white=C,t.whiteBright=X,t.yellow=M,t.yellowBright=V},7259:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(6666),o=r(6586),{Transform:s}=r(9491),a=r(3710),u=r(4045),c=r(5550),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(4249),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(2349),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function k(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),k="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,j=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=(k?t.customLevels:void 0!==T[i])?T[i]:d[i];return e.push([void 0!==s?s:i,o]),e},[]):void 0,P={customLevels:j,customLevelNames:T};k&&!t.customLevels&&(P.customLevels=void 0,P.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=c(t.colorize,R,k);return function(e){let c;if(g(e))c=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;c=t.value}if(u){let e=((k?t.customLevels:void 0!==T[u])?T[u]:d[u])||Number(u);if(c[void 0===s?p:s]0?`${D} ${j}`:j),R&&(D=D.length>0?`${D} ${R}:`:R),!1===D.endsWith(":")&&""!==D&&(D+=":"),O&&(D=D.length>0?`${D} ${O}`:O),D.length>0&&!N&&(D+=r),"Error"===c.type&&c.stack){let e=y({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(D+=r),D+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(D+=" "),D+=t}return D}}function j(e={}){let t=k(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){i(null,t(e))}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=j,e.exports.prettyFactory=k,e.exports.colorizerFactory=c,e.exports.default=j},5550:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(4249),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(6666),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:p,green:d,blue:g,gray:y,cyan:m}=c,b={default:l,60:f,50:h,40:p,30:d,20:g,10:y,message:m,greyMessage:y};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:y}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},4249:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:u}=r(8167),c=r(5550)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,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="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=E({keyName:e,lines:s,eol:r,ident:t}))}),d}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function j(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=S({input:e.stack,ident:r,eol:i}),u=`${r}${a}${i}`;if(s.length>0){let a;let c=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===c.includes(e)):s.filter(e=>!1===c.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=j,t.end=j,t.flushSync=j,t.destroy=j;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(5463);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{k(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:k,splitIgnoreKey:O,createDate:v,isValidDate:w}},2985:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(9023).inherits,a=r(6928),u=r(7048);function c(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}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&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(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._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(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 h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(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._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||p(this)},l.SonicBoom=l,l.default=l,e.exports=l},9949:(e,t,r)=>{"use strict";var i=r(7376),o=r(6370),s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not a function")}},6275:(e,t,r)=>{"use strict";var i=r(3073).has;e.exports=function(e){return i(e),e}},1821:(e,t,r)=>{"use strict";var i=r(7396),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},4765:(e,t,r)=>{"use strict";var i=r(2007).has;e.exports=function(e){return i(e),e}},3626:(e,t,r)=>{"use strict";var i=r(8558),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},1294:(e,t,r)=>{"use strict";var i=r(3147),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not an object")}},950:(e,t,r)=>{"use strict";var i=r(1992),o=r(9823),s=r(6657),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c);if(0===l)return!e&&-1;var f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},7996:(e,t,r)=>{"use strict";var i=r(553),o=r(2779),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7335:(e,t,r)=>{"use strict";var i=r(8732),o=r(3344),s=r(5869);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},3026:(e,t,r)=>{"use strict";var i=r(8732),o=r(7126),s=r(1294),a=r(1117),u=r(6772),c=r(3868),l=r(6142),f=r(6010),h=r(3344),p=r(5869),d=r(4877),g=r(2100),y=r(6568),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return c(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{y(c.inner.iterator,"normal")}catch(e){return y(l,"throw",e)}return p(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},4216:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(3147),u=r(1438),c=r(3344),l=r(2558),f=r(7335),h=function(e){var t=0===e,r=1===e,h=2===e,p=3===e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(y)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{g[_++]=i,l()}catch(e){c(e)}else i?f(v,e,p||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else g[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},3485:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(3147),u=r(2558),c=r(3026),l=r(2100),f=r(7335),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,p):f(c)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},4877:(e,t,r)=>{"use strict";var i,o,s=r(1140),a=r(8682),u=r(7376),c=r(1117),l=r(3318),f=r(8009),h=r(6142),p=r(3274),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=c(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},9640:(e,t,r)=>{"use strict";var i=r(1294),o=r(6568);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},7911:(e,t,r)=>{"use strict";var i=r(6142)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},4261:(e,t,r)=>{"use strict";var i=r(5245),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},5378:(e,t,r)=>{"use strict";var i=r(2741),o=r(7376),s=r(4261),a=r(6142)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},5909:(e,t,r)=>{"use strict";var i=r(2630),o=r(7820),s=r(2044),a=r(9342);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(3870);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2100:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},6772:(e,t,r)=>{"use strict";var i=r(553),o=r(9342),s=r(8727);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},8727:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3925:(e,t,r)=>{"use strict";var i=r(553),o=r(9342),s=r(8727);e.exports=function(e,t,r){i?o.f(e,t,s(0,r)):e[t]=r}},9129:(e,t,r)=>{"use strict";var i=r(8878),o=r(9342);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},8009:(e,t,r)=>{"use strict";var i=r(7376),o=r(9342),s=r(8878),a=r(8258);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},3868:(e,t,r)=>{"use strict";var i=r(8009);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},8258:(e,t,r)=>{"use strict";var i=r(1140),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}},553:(e,t,r)=>{"use strict";var i=r(3870);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},170:(e,t,r)=>{"use strict";var i=r(1140),o=r(3147),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},1438:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},3119:(e,t,r)=>{"use strict";var i=r(967),o=r(2059);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},967:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},2059:(e,t,r)=>{"use strict";var i=r(1140),o=r(4261);e.exports="process"===o(i.process)},4417:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4625:(e,t,r)=>{"use strict";var i,o,s=r(1140),a=r(4417),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},8286:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2256:(e,t,r)=>{"use strict";var i=r(5245),o=Error,s=i("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},2378:(e,t,r)=>{"use strict";var i=r(6772),o=r(2256),s=r(7802),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},7802:(e,t,r)=>{"use strict";var i=r(3870),o=r(8727);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},4073:(e,t,r)=>{"use strict";var i=r(1140),o=r(2044).f,s=r(6772),a=r(8009),u=r(8258),c=r(5909),l=r(1469);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):i[g]&&i[g].prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!l(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},3870:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9370:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},3809:(e,t,r)=>{"use strict";var i=r(7279),o=r(9949),s=r(5507),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5507:(e,t,r)=>{"use strict";var i=r(3870);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},8732:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1195:(e,t,r)=>{"use strict";var i=r(553),o=r(2630),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},1981:(e,t,r)=>{"use strict";var i=r(5245),o=r(9949);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7279:(e,t,r)=>{"use strict";var i=r(4261),o=r(5245);e.exports=function(e){if("Function"===i(e))return o(e)}},5245:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},3344:(e,t,r)=>{"use strict";var i=r(1140),o=r(7376);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},2558:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},510:(e,t,r)=>{"use strict";var i=r(5378),o=r(5869),s=r(754),a=r(3560),u=r(6142)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},9170:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(6370),u=r(510),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw new c(a(e)+" is not iterable")}},5869:(e,t,r)=>{"use strict";var i=r(9949),o=r(754);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},2298:(e,t,r)=>{"use strict";var i=r(9949),o=r(1294),s=r(8732),a=r(8100),u=r(2558),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,p=function(e,t){this.set=e,this.size=h(t,0),this.has=i(e.has),this.keys=i(e.keys)};p.prototype={getIterator:function(){return u(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(c);var r=a(t);if(r<0)throw new l(c);return new p(e,r)}},1140: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")()},2630:(e,t,r)=>{"use strict";var i=r(5245),o=r(760),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},7072:e=>{"use strict";e.exports={}},4270:(e,t,r)=>{"use strict";var i=r(3344);e.exports=i("document","documentElement")},9154:(e,t,r)=>{"use strict";var i=r(553),o=r(3870),s=r(170);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},3884:(e,t,r)=>{"use strict";var i=r(5245),o=r(3870),s=r(4261),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},498:(e,t,r)=>{"use strict";var i=r(7376),o=r(3147),s=r(1474);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},7329:(e,t,r)=>{"use strict";var i=r(5245),o=r(7376),s=r(8682),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},6605:(e,t,r)=>{"use strict";var i=r(3147),o=r(6772);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},6010:(e,t,r)=>{"use strict";var i,o,s,a=r(1173),u=r(1140),c=r(3147),l=r(6772),f=r(2630),h=r(8682),p=r(7964),d=r(7072),g="Object already initialized",y=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new y(g);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=p("state");d[v]=!0,i=function(e,t){if(f(e,v))throw new y(g);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return r}}}},2502:(e,t,r)=>{"use strict";var i=r(6142),o=r(3560),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},2779:(e,t,r)=>{"use strict";var i=r(4261);e.exports=Array.isArray||function(e){return"Array"===i(e)}},7376:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1469:(e,t,r)=>{"use strict";var i=r(3870),o=r(7376),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8646:(e,t,r)=>{"use strict";var i=r(5378),o=r(2630),s=r(754),a=r(6142),u=r(3560),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},754:e=>{"use strict";e.exports=function(e){return null==e}},3147:(e,t,r)=>{"use strict";var i=r(7376);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},7396:(e,t,r)=>{"use strict";var i=r(3147);e.exports=function(e){return i(e)||null===e}},3274:e=>{"use strict";e.exports=!1},2716:(e,t,r)=>{"use strict";var i=r(3344),o=r(7376),s=r(8558),a=r(3693),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},5180:(e,t,r)=>{"use strict";var i=r(8732);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},1941:(e,t,r)=>{"use strict";var i=r(3809),o=r(8732),s=r(1294),a=r(6370),u=r(2502),c=r(6657),l=r(8558),f=r(9170),h=r(510),p=r(6568),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),k=!!(r&&r.IS_RECORD),j=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),P=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?R(e[0],e[1],P):R(e[0],e[1])):T?R(e,P):R(e)};if(k)m=e.iterator;else if(j)m=e;else{if(!(b=h(e)))throw new d(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=M(e[v]))&&l(y,_))return _;return new g(!1)}m=f(e,b)}for(S=k?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&l(y,_))return _}return new g(!1)}},6568:(e,t,r)=>{"use strict";var i=r(8732),o=r(1294),s=r(5869);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},4679:(e,t,r)=>{"use strict";var i=r(8732),o=r(1117),s=r(6772),a=r(3868),u=r(6142),c=r(6010),l=r(5869),f=r(5822).IteratorPrototype,h=r(2100),p=r(6568),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},9402:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(2558),u=r(4679),c=r(9640),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},5822:(e,t,r)=>{"use strict";var i,o,s,a=r(3870),u=r(7376),c=r(3147),l=r(1117),f=r(3318),h=r(8009),p=r(6142),d=r(3274),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!c(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=l(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},3560:e=>{"use strict";e.exports={}},6657:(e,t,r)=>{"use strict";var i=r(9191);e.exports=function(e){return i(e.length)}},8878:(e,t,r)=>{"use strict";var i=r(5245),o=r(3870),s=r(7376),a=r(2630),u=r(553),c=r(1195).CONFIGURABLE,l=r(7329),f=r(6010),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!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")||c&&e.name!==t)&&(u?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?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||l(this)},"toString")},3073:(e,t,r)=>{"use strict";var i=r(5245),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},298:(e,t,r)=>{"use strict";var i=r(5245),o=r(5180),s=r(3073),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},7042:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},4296:(e,t,r)=>{"use strict";var i=r(9949),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)}},6438:(e,t,r)=>{"use strict";var i=r(7990);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},1117:(e,t,r)=>{"use strict";var i,o=r(1294),s=r(9682),a=r(8286),u=r(7072),c=r(4270),l=r(170),f=r(7964),h="prototype",p="script",d=f("IE_PROTO"),g=function(){},y=function(e){return"<"+p+">"+e+""},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+p+":"),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[h]=o(e),r=new g,g[h]=null,r[d]=e):r=v(),void 0===t?r:s.f(r,t)}},9682:(e,t,r)=>{"use strict";var i=r(553),o=r(2831),s=r(9342),a=r(1294),u=r(1992),c=r(8165);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},9342:(e,t,r)=>{"use strict";var i=r(553),o=r(9154),s=r(2831),a=r(1294),u=r(4468),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},2044:(e,t,r)=>{"use strict";var i=r(553),o=r(8732),s=r(6700),a=r(8727),u=r(1992),c=r(4468),l=r(2630),f=r(9154),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},4369:(e,t,r)=>{"use strict";var i=r(4767),o=r(8286).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},896:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3318:(e,t,r)=>{"use strict";var i=r(2630),o=r(7376),s=r(760),a=r(7964),u=r(9284),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},8558:(e,t,r)=>{"use strict";var i=r(5245);e.exports=i({}.isPrototypeOf)},4767:(e,t,r)=>{"use strict";var i=r(5245),o=r(2630),s=r(1992),a=r(950).indexOf,u=r(7072),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8165:(e,t,r)=>{"use strict";var i=r(4767),o=r(8286);e.exports=Object.keys||function(e){return i(e,o)}},6700:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1474:(e,t,r)=>{"use strict";var i=r(1981),o=r(3147),s=r(8313),a=r(1821);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return s(r),a(i),o(r)&&(t?e(r,i):r.__proto__=i),r}}():void 0)},3443:(e,t,r)=>{"use strict";var i=r(8732),o=r(7376),s=r(3147),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw new a("Can't convert object to primitive value")}},7820:(e,t,r)=>{"use strict";var i=r(3344),o=r(5245),s=r(4369),a=r(896),u=r(1294),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},205:(e,t,r)=>{"use strict";var i=r(5245),o=r(2630),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},1521:(e,t,r)=>{"use strict";var i=r(1140),o=r(5713),s=r(7376),a=r(1469),u=r(7329),c=r(6142),l=r(3119),f=r(967),h=r(3274),p=r(4625),d=o&&o.prototype,g=c("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.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={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(l||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},5713:(e,t,r)=>{"use strict";var i=r(1140);e.exports=i.Promise},728:(e,t,r)=>{"use strict";var i=r(5713),o=r(7911),s=r(1521).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},2683:(e,t,r)=>{"use strict";var i=r(9342).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3040:(e,t,r)=>{"use strict";var i=r(1294);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8313:(e,t,r)=>{"use strict";var i=r(754),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},1604:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7003:(e,t,r)=>{"use strict";var i=r(2007),o=r(7180),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},7799:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(7003),a=r(2697),u=r(2298),c=r(7180),l=r(5180),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},2007:(e,t,r)=>{"use strict";var i=r(5245),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6829:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(2697),a=r(2298),u=r(7180),c=r(5180),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},2430:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).has,s=r(2697),a=r(2298),u=r(7180),c=r(5180),l=r(6568);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},1581:(e,t,r)=>{"use strict";var i=r(4765),o=r(2697),s=r(7180),a=r(2298);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},4596:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).has,s=r(2697),a=r(2298),u=r(5180),c=r(6568);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(5245),o=r(5180),s=r(2007),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},355:(e,t,r)=>{"use strict";var i=r(3344),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},2697:(e,t,r)=>{"use strict";var i=r(1981),o=r(2007);e.exports=i(o.proto,"size","get")||function(e){return e.size}},1973:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(7003),a=r(2298),u=r(5180),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},6857:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).add,s=r(7003),a=r(2298),u=r(5180);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},7964:(e,t,r)=>{"use strict";var i=r(2046),o=r(6333),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},8682:(e,t,r)=>{"use strict";var i=r(3274),o=r(1140),s=r(8258),a="__core-js_shared__",u=e.exports=o[a]||s(a,{});(u.versions||(u.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},2046:(e,t,r)=>{"use strict";var i=r(8682);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},6484:(e,t,r)=>{"use strict";var i=r(4625),o=r(3870),s=r(1140).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},9823:(e,t,r)=>{"use strict";var i=r(8100),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1992:(e,t,r)=>{"use strict";var i=r(3884),o=r(8313);e.exports=function(e){return i(o(e))}},8100:(e,t,r)=>{"use strict";var i=r(7042);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},9191:(e,t,r)=>{"use strict";var i=r(8100),o=Math.min;e.exports=function(e){var t=i(e);return t>0?o(t,9007199254740991):0}},760:(e,t,r)=>{"use strict";var i=r(8313),o=Object;e.exports=function(e){return o(i(e))}},6078:(e,t,r)=>{"use strict";var i=r(8732),o=r(3147),s=r(2716),a=r(5869),u=r(3443),c=r(6142),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4468:(e,t,r)=>{"use strict";var i=r(6078),o=r(2716);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},4031:(e,t,r)=>{"use strict";var i=r(3344),o=r(7376),s=r(8646),a=r(3147),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},2741:(e,t,r)=>{"use strict";var i=r(6142)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},7990:(e,t,r)=>{"use strict";var i=r(5378),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6370:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6333:(e,t,r)=>{"use strict";var i=r(5245),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},3693:(e,t,r)=>{"use strict";var i=r(6484);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2831:(e,t,r)=>{"use strict";var i=r(553),o=r(3870);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1173:(e,t,r)=>{"use strict";var i=r(1140),o=r(7376),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},6142:(e,t,r)=>{"use strict";var i=r(1140),o=r(2046),s=r(2630),a=r(6333),u=r(6484),c=r(3693),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},2087:(e,t,r)=>{"use strict";var i=r(3344),o=r(2630),s=r(6772),a=r(8558),u=r(1474),c=r(5909),l=r(2683),f=r(498),h=r(6438),p=r(6605),d=r(2378),g=r(553),y=r(3274);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):g&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},9970:(e,t,r)=>{"use strict";var i=r(4073),o=r(8558),s=r(3318),a=r(1474),u=r(5909),c=r(1117),l=r(6772),f=r(8727),h=r(6605),p=r(2378),d=r(1941),g=r(6438),y=r(6142)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(new m,i?s(this):w):l(r=i?this:c(w),y,"Error"),void 0!==t&&l(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),l(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=c(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},4988:(e,t,r)=>{"use strict";r(9970)},1267:(e,t,r)=>{"use strict";var i=r(4073),o=r(760),s=r(6657),a=r(7996),u=r(1438);i({target:"Array",proto:!0,arity:1,forced:r(3870)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(4073),o=r(1140),s=r(9370),a=r(2087),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},68:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(4296),u=r(7126),c=r(1941);i({target:"Promise",stat:!0,forced:r(728)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,l=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,l=1;c(e,function(e){var s=u++,c=!1;l++,o(r,t,e).then(function(e){!c&&(c=!0,a[s]={status:"fulfilled",value:e},--l||i(a))},function(e){!c&&(c=!0,a[s]={status:"rejected",reason:e},--l||i(a))})}),--l||i(a)});return f.error&&l(f.value),r.promise}})},6793:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(3344),u=r(4296),c=r(7126),l=r(1941),f=r(728),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=c(function(){var i=s(t.resolve),a=[],u=0,c=1,d=!1;l(e,function(e){var s=u++,l=!1;c++,o(i,t,e).then(function(e){l||d||(d=!0,f(e))},function(e){!l&&!d&&(l=!0,a[s]=e,--c||p(new r(a,h)))})}),--c||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},3734:(e,t,r)=>{"use strict";var i=r(1140),o=r(553),s=r(9129),a=r(3040),u=r(3870),c=i.RegExp,l=c.prototype;o&&u(function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==i||r!==i})&&s(l,"flags",{configurable:!0,get:a})},2597:(e,t,r)=>{"use strict";var i=r(4073),o=r(7799);i({target:"Set",proto:!0,real:!0,forced:!r(355)("difference")},{difference:o})},1363:(e,t,r)=>{"use strict";var i=r(4073),o=r(3870),s=r(6829);i({target:"Set",proto:!0,real:!0,forced:!r(355)("intersection")||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:s})},9398:(e,t,r)=>{"use strict";var i=r(4073),o=r(2430);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isDisjointFrom")},{isDisjointFrom:o})},2003:(e,t,r)=>{"use strict";var i=r(4073),o=r(1581);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isSubsetOf")},{isSubsetOf:o})},2996:(e,t,r)=>{"use strict";var i=r(4073),o=r(4596);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isSupersetOf")},{isSupersetOf:o})},7611:(e,t,r)=>{"use strict";var i=r(4073),o=r(1973);i({target:"Set",proto:!0,real:!0,forced:!r(355)("symmetricDifference")},{symmetricDifference:o})},1335:(e,t,r)=>{"use strict";var i=r(4073),o=r(6857);i({target:"Set",proto:!0,real:!0,forced:!r(355)("union")},{union:o})},4830:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(1294),u=r(3147),c=r(2558),l=r(3026),f=r(2100),h=r(7335),p=r(3274),d=l(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,c){var l=function(e){t.done=!0,c(e)},p=function(e){h(r,l,e,l)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var c=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(c)?e.resolve(c).then(h,p):h(c)}catch(e){p(e)}}}catch(e){l(e)}},l)}catch(e){l(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0,forced:p},{filter:function(e){return a(this),s(e),new d(c(this),{predicate:e})}})},9991:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},8691:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},1608:(e,t,r)=>{"use strict";var i=r(4073),o=r(3485);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(3274)},{map:o})},9926:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(1294),u=r(3147),c=r(3344),l=r(2558),f=r(7335),h=c("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,d=c?void 0:arguments[1],g=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(new p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(c)c=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},8580:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},7225:(e,t,r)=>{"use strict";var i=r(4073),o=r(1140),s=r(3626),a=r(1294),u=r(7376),c=r(3318),l=r(9129),f=r(3925),h=r(3870),p=r(2630),d=r(6142),g=r(5822).IteratorPrototype,y=r(553),m=r(3274),b="constructor",v="Iterator",w=d("toStringTag"),_=TypeError,S=o[v],x=m||!u(S)||S.prototype!==g||!h(function(){S({})}),E=function(){if(s(this,g),c(this)===g)throw new _("Abstract class Iterator not directly constructable")},O=function(e,t){y?l(g,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===g)throw new _("You can't redefine this property");p(this,e)?this[e]=t:f(this,e,t)}}):g[e]=t};p(g,w)||O(w,v),(x||!p(g,b)||g[b]===Object)&&O(b,E),E.prototype=g,i({global:!0,constructor:!0,forced:x},{Iterator:E})},511:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(1294),u=r(2558),c=r(4679),l=r(9640),f=r(3274),h=c(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(l(r,i,[t=e.value,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){return a(this),s(e),new h(u(this),{predicate:e})}})},5877:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},4738:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},4399:(e,t,r)=>{"use strict";var i=r(4073),o=r(9402);i({target:"Iterator",proto:!0,real:!0,forced:r(3274)},{map:o})},7555:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw new c("Reduce of empty iterator with no initial value");return i}})},2489:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8398:(e,t,r)=>{"use strict";var i=r(4073),o=r(553),s=r(1140),a=r(3344),u=r(5245),c=r(8732),l=r(7376),f=r(3147),h=r(2779),p=r(2630),d=r(7990),g=r(6657),y=r(3925),m=r(3870),b=r(205),v=r(6484),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=u("".charAt),j=u("".slice),T=u(/./.exec),R=u([].push),P=/^\d$/,M=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){var r=new B(e=d(e),0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(4073),o=r(6275),s=r(3073).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(4073),o=r(6275),s=r(3073),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},2946:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);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)}})},107:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},452:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},422:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},2536:(e,t,r)=>{"use strict";var i=r(4073),o=r(1604),s=r(6275),a=r(298);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)}})},5126:(e,t,r)=>{"use strict";var i=r(4073),o=r(6275),s=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4128:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=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 c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},3418:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=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 c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},4221:(e,t,r)=>{"use strict";var i=r(4073),o=r(6275),s=r(1941),a=r(3073).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{"use strict";var i=r(4073),o=r(9949),s=r(6275),a=r(298),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw new u("Reduce of empty map with no initial value");return i}})},6845:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9704:(e,t,r)=>{"use strict";var i=r(4073),o=r(9949),s=r(6275),a=r(3073),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw new u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},8098:(e,t,r)=>{"use strict";var i=r(4073),o=r(4765),s=r(2007).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(4073),o=r(4765),s=r(2007).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(7799);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9536:(e,t,r)=>{"use strict";r(2597)},5312:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",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){if(!r(e,e,t))return!1},!0)}})},1837:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(2007),u=r(7180),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},7024:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},8422:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(6829);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},3169:(e,t,r)=>{"use strict";r(1363)},5673:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(2430);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},3255:(e,t,r)=>{"use strict";r(9398)},5814:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(1581);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},6894:(e,t,r)=>{"use strict";r(2003)},4535:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(4596);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},5477:(e,t,r)=>{"use strict";r(2996)},7367:(e,t,r)=>{"use strict";var i=r(4073),o=r(5245),s=r(4765),a=r(7180),u=r(7990),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},4681:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(2007),u=r(7180),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},3825:(e,t,r)=>{"use strict";var i=r(4073),o=r(9949),s=r(4765),a=r(7180),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw new u("Reduce of empty set with no initial value");return i}})},564:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},586:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(1973);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},4714:(e,t,r)=>{"use strict";r(7611)},8244:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(6857);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},5572:(e,t,r)=>{"use strict";r(1335)},9571:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.7","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node18-linux-arm64","node18-win-arm64","node18-linux-x64","node18-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.5.7","@types/node":"^20.12.12","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.1.2","browserslist":"^4.23.0","core-js":"^3.37.1","cross-env":"^7.0.3","jest":"^29.7.0","pkg":"^5.8.1","prettier":"^3.2.5","swc-loader":"^0.2.6","terser-webpack-plugin":"^5.3.10","typescript":"^5.4.5","webpack":"^5.91.0","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.9","minimatch":"^3.0.8","minimist":"^1.2.8","semver":"^7.5.4"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.8.1"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(1608),r(4399),r(8580),r(2489),r(7225),r(9926),r(7555),r(1267),r(8691),r(4738);let e=r(8330),t=r(3946).program({name:e.name.replace(/@.+\//,""),version:e.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);if(global.address=t.address,t.port=(t.port||"8080:8081").split(":").map(e=>parseInt(e)),t.port.some(e=>isNaN(e)||e<1||e>65535)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),t.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(t.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),t.endpoint?"-"===t.endpoint?t.endpoint="":/http(s?):\/\/.+/.test(t.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):t.endpoint="https://music.163.com",t.forceHost&&0===r(9278).isIP(t.forceHost)&&(console.log("Please check the server host."),process.exit(1)),t.matchOrder){let e=Object.keys(r(6406).PROVIDERS),i=t.matchOrder;i.some((e,t)=>t!=i.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):i.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=i}t.token&&!/\S+:\S+/.test(t.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:i}=r(6166),o=r(7016).parse,s=r(6117),a=r(8885),{CacheStorageGroup:u}=r(6718),c=i("app"),l=Array.from(s.target.host);global.port=t.port,global.proxy=t.proxyUrl?o(t.proxyUrl):null,global.hosts=l.reduce((e,r)=>Object.assign(e,{[r]:t.forceHost}),{}),a.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=t.cnrelay,t.strict&&a.blacklist.push(".*"),a.authentication=t.token||null,global.endpoint=t.endpoint,t.endpoint&&a.whitelist.push(escape(t.endpoint));let f="true"===process.env.ENABLE_HTTPDNS?[e=>r(2965)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),e=>r(2965)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[]))]:[],h=u.getInstance();setInterval(()=>{h.cleanup()},9e5),Promise.all(f.map(e=>e(l.join(","))).concat(l.map(e=>new Promise((t,i)=>r(2250).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address))))))).then(e=>{let{host:t}=s.target;e.forEach(e=>e.forEach(t.add,t)),a.whitelist=a.whitelist.concat(Array.from(t).map(escape));let r=e=>c.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&a.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&a.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&c.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file diff --git a/precompiled/bridge.js b/precompiled/bridge.js index c074320561..4c936e65f0 100644 --- a/precompiled/bridge.js +++ b/precompiled/bridge.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -(()=>{var e={6718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3014),r(6198),r(5772),r(6233),r(6724),r(822),r(7821),r(8280),r(4334),r(8536),r(5287),r(1981),r(6539),r(9630),r(7021),r(9024),r(5907),r(6584),r(4732),r(9846),r(9758),r(4910),r(7847),r(5386),r(2752),r(3e3),r(9179),r(321),r(1136),r(4488),r(2729),r(7831),r(3437),r(5751),r(139),r(3025),r(8620),r(1276),r(6465),r(2486);let{EventEmitter:i}=r(4434),{logScope:o}=r(6166),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2672:(e,t,r)=>{"use strict";let i=r(4434),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},6406:(e,t,r)=>{"use strict";let i={qq:r(1128),kugou:r(2777),kuwo:r(2076),migu:r(8516),joox:r(9222),youtube:r(8829),youtubedl:r(5374),ytdlp:r(9282),bilibili:r(8114),pyncmd:r(4108)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921);let i=r(6982),o=r(7016).parse,s=r(3480).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(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=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),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=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=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:u.slice(0,s),iv:u.slice(s,s+o)}})(r,o,256,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",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)}};try{e.exports.kuwoapi=r(9726)}catch(e){}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),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"}}},15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},6587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},7229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4493),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},9726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921),r(7021),r(9024);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let d=o(8*l.length).map(()=>0),p=0;return l.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},6166:(e,t,r)=>{"use strict";var i;let o=r(2306),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(6718),a=r(9588),u=r(3186),c=r(2965),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>c("GET",`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`).then(e=>e.json()).then(t=>{let r=u(t.data.result.map(l),e);return r?r.id:Promise.reject()}),h=e=>c("GET","https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e)),d=s("provider/bilibili");e.exports={check:e=>d.cache(e,()=>f(e)).then(h),track:h}},9588:(e,t,r)=>{"use strict";let i=r(2965);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(8484);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>a("GET","http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(l(e))+"&sin=0&ein=30",c).then(e=>e.body()).then(t=>{let r=o(JSON.parse(t.replace(/'/g,'"')).itemlist.map(f),e);return r?r.id:Promise.reject()}),d=e=>a("GET","http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime(),c).then(e=>e.jsonp()).then(e=>(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3")||Promise.reject()).catch(()=>i().joox.track(e)),p=u("provider/joox");e.exports={check:e=>p.cache(e,()=>h(e)).then(d),track:d}},2777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>a("GET","http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10").then(e=>e.json()).then(t=>o(t.data.info.map(c),e)||Promise.reject()).catch(()=>i().kugou.search(e)),f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""};return a("GET","http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),search:l}},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=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","http://search.kuwo.cn/r.s?&correct=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(c),e);return r?r.id:Promise.reject()}),f=e=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_1.1.9_oppo_118980_320.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).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)),h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},8516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>s("GET","https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1",u).then(e=>e.json()).then(t=>{let r=o(((t||{}).musics||[]).map(c),e);return r?r.id:Promise.reject()}),f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},4108:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(6718),a=e=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(i.ENABLE_FLAC?0:1,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()),u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9614),r(7921),r(9105),r(8584),r(5907);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=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}))}),l=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(c),e);return r?r.id:Promise.reject()}),f=(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)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9105),r(8584),r(5907),e.exports=(e,t)=>{let{duration:r}=t;return e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r))||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},5374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8484);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),s=r(8696),a=r(6587),{spawnStdout:u}=r(5319),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("youtube-dl");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(9614),r(7921),r(8484),r(9105),r(8584);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1];return Function([t],RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0]+"\n"+r)}),f=e=>i("GET",`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()}),h=e=>i("GET",`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]).contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return t?t.videoRenderer.videoId:Promise.reject()}),d=e=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)});e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(d),track:d}},9282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8484);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),{spawnStdout:s}=r(5319),a=r(816),u=r(7229),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("yt-dlp");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},2965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8920),r(7113),r(5907),r(7777),r(8484);let i=r(3106),o=r(8611),s=r(5692),a=r(2672),u=r(15),{logScope:c}=r(6166),l=r(7016).parse,f=r(7016).format,h=c("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,c)=>{let d=l(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",...w},o);return new Promise((r,l)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==c||c.on(a,m),null!==(y=null==c?void 0:c.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},5319:(e,t,r)=>{"use strict";let i=r(5317),{logScope:o}=r(6166),s=r(1828),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},7048:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},5402:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(9491),o=r(5486),s=r(3081),a=r(3049),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},d=function(e,t,r){if(!(this instanceof d))return new d(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(d,i.Duplex),d.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(e,t,r)},d.prototype.cork=function(){1==++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},d.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},d.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},d.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},d.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},d.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=d},5486:(e,t,r)=>{var i=r(5645),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||d()},d=function(){l=!1,c||r.call(e)},p=function(){c=!1,l||r.call(e)},y=function(t){r.call(e,t?Error("exited with error code: "+t):null)},g=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",d)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",y),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){f=!0,e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("exit",y),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}};e.exports=s},4408:(e,t,r)=>{"use strict";let i=r(7054),o=r(2023),s=r(3610),a=r(5014),{groupRedact:u,nestedRedact:c}=r(5158),l=r(4613),f=r(6600),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m});return s({secret:b,wcLen:m,serialize:r,strict:!("strict"in e)||e.strict,isCensorFct:p,censorFctTakesPath:y},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},5158:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(6600);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0],c=(a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e)).indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},3610:(e,t,r)=>{"use strict";let i=r(6600);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` +(()=>{var e={6718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6264),r(3440),r(2946),r(107),r(422),r(452),r(2536),r(5126),r(4128),r(3418),r(4221),r(5711),r(6845),r(9704),r(8691),r(4738),r(7225),r(8098),r(1154),r(3448),r(9536),r(5312),r(1837),r(7024),r(8422),r(3169),r(5673),r(3255),r(5814),r(6894),r(4535),r(5477),r(7367),r(4681),r(3825),r(564),r(586),r(4714),r(8244),r(5572);let{EventEmitter:i}=r(4434),{logScope:o}=r(6166),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2672:(e,t,r)=>{"use strict";let i=r(4434),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},6406:(e,t,r)=>{"use strict";let i={qq:r(1128),kugou:r(2777),kuwo:r(2076),migu:r(8516),joox:r(9222),youtube:r(8829),youtubedl:r(5374),ytdlp:r(9282),bilibili:r(8114),pyncmd:r(1727)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399);let i=r(6982),o=r(7016).parse,s=r(3480).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(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=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),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=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=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:u.slice(0,s),iv:u.slice(s,s+o)}})(r,o,256,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",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)}};try{e.exports.kuwoapi=r(9726)}catch(e){}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),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"}}},15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},6587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},7229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1703),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},9726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399),r(8691),r(4738);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let d=o(8*l.length).map(()=>0),p=0;return l.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},6166:(e,t,r)=>{"use strict";var i;let o=r(2306),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(6718),a=r(9588),u=r(3186),c=r(2965),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>c("GET",`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`).then(e=>e.json()).then(t=>{let r=u(t.data.result.map(l),e);return r?r.id:Promise.reject()}),h=e=>c("GET","https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e)),d=s("provider/bilibili");e.exports={check:e=>d.cache(e,()=>f(e)).then(h),track:h}},9588:(e,t,r)=>{"use strict";let i=r(2965);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(8398);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>a("GET","http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(l(e))+"&sin=0&ein=30",c).then(e=>e.body()).then(t=>{let r=o(JSON.parse(t.replace(/'/g,'"')).itemlist.map(f),e);return r?r.id:Promise.reject()}),d=e=>a("GET","http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime(),c).then(e=>e.jsonp()).then(e=>(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3")||Promise.reject()).catch(()=>i().joox.track(e)),p=u("provider/joox");e.exports={check:e=>p.cache(e,()=>h(e)).then(d),track:d}},2777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>a("GET","http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10").then(e=>e.json()).then(t=>o(t.data.info.map(c),e)||Promise.reject()).catch(()=>i().kugou.search(e)),f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""};return a("GET","http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),search:l}},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(6718),c=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","http://search.kuwo.cn/r.s?&correct=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(c),e);return r?r.id:Promise.reject()}),f=e=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_1.1.9_oppo_118980_320.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).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)),h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},8516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>s("GET","https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1",u).then(e=>e.json()).then(t=>{let r=o(((t||{}).musics||[]).map(c),e);return r?r.id:Promise.reject()}),f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},1727:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(6718),a=e=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(i.ENABLE_FLAC?0:1,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()),u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1608),r(4399),r(9991),r(5877),r(7225);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(6718),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=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}))}),l=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(c),e);return r?r.id:Promise.reject()}),f=(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)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9991),r(5877),r(7225),e.exports=(e,t)=>{let{duration:r}=t;return e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r))||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},5374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8398);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),s=r(8696),a=r(6587),{spawnStdout:u}=r(5319),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("youtube-dl");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1608),r(4399),r(8398),r(9991),r(5877);let i=r(2965),{getManagedCacheStorage:o}=r(6718),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1];return Function([t],RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0]+"\n"+r)}),f=e=>i("GET",`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()}),h=e=>i("GET",`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]).contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return t?t.videoRenderer.videoId:Promise.reject()}),d=e=>i("GET",`https://www.youtube.com/watch?v=${e}`,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)});e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(d),track:d}},9282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8398);let{getManagedCacheStorage:i}=r(6718),{logScope:o}=r(6166),{spawnStdout:s}=r(5319),a=r(816),u=r(7229),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("yt-dlp");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},2965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9926),r(7555),r(7225),r(1267),r(8398);let i=r(3106),o=r(8611),s=r(5692),a=r(2672),u=r(15),{logScope:c}=r(6166),l=r(7016).parse,f=r(7016).format,h=c("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,c)=>{let d=l(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",...w},o);return new Promise((r,l)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==c||c.on(a,m),null!==(y=null==c?void 0:c.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},5319:(e,t,r)=>{"use strict";let i=r(5317),{logScope:o}=r(6166),s=r(1828),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},7048:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},5402:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(9491),o=r(5486),s=r(3081),a=r(3049),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},d=function(e,t,r){if(!(this instanceof d))return new d(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(d,i.Duplex),d.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(e,t,r)},d.prototype.cork=function(){1==++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},d.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},d.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},d.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},d.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},d.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=d},5486:(e,t,r)=>{var i=r(5645),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||d()},d=function(){l=!1,c||r.call(e)},p=function(){c=!1,l||r.call(e)},y=function(t){r.call(e,t?Error("exited with error code: "+t):null)},g=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",d)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",y),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){f=!0,e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("exit",y),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}};e.exports=s},4408:(e,t,r)=>{"use strict";let i=r(7054),o=r(2023),s=r(3610),a=r(5014),{groupRedact:u,nestedRedact:c}=r(5158),l=r(4613),f=r(6600),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m});return s({secret:b,wcLen:m,serialize:r,strict:!("strict"in e)||e.strict,isCensorFct:p,censorFctTakesPath:y},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},5158:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(6600);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0],c=(a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e)).indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},3610:(e,t,r)=>{"use strict";let i=r(6600);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` if (typeof o !== 'object' || o == null) { ${!0===o?"throw Error('fast-redact: primitives cannot be redacted')":!1===t?"return o":"return this.serialize(o)"} } @@ -62,10 +62,10 @@ ${i} ${e} return o - `}(s,r,a)).bind(u)}}},6600:e=>{"use strict";e.exports=/[^.[\]]+|\[((?:.)*?)\]/g},4613:e=>{"use strict";e.exports=function(e){let{secret:t,censor:r,compileRestore:i,serialize:o,groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}=e,l=[{secret:t,censor:r,compileRestore:i}];return!1!==o&&l.push({serialize:o}),c>0&&l.push({groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}),Object.assign(...l)}},7054:(e,t,r)=>{"use strict";let{createContext:i,runInContext:o}=r(9154);e.exports=function(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=e=>`fast-redact – Invalid path (${e})`}=e;return function({paths:e}){e.forEach(e=>{if("string"!=typeof e)throw Error(t());try{if(/〇/.test(e))throw Error();let t=new Proxy({},{get:()=>t,set:()=>{throw Error()}}),r=("["===e[0]?"":".")+e.replace(/^\*/,"〇").replace(/\.\*/g,".〇").replace(/\[\*\]/g,"[〇]");if(/\n|\r|;/.test(r)||/\/\*/.test(r))throw Error();o(` + `}(s,r,a)).bind(u)}}},6600:e=>{"use strict";e.exports=/[^.[\]]+|\[((?:.)*?)\]/g},4613:e=>{"use strict";e.exports=function(e){let{secret:t,censor:r,compileRestore:i,serialize:o,groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}=e,l=[{secret:t,censor:r,compileRestore:i}];return!1!==o&&l.push({serialize:o}),c>0&&l.push({groupRedact:s,nestedRedact:a,wildcards:u,wcLen:c}),Object.assign(...l)}},7054:(e,t,r)=>{"use strict";let{createContext:i,runInContext:o}=r(6773);e.exports=function(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=e=>`fast-redact – Invalid path (${e})`}=e;return function({paths:e}){e.forEach(e=>{if("string"!=typeof e)throw Error(t());try{if(/〇/.test(e))throw Error();let t=new Proxy({},{get:()=>t,set:()=>{throw Error()}}),r=("["===e[0]?"":".")+e.replace(/^\*/,"〇").replace(/\.\*/g,".〇").replace(/\[\*\]/g,"[〇]");if(/\n|\r|;/.test(r)||/\/\*/.test(r))throw Error();o(` (function () { 'use strict' o${r} if ([o${r}].length !== 1) throw Error() })() - `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},8183:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var d,p=function e(o,s,a,l,f,h,d){if(h+=1,"object"==typeof o&&null!==o){for(p=0;pd.depthLimit||void 0!==d.edgesLimit&&a+1>d.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(p=0;p0)for(var i=0;i{"use strict";e.exports=function(e){return e}},3081:(e,t,r)=>{try{var i=r(9023);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3522)}},3522:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5463:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5645:(e,t,r)=>{var i=r(4037);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},3710:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(202),s=r(2896);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},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")},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(37),{noop:f,genLog:h}=r(711),d={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},p={fatal:e=>{let t=h(d.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(d.error,e),warn:e=>h(d.warn,e),info:e=>h(d.info,e),debug:e=>h(d.debug,e),trace:e=>h(d.trace,e)},y=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),g=Object.keys(y).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:g,genLsCache:function(e){let t=e[c].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:p,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],u=this[a],c=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,u)?h(r[e],c):p[e](c)}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:y,r),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,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(y).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:d,t)))throw Error(`default level:${e} must be included in custom levels`)}}},6011:(e,t,r)=>{"use strict";let{version:i}=r(9571);e.exports={version:i}},5262:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(4434),o=r(361),s=r(1517),a=r(617),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:d,mixinSym:p,asJsonSym:y,writeSym:g,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(37),{getLevel:R,setLevel:M,isLevelEnabled:P,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:D}=r(2129),{asChindings:C,asJson:I,buildFormatters:B,stringify:$}=r(711),{version:F}=r(6011),q=r(2205),U={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},2205:(e,t,r)=>{"use strict";let i=r(4408),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{rx:a,validator:u}=i,c=u({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:u}=function(e){if(Array.isArray(e))return c(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),c({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:u}=i,c=`${t.substr(u,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(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},d=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>d(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},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"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),d=Symbol("pino.redactFmt"),p=Symbol("pino.time"),y=Symbol("pino.timeSliceIndex"),g=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"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:d,timeSym:p,timeSliceIndexSym:y,streamSym:g,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},6751:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),u=r(8183),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:d,formatOptsSym:p,endSym:y,stringifiersSym:g,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(37);function O(){}function j(e,t,i,o){if(t&&"function"==typeof t)return k((t=t.bind(o))(e),i,e);try{let t=r(9640).prettyFactory||r(9640);return t.asMetaWrapper=k,k(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 k(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,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),p=i[d],y=Object.keys(p);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=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+u},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,u=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===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[p]),e)}else this[h](null,i(t,a,this[p]),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:u,prettifier:c,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})),u&&(i=j(Object.assign({messageKey:l},u),c,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 u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),u=r(5262),c=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(2129),{createArgsNormalizer:d,asChindings:p,final:y,stringify:g,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(711),{version:w}=r(6011),{mixinMergeStrategySym:_}=r(37),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:R,setLevelSym:M,endSym:P,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:D,useOnlyCustomLevelsSym:C,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:F}=a,{pid:q}=process,U=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:q,hostname:U},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:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=d(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:d,serializers:y,timestamp:m,messageKey:w,nestedKey:q,base:U,name:W,level:H,customLevels:Y,useLevelLabels:V,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);V&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=K):(Q||X)&&!V?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&V&&(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"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),y[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=y[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,g):{},es=c?{stringify:eo[x]}:{stringify:g},ea=p.bind(null,{[S]:"",[E]:y,[R]:eo,[T]:g,[I]:ei}),eu="";null!==U&&(eu=ea(void 0===W?U:Object.assign({},U,{name:W})));let ec=m instanceof Function?m:m?$:F,el=ec().indexOf(":")+1;if(et&&!Y)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,Y,et),Object.assign(i,{levels:f(Y,et),[C]:et,[k]:a,[O]:ec,[j]:el,[T]:g,[R]:eo,[P]:"}"+(d?"\r\n":"\n"),[A]:es,[L]:w,[N]:q,[E]:y,[D]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[M](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=y,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},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))}}}},9950:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6565:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},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:{}})},9271:(e,t,r)=>{"use strict";let{format:i}=r(9023);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){let u;return u=e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s,{code:o,name:r,message:u}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},6586:(e,t,r)=>{var i=r(5645),o=r(5486),s=r(9896),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},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 u=1;u-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=p+2,p++;break}l+=o(r[f]),h=p+2,p++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u;let c,l;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(c="must not be",t=t.replace(/^not /,"")):c="must be",s=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-s.length,a)===s)l=`The ${e} ${c} ${i(t,"type")}`;else{let r=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";l=`The "${e}" ${r} ${c} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5535:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(605),s=r(3581);r(3081)(l,o);for(var a=i(s.prototype),u=0;u{"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)}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,h=global.Uint8Array||function(){},d=r(9023);o=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(408),y=r(849),g=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=y.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=g(this,e,"readableHighWaterMark",o),this.buffer=new p,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 j(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,d,p=e._readableState;if(null===t)p.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,M(e)))}}(e,p);else{if(s||(a=p,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),d=c),d)S(e,d);else if(p.objectMode||t&&t.length>0){if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)p.endEmitted?S(e,new _):k(e,p,t,!0);else if(p.ended)S(e,new v);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?k(e,p,t,!1):P(e,p)):k(e,p,t,!1)}}else i||(p.reading=!1,P(e,p))}return!p.ended&&(p.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return 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(M,e))}function M(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,C(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,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 D(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(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 B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(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 F(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(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&&B(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=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?y:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,C(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function d(){e.removeListener("finish",p),y()}function p(){o("onfinish"),e.removeListener("close",d),y()}function y(){o("unpipe"),r.unpipe(e)}return r.on("data",f),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",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.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;s0,!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(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(D,this,e))),e.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){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{"use strict";e.exports=f;var i=r(8396).F,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5535);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(2664)},u=r(5251),c=r(181).Buffer,l=global.Uint8Array||function(){},f=r(849),h=r(6906).getHighWaterMark,d=r(8396).F,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(5535),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(P,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),P(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(k,e,r,s,o):k(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(5535));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function k(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),P(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,j(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(j(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3081)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,d=this._writableState,y=!1,g=!d.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=x),d.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(g||(u=e,f=r,null===u?h=new v:"string"==typeof u||d.objectMode||(h=new p("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(d.pendingcb++,y=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(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"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){process.nextTick(y,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(p(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[d].read();i?(r[f]=null,r[a]=null,r[u]=null,e(p(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},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(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),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 eo.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{"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,u=this._writableState&&this._writableState.destroyed;return a||u?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)}}},9919:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).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,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(8396).F,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0,l=u=function(e){t||(t=e),e&&p.forEach(c),m||(p.forEach(c),d(t))},h=!1,u=function(){h||(h=!0,l.apply(void 0,arguments))},y=!1,e.on("close",function(){y=!0}),void 0===i&&(i=r(9919)),i(e,{readable:m,writable:s},function(e){if(e)return u(e);y=!0,u()}),g=!1,function(t){if(!y&&!g){if(g=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();u(t||new a("pipe"))}}});return f.reduce(l)}},6906:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},5251:(e,t,r)=>{e.exports=r(2203)},9491:(e,t,r)=>{var i=r(2203);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(605)).Stream=i||t,t.Readable=t,t.Writable=r(3581),t.Duplex=r(5535),t.Transform=r(9585),t.PassThrough=r(419),t.finished=r(9919),t.pipeline=r(5629))},9460:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */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)}},4045:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,u=r(7048);function c(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&&h(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)c(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{u(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)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}else{i.write(this.fd,this._writingBuf,"utf8",this.release);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?h(this):this._ending?r>0?h(this):(this._writing=!1,d(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 h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):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 d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}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&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||d(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;u(100)}},l.prototype.destroy=function(){this.destroyed||d(this)},e.exports=l},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function u(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;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(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=u,r.flush=c,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}},3049:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7549:(e,t,r)=>{"use strict";var i=r(1144).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},2664:(e,t,r)=>{e.exports=r(9023).deprecate},4037:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},9154:e=>{"use strict";e.exports=require("vm")},8167:e=>{"use strict";e.exports=require("worker_threads")},3106:e=>{"use strict";e.exports=require("zlib")},6666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(2018));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||c||l||f),d=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:d(a,s,r,i)),p=(e,t,r,i,o)=>e<0?r+t+i:r+d(e,t,i,o)+i,y=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?p((""+o).indexOf(t,i),o,e,t,r):"",g=(e,t,r)=>y(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:g(0,0),bold:g(1,22,"\x1b[22m\x1b[1m"),dim:g(2,22,"\x1b[22m\x1b[2m"),italic:g(3,23),underline:g(4,24),inverse:g(7,27),hidden:g(8,28),strikethrough:g(9,29),black:g(30,39),red:g(31,39),green:g(32,39),yellow:g(33,39),blue:g(34,39),magenta:g(35,39),cyan:g(36,39),white:g(37,39),gray:g(90,39),bgBlack:g(40,49),bgRed:g(41,49),bgGreen:g(42,49),bgYellow:g(43,49),bgBlue:g(44,49),bgMagenta:g(45,49),bgCyan:g(46,49),bgWhite:g(47,49),blackBright:g(90,39),redBright:g(91,39),greenBright:g(92,39),yellowBright:g(93,39),blueBright:g(94,39),magentaBright:g(95,39),cyanBright:g(96,39),whiteBright:g(97,39),bgBlackBright:g(100,49),bgRedBright:g(101,49),bgGreenBright:g(102,49),bgYellowBright:g(103,49),bgBlueBright:g(104,49),bgMagentaBright:g(105,49),bgCyanBright:g(106,49),bgWhiteBright:g(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:j,strikethrough:k,black:T,red:R,green:M,yellow:P,blue:A,magenta:L,cyan:N,white:D,gray:C,bgBlack:I,bgRed:B,bgGreen:$,bgYellow:F,bgBlue:q,bgMagenta:U,bgCyan:W,bgWhite:G,blackBright:z,redBright:H,greenBright:J,yellowBright:K,blueBright:Y,magentaBright:V,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=I,t.bgBlackBright=Z,t.bgBlue=q,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=$,t.bgGreenBright=et,t.bgMagenta=U,t.bgMagentaBright=ei,t.bgRed=B,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=F,t.bgYellowBright=er,t.black=T,t.blackBright=z,t.blue=A,t.blueBright=Y,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=C,t.green=M,t.greenBright=J,t.hidden=j,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=V,t.red=R,t.redBright=H,t.reset=w,t.strikethrough=k,t.underline=E,t.white=D,t.whiteBright=X,t.yellow=P,t.yellowBright=K},9640:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(6666),o=r(6586),{Transform:s}=r(9491),a=r(3710),u=r(4045),c=r(5550),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:d,LEVEL_NAMES:p}=r(4249),{isObject:y,prettifyErrorLog:g,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(2349),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=(j?t.customLevels:void 0!==T[i])?T[i]:p[i];return e.push([void 0!==s?s:i,o]),e},[]):void 0,M={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(M.customLevels=void 0,M.customLevelNames=void 0);let P=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,D=c(t.colorize,R,j);return function(e){let c;if(y(e))c=e;else{let t=E(e);if(t.err||!y(t.value))return e+r;c=t.value}if(u){let e=((j?t.customLevels:void 0!==T[u])?T[u]:p[u])||Number(u);if(c[void 0===s?d:s]0?`${I} ${k}`:k),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=g({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:P,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:D});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){i(null,t(e))}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=c,e.exports.default=k},5550:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(4249),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(6666),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:d,green:p,blue:y,gray:g,cyan:m}=c,b={default:l,60:f,50:h,40:d,30:p,20:y,10:g,message:m,greyMessage:g};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:g}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},4249:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:u}=r(8167),c=r(5550)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:d,LEVEL_LABEL:p,TIMESTAMP_KEY:y,LOGGER_KEYS:g,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="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===d.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(y).length>0&&(p+=h.greyMessage(a(y))),p+=r):Object.entries(y).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});p+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(p+=E({keyName:e,lines:s,eol:r,ident:t}))}),p}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function k(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=S({input:e.stack,ident:r,eol:i}),u=`${r}${a}${i}`;if(s.length>0){let a;let c=g.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===c.includes(e)):s.filter(e=>!1===c.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=y,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=k,t.end=k,t.flushSync=k,t.destroy=k;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(5463);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{j(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:j,splitIgnoreKey:O,createDate:v,isValidDate:w}},2985:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(9023).inherits,a=r(6928),u=r(7048);function c(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}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&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:p,retryEAGAIN:y}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=y||(()=>!0),this.mkdir=p||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(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._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(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 h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):d(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._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||d(this)},l.SonicBoom=l,l.default=l,e.exports=l},6271:(e,t,r)=>{"use strict";var i=r(2682),o=r(2656),s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not a function")}},9993:(e,t,r)=>{"use strict";var i=r(6023).has;e.exports=function(e){return i(e),e}},6155:(e,t,r)=>{"use strict";var i=r(4818),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},5647:(e,t,r)=>{"use strict";var i=r(5961).has;e.exports=function(e){return i(e),e}},7836:(e,t,r)=>{"use strict";var i=r(1512),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},6912:(e,t,r)=>{"use strict";var i=r(3293),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not an object")}},4900:(e,t,r)=>{"use strict";var i=r(7902),o=r(273),s=r(1327),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c);if(0===l)return!e&&-1;var f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6570:(e,t,r)=>{"use strict";var i=r(4647),o=r(1105),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4189:(e,t,r)=>{"use strict";var i=r(9274),o=r(9278),s=r(7655);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},920:(e,t,r)=>{"use strict";var i=r(9274),o=r(9028),s=r(6912),a=r(5579),u=r(7050),c=r(3602),l=r(3608),f=r(8196),h=r(9278),d=r(7655),p=r(8963),y=r(4942),g=r(4938),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(y(void 0,!0))}:{exit:!1,value:a}};return c(a(p),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{g(c.inner.iterator,"normal")}catch(e){return g(l,"throw",e)}return d(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(y(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),y(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},9102:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(3293),u=r(696),c=r(9278),l=r(8692),f=r(4189),h=function(e){var t=0===e,r=1===e,h=2===e,d=3===e;return function(e,p,y){s(e);var g=void 0!==p;(g||!t)&&o(p);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(g)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(y.length=_,e(y)):e(!d&&(h||void 0));else{var u=i.value;try{if(g){var m=p(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{y[_++]=i,l()}catch(e){c(e)}else i?f(v,e,d||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else y[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},6775:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(3293),u=r(8692),c=r(920),l=r(4942),f=r(4189),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},d=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,d):f(c)}catch(e){d(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},8963:(e,t,r)=>{"use strict";var i,o,s=r(946),a=r(208),u=r(2682),c=r(5579),l=r(3380),f=r(9287),h=r(3608),d=r(6e3),p="USE_FUNCTION_CONSTRUCTOR",y=h("asyncIterator"),g=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(g))i=g.prototype;else if(a[p]||s[p])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?d&&(i=c(i)):i={},u(i[y])||f(i,y,function(){return this}),e.exports=i},7522:(e,t,r)=>{"use strict";var i=r(6912),o=r(4938);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3759:(e,t,r)=>{"use strict";var i=r(3587),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},1628:(e,t,r)=>{"use strict";var i=r(1727),o=r(2682),s=r(3759),a=r(3608)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},475:(e,t,r)=>{"use strict";var i=r(172),o=r(9010),s=r(3222),a=r(2300);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(8668);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},4942:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},7050:(e,t,r)=>{"use strict";var i=r(4647),o=r(2300),s=r(5081);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},5081:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7207:(e,t,r)=>{"use strict";var i=r(4647),o=r(2300),s=r(5081);e.exports=function(e,t,r){i?o.f(e,t,s(0,r)):e[t]=r}},6435:(e,t,r)=>{"use strict";var i=r(9848),o=r(2300);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},9287:(e,t,r)=>{"use strict";var i=r(2682),o=r(2300),s=r(9848),a=r(5748);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},3602:(e,t,r)=>{"use strict";var i=r(9287);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},5748:(e,t,r)=>{"use strict";var i=r(946),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}},4647:(e,t,r)=>{"use strict";var i=r(8668);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},1552:(e,t,r)=>{"use strict";var i=r(946),o=r(3293),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},696:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4115:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1699:(e,t,r)=>{"use strict";var i,o,s=r(946),a=r(4115),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},9768:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2050:(e,t,r)=>{"use strict";var i=r(3587),o=Error,s=i("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},1148:(e,t,r)=>{"use strict";var i=r(7050),o=r(2050),s=r(8672),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},8672:(e,t,r)=>{"use strict";var i=r(8668),o=r(5081);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},5411:(e,t,r)=>{"use strict";var i=r(946),o=r(3222).f,s=r(7050),a=r(9287),u=r(5748),c=r(475),l=r(9943);e.exports=function(e,t){var r,f,h,d,p,y=e.target,g=e.global,m=e.stat;if(r=g?i:m?i[y]||u(y,{}):i[y]&&i[y].prototype)for(f in t){if(d=t[f],h=e.dontCallGetSet?(p=o(r,f))&&p.value:r[f],!l(g?f:y+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),a(r,f,d,e)}}},8668:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},72:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},7927:(e,t,r)=>{"use strict";var i=r(2409),o=r(6271),s=r(8145),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},8145:(e,t,r)=>{"use strict";var i=r(8668);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9274:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},561:(e,t,r)=>{"use strict";var i=r(4647),o=r(172),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},2927:(e,t,r)=>{"use strict";var i=r(3587),o=r(6271);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2409:(e,t,r)=>{"use strict";var i=r(3759),o=r(3587);e.exports=function(e){if("Function"===i(e))return o(e)}},3587:(e,t,r)=>{"use strict";var i=r(8145),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},9278:(e,t,r)=>{"use strict";var i=r(946),o=r(2682);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},8692:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1832:(e,t,r)=>{"use strict";var i=r(1628),o=r(7655),s=r(448),a=r(9262),u=r(3608)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},5708:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(2656),u=r(1832),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw new c(a(e)+" is not iterable")}},7655:(e,t,r)=>{"use strict";var i=r(6271),o=r(448);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},2428:(e,t,r)=>{"use strict";var i=r(6271),o=r(6912),s=r(9274),a=r(7754),u=r(8692),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,d=function(e,t){this.set=e,this.size=h(t,0),this.has=i(e.has),this.keys=i(e.keys)};d.prototype={getIterator:function(){return u(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(c);var r=a(t);if(r<0)throw new l(c);return new d(e,r)}},946: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")()},172:(e,t,r)=>{"use strict";var i=r(3587),o=r(9186),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},6290:e=>{"use strict";e.exports={}},7024:(e,t,r)=>{"use strict";var i=r(9278);e.exports=i("document","documentElement")},8496:(e,t,r)=>{"use strict";var i=r(4647),o=r(8668),s=r(1552);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},7938:(e,t,r)=>{"use strict";var i=r(3587),o=r(8668),s=r(3759),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},7220:(e,t,r)=>{"use strict";var i=r(2682),o=r(3293),s=r(2952);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},1383:(e,t,r)=>{"use strict";var i=r(3587),o=r(2682),s=r(208),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},3963:(e,t,r)=>{"use strict";var i=r(3293),o=r(7050);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},8196:(e,t,r)=>{"use strict";var i,o,s,a=r(5047),u=r(946),c=r(3293),l=r(7050),f=r(172),h=r(208),d=r(4874),p=r(6290),y="Object already initialized",g=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new g(y);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=d("state");p[v]=!0,i=function(e,t){if(f(e,v))throw new g(y);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},3140:(e,t,r)=>{"use strict";var i=r(3608),o=r(9262),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},1105:(e,t,r)=>{"use strict";var i=r(3759);e.exports=Array.isArray||function(e){return"Array"===i(e)}},2682:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},9943:(e,t,r)=>{"use strict";var i=r(8668),o=r(2682),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8464:(e,t,r)=>{"use strict";var i=r(1628),o=r(172),s=r(448),a=r(3608),u=r(9262),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},448:e=>{"use strict";e.exports=function(e){return null==e}},3293:(e,t,r)=>{"use strict";var i=r(2682);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},4818:(e,t,r)=>{"use strict";var i=r(3293);e.exports=function(e){return i(e)||null===e}},6e3:e=>{"use strict";e.exports=!1},2026:(e,t,r)=>{"use strict";var i=r(9278),o=r(2682),s=r(1512),a=r(6759),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},3662:(e,t,r)=>{"use strict";var i=r(9274);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},3159:(e,t,r)=>{"use strict";var i=r(7927),o=r(9274),s=r(6912),a=r(2656),u=r(3140),c=r(1327),l=r(1512),f=r(5708),h=r(1832),d=r(4938),p=TypeError,y=function(e,t){this.stopped=e,this.result=t},g=y.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),M=function(e){return m&&d(m,"normal",e),new y(!0,e)},P=function(e){return O?(s(e),T?R(e[0],e[1],M):R(e[0],e[1])):T?R(e,M):R(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw new p(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=P(e[v]))&&l(g,_))return _;return new y(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=P(x.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new y(!1)}},4938:(e,t,r)=>{"use strict";var i=r(9274),o=r(6912),s=r(7655);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},2385:(e,t,r)=>{"use strict";var i=r(9274),o=r(5579),s=r(7050),a=r(3602),u=r(3608),c=r(8196),l=r(7655),f=r(3100).IteratorPrototype,h=r(4942),d=r(4938),p=u("toStringTag"),y="IteratorHelper",g="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?g:y);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(e){return d(o,"throw",e)}return d(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,p,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:y,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},5680:(e,t,r)=>{"use strict";var i=r(9274),o=r(6271),s=r(6912),a=r(8692),u=r(2385),c=r(7522),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},3100:(e,t,r)=>{"use strict";var i,o,s,a=r(8668),u=r(2682),c=r(3293),l=r(5579),f=r(3380),h=r(9287),d=r(3608),p=r(6e3),y=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):g=!0),!c(i)||a(function(){var e={};return i[y].call(e)!==e})?i={}:p&&(i=l(i)),u(i[y])||h(i,y,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},9262:e=>{"use strict";e.exports={}},1327:(e,t,r)=>{"use strict";var i=r(8593);e.exports=function(e){return i(e.length)}},9848:(e,t,r)=>{"use strict";var i=r(3587),o=r(8668),s=r(2682),a=r(172),u=r(4647),c=r(561).CONFIGURABLE,l=r(1383),f=r(8196),h=f.enforce,d=f.get,p=String,y=Object.defineProperty,g=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?y(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&y(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&y(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&d(this).source||l(this)},"toString")},6023:(e,t,r)=>{"use strict";var i=r(3587),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},92:(e,t,r)=>{"use strict";var i=r(3587),o=r(3662),s=r(6023),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},5720:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},3824:(e,t,r)=>{"use strict";var i=r(9824);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},5579:(e,t,r)=>{"use strict";var i,o=r(6912),s=r(9900),a=r(9768),u=r(6290),c=r(7024),l=r(1552),f=r(4874),h="prototype",d="script",p=f("IE_PROTO"),y=function(){},g=function(e){return"<"+d+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(y[h]=o(e),r=new y,y[h]=null,r[p]=e):r=v(),void 0===t?r:s.f(r,t)}},9900:(e,t,r)=>{"use strict";var i=r(4647),o=r(7173),s=r(2300),a=r(6912),u=r(7902),c=r(4107);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},2300:(e,t,r)=>{"use strict";var i=r(4647),o=r(8496),s=r(7173),a=r(6912),u=r(2230),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var i=f(e,t);i&&i[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3222:(e,t,r)=>{"use strict";var i=r(4647),o=r(9274),s=r(7310),a=r(5081),u=r(7902),c=r(2230),l=r(172),f=r(8496),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},4779:(e,t,r)=>{"use strict";var i=r(2517),o=r(9768).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},5730:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3380:(e,t,r)=>{"use strict";var i=r(172),o=r(2682),s=r(9186),a=r(4874),u=r(9238),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},1512:(e,t,r)=>{"use strict";var i=r(3587);e.exports=i({}.isPrototypeOf)},2517:(e,t,r)=>{"use strict";var i=r(3587),o=r(172),s=r(7902),a=r(4900).indexOf,u=r(6290),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},4107:(e,t,r)=>{"use strict";var i=r(2517),o=r(9768);e.exports=Object.keys||function(e){return i(e,o)}},7310:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},2952:(e,t,r)=>{"use strict";var i=r(2927),o=r(3293),s=r(3007),a=r(6155);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return s(r),a(i),o(r)&&(t?e(r,i):r.__proto__=i),r}}():void 0)},693:(e,t,r)=>{"use strict";var i=r(9274),o=r(2682),s=r(3293),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw new a("Can't convert object to primitive value")}},9010:(e,t,r)=>{"use strict";var i=r(9278),o=r(3587),s=r(4779),a=r(5730),u=r(6912),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},1371:(e,t,r)=>{"use strict";var i=r(3587),o=r(172),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9341:(e,t,r)=>{"use strict";var i=r(2300).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3007:(e,t,r)=>{"use strict";var i=r(448),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},6534:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7073:(e,t,r)=>{"use strict";var i=r(5961),o=r(162),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},9009:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(7073),a=r(8943),u=r(2428),c=r(162),l=r(3662),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},5961:(e,t,r)=>{"use strict";var i=r(3587),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},4499:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(8943),a=r(2428),u=r(162),c=r(3662),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},8900:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).has,s=r(8943),a=r(2428),u=r(162),c=r(3662),l=r(4938);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},8531:(e,t,r)=>{"use strict";var i=r(5647),o=r(8943),s=r(162),a=r(2428);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},2610:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).has,s=r(8943),a=r(2428),u=r(3662),c=r(4938);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(3587),o=r(3662),s=r(5961),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},2117:(e,t,r)=>{"use strict";var i=r(9278),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},8943:(e,t,r)=>{"use strict";var i=r(2927),o=r(5961);e.exports=i(o.proto,"size","get")||function(e){return e.size}},7747:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961),s=r(7073),a=r(2428),u=r(3662),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},9767:(e,t,r)=>{"use strict";var i=r(5647),o=r(5961).add,s=r(7073),a=r(2428),u=r(3662);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},4874:(e,t,r)=>{"use strict";var i=r(9720),o=r(5075),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},208:(e,t,r)=>{"use strict";var i=r(6e3),o=r(946),s=r(5748),a="__core-js_shared__",u=e.exports=o[a]||s(a,{});(u.versions||(u.versions=[])).push({version:"3.37.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},9720:(e,t,r)=>{"use strict";var i=r(208);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},614:(e,t,r)=>{"use strict";var i=r(1699),o=r(8668),s=r(946).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},273:(e,t,r)=>{"use strict";var i=r(7754),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},7902:(e,t,r)=>{"use strict";var i=r(7938),o=r(3007);e.exports=function(e){return i(o(e))}},7754:(e,t,r)=>{"use strict";var i=r(5720);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},8593:(e,t,r)=>{"use strict";var i=r(7754),o=Math.min;e.exports=function(e){var t=i(e);return t>0?o(t,9007199254740991):0}},9186:(e,t,r)=>{"use strict";var i=r(3007),o=Object;e.exports=function(e){return o(i(e))}},2988:(e,t,r)=>{"use strict";var i=r(9274),o=r(3293),s=r(2026),a=r(7655),u=r(693),c=r(3608),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},2230:(e,t,r)=>{"use strict";var i=r(2988),o=r(2026);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},5433:(e,t,r)=>{"use strict";var i=r(9278),o=r(2682),s=r(8464),a=r(3293),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},1727:(e,t,r)=>{"use strict";var i=r(3608)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},9824:(e,t,r)=>{"use strict";var i=r(1628),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},2656:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5075:(e,t,r)=>{"use strict";var i=r(3587),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},6759:(e,t,r)=>{"use strict";var i=r(614);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7173:(e,t,r)=>{"use strict";var i=r(4647),o=r(8668);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},5047:(e,t,r)=>{"use strict";var i=r(946),o=r(2682),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},3608:(e,t,r)=>{"use strict";var i=r(946),o=r(9720),s=r(172),a=r(5075),u=r(614),c=r(6759),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},8846:(e,t,r)=>{"use strict";var i=r(9278),o=r(172),s=r(7050),a=r(1512),u=r(2952),c=r(475),l=r(9341),f=r(7220),h=r(3824),d=r(3963),p=r(1148),y=r(4647),g=r(6e3);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!g&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),p(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&d(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):y&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!g)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},7777:(e,t,r)=>{"use strict";var i=r(5411),o=r(9186),s=r(1327),a=r(6570),u=r(696);i({target:"Array",proto:!0,arity:1,forced:r(8668)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(5411),o=r(946),s=r(72),a=r(8846),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},2711:(e,t,r)=>{"use strict";var i=r(5411),o=r(9009);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("difference")},{difference:o})},3857:(e,t,r)=>{"use strict";var i=r(5411),o=r(8668),s=r(4499);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("intersection")||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:s})},4044:(e,t,r)=>{"use strict";var i=r(5411),o=r(8900);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isDisjointFrom")},{isDisjointFrom:o})},1905:(e,t,r)=>{"use strict";var i=r(5411),o=r(8531);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isSubsetOf")},{isSubsetOf:o})},1370:(e,t,r)=>{"use strict";var i=r(5411),o=r(2610);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("isSupersetOf")},{isSupersetOf:o})},4481:(e,t,r)=>{"use strict";var i=r(5411),o=r(7747);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("symmetricDifference")},{symmetricDifference:o})},5901:(e,t,r)=>{"use strict";var i=r(5411),o=r(9767);i({target:"Set",proto:!0,real:!0,forced:!r(2117)("union")},{union:o})},9105:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},7021:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},9614:(e,t,r)=>{"use strict";var i=r(5411),o=r(6775);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(6e3)},{map:o})},8920:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(6271),a=r(6912),u=r(3293),c=r(9278),l=r(8692),f=r(4189),h=c("Promise"),d=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,p=c?void 0:arguments[1],y=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},g=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(new d("Reduce of empty iterator with no initial value")):t(p);else{var i=r.value;if(c)c=!1,p=i,g();else try{var o=e(p,i,y),f=function(e){p=e,g()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}y++}catch(e){s(e)}},s)}catch(e){s(e)}};g()})}})},8142:(e,t,r)=>{"use strict";var i=r(5411),o=r(9102).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},5907:(e,t,r)=>{"use strict";var i=r(5411),o=r(946),s=r(7836),a=r(6912),u=r(2682),c=r(3380),l=r(6435),f=r(7207),h=r(8668),d=r(172),p=r(3608),y=r(3100).IteratorPrototype,g=r(4647),m=r(6e3),b="constructor",v="Iterator",w=p("toStringTag"),_=TypeError,S=o[v],x=m||!u(S)||S.prototype!==y||!h(function(){S({})}),E=function(){if(s(this,y),c(this)===y)throw new _("Abstract class Iterator not directly constructable")},O=function(e,t){g?l(y,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===y)throw new _("You can't redefine this property");d(this,e)?this[e]=t:f(this,e,t)}}):y[e]=t};d(y,w)||O(w,v),(x||!d(y,b)||y[b]===Object)&&O(b,E),E.prototype=y,i({global:!0,constructor:!0,forced:x},{Iterator:E})},8584:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},9024:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},7921:(e,t,r)=>{"use strict";var i=r(5411),o=r(5680);i({target:"Iterator",proto:!0,real:!0,forced:r(6e3)},{map:o})},7113:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw new c("Reduce of empty iterator with no initial value");return i}})},3679:(e,t,r)=>{"use strict";var i=r(5411),o=r(3159),s=r(6271),a=r(6912),u=r(8692);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8484:(e,t,r)=>{"use strict";var i=r(5411),o=r(4647),s=r(946),a=r(9278),u=r(3587),c=r(9274),l=r(2682),f=r(3293),h=r(1105),d=r(172),p=r(9824),y=r(1327),g=r(7207),m=r(8668),b=r(1371),v=r(614),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),R=u([].push),M=/^\d$/,P=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){var r=new B(e=p(e),0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(5411),o=r(9993),s=r(6023).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5411),o=r(9993),s=r(6023),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},5772:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);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)}})},6233:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},822:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},6724:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},7821:(e,t,r)=>{"use strict";var i=r(5411),o=r(6534),s=r(9993),a=r(92);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)}})},8280:(e,t,r)=>{"use strict";var i=r(5411),o=r(9993),s=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4334:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=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 c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},8536:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(6023),u=r(92),c=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 c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},5287:(e,t,r)=>{"use strict";var i=r(5411),o=r(9993),s=r(3159),a=r(6023).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{"use strict";var i=r(5411),o=r(6271),s=r(9993),a=r(92),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw new u("Reduce of empty map with no initial value");return i}})},6539:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(9993),a=r(92);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9630:(e,t,r)=>{"use strict";var i=r(5411),o=r(6271),s=r(9993),a=r(6023),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw new u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},6584:(e,t,r)=>{"use strict";var i=r(5411),o=r(5647),s=r(5961).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(5411),o=r(5647),s=r(5961).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(9009);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9758:(e,t,r)=>{"use strict";r(2711)},4910:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",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){if(!r(e,e,t))return!1},!0)}})},7847:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(5961),u=r(162),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},5386:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},2752:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(4499);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},3e3:(e,t,r)=>{"use strict";r(3857)},9179:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(8900);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},321:(e,t,r)=>{"use strict";r(4044)},1136:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(8531);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},4488:(e,t,r)=>{"use strict";r(1905)},2729:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(2610);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},7831:(e,t,r)=>{"use strict";r(1370)},3437:(e,t,r)=>{"use strict";var i=r(5411),o=r(3587),s=r(5647),a=r(162),u=r(9824),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},5751:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(5961),u=r(162),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},139:(e,t,r)=>{"use strict";var i=r(5411),o=r(6271),s=r(5647),a=r(162),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw new u("Reduce of empty set with no initial value");return i}})},3025:(e,t,r)=>{"use strict";var i=r(5411),o=r(7927),s=r(5647),a=r(162);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},8620:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(7747);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},1276:(e,t,r)=>{"use strict";r(4481)},6465:(e,t,r)=>{"use strict";var i=r(5411),o=r(9274),s=r(5433),a=r(9767);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},2486:(e,t,r)=>{"use strict";r(5901)},9571:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(9614),r(7921),r(8484),r(8142),r(3679),r(5907);let{getManagedCacheStorage:e,CacheStorageGroup:t}=r(6718),i=r(7016).parse;r(9588).disable=!0;let o=r(6406).PROVIDERS,s=e("bridge");s.aliveDuration=9e5;let a=(e,t)=>Promise.resolve().then(()=>{let r=e.pathname.slice(1).split("/").map(e=>decodeURIComponent(e)),i=t,o=decodeURIComponent(e.query);try{o=JSON.parse(o)}catch(e){}return r.some(e=>{if(!(e in i))return!0;i=i[e]})||"function"!=typeof i?Promise.reject():s.cache(o,()=>i(o))}),u=t.getInstance();setInterval(()=>{u.cleanup()},9e5),r(8611).createServer().listen(parseInt(process.argv[2])||9e3).on("request",(e,t)=>a(i(e.url),o).then(e=>t.write(e)).catch(()=>t.writeHead(404)).then(()=>t.end()))})()})(); \ No newline at end of file + `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},8183:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var d,p=function e(o,s,a,l,f,h,d){if(h+=1,"object"==typeof o&&null!==o){for(p=0;pd.depthLimit||void 0!==d.edgesLimit&&a+1>d.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(p=0;p0)for(var i=0;i{"use strict";e.exports=function(e){return e}},3081:(e,t,r)=>{try{var i=r(9023);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3522)}},3522:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5463:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5645:(e,t,r)=>{var i=r(4037);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},3710:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(202),s=r(2896);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},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")},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(37),{noop:f,genLog:h}=r(711),d={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},p={fatal:e=>{let t=h(d.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(d.error,e),warn:e=>h(d.warn,e),info:e=>h(d.info,e),debug:e=>h(d.debug,e),trace:e=>h(d.trace,e)},y=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),g=Object.keys(y).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:g,genLsCache:function(e){let t=e[c].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:p,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],u=this[a],c=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,u)?h(r[e],c):p[e](c)}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:y,r),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,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(y).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:d,t)))throw Error(`default level:${e} must be included in custom levels`)}}},6011:(e,t,r)=>{"use strict";let{version:i}=r(9571);e.exports={version:i}},5262:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(4434),o=r(361),s=r(1517),a=r(617),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:d,mixinSym:p,asJsonSym:y,writeSym:g,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(37),{getLevel:R,setLevel:M,isLevelEnabled:P,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:D}=r(2129),{asChindings:C,asJson:I,buildFormatters:B,stringify:$}=r(711),{version:F}=r(6011),q=r(2205),U={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},2205:(e,t,r)=>{"use strict";let i=r(4408),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{rx:a,validator:u}=i,c=u({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:u}=function(e){if(Array.isArray(e))return c(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),c({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:u}=i,c=`${t.substr(u,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(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},d=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>d(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},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"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),d=Symbol("pino.redactFmt"),p=Symbol("pino.time"),y=Symbol("pino.timeSliceIndex"),g=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"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:d,timeSym:p,timeSliceIndexSym:y,streamSym:g,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},6751:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),u=r(8183),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:d,formatOptsSym:p,endSym:y,stringifiersSym:g,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(37);function O(){}function j(e,t,i,o){if(t&&"function"==typeof t)return k((t=t.bind(o))(e),i,e);try{let t=r(7259).prettyFactory||r(7259);return t.asMetaWrapper=k,k(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 k(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,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),p=i[d],y=Object.keys(p);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=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+u},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,u=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===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[p]),e)}else this[h](null,i(t,a,this[p]),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:u,prettifier:c,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})),u&&(i=j(Object.assign({messageKey:l},u),c,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 u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),u=r(5262),c=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(2129),{createArgsNormalizer:d,asChindings:p,final:y,stringify:g,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(711),{version:w}=r(6011),{mixinMergeStrategySym:_}=r(37),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:R,setLevelSym:M,endSym:P,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:D,useOnlyCustomLevelsSym:C,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:F}=a,{pid:q}=process,U=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:q,hostname:U},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:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=d(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:d,serializers:y,timestamp:m,messageKey:w,nestedKey:q,base:U,name:W,level:H,customLevels:Y,useLevelLabels:V,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);V&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=K):(Q||X)&&!V?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&V&&(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"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),y[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=y[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,g):{},es=c?{stringify:eo[x]}:{stringify:g},ea=p.bind(null,{[S]:"",[E]:y,[R]:eo,[T]:g,[I]:ei}),eu="";null!==U&&(eu=ea(void 0===W?U:Object.assign({},U,{name:W})));let ec=m instanceof Function?m:m?$:F,el=ec().indexOf(":")+1;if(et&&!Y)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,Y,et),Object.assign(i,{levels:f(Y,et),[C]:et,[k]:a,[O]:ec,[j]:el,[T]:g,[R]:eo,[P]:"}"+(d?"\r\n":"\n"),[A]:es,[L]:w,[N]:q,[E]:y,[D]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[M](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=y,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},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))}}}},9950:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6565:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},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:{}})},9271:(e,t,r)=>{"use strict";let{format:i}=r(9023);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){let u;return u=e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s,{code:o,name:r,message:u}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},6586:(e,t,r)=>{var i=r(5645),o=r(5486),s=r(9896),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},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 u=1;u-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=p+2,p++;break}l+=o(r[f]),h=p+2,p++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u;let c,l;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(c="must not be",t=t.replace(/^not /,"")):c="must be",s=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-s.length,a)===s)l=`The ${e} ${c} ${i(t,"type")}`;else{let r=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";l=`The "${e}" ${r} ${c} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5535:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(605),s=r(3581);r(3081)(l,o);for(var a=i(s.prototype),u=0;u{"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)}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,h=global.Uint8Array||function(){},d=r(9023);o=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(408),y=r(849),g=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=y.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=g(this,e,"readableHighWaterMark",o),this.buffer=new p,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 j(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,d,p=e._readableState;if(null===t)p.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,M(e)))}}(e,p);else{if(s||(a=p,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),d=c),d)S(e,d);else if(p.objectMode||t&&t.length>0){if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)p.endEmitted?S(e,new _):k(e,p,t,!0);else if(p.ended)S(e,new v);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?k(e,p,t,!1):P(e,p)):k(e,p,t,!1)}}else i||(p.reading=!1,P(e,p))}return!p.ended&&(p.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return 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(M,e))}function M(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,C(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,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 D(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(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 B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(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 F(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(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&&B(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=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?y:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,C(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function d(){e.removeListener("finish",p),y()}function p(){o("onfinish"),e.removeListener("close",d),y()}function y(){o("unpipe"),r.unpipe(e)}return r.on("data",f),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",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.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;s0,!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(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(D,this,e))),e.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){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{"use strict";e.exports=f;var i=r(8396).F,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5535);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(2664)},u=r(5251),c=r(181).Buffer,l=global.Uint8Array||function(){},f=r(849),h=r(6906).getHighWaterMark,d=r(8396).F,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(5535),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(P,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),P(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(k,e,r,s,o):k(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(5535));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function k(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),P(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,j(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(j(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(3081)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,d=this._writableState,y=!1,g=!d.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=x),d.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(g||(u=e,f=r,null===u?h=new v:"string"==typeof u||d.objectMode||(h=new p("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(d.pendingcb++,y=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(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"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){process.nextTick(y,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(p(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[d].read();i?(r[f]=null,r[a]=null,r[u]=null,e(p(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},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(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),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 eo.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{"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,u=this._writableState&&this._writableState.destroyed;return a||u?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)}}},9919:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).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,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(8396).F,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0,l=u=function(e){t||(t=e),e&&p.forEach(c),m||(p.forEach(c),d(t))},h=!1,u=function(){h||(h=!0,l.apply(void 0,arguments))},y=!1,e.on("close",function(){y=!0}),void 0===i&&(i=r(9919)),i(e,{readable:m,writable:s},function(e){if(e)return u(e);y=!0,u()}),g=!1,function(t){if(!y&&!g){if(g=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();u(t||new a("pipe"))}}});return f.reduce(l)}},6906:(e,t,r)=>{"use strict";var i=r(8396).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},5251:(e,t,r)=>{e.exports=r(2203)},9491:(e,t,r)=>{var i=r(2203);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(605)).Stream=i||t,t.Readable=t,t.Writable=r(3581),t.Duplex=r(5535),t.Transform=r(9585),t.PassThrough=r(419),t.finished=r(9919),t.pipeline=r(5629))},9460:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */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)}},4045:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,u=r(7048);function c(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&&h(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)c(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{u(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)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}else{i.write(this.fd,this._writingBuf,"utf8",this.release);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?h(this):this._ending?r>0?h(this):(this._writing=!1,d(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 h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):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 d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}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&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||d(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;u(100)}},l.prototype.destroy=function(){this.destroyed||d(this)},e.exports=l},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function u(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;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(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=u,r.flush=c,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}},3049:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7549:(e,t,r)=>{"use strict";var i=r(1144).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},2664:(e,t,r)=>{e.exports=r(9023).deprecate},4037:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},6773:e=>{"use strict";e.exports=require("vm")},8167:e=>{"use strict";e.exports=require("worker_threads")},3106:e=>{"use strict";e.exports=require("zlib")},6666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(2018));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||c||l||f),d=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:d(a,s,r,i)),p=(e,t,r,i,o)=>e<0?r+t+i:r+d(e,t,i,o)+i,y=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?p((""+o).indexOf(t,i),o,e,t,r):"",g=(e,t,r)=>y(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:g(0,0),bold:g(1,22,"\x1b[22m\x1b[1m"),dim:g(2,22,"\x1b[22m\x1b[2m"),italic:g(3,23),underline:g(4,24),inverse:g(7,27),hidden:g(8,28),strikethrough:g(9,29),black:g(30,39),red:g(31,39),green:g(32,39),yellow:g(33,39),blue:g(34,39),magenta:g(35,39),cyan:g(36,39),white:g(37,39),gray:g(90,39),bgBlack:g(40,49),bgRed:g(41,49),bgGreen:g(42,49),bgYellow:g(43,49),bgBlue:g(44,49),bgMagenta:g(45,49),bgCyan:g(46,49),bgWhite:g(47,49),blackBright:g(90,39),redBright:g(91,39),greenBright:g(92,39),yellowBright:g(93,39),blueBright:g(94,39),magentaBright:g(95,39),cyanBright:g(96,39),whiteBright:g(97,39),bgBlackBright:g(100,49),bgRedBright:g(101,49),bgGreenBright:g(102,49),bgYellowBright:g(103,49),bgBlueBright:g(104,49),bgMagentaBright:g(105,49),bgCyanBright:g(106,49),bgWhiteBright:g(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:j,strikethrough:k,black:T,red:R,green:M,yellow:P,blue:A,magenta:L,cyan:N,white:D,gray:C,bgBlack:I,bgRed:B,bgGreen:$,bgYellow:F,bgBlue:q,bgMagenta:U,bgCyan:W,bgWhite:G,blackBright:z,redBright:H,greenBright:J,yellowBright:K,blueBright:Y,magentaBright:V,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=I,t.bgBlackBright=Z,t.bgBlue=q,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=$,t.bgGreenBright=et,t.bgMagenta=U,t.bgMagentaBright=ei,t.bgRed=B,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=F,t.bgYellowBright=er,t.black=T,t.blackBright=z,t.blue=A,t.blueBright=Y,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=C,t.green=M,t.greenBright=J,t.hidden=j,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=V,t.red=R,t.redBright=H,t.reset=w,t.strikethrough=k,t.underline=E,t.white=D,t.whiteBright=X,t.yellow=P,t.yellowBright=K},7259:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(6666),o=r(6586),{Transform:s}=r(9491),a=r(3710),u=r(4045),c=r(5550),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:d,LEVEL_NAMES:p}=r(4249),{isObject:y,prettifyErrorLog:g,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(2349),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=(j?t.customLevels:void 0!==T[i])?T[i]:p[i];return e.push([void 0!==s?s:i,o]),e},[]):void 0,M={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(M.customLevels=void 0,M.customLevelNames=void 0);let P=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,D=c(t.colorize,R,j);return function(e){let c;if(y(e))c=e;else{let t=E(e);if(t.err||!y(t.value))return e+r;c=t.value}if(u){let e=((j?t.customLevels:void 0!==T[u])?T[u]:p[u])||Number(u);if(c[void 0===s?d:s]0?`${I} ${k}`:k),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=g({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:P,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:D});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){i(null,t(e))}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=c,e.exports.default=k},5550:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(4249),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(6666),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:d,green:p,blue:y,gray:g,cyan:m}=c,b={default:l,60:f,50:h,40:d,30:p,20:y,10:g,message:m,greyMessage:g};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:g}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},4249:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:u}=r(8167),c=r(5550)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:d,LEVEL_LABEL:p,TIMESTAMP_KEY:y,LOGGER_KEYS:g,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="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===d.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(y).length>0&&(p+=h.greyMessage(a(y))),p+=r):Object.entries(y).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});p+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(p+=E({keyName:e,lines:s,eol:r,ident:t}))}),p}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function k(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=S({input:e.stack,ident:r,eol:i}),u=`${r}${a}${i}`;if(s.length>0){let a;let c=g.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===c.includes(e)):s.filter(e=>!1===c.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=y,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=k,t.end=k,t.flushSync=k,t.destroy=k;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(5463);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{j(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:j,splitIgnoreKey:O,createDate:v,isValidDate:w}},2985:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(9023).inherits,a=r(6928),u=r(7048);function c(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}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&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:p,retryEAGAIN:y}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=y||(()=>!0),this.mkdir=p||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(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._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(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 h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}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)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):d(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._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||d(this)},l.SonicBoom=l,l.default=l,e.exports=l},9949:(e,t,r)=>{"use strict";var i=r(7376),o=r(6370),s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not a function")}},6275:(e,t,r)=>{"use strict";var i=r(3073).has;e.exports=function(e){return i(e),e}},1821:(e,t,r)=>{"use strict";var i=r(7396),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s("Can't set "+o(e)+" as a prototype")}},4765:(e,t,r)=>{"use strict";var i=r(2007).has;e.exports=function(e){return i(e),e}},3626:(e,t,r)=>{"use strict";var i=r(8558),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},1294:(e,t,r)=>{"use strict";var i=r(3147),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw new s(o(e)+" is not an object")}},950:(e,t,r)=>{"use strict";var i=r(1992),o=r(9823),s=r(6657),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c);if(0===l)return!e&&-1;var f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},7996:(e,t,r)=>{"use strict";var i=r(553),o=r(2779),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7335:(e,t,r)=>{"use strict";var i=r(8732),o=r(3344),s=r(5869);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},3026:(e,t,r)=>{"use strict";var i=r(8732),o=r(7126),s=r(1294),a=r(1117),u=r(6772),c=r(3868),l=r(6142),f=r(6010),h=r(3344),d=r(5869),p=r(4877),y=r(2100),g=r(6568),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(y(void 0,!0))}:{exit:!1,value:a}};return c(a(p),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{g(c.inner.iterator,"normal")}catch(e){return g(l,"throw",e)}return d(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(y(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),y(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},4216:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(3147),u=r(1438),c=r(3344),l=r(2558),f=r(7335),h=function(e){var t=0===e,r=1===e,h=2===e,d=3===e;return function(e,p,y){s(e);var g=void 0!==p;(g||!t)&&o(p);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(g)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(y.length=_,e(y)):e(!d&&(h||void 0));else{var u=i.value;try{if(g){var m=p(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{y[_++]=i,l()}catch(e){c(e)}else i?f(v,e,d||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else y[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},3485:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(3147),u=r(2558),c=r(3026),l=r(2100),f=r(7335),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},d=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,d):f(c)}catch(e){d(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},4877:(e,t,r)=>{"use strict";var i,o,s=r(1140),a=r(8682),u=r(7376),c=r(1117),l=r(3318),f=r(8009),h=r(6142),d=r(3274),p="USE_FUNCTION_CONSTRUCTOR",y=h("asyncIterator"),g=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(g))i=g.prototype;else if(a[p]||s[p])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?d&&(i=c(i)):i={},u(i[y])||f(i,y,function(){return this}),e.exports=i},9640:(e,t,r)=>{"use strict";var i=r(1294),o=r(6568);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},4261:(e,t,r)=>{"use strict";var i=r(5245),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},5378:(e,t,r)=>{"use strict";var i=r(2741),o=r(7376),s=r(4261),a=r(6142)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},5909:(e,t,r)=>{"use strict";var i=r(2630),o=r(7820),s=r(2044),a=r(9342);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(3870);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2100:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},6772:(e,t,r)=>{"use strict";var i=r(553),o=r(9342),s=r(8727);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},8727:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3925:(e,t,r)=>{"use strict";var i=r(553),o=r(9342),s=r(8727);e.exports=function(e,t,r){i?o.f(e,t,s(0,r)):e[t]=r}},9129:(e,t,r)=>{"use strict";var i=r(8878),o=r(9342);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},8009:(e,t,r)=>{"use strict";var i=r(7376),o=r(9342),s=r(8878),a=r(8258);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},3868:(e,t,r)=>{"use strict";var i=r(8009);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},8258:(e,t,r)=>{"use strict";var i=r(1140),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}},553:(e,t,r)=>{"use strict";var i=r(3870);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},170:(e,t,r)=>{"use strict";var i=r(1140),o=r(3147),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},1438:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4417:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4625:(e,t,r)=>{"use strict";var i,o,s=r(1140),a=r(4417),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},8286:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2256:(e,t,r)=>{"use strict";var i=r(5245),o=Error,s=i("".replace),a=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},2378:(e,t,r)=>{"use strict";var i=r(6772),o=r(2256),s=r(7802),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},7802:(e,t,r)=>{"use strict";var i=r(3870),o=r(8727);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},4073:(e,t,r)=>{"use strict";var i=r(1140),o=r(2044).f,s=r(6772),a=r(8009),u=r(8258),c=r(5909),l=r(1469);e.exports=function(e,t){var r,f,h,d,p,y=e.target,g=e.global,m=e.stat;if(r=g?i:m?i[y]||u(y,{}):i[y]&&i[y].prototype)for(f in t){if(d=t[f],h=e.dontCallGetSet?(p=o(r,f))&&p.value:r[f],!l(g?f:y+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),a(r,f,d,e)}}},3870:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9370:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},3809:(e,t,r)=>{"use strict";var i=r(7279),o=r(9949),s=r(5507),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5507:(e,t,r)=>{"use strict";var i=r(3870);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},8732:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1195:(e,t,r)=>{"use strict";var i=r(553),o=r(2630),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},1981:(e,t,r)=>{"use strict";var i=r(5245),o=r(9949);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7279:(e,t,r)=>{"use strict";var i=r(4261),o=r(5245);e.exports=function(e){if("Function"===i(e))return o(e)}},5245:(e,t,r)=>{"use strict";var i=r(5507),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},3344:(e,t,r)=>{"use strict";var i=r(1140),o=r(7376);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},2558:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},510:(e,t,r)=>{"use strict";var i=r(5378),o=r(5869),s=r(754),a=r(3560),u=r(6142)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},9170:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(6370),u=r(510),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw new c(a(e)+" is not iterable")}},5869:(e,t,r)=>{"use strict";var i=r(9949),o=r(754);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},2298:(e,t,r)=>{"use strict";var i=r(9949),o=r(1294),s=r(8732),a=r(8100),u=r(2558),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,d=function(e,t){this.set=e,this.size=h(t,0),this.has=i(e.has),this.keys=i(e.keys)};d.prototype={getIterator:function(){return u(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(c);var r=a(t);if(r<0)throw new l(c);return new d(e,r)}},1140: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")()},2630:(e,t,r)=>{"use strict";var i=r(5245),o=r(760),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},7072:e=>{"use strict";e.exports={}},4270:(e,t,r)=>{"use strict";var i=r(3344);e.exports=i("document","documentElement")},9154:(e,t,r)=>{"use strict";var i=r(553),o=r(3870),s=r(170);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},3884:(e,t,r)=>{"use strict";var i=r(5245),o=r(3870),s=r(4261),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},498:(e,t,r)=>{"use strict";var i=r(7376),o=r(3147),s=r(1474);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},7329:(e,t,r)=>{"use strict";var i=r(5245),o=r(7376),s=r(8682),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},6605:(e,t,r)=>{"use strict";var i=r(3147),o=r(6772);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},6010:(e,t,r)=>{"use strict";var i,o,s,a=r(1173),u=r(1140),c=r(3147),l=r(6772),f=r(2630),h=r(8682),d=r(7964),p=r(7072),y="Object already initialized",g=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new g(y);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=d("state");p[v]=!0,i=function(e,t){if(f(e,v))throw new g(y);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},2502:(e,t,r)=>{"use strict";var i=r(6142),o=r(3560),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},2779:(e,t,r)=>{"use strict";var i=r(4261);e.exports=Array.isArray||function(e){return"Array"===i(e)}},7376:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1469:(e,t,r)=>{"use strict";var i=r(3870),o=r(7376),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8646:(e,t,r)=>{"use strict";var i=r(5378),o=r(2630),s=r(754),a=r(6142),u=r(3560),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},754:e=>{"use strict";e.exports=function(e){return null==e}},3147:(e,t,r)=>{"use strict";var i=r(7376);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},7396:(e,t,r)=>{"use strict";var i=r(3147);e.exports=function(e){return i(e)||null===e}},3274:e=>{"use strict";e.exports=!1},2716:(e,t,r)=>{"use strict";var i=r(3344),o=r(7376),s=r(8558),a=r(3693),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},5180:(e,t,r)=>{"use strict";var i=r(8732);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},1941:(e,t,r)=>{"use strict";var i=r(3809),o=r(8732),s=r(1294),a=r(6370),u=r(2502),c=r(6657),l=r(8558),f=r(9170),h=r(510),d=r(6568),p=TypeError,y=function(e,t){this.stopped=e,this.result=t},g=y.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),M=function(e){return m&&d(m,"normal",e),new y(!0,e)},P=function(e){return O?(s(e),T?R(e[0],e[1],M):R(e[0],e[1])):T?R(e,M):R(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw new p(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=P(e[v]))&&l(g,_))return _;return new y(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=P(x.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new y(!1)}},6568:(e,t,r)=>{"use strict";var i=r(8732),o=r(1294),s=r(5869);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},4679:(e,t,r)=>{"use strict";var i=r(8732),o=r(1117),s=r(6772),a=r(3868),u=r(6142),c=r(6010),l=r(5869),f=r(5822).IteratorPrototype,h=r(2100),d=r(6568),p=u("toStringTag"),y="IteratorHelper",g="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?g:y);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(e){return d(o,"throw",e)}return d(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,p,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:y,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},9402:(e,t,r)=>{"use strict";var i=r(8732),o=r(9949),s=r(1294),a=r(2558),u=r(4679),c=r(9640),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},5822:(e,t,r)=>{"use strict";var i,o,s,a=r(3870),u=r(7376),c=r(3147),l=r(1117),f=r(3318),h=r(8009),d=r(6142),p=r(3274),y=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):g=!0),!c(i)||a(function(){var e={};return i[y].call(e)!==e})?i={}:p&&(i=l(i)),u(i[y])||h(i,y,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},3560:e=>{"use strict";e.exports={}},6657:(e,t,r)=>{"use strict";var i=r(9191);e.exports=function(e){return i(e.length)}},8878:(e,t,r)=>{"use strict";var i=r(5245),o=r(3870),s=r(7376),a=r(2630),u=r(553),c=r(1195).CONFIGURABLE,l=r(7329),f=r(6010),h=f.enforce,d=f.get,p=String,y=Object.defineProperty,g=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?y(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&y(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&y(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&d(this).source||l(this)},"toString")},3073:(e,t,r)=>{"use strict";var i=r(5245),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},298:(e,t,r)=>{"use strict";var i=r(5245),o=r(5180),s=r(3073),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},7042:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},6438:(e,t,r)=>{"use strict";var i=r(7990);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},1117:(e,t,r)=>{"use strict";var i,o=r(1294),s=r(9682),a=r(8286),u=r(7072),c=r(4270),l=r(170),f=r(7964),h="prototype",d="script",p=f("IE_PROTO"),y=function(){},g=function(e){return"<"+d+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(y[h]=o(e),r=new y,y[h]=null,r[p]=e):r=v(),void 0===t?r:s.f(r,t)}},9682:(e,t,r)=>{"use strict";var i=r(553),o=r(2831),s=r(9342),a=r(1294),u=r(1992),c=r(8165);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},9342:(e,t,r)=>{"use strict";var i=r(553),o=r(9154),s=r(2831),a=r(1294),u=r(4468),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var i=f(e,t);i&&i[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},2044:(e,t,r)=>{"use strict";var i=r(553),o=r(8732),s=r(6700),a=r(8727),u=r(1992),c=r(4468),l=r(2630),f=r(9154),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},4369:(e,t,r)=>{"use strict";var i=r(4767),o=r(8286).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},896:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3318:(e,t,r)=>{"use strict";var i=r(2630),o=r(7376),s=r(760),a=r(7964),u=r(9284),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},8558:(e,t,r)=>{"use strict";var i=r(5245);e.exports=i({}.isPrototypeOf)},4767:(e,t,r)=>{"use strict";var i=r(5245),o=r(2630),s=r(1992),a=r(950).indexOf,u=r(7072),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8165:(e,t,r)=>{"use strict";var i=r(4767),o=r(8286);e.exports=Object.keys||function(e){return i(e,o)}},6700:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1474:(e,t,r)=>{"use strict";var i=r(1981),o=r(3147),s=r(8313),a=r(1821);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return s(r),a(i),o(r)&&(t?e(r,i):r.__proto__=i),r}}():void 0)},3443:(e,t,r)=>{"use strict";var i=r(8732),o=r(7376),s=r(3147),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw new a("Can't convert object to primitive value")}},7820:(e,t,r)=>{"use strict";var i=r(3344),o=r(5245),s=r(4369),a=r(896),u=r(1294),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},205:(e,t,r)=>{"use strict";var i=r(5245),o=r(2630),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},2683:(e,t,r)=>{"use strict";var i=r(9342).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8313:(e,t,r)=>{"use strict";var i=r(754),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},1604:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7003:(e,t,r)=>{"use strict";var i=r(2007),o=r(7180),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},7799:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(7003),a=r(2697),u=r(2298),c=r(7180),l=r(5180),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},2007:(e,t,r)=>{"use strict";var i=r(5245),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6829:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(2697),a=r(2298),u=r(7180),c=r(5180),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},2430:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).has,s=r(2697),a=r(2298),u=r(7180),c=r(5180),l=r(6568);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},1581:(e,t,r)=>{"use strict";var i=r(4765),o=r(2697),s=r(7180),a=r(2298);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},4596:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).has,s=r(2697),a=r(2298),u=r(5180),c=r(6568);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(5245),o=r(5180),s=r(2007),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},355:(e,t,r)=>{"use strict";var i=r(3344),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},2697:(e,t,r)=>{"use strict";var i=r(1981),o=r(2007);e.exports=i(o.proto,"size","get")||function(e){return e.size}},1973:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007),s=r(7003),a=r(2298),u=r(5180),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},6857:(e,t,r)=>{"use strict";var i=r(4765),o=r(2007).add,s=r(7003),a=r(2298),u=r(5180);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},7964:(e,t,r)=>{"use strict";var i=r(2046),o=r(6333),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},8682:(e,t,r)=>{"use strict";var i=r(3274),o=r(1140),s=r(8258),a="__core-js_shared__",u=e.exports=o[a]||s(a,{});(u.versions||(u.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},2046:(e,t,r)=>{"use strict";var i=r(8682);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},6484:(e,t,r)=>{"use strict";var i=r(4625),o=r(3870),s=r(1140).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},9823:(e,t,r)=>{"use strict";var i=r(8100),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1992:(e,t,r)=>{"use strict";var i=r(3884),o=r(8313);e.exports=function(e){return i(o(e))}},8100:(e,t,r)=>{"use strict";var i=r(7042);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},9191:(e,t,r)=>{"use strict";var i=r(8100),o=Math.min;e.exports=function(e){var t=i(e);return t>0?o(t,9007199254740991):0}},760:(e,t,r)=>{"use strict";var i=r(8313),o=Object;e.exports=function(e){return o(i(e))}},6078:(e,t,r)=>{"use strict";var i=r(8732),o=r(3147),s=r(2716),a=r(5869),u=r(3443),c=r(6142),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4468:(e,t,r)=>{"use strict";var i=r(6078),o=r(2716);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},4031:(e,t,r)=>{"use strict";var i=r(3344),o=r(7376),s=r(8646),a=r(3147),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},2741:(e,t,r)=>{"use strict";var i=r(6142)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},7990:(e,t,r)=>{"use strict";var i=r(5378),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6370:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6333:(e,t,r)=>{"use strict";var i=r(5245),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},3693:(e,t,r)=>{"use strict";var i=r(6484);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2831:(e,t,r)=>{"use strict";var i=r(553),o=r(3870);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1173:(e,t,r)=>{"use strict";var i=r(1140),o=r(7376),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},6142:(e,t,r)=>{"use strict";var i=r(1140),o=r(2046),s=r(2630),a=r(6333),u=r(6484),c=r(3693),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},2087:(e,t,r)=>{"use strict";var i=r(3344),o=r(2630),s=r(6772),a=r(8558),u=r(1474),c=r(5909),l=r(2683),f=r(498),h=r(6438),d=r(6605),p=r(2378),y=r(553),g=r(3274);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!g&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),p(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&d(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):y&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!g)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},1267:(e,t,r)=>{"use strict";var i=r(4073),o=r(760),s=r(6657),a=r(7996),u=r(1438);i({target:"Array",proto:!0,arity:1,forced:r(3870)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(4073),o=r(1140),s=r(9370),a=r(2087),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},2597:(e,t,r)=>{"use strict";var i=r(4073),o=r(7799);i({target:"Set",proto:!0,real:!0,forced:!r(355)("difference")},{difference:o})},1363:(e,t,r)=>{"use strict";var i=r(4073),o=r(3870),s=r(6829);i({target:"Set",proto:!0,real:!0,forced:!r(355)("intersection")||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:s})},9398:(e,t,r)=>{"use strict";var i=r(4073),o=r(2430);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isDisjointFrom")},{isDisjointFrom:o})},2003:(e,t,r)=>{"use strict";var i=r(4073),o=r(1581);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isSubsetOf")},{isSubsetOf:o})},2996:(e,t,r)=>{"use strict";var i=r(4073),o=r(4596);i({target:"Set",proto:!0,real:!0,forced:!r(355)("isSupersetOf")},{isSupersetOf:o})},7611:(e,t,r)=>{"use strict";var i=r(4073),o=r(1973);i({target:"Set",proto:!0,real:!0,forced:!r(355)("symmetricDifference")},{symmetricDifference:o})},1335:(e,t,r)=>{"use strict";var i=r(4073),o=r(6857);i({target:"Set",proto:!0,real:!0,forced:!r(355)("union")},{union:o})},9991:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},8691:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},1608:(e,t,r)=>{"use strict";var i=r(4073),o=r(3485);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(3274)},{map:o})},9926:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(9949),a=r(1294),u=r(3147),c=r(3344),l=r(2558),f=r(7335),h=c("Promise"),d=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,p=c?void 0:arguments[1],y=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},g=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(new d("Reduce of empty iterator with no initial value")):t(p);else{var i=r.value;if(c)c=!1,p=i,g();else try{var o=e(p,i,y),f=function(e){p=e,g()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}y++}catch(e){s(e)}},s)}catch(e){s(e)}};g()})}})},8580:(e,t,r)=>{"use strict";var i=r(4073),o=r(4216).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},7225:(e,t,r)=>{"use strict";var i=r(4073),o=r(1140),s=r(3626),a=r(1294),u=r(7376),c=r(3318),l=r(9129),f=r(3925),h=r(3870),d=r(2630),p=r(6142),y=r(5822).IteratorPrototype,g=r(553),m=r(3274),b="constructor",v="Iterator",w=p("toStringTag"),_=TypeError,S=o[v],x=m||!u(S)||S.prototype!==y||!h(function(){S({})}),E=function(){if(s(this,y),c(this)===y)throw new _("Abstract class Iterator not directly constructable")},O=function(e,t){g?l(y,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===y)throw new _("You can't redefine this property");d(this,e)?this[e]=t:f(this,e,t)}}):y[e]=t};d(y,w)||O(w,v),(x||!d(y,b)||y[b]===Object)&&O(b,E),E.prototype=y,i({global:!0,constructor:!0,forced:x},{Iterator:E})},5877:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},4738:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},4399:(e,t,r)=>{"use strict";var i=r(4073),o=r(9402);i({target:"Iterator",proto:!0,real:!0,forced:r(3274)},{map:o})},7555:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw new c("Reduce of empty iterator with no initial value");return i}})},2489:(e,t,r)=>{"use strict";var i=r(4073),o=r(1941),s=r(9949),a=r(1294),u=r(2558);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8398:(e,t,r)=>{"use strict";var i=r(4073),o=r(553),s=r(1140),a=r(3344),u=r(5245),c=r(8732),l=r(7376),f=r(3147),h=r(2779),d=r(2630),p=r(7990),y=r(6657),g=r(3925),m=r(3870),b=r(205),v=r(6484),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),R=u([].push),M=/^\d$/,P=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){var r=new B(e=p(e),0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(4073),o=r(6275),s=r(3073).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(4073),o=r(6275),s=r(3073),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},2946:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);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)}})},107:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},452:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},422:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},2536:(e,t,r)=>{"use strict";var i=r(4073),o=r(1604),s=r(6275),a=r(298);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)}})},5126:(e,t,r)=>{"use strict";var i=r(4073),o=r(6275),s=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4128:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=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 c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},3418:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(3073),u=r(298),c=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 c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},4221:(e,t,r)=>{"use strict";var i=r(4073),o=r(6275),s=r(1941),a=r(3073).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{"use strict";var i=r(4073),o=r(9949),s=r(6275),a=r(298),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw new u("Reduce of empty map with no initial value");return i}})},6845:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(6275),a=r(298);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9704:(e,t,r)=>{"use strict";var i=r(4073),o=r(9949),s=r(6275),a=r(3073),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw new u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},8098:(e,t,r)=>{"use strict";var i=r(4073),o=r(4765),s=r(2007).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(4073),o=r(4765),s=r(2007).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(7799);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9536:(e,t,r)=>{"use strict";r(2597)},5312:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",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){if(!r(e,e,t))return!1},!0)}})},1837:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(2007),u=r(7180),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},7024:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},8422:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(6829);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},3169:(e,t,r)=>{"use strict";r(1363)},5673:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(2430);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},3255:(e,t,r)=>{"use strict";r(9398)},5814:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(1581);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},6894:(e,t,r)=>{"use strict";r(2003)},4535:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(4596);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},5477:(e,t,r)=>{"use strict";r(2996)},7367:(e,t,r)=>{"use strict";var i=r(4073),o=r(5245),s=r(4765),a=r(7180),u=r(7990),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},4681:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(2007),u=r(7180),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},3825:(e,t,r)=>{"use strict";var i=r(4073),o=r(9949),s=r(4765),a=r(7180),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw new u("Reduce of empty set with no initial value");return i}})},564:(e,t,r)=>{"use strict";var i=r(4073),o=r(3809),s=r(4765),a=r(7180);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},586:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(1973);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},4714:(e,t,r)=>{"use strict";r(7611)},8244:(e,t,r)=>{"use strict";var i=r(4073),o=r(8732),s=r(4031),a=r(6857);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},5572:(e,t,r)=>{"use strict";r(1335)},9571:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(1608),r(4399),r(8398),r(8580),r(2489),r(7225);let{getManagedCacheStorage:e,CacheStorageGroup:t}=r(6718),i=r(7016).parse;r(9588).disable=!0;let o=r(6406).PROVIDERS,s=e("bridge");s.aliveDuration=9e5;let a=(e,t)=>Promise.resolve().then(()=>{let r=e.pathname.slice(1).split("/").map(e=>decodeURIComponent(e)),i=t,o=decodeURIComponent(e.query);try{o=JSON.parse(o)}catch(e){}return r.some(e=>{if(!(e in i))return!0;i=i[e]})||"function"!=typeof i?Promise.reject():s.cache(o,()=>i(o))}),u=t.getInstance();setInterval(()=>{u.cleanup()},9e5),r(8611).createServer().listen(parseInt(process.argv[2])||9e3).on("request",(e,t)=>a(i(e.url),o).then(e=>t.write(e)).catch(()=>t.writeHead(404)).then(()=>t.end()))})()})(); \ No newline at end of file