minecraft-renderer 0.1.106 → 0.1.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/lightOwnerWorker.js +9 -0
  2. package/dist/lightOwnerWorker.js.map +7 -0
  3. package/dist/mesher.js +1 -1
  4. package/dist/mesher.js.map +2 -2
  5. package/dist/mesherWasm.js +222 -222
  6. package/dist/minecraft-renderer.js +105 -76
  7. package/dist/minecraft-renderer.js.meta.json +1 -1
  8. package/dist/threeWorker.js +537 -508
  9. package/package.json +1 -1
  10. package/src/bundler/bundlePrepare.test.ts +25 -0
  11. package/src/bundler/bundlePrepare.ts +1 -1
  12. package/src/graphicsBackend/appViewer.ts +15 -0
  13. package/src/graphicsBackend/config.ts +8 -0
  14. package/src/graphicsBackend/rendererDefaultOptions.test.ts +51 -0
  15. package/src/graphicsBackend/rendererDefaultOptions.ts +18 -1
  16. package/src/graphicsBackend/rendererOptionsSync.ts +4 -3
  17. package/src/lib/blockEntityLightRegistry.ts +4 -0
  18. package/src/lib/skyLight.ts +17 -0
  19. package/src/lib/worldrendererCommon.lightOwner.test.ts +916 -0
  20. package/src/lib/worldrendererCommon.removeColumn.test.ts +16 -0
  21. package/src/lib/worldrendererCommon.ts +340 -67
  22. package/src/lighting/cache/rendererLightCache.test.ts +158 -0
  23. package/src/lighting/cache/rendererLightCache.ts +248 -0
  24. package/src/lighting/coordinator/clientLightCoordinator.test.ts +102 -0
  25. package/src/lighting/coordinator/clientLightCoordinator.ts +574 -0
  26. package/src/lighting/debug/clientLightProbe.test.ts +24 -0
  27. package/src/lighting/debug/clientLightProbe.ts +20 -0
  28. package/src/lighting/debug/clientLightTrace.test.ts +271 -0
  29. package/src/lighting/debug/clientLightTrace.ts +335 -0
  30. package/src/lighting/entity/entityLightController.test.ts +216 -0
  31. package/src/lighting/entity/entityLightController.ts +322 -0
  32. package/src/lighting/owner/clientLightOwner.test.ts +467 -0
  33. package/src/lighting/owner/clientLightOwner.ts +523 -0
  34. package/src/lighting/owner/lightOwnerHost.test.ts +78 -0
  35. package/src/lighting/owner/lightOwnerHost.ts +202 -0
  36. package/src/lighting/owner/lightOwnerWorker.ts +154 -0
  37. package/src/lighting/owner/updateLight1171OwnerPath.test.ts +68 -0
  38. package/src/lighting/owner/updateLightToOwnerEvents.ts +49 -0
  39. package/src/lighting/tables/lightTables1171.generated.json +10 -0
  40. package/src/lighting/tables/lightTables1171.test.ts +168 -0
  41. package/src/lighting/tables/lightTables1171.ts +59 -0
  42. package/src/lighting/versioning/clientLightVersions.test.ts +241 -0
  43. package/src/lighting/versioning/clientLightVersions.ts +203 -0
  44. package/src/lighting/versioning/pendingSectionFlush.test.ts +214 -0
  45. package/src/lighting/versioning/pendingSectionFlush.ts +123 -0
  46. package/src/mesher-shared/lightNibblePack.ts +26 -0
  47. package/src/mesher-shared/mcDataWorkerShim.cjs +9 -7
  48. package/src/mesher-shared/modelsGeometryCommon.test.ts +6 -1
  49. package/src/mesher-shared/shared.ts +48 -1
  50. package/src/three/chunkMeshManager.ts +26 -0
  51. package/src/three/entities.ts +97 -8
  52. package/src/three/entity/EntityMesh.ts +1 -0
  53. package/src/three/entity/legWalkAnimation.test.ts +154 -0
  54. package/src/three/entity/legWalkAnimation.ts +193 -0
  55. package/src/three/globalBlockBuffer.ts +94 -2
  56. package/src/three/globalLegacyBuffer.ts +94 -2
  57. package/src/three/graphicsBackendBase.ts +2 -9
  58. package/src/three/modules/clouds.ts +191 -0
  59. package/src/three/modules/index.ts +4 -0
  60. package/src/three/modules/sunMoon.ts +151 -0
  61. package/src/three/skyboxRenderer.ts +15 -8
  62. package/src/three/tests/clouds.test.ts +59 -0
  63. package/src/three/tests/globalBlockBuffer.test.ts +98 -0
  64. package/src/three/tests/globalLegacyBuffer.test.ts +108 -0
  65. package/src/three/tests/waterFog.test.ts +25 -0
  66. package/src/three/waterFog.ts +28 -0
  67. package/src/three/worldRendererThree.ts +84 -39
  68. package/src/wasm-mesher/bridge/render-from-wasm.ts +46 -1
  69. package/src/wasm-mesher/runtime-build/wasm_mesher.d.ts +31 -5
  70. package/src/wasm-mesher/runtime-build/wasm_mesher.js +180 -5
  71. package/src/wasm-mesher/runtime-build/wasm_mesher_bg.wasm +0 -0
  72. package/src/wasm-mesher/runtime-build/wasm_mesher_bg.wasm.d.ts +11 -0
  73. package/src/wasm-mesher/tests/mesherLightDependencies.test.ts +83 -0
  74. package/src/wasm-mesher/tests/mesherWasmColumnTickSelect.test.ts +39 -0
  75. package/src/wasm-mesher/tests/mesherWasmConversionCache.test.ts +30 -1
  76. package/src/wasm-mesher/tests/mesherWasmTickParseCache.test.ts +73 -0
  77. package/src/wasm-mesher/tests/mesherWasmTickSchedule.test.ts +51 -0
  78. package/src/wasm-mesher/tests/mesherWasmTopologyPostCache.test.ts +78 -0
  79. package/src/wasm-mesher/worker/clientLightDarkPublication.probe.test.ts +32 -0
  80. package/src/wasm-mesher/worker/mesherLightDependencies.ts +43 -0
  81. package/src/wasm-mesher/worker/mesherWasm.ownerLightSync.test.ts +198 -0
  82. package/src/wasm-mesher/worker/mesherWasm.ts +506 -96
  83. package/src/wasm-mesher/worker/mesherWasmChunkBuffer.ts +1 -0
  84. package/src/wasm-mesher/worker/mesherWasmColumnTickSelect.ts +47 -0
  85. package/src/wasm-mesher/worker/mesherWasmConversionCache.ts +16 -5
  86. package/src/wasm-mesher/worker/mesherWasmLightDirty.test.ts +17 -1
  87. package/src/wasm-mesher/worker/mesherWasmLightDirty.ts +10 -0
  88. package/src/wasm-mesher/worker/mesherWasmLightMerge.test.ts +208 -0
  89. package/src/wasm-mesher/worker/mesherWasmLightMerge.ts +228 -0
  90. package/src/wasm-mesher/worker/mesherWasmOwnerLight.test.ts +161 -0
  91. package/src/wasm-mesher/worker/mesherWasmOwnerLight.ts +112 -0
  92. package/src/wasm-mesher/worker/mesherWasmTickParseCache.ts +45 -0
  93. package/src/wasm-mesher/worker/mesherWasmTickSchedule.ts +44 -0
  94. package/src/wasm-mesher/worker/mesherWasmTopologyPostCache.ts +63 -0
  95. package/src/worldView/types.ts +3 -0
  96. package/src/worldView/worldView.geometryReload.test.ts +68 -0
  97. package/src/worldView/worldView.spiral.test.ts +1 -1
  98. package/src/worldView/worldView.ts +49 -1
package/dist/mesher.js CHANGED
@@ -65,7 +65,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
65
65
 
66
66
  `).concat(f(z),`
67
67
  `));var ye=new u({actual:z,expected:N,message:U,operator:Y,stackStartFn:ie});throw ye.generatedMessage=oe,ye}}R.match=function z(N,U,ie){j(N,U,ie,z,"match")},R.doesNotMatch=function z(N,U,ie){j(N,U,ie,z,"doesNotMatch")};function V(){for(var z=arguments.length,N=new Array(z),U=0;U<z;U++)N[U]=arguments[U];re.apply(void 0,[V,N.length].concat(N))}return R.strict=b(V,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict,Eu}var ou,qy,lu,Vy,cu,Wy,fu,Hy,uu,Jy,hu,Gy,du,Yy,pu,Ky,gu,Qy,mu,Xy,_u,Zy,yu,eb,bu,tb,wu,rb,vu,nb,ku,ab,Su,ib,Eu,sb,gt,JB,GB,YB,KB,QB,XB,ZB,eA,tA,rA,nA,aA,iA,sA,oA,lA,cA,pb=jt(()=>{E();I();x();So();Gf();Df();Uf();ou={},qy=!1;lu={},Vy=!1;cu={},Wy=!1;fu={},Hy=!1;uu={},Jy=!1;hu={},Gy=!1;du={},Yy=!1;pu={},Ky=!1;gu={},Qy=!1;mu={},Xy=!1;_u={},Zy=!1;yu={},eb=!1;bu={},tb=!1;wu={},rb=!1;vu={},nb=!1;ku={},ab=!1;Su={},ib=!1;Eu={},sb=!1;gt=xu(),JB=gt.AssertionError,GB=gt.deepEqual,YB=gt.deepStrictEqual,KB=gt.doesNotReject,QB=gt.doesNotThrow,XB=gt.equal,ZB=gt.fail,eA=gt.ifError,tA=gt.notDeepEqual,rA=gt.notDeepStrictEqual,nA=gt.notEqual,aA=gt.notStrictEqual,iA=gt.ok,sA=gt.rejects,oA=gt.strict,lA=gt.strictEqual,cA=gt.throws});var gb=H((yj,fA)=>{fA.exports={title:"definitions",definitions:{contextualizedFieldName:{type:"string",pattern:"^(this\\.)?.+$"},dataTypeArgsCount:{oneOf:[{$ref:"#/definitions/contextualizedFieldName"},{type:"number"}]},fieldName:{type:"string",pattern:"^[a-zA-Z0-9_]+$"}},type:"object"}});var mb=H((bj,uA)=>{uA.exports={title:"protocol",type:"object",properties:{types:{type:"object",patternProperties:{"^[0-9a-zA-Z_]+$":{oneOf:[{type:"string"},{type:"array",items:[{type:"string"},{oneOf:[{type:"object"},{type:"array"}]}]}]}},additionalProperties:!1}},patternProperties:{"^(?!types)[a-zA-Z_]+$":{$ref:"#"}},additionalProperties:!1}});var _b=H((wj,hA)=>{hA.exports={i8:{enum:["i8"]},u8:{enum:["u8"]},i16:{enum:["i16"]},u16:{enum:["u16"]},i32:{enum:["i32"]},u32:{enum:["u32"]},f32:{enum:["f32"]},f64:{enum:["f64"]},li8:{enum:["li8"]},lu8:{enum:["lu8"]},li16:{enum:["li16"]},lu16:{enum:["lu16"]},li32:{enum:["li32"]},lu32:{enum:["lu32"]},lf32:{enum:["lf32"]},lf64:{enum:["lf64"]},i64:{enum:["i64"]},li64:{enum:["li64"]},u64:{enum:["u64"]},lu64:{enum:["lu64"]},varint:{enum:["varint"]},varint64:{enum:["varint64"]},varint128:{enum:["varint128"]},zigzag32:{enum:["zigzag32"]},zigzag64:{enum:["zigzag64"]},int:{title:"int",type:"array",items:[{enum:["int"]},{type:"array",items:{type:"object",properties:{size:{type:"number"}},required:["size"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1},lint:{title:"lint",type:"array",items:[{enum:["lint"]},{type:"array",items:{type:"object",properties:{size:{type:"number"}},required:["size"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1}}});var yb=H((vj,dA)=>{dA.exports={pstring:{title:"pstring",type:"array",items:[{enum:["pstring"]},{oneOf:[{type:"object",properties:{countType:{$ref:"dataType"},encoding:{type:"string"}},additionalProperties:!1,required:["countType"]},{type:"object",properties:{count:{$ref:"definitions#/definitions/dataTypeArgsCount"},encoding:{type:"string"}},additionalProperties:!1,required:["count"]}]}],additionalItems:!1},buffer:{title:"buffer",type:"array",items:[{enum:["buffer"]},{oneOf:[{type:"object",properties:{countType:{$ref:"dataType"}},additionalProperties:!1,required:["countType"]},{type:"object",properties:{count:{$ref:"definitions#/definitions/dataTypeArgsCount"}},additionalProperties:!1,required:["count"]}]}]},bitfield:{title:"bitfield",type:"array",items:[{enum:["bitfield"]},{type:"array",items:{type:"object",properties:{name:{$ref:"definitions#/definitions/fieldName"},size:{type:"number"},signed:{type:"boolean"}},required:["name","size","signed"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1},bitflags:{title:"bitflags",type:"array",items:[{enum:["bitflags"]},{type:"object",additionalItems:!1}],additionalItems:!1},mapper:{title:"mapper",type:"array",items:[{enum:["mapper"]},{type:"object",properties:{type:{$ref:"dataType"},mappings:{type:"object",patternProperties:{"^[-a-zA-Z0-9 _]+$":{type:"string"}},additionalProperties:!1}},required:["type","mappings"],additionalProperties:!1}],additionalItems:!1}}});var bb=H((kj,pA)=>{pA.exports={array:{title:"array",type:"array",items:[{enum:["array"]},{oneOf:[{type:"object",properties:{type:{$ref:"dataType"},countType:{$ref:"dataType"}},additionalProperties:!1,required:["type","countType"]},{type:"object",properties:{type:{$ref:"dataType"},count:{$ref:"definitions#/definitions/dataTypeArgsCount"}},additionalProperties:!1,required:["type","count"]}]}],additionalItems:!1},count:{title:"count",type:"array",items:[{enum:["count"]},{type:"object",properties:{countFor:{$ref:"definitions#/definitions/contextualizedFieldName"},type:{$ref:"dataType"}},required:["countFor","type"],additionalProperties:!1}],additionalItems:!1},container:{title:"container",type:"array",items:[{enum:["container"]},{type:"array",items:{type:"object",properties:{anon:{type:"boolean"},name:{$ref:"definitions#/definitions/fieldName"},type:{$ref:"dataType"}},oneOf:[{required:["anon"]},{required:["name"]}],required:["type"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1}}});var wb=H((Sj,gA)=>{gA.exports={switch:{title:"switch",type:"array",items:[{enum:["switch"]},{type:"object",properties:{compareTo:{$ref:"definitions#/definitions/contextualizedFieldName"},compareToValue:{type:"string"},fields:{type:"object",patternProperties:{"^[-a-zA-Z0-9 _:/]+$":{$ref:"dataType"}},additionalProperties:!1},default:{$ref:"dataType"}},oneOf:[{required:["compareTo","fields"]},{required:["compareToValue","fields"]}],additionalProperties:!1}],additionalItems:!1},option:{title:"option",type:"array",items:[{enum:["option"]},{$ref:"dataType"}],additionalItems:!1}}});var vb=H((Ej,mA)=>{mA.exports={bool:{enum:["bool"]},cstring:{title:"cstring",type:"array",items:[{enum:["cstring"]},{type:"object",properties:{encoding:{type:"string"}},additionalProperties:!1,required:[]}],additionalItems:!1},void:{enum:["void"]}}});var Sb=H((xj,kb)=>{E();I();x();var _A=ny(),Bu=(pb(),_t(db)),Au=class t{constructor(e){this.createAjvInstance(e),this.addDefaultTypes()}createAjvInstance(e){this.typesSchemas={},this.compiled=!1,this.ajv=new _A({verbose:!0}),this.ajv.addSchema(gb(),"definitions"),this.ajv.addSchema(mb(),"protocol"),e&&Object.keys(e).forEach(r=>this.addType(r,e[r]))}addDefaultTypes(){this.addTypes(_b()),this.addTypes(yb()),this.addTypes(bb()),this.addTypes(wb()),this.addTypes(vb())}addTypes(e){Object.keys(e).forEach(r=>this.addType(r,e[r]))}typeToSchemaName(e){return e.replace("|","_")}addType(e,r){let a=this.typeToSchemaName(e);this.typesSchemas[a]==null&&(r||(r={oneOf:[{enum:[e]},{type:"array",items:[{enum:[e]},{oneOf:[{type:"object"},{type:"array"}]}]}]}),this.typesSchemas[a]=r,this.compiled?this.createAjvInstance(this.typesSchemas):this.ajv.addSchema(r,a),this.ajv.removeSchema("dataType"),this.ajv.addSchema({title:"dataType",oneOf:[{enum:["native"]}].concat(Object.keys(this.typesSchemas).map(n=>({$ref:this.typeToSchemaName(n)})))},"dataType"))}validateType(e){let r=this.ajv.validate("dataType",e);if(this.compiled=!0,!r)throw console.log(JSON.stringify(this.ajv.errors[0],null,2)),this.ajv.errors[0].parentSchema.title=="dataType"&&this.validateTypeGoingInside(this.ajv.errors[0].data),new Error("validation error")}validateTypeGoingInside(e){if(Array.isArray(e)){Bu.ok(this.typesSchemas[this.typeToSchemaName(e[0])]!=null,e+" is an undefined type");let r=this.ajv.validate(e[0],e);if(this.compiled=!0,!r)throw console.log(JSON.stringify(this.ajv.errors[0],null,2)),this.ajv.errors[0].parentSchema.title=="dataType"&&this.validateTypeGoingInside(this.ajv.errors[0].data),new Error("validation error")}else{if(e=="native")return;Bu.ok(this.typesSchemas[this.typeToSchemaName(e)]!=null,e+" is an undefined type")}}validateProtocol(e){let r=this.ajv.validate("protocol",e);Bu.ok(r,JSON.stringify(this.ajv.errors,null,2));function a(n,i,s){let o=new t(i.typesSchemas);Object.keys(n).forEach(l=>{l=="types"?(Object.keys(n[l]).forEach(c=>o.addType(c)),Object.keys(n[l]).forEach(c=>{try{o.validateType(n[l][c],s+"."+l+"."+c)}catch{throw new Error("Error at "+s+"."+l+"."+c)}})):a(n[l],o,s+"."+l)})}a(e,this,"root")}};kb.exports=Au});var Wt=H((Pj,yA)=>{yA.exports={i8:{enum:["i8"]},u8:{enum:["u8"]},i16:{enum:["i16"]},u16:{enum:["u16"]},i32:{enum:["i32"]},u32:{enum:["u32"]},f32:{enum:["f32"]},f64:{enum:["f64"]},li8:{enum:["li8"]},lu8:{enum:["lu8"]},li16:{enum:["li16"]},lu16:{enum:["lu16"]},li32:{enum:["li32"]},lu32:{enum:["lu32"]},lf32:{enum:["lf32"]},lf64:{enum:["lf64"]},i64:{enum:["i64"]},li64:{enum:["li64"]},u64:{enum:["u64"]},lu64:{enum:["lu64"]},varint:{enum:["varint"]},varint64:{enum:["varint64"]},varint128:{enum:["varint128"]},zigzag32:{enum:["zigzag32"]},zigzag64:{enum:["zigzag64"]},int:{title:"int",type:"array",items:[{enum:["int"]},{type:"array",items:{type:"object",properties:{size:{type:"number"}},required:["size"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1},lint:{title:"lint",type:"array",items:[{enum:["lint"]},{type:"array",items:{type:"object",properties:{size:{type:"number"}},required:["size"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1}}});var Pu=H((Lj,Eb)=>{E();I();x();var{PartialReadError:$i}=rr(),Io=class extends Array{valueOf(){return BigInt.asIntN(64,BigInt(this[0])<<32n)|BigInt.asUintN(32,BigInt(this[1]))}toString(){return this.valueOf().toString()}[Symbol.for("nodejs.util.inspect.custom")](){return this.valueOf()}},Bo=class extends Array{valueOf(){return BigInt.asUintN(64,BigInt(this[0])<<32n)|BigInt.asUintN(32,BigInt(this[1]))}toString(){return this.valueOf().toString()}[Symbol.for("nodejs.util.inspect.custom")](){return this.valueOf()}};function bA(t,e){if(e+8>t.length)throw new $i;return{value:new Io(t.readInt32BE(e),t.readInt32BE(e+4)),size:8}}function wA(t,e,r){return typeof t=="bigint"?e.writeBigInt64BE(t,r):(e.writeInt32BE(t[0],r),e.writeInt32BE(t[1],r+4)),r+8}function vA(t,e){if(e+8>t.length)throw new $i;return{value:new Io(t.readInt32LE(e+4),t.readInt32LE(e)),size:8}}function kA(t,e,r){return typeof t=="bigint"?e.writeBigInt64LE(t,r):(e.writeInt32LE(t[0],r+4),e.writeInt32LE(t[1],r)),r+8}function SA(t,e){if(e+8>t.length)throw new $i;return{value:new Bo(t.readUInt32BE(e),t.readUInt32BE(e+4)),size:8}}function EA(t,e,r){return typeof t=="bigint"?e.writeBigUInt64BE(t,r):(e.writeUInt32BE(t[0],r),e.writeUInt32BE(t[1],r+4)),r+8}function xA(t,e){if(e+8>t.length)throw new $i;return{value:new Bo(t.readUInt32LE(e+4),t.readUInt32LE(e)),size:8}}function IA(t,e,r){return typeof t=="bigint"?e.writeBigUInt64LE(t,r):(e.writeUInt32LE(t[0],r+4),e.writeUInt32LE(t[1],r)),r+8}function BA(t,e,r,a){return[(s,o)=>{if(o+r>s.length)throw new $i;return{value:s[t](o),size:r}},(s,o,l)=>(o[e](s,l),l+r),r,a]}var xo={i8:["readInt8","writeInt8",1],u8:["readUInt8","writeUInt8",1],i16:["readInt16BE","writeInt16BE",2],u16:["readUInt16BE","writeUInt16BE",2],i32:["readInt32BE","writeInt32BE",4],u32:["readUInt32BE","writeUInt32BE",4],f32:["readFloatBE","writeFloatBE",4],f64:["readDoubleBE","writeDoubleBE",8],li8:["readInt8","writeInt8",1],lu8:["readUInt8","writeUInt8",1],li16:["readInt16LE","writeInt16LE",2],lu16:["readUInt16LE","writeUInt16LE",2],li32:["readInt32LE","writeInt32LE",4],lu32:["readUInt32LE","writeUInt32LE",4],lf32:["readFloatLE","writeFloatLE",4],lf64:["readDoubleLE","writeDoubleLE",8]},Ni=Object.keys(xo).reduce((t,e)=>(t[e]=BA(xo[e][0],xo[e][1],xo[e][2],Wt()[e]),t),{});Ni.i64=[bA,wA,8,Wt().i64];Ni.li64=[vA,kA,8,Wt().li64];Ni.u64=[SA,EA,8,Wt().u64];Ni.lu64=[xA,IA,8,Wt().lu64];Eb.exports=Ni});var Pr=H((Cj,AA)=>{AA.exports={pstring:{title:"pstring",type:"array",items:[{enum:["pstring"]},{oneOf:[{type:"object",properties:{countType:{$ref:"dataType"},encoding:{type:"string"}},additionalProperties:!1,required:["countType"]},{type:"object",properties:{count:{$ref:"definitions#/definitions/dataTypeArgsCount"},encoding:{type:"string"}},additionalProperties:!1,required:["count"]}]}],additionalItems:!1},buffer:{title:"buffer",type:"array",items:[{enum:["buffer"]},{oneOf:[{type:"object",properties:{countType:{$ref:"dataType"}},additionalProperties:!1,required:["countType"]},{type:"object",properties:{count:{$ref:"definitions#/definitions/dataTypeArgsCount"}},additionalProperties:!1,required:["count"]}]}]},bitfield:{title:"bitfield",type:"array",items:[{enum:["bitfield"]},{type:"array",items:{type:"object",properties:{name:{$ref:"definitions#/definitions/fieldName"},size:{type:"number"},signed:{type:"boolean"}},required:["name","size","signed"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1},bitflags:{title:"bitflags",type:"array",items:[{enum:["bitflags"]},{type:"object",additionalItems:!1}],additionalItems:!1},mapper:{title:"mapper",type:"array",items:[{enum:["mapper"]},{type:"object",properties:{type:{$ref:"dataType"},mappings:{type:"object",patternProperties:{"^[-a-zA-Z0-9 _]+$":{type:"string"}},additionalProperties:!1}},required:["type","mappings"],additionalProperties:!1}],additionalItems:!1}}});var Lb=H((Rj,Pb)=>{E();I();x();var{PartialReadError:Ao}=rr();Pb.exports={varint:[xb,Bb,Ib,Wt().varint],varint64:[Ab,Ou,Lu,Wt().varint64],varint128:[PA,Ou,Lu,Wt().varint128],zigzag32:[LA,TA,OA,Wt().zigzag32],zigzag64:[MA,RA,CA,Wt().zigzag64]};function xb(t,e){let r=0,a=0,n=e;for(;;){if(n>=t.length)throw new Ao("Unexpected buffer end while reading VarInt");let i=t.readUInt8(n);if(r|=(i&127)<<a,n++,!(i&128))return{value:r,size:n-e};if(a+=7,a>64)throw new Ao(`varint is too big: ${a}`)}}function Ib(t){let e=0;for(;t&-128;)t>>>=7,e++;return e+1}function Bb(t,e,r){let a=0;for(;t&-128;)e.writeUInt8(t&255|128,r+a),a++,t>>>=7;return e.writeUInt8(t,r+a),r+a+1}function Ab(t,e){let r=0n,a=0n,n=e;for(;;){if(n>=t.length)throw new Ao("Unexpected buffer end while reading VarLong");let i=t.readUInt8(n);if(r|=(BigInt(i)&0x7Fn)<<a,n++,!(i&128))return{value:r,size:n-e};if(a+=7n,a>63n)throw new Error(`varint is too big: ${a}`)}}function PA(t,e){let r=0n,a=0n,n=e;for(;;){if(n>=t.length)throw new Ao("Unexpected buffer end while reading VarLong");let i=t.readUInt8(n);if(r|=(BigInt(i)&0x7Fn)<<a,n++,!(i&128))return{value:r,size:n-e};if(a+=7n,a>127n)throw new Error(`varint is too big: ${a}`)}}function Lu(t){t=BigInt(t);let e=0;do t>>=7n,e++;while(t!==0n);return e}function Ou(t,e,r){t=BigInt(t);let a=r;do{let n=t&0x7Fn;t>>=7n,e.writeUInt8(Number(n)|(t?128:0),a++)}while(t);return a}function LA(t,e){let{value:r,size:a}=xb(t,e);return{value:r>>>1^-(r&1),size:a}}function OA(t){return Ib(t<<1^t>>31)}function TA(t,e,r){return Bb(t<<1^t>>31,e,r)}function MA(t,e){let{value:r,size:a}=Ab(t,e);return{value:r>>1n^-(r&1n),size:a}}function CA(t){return Lu(BigInt(t)<<1n^BigInt(t)>>63n)}function RA(t,e,r){return Ou(BigInt(t)<<1n^BigInt(t)>>63n,e,r)}});var Mu=H((Fj,Rb)=>{E();I();x();var{getCount:Ob,sendCount:Tb,calcCount:Mb,PartialReadError:zi}=rr();Rb.exports={bool:[UA,qA,1,Pr().bool],pstring:[FA,jA,DA,Pr().pstring],buffer:[VA,WA,HA,Pr().buffer],void:[JA,GA,0,Pr().void],bitfield:[YA,KA,QA,Pr().bitfield],bitflags:[tP,rP,nP,Pr().bitflags],cstring:[XA,ZA,eP,Pr().cstring],mapper:[$A,NA,zA,Pr().mapper],...Lb()};function Tu(t,e){return t===e||parseInt(t)===parseInt(e)}function $A(t,e,{type:r,mappings:a},n){let{size:i,value:s}=this.read(t,e,r,n),o=null,l=Object.keys(a);for(let c=0;c<l.length;c++)if(Tu(l[c],s)){o=a[l[c]];break}if(o==null)throw new Error(s+" is not in the mappings value");return{size:i,value:o}}function NA(t,e,r,{type:a,mappings:n},i){let s=Object.keys(n),o=null;for(let l=0;l<s.length;l++)if(Tu(n[s[l]],t)){o=s[l];break}if(o==null)throw new Error(t+" is not in the mappings value");return this.write(o,e,r,a,i)}function zA(t,{type:e,mappings:r},a){let n=Object.keys(r),i=null;for(let s=0;s<n.length;s++)if(Tu(r[n[s]],t)){i=n[s];break}if(i==null)throw new Error(t+" is not in the mappings value");return this.sizeOf(i,e,a)}function FA(t,e,r,a){let{size:n,count:i}=Ob.call(this,t,e,r,a),s=e+n,o=s+i;if(o>t.length)throw new zi("Missing characters in string, found size is "+t.length+" expected size was "+o);return{value:t.toString(r.encoding||"utf8",s,o),size:o-e}}function jA(t,e,r,a,n){let i=Buffer.byteLength(t,"utf8");return r=Tb.call(this,i,e,r,a,n),e.write(t,r,i,a.encoding||"utf8"),r+i}function DA(t,e,r){let a=Buffer.byteLength(t,e.encoding||"utf8");return Mb.call(this,a,e,r)+a}function UA(t,e){if(e+1>t.length)throw new zi;return{value:!!t.readInt8(e),size:1}}function qA(t,e,r){return e.writeInt8(+t,r),r+1}function VA(t,e,r,a){let{size:n,count:i}=Ob.call(this,t,e,r,a);if(e+=n,e+i>t.length)throw new zi;return{value:t.slice(e,e+i),size:n+i}}function WA(t,e,r,a,n){return t instanceof Buffer||(t=Buffer.from(t)),r=Tb.call(this,t.length,e,r,a,n),t.copy(e,r),r+t.length}function HA(t,e,r){return t instanceof Buffer||(t=Buffer.from(t)),Mb.call(this,t.length,e,r)+t.length}function JA(){return{value:void 0,size:0}}function GA(t,e,r){return r}function Cb(t){return(1<<t)-1}function YA(t,e,r){let a=e,n=null,i=0,s={};return s.value=r.reduce((o,{size:l,signed:c,name:h})=>{let u=l,d=0;for(;u>0;){if(i===0){if(t.length<e+1)throw new zi;n=t[e++],i=8}let f=Math.min(u,i);d=d<<f|(n&Cb(i))>>i-f,i-=f,u-=f}return c&&d>=1<<l-1&&(d-=1<<l),o[h]=d,o},{}),s.size=e-a,s}function KA(t,e,r,a){let n=0,i=0;return a.forEach(({size:s,signed:o,name:l})=>{let c=t[l];if(!o&&c<0||o&&c<-(1<<s-1))throw new Error(t+" < "+o?-(1<<s-1):0);if(!o&&c>=1<<s||o&&c>=(1<<s-1)-1)throw new Error(t+" >= "+o?1<<s:(1<<s-1)-1);for(;s>0;){let h=Math.min(8-i,s);n=n<<h|c>>s-h&Cb(h),s-=h,i+=h,i===8&&(e[r++]=n,i=0,n=0)}}),i!==0&&(e[r++]=n<<8-i),r}function QA(t,e){return Math.ceil(e.reduce((r,{size:a})=>r+a,0)/8)}function XA(t,e,r){let a=0;for(;e+a<t.length&&t[e+a]!==0;)a++;if(t.length<e+a+1)throw new zi;return{value:t.toString(r?.encoding||"utf8",e,e+a),size:a+1}}function ZA(t,e,r,a){let n=Buffer.byteLength(t,a?.encoding||"utf8");return e.write(t,r,n,a?.encoding||"utf8"),r+=n,e.writeInt8(0,r),r+1}function eP(t){return Buffer.byteLength(t,"utf8")+1}function tP(t,e,{type:r,flags:a,shift:n,big:i},s){let{size:o,value:l}=this.read(t,e,r,s),c={};if(Array.isArray(a))for(let[u,d]of Object.entries(a))c[d]=i?1n<<BigInt(u):1<<u;else if(n)for(let u in a)c[u]=i?1n<<BigInt(a[u]):1<<a[u];else c=a;let h={_value:l};for(let u in c)h[u]=(l&c[u])===c[u];return{value:h,size:o}}function rP(t,e,r,{type:a,flags:n,shift:i,big:s},o){let l={};if(Array.isArray(n))for(let[h,u]of Object.entries(n))l[u]=s?1n<<BigInt(h):1<<h;else if(i)for(let h in n)l[h]=s?1n<<BigInt(n[h]):1<<n[h];else l=n;let c=t._value||(s?0n:0);for(let h in l)t[h]&&(c|=l[h]);return this.write(c,e,r,a,o)}function nP(t,{type:e,flags:r,shift:a,big:n},i){if(!t)throw new Error("Missing field");let s={};if(Array.isArray(r))for(let[l,c]of Object.entries(r))s[c]=n?1n<<BigInt(l):1<<l;else if(a)for(let l in r)s[l]=n?1n<<BigInt(r[l]):1<<r[l];else s=r;let o=t._value||(n?0n:0);for(let l in s)t[l]&&(o|=s[l]);return this.sizeOf(o,e,i)}});var Po=H((qj,aP)=>{aP.exports={array:{title:"array",type:"array",items:[{enum:["array"]},{oneOf:[{type:"object",properties:{type:{$ref:"dataType"},countType:{$ref:"dataType"}},additionalProperties:!1,required:["type","countType"]},{type:"object",properties:{type:{$ref:"dataType"},count:{$ref:"definitions#/definitions/dataTypeArgsCount"}},additionalProperties:!1,required:["type","count"]}]}],additionalItems:!1},count:{title:"count",type:"array",items:[{enum:["count"]},{type:"object",properties:{countFor:{$ref:"definitions#/definitions/contextualizedFieldName"},type:{$ref:"dataType"}},required:["countFor","type"],additionalProperties:!1}],additionalItems:!1},container:{title:"container",type:"array",items:[{enum:["container"]},{type:"array",items:{type:"object",properties:{anon:{type:"boolean"},name:{$ref:"definitions#/definitions/fieldName"},type:{$ref:"dataType"}},oneOf:[{required:["anon"]},{required:["name"]}],required:["type"],additionalProperties:!1},additionalItems:!1}],additionalItems:!1}}});var zb=H((Vj,Nb)=>{E();I();x();var{getField:$b,getCount:iP,sendCount:sP,calcCount:oP,tryDoc:Na}=rr();Nb.exports={array:[lP,cP,fP,Po().array],count:[pP,gP,mP,Po().count],container:[uP,hP,dP,Po().container]};function lP(t,e,r,a){let n={value:[],size:0},i,{count:s,size:o}=iP.call(this,t,e,r,a);e+=o,n.size+=o;for(let l=0;l<s;l++)({size:o,value:i}=Na(()=>this.read(t,e,r.type,a),l)),n.size+=o,e+=o,n.value.push(i);return n}function cP(t,e,r,a,n){return r=sP.call(this,t.length,e,r,a,n),t.reduce((i,s,o)=>Na(()=>this.write(s,e,i,a.type,n),o),r)}function fP(t,e,r){let a=oP.call(this,t.length,e,r);return a=t.reduce((n,i,s)=>Na(()=>n+this.sizeOf(i,e.type,r),s),a),a}function uP(t,e,r,a){let n={value:{"..":a},size:0};return r.forEach(({type:i,name:s,anon:o})=>{Na(()=>{let l=this.read(t,e,i,n.value);n.size+=l.size,e+=l.size,o?l.value!==void 0&&Object.keys(l.value).forEach(c=>{n.value[c]=l.value[c]}):n.value[s]=l.value},s||"unknown")}),delete n.value[".."],n}function hP(t,e,r,a,n){return t[".."]=n,r=a.reduce((i,{type:s,name:o,anon:l})=>Na(()=>this.write(l?t:t[o],e,i,s,t),o||"unknown"),r),delete t[".."],r}function dP(t,e,r){t[".."]=r;let a=e.reduce((n,{type:i,name:s,anon:o})=>n+Na(()=>this.sizeOf(o?t:t[s],i,t),s||"unknown"),0);return delete t[".."],a}function pP(t,e,{type:r},a){return this.read(t,e,r,a)}function gP(t,e,r,{countFor:a,type:n},i){return this.write($b(a,i).length,e,r,n,i)}function mP(t,{countFor:e,type:r},a){return this.sizeOf($b(e,a).length,r,a)}});var Cu=H((Gj,_P)=>{_P.exports={switch:{title:"switch",type:"array",items:[{enum:["switch"]},{type:"object",properties:{compareTo:{$ref:"definitions#/definitions/contextualizedFieldName"},compareToValue:{type:"string"},fields:{type:"object",patternProperties:{"^[-a-zA-Z0-9 _:/]+$":{$ref:"dataType"}},additionalProperties:!1},default:{$ref:"dataType"}},oneOf:[{required:["compareTo","fields"]},{required:["compareToValue","fields"]}],additionalProperties:!1}],additionalItems:!1},option:{title:"option",type:"array",items:[{enum:["option"]},{$ref:"dataType"}],additionalItems:!1}}});var jb=H((Yj,Fb)=>{E();I();x();var{getField:Ru,getFieldInfo:$u,tryDoc:Nu,PartialReadError:yP}=rr();Fb.exports={switch:[bP,wP,vP,Cu().switch],option:[kP,SP,EP,Cu().option]};function bP(t,e,{compareTo:r,fields:a,compareToValue:n,default:i},s){if(r=n!==void 0?n:Ru(r,s),typeof a[r]>"u"&&typeof i>"u")throw new Error(r+" has no associated fieldInfo in switch");for(let h in a)h.startsWith("/")&&(a[this.types[h.slice(1)]]=a[h],delete a[h]);let o=typeof a[r]>"u",l=o?i:a[r],c=$u(l);return Nu(()=>this.read(t,e,c,s),o?"default":r)}function wP(t,e,r,{compareTo:a,fields:n,compareToValue:i,default:s},o){if(a=i!==void 0?i:Ru(a,o),typeof n[a]>"u"&&typeof s>"u")throw new Error(a+" has no associated fieldInfo in switch");for(let h in n)h.startsWith("/")&&(n[this.types[h.slice(1)]]=n[h],delete n[h]);let l=typeof n[a]>"u",c=$u(l?s:n[a]);return Nu(()=>this.write(t,e,r,c,o),l?"default":a)}function vP(t,{compareTo:e,fields:r,compareToValue:a,default:n},i){if(e=a!==void 0?a:Ru(e,i),typeof r[e]>"u"&&typeof n>"u")throw new Error(e+" has no associated fieldInfo in switch");for(let l in r)l.startsWith("/")&&(r[this.types[l.slice(1)]]=r[l],delete r[l]);let s=typeof r[e]>"u",o=$u(s?n:r[e]);return Nu(()=>this.sizeOf(t,o,i),s?"default":e)}function kP(t,e,r,a){if(t.length<e+1)throw new yP;if(t.readUInt8(e++)!==0){let i=this.read(t,e,r,a);return i.size++,i}else return{size:1}}function SP(t,e,r,a,n){return t!=null?(e.writeUInt8(1,r++),r=this.write(t,e,r,a,n)):e.writeUInt8(0,r++),r}function EP(t,e,r){return t==null?1:this.sizeOf(t,e,r)+1}});var Wb=H((Zj,Vb)=>{E();I();x();var{getFieldInfo:Lo,tryCatch:zu}=rr(),Ub=r1(),xP=Sb();function Db(t){return typeof t=="string"||Array.isArray(t)&&typeof t[0]=="string"||t.type}function qb(t,e,r){return typeof e=="string"&&e.charAt(0)==="$"?t.push({path:r,val:e.substr(1)}):(Array.isArray(e)||typeof e=="object")&&(t=t.concat(Ub(e,qb,[]).map(a=>({path:r+"."+a.path,val:a.val})))),t}function IP(t,e,r){let a=t.split(".").reverse();for(;a.length>1;)r=r[a.pop()];r[a.pop()]=e}function BP(t,e){let r=JSON.stringify(e),a=Ub(e,qb,[]);function n(i){let s=JSON.parse(r);return a.forEach(o=>{IP(o.path,i[o.val],s)}),s}return[function(s,o,l,c){return t[0].call(this,s,o,n(l),c)},function(s,o,l,c,h){return t[1].call(this,s,o,l,n(c),h)},function(s,o,l){return typeof t[2]=="function"?t[2].call(this,s,n(o),l):t[2]}]}var Fu=class{constructor(e=!0){this.types={},this.validator=e?new xP:null,this.addDefaultTypes()}addDefaultTypes(){this.addTypes(Pu()),this.addTypes(Mu()),this.addTypes(zb()),this.addTypes(jb())}addProtocol(e,r){let a=this;function n(i,s){i!==void 0&&(i.types&&a.addTypes(i.types),n(i?.[s[0]],s.slice(1)))}this.validator&&this.validator.validateProtocol(e),n(e,r)}addType(e,r,a=!0){if(r==="native"){this.validator&&this.validator.addType(e);return}if(Db(r)){this.validator&&(a&&this.validator.validateType(r),this.validator.addType(e));let{type:n,typeArgs:i}=Lo(r);this.types[e]=i?BP(this.types[n],i):this.types[n]}else this.validator&&(r[3]?this.validator.addType(e,r[3]):this.validator.addType(e)),this.types[e]=r}addTypes(e){Object.keys(e).forEach(r=>this.addType(r,e[r],!1)),this.validator&&Object.keys(e).forEach(r=>{Db(e[r])&&this.validator.validateType(e[r])})}setVariable(e,r){this.types[e]=r}read(e,r,a,n){let{type:i,typeArgs:s}=Lo(a),o=this.types[i];if(!o)throw new Error("missing data type: "+i);return o[0].call(this,e,r,s,n)}write(e,r,a,n,i){let{type:s,typeArgs:o}=Lo(n),l=this.types[s];if(!l)throw new Error("missing data type: "+s);return l[1].call(this,e,r,a,o,i)}sizeOf(e,r,a){let{type:n,typeArgs:i}=Lo(r),s=this.types[n];if(!s)throw new Error("missing data type: "+n);return typeof s[2]=="function"?s[2].call(this,e,i,a):s[2]}createPacketBuffer(e,r){let a=zu(()=>this.sizeOf(r,e,{}),i=>{throw i.message=`SizeOf error for ${i.field} : ${i.message}`,i}),n=Buffer.allocUnsafe(a);return zu(()=>this.write(r,n,0,e,{}),i=>{throw i.message=`Write error for ${i.field} : ${i.message}`,i}),n}parsePacketBuffer(e,r,a=0){let{value:n,size:i}=zu(()=>this.read(r,a,e,{}),s=>{throw s.message=`Read error for ${s.field} : ${s.message}`,s});return{data:n,metadata:{size:i},buffer:r.slice(0,i),fullBuffer:r}}};Vb.exports=Fu});var Ke=H((nD,Hb)=>{"use strict";E();I();x();var ju=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let a=0;a<e.length;a++)r+=` ${e[a].stack}
68
- `;super(r),this.name="AggregateError",this.errors=e}};Hb.exports={AggregateError:ju,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Du=H((oD,Jb)=>{"use strict";E();I();x();Jb.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,a]){let n=e.shift();return a==="f"?n.toFixed(6):a==="j"?JSON.stringify(n):a==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var wt=H((uD,Kb)=>{"use strict";E();I();x();var{format:AP,inspect:Oo}=Du(),{AggregateError:PP}=Ke(),LP=globalThis.AggregateError||PP,OP=Symbol("kIsNodeError"),TP=["string","function","number","object","Function","Object","boolean","bigint","symbol"],MP=/^([A-Z][a-z0-9]*)+$/,CP="__node_internal_",To={};function Rn(t,e){if(!t)throw new To.ERR_INTERNAL_ASSERTION(e)}function Gb(t){let e="",r=t.length,a=t[0]==="-"?1:0;for(;r>=a+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function RP(t,e,r){if(typeof e=="function")return Rn(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let a=(e.match(/%[dfijoOs]/g)||[]).length;return Rn(a===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${a}).`),r.length===0?e:AP(e,...r)}function mt(t,e,r){r||(r=Error);class a extends r{constructor(...i){super(RP(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=t,a.prototype[OP]=!0,To[t]=a}function Yb(t){let e=CP+t.name;return Object.defineProperty(t,"name",{value:e}),t}function $P(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new LP([e,t],e.message);return r.code=e.code,r}return t||e}var Uu=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new To.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};mt("ERR_ASSERTION","%s",Error);mt("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Rn(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let a="The ";t.endsWith(" argument")?a+=`${t} `:a+=`"${t}" ${t.includes(".")?"property":"argument"} `,a+="must be ";let n=[],i=[],s=[];for(let l of e)Rn(typeof l=="string","All expected entries have to be of type string"),TP.includes(l)?n.push(l.toLowerCase()):MP.test(l)?i.push(l):(Rn(l!=="object",'The value "object" should be written as "Object"'),s.push(l));if(i.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),i.push("Object"))}if(n.length>0){switch(n.length){case 1:a+=`of type ${n[0]}`;break;case 2:a+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();a+=`one of type ${n.join(", ")}, or ${l}`}}(i.length>0||s.length>0)&&(a+=" or ")}if(i.length>0){switch(i.length){case 1:a+=`an instance of ${i[0]}`;break;case 2:a+=`an instance of ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();a+=`an instance of ${i.join(", ")}, or ${l}`}}s.length>0&&(a+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(a+="an "),a+=`${s[0]}`;break;case 2:a+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();a+=`one of ${s.join(", ")}, or ${l}`}}if(r==null)a+=`. Received ${r}`;else if(typeof r=="function"&&r.name)a+=`. Received function ${r.name}`;else if(typeof r=="object"){var o;if((o=r.constructor)!==null&&o!==void 0&&o.name)a+=`. Received an instance of ${r.constructor.name}`;else{let l=Oo(r,{depth:-1});a+=`. Received ${l}`}}else{let l=Oo(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),a+=`. Received type ${typeof r} (${l})`}return a},TypeError);mt("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let a=Oo(e);return a.length>128&&(a=a.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${a}`},TypeError);mt("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var a;let n=r!=null&&(a=r.constructor)!==null&&a!==void 0&&a.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);mt("ERR_MISSING_ARGS",(...t)=>{Rn(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(a=>`"${a}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let a=t.pop();e+=`The ${t.join(", ")}, and ${a} arguments`}break}return`${e} must be specified`},TypeError);mt("ERR_OUT_OF_RANGE",(t,e,r)=>{Rn(e,'Missing "range" argument');let a;if(Number.isInteger(r)&&Math.abs(r)>2**32)a=Gb(String(r));else if(typeof r=="bigint"){a=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(a=Gb(a)),a+="n"}else a=Oo(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${a}`},RangeError);mt("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);mt("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);mt("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);mt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);mt("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);mt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mt("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);mt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);mt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);mt("ERR_STREAM_WRITE_AFTER_END","write after end",Error);mt("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Kb.exports={AbortError:Uu,aggregateTwoErrors:Yb($P),hideStackFrames:Yb,codes:To}});var za=H((gD,Mo)=>{"use strict";E();I();x();var{AbortController:Qb,AbortSignal:NP}=typeof self<"u"?self:typeof window<"u"?window:void 0;Mo.exports=Qb;Mo.exports.AbortSignal=NP;Mo.exports.default=Qb});var ji={};xi(ji,{EventEmitter:()=>FP,default:()=>Fi,defaultMaxListeners:()=>jP,init:()=>DP,listenerCount:()=>UP,on:()=>qP,once:()=>VP});function zP(){if(Xb)return Co;Xb=!0;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(B,P,M){return Function.prototype.apply.call(B,P,M)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:r=function(B){return Object.getOwnPropertyNames(B)};function a(S){console&&console.warn&&console.warn(S)}var n=Number.isNaN||function(B){return B!==B};function i(){i.init.call(this)}Co=i,Co.once=b,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(S){if(typeof S!="number"||S<0||n(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");s=S}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||n(B))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+B+".");return this._maxListeners=B,this};function l(S){return S._maxListeners===void 0?i.defaultMaxListeners:S._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(B){for(var P=[],M=1;M<arguments.length;M++)P.push(arguments[M]);var R=B==="error",$=this._events;if($!==void 0)R=R&&$.error===void 0;else if(!R)return!1;if(R){var C;if(P.length>0&&(C=P[0]),C instanceof Error)throw C;var Z=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw Z.context=C,Z}var re=$[B];if(re===void 0)return!1;if(typeof re=="function")e(re,this,P);else for(var G=re.length,ne=g(re,G),M=0;M<G;++M)e(ne[M],this,P);return!0};function c(S,B,P,M){var R,$,C;if(o(P),$=S._events,$===void 0?($=S._events=Object.create(null),S._eventsCount=0):($.newListener!==void 0&&(S.emit("newListener",B,P.listener?P.listener:P),$=S._events),C=$[B]),C===void 0)C=$[B]=P,++S._eventsCount;else if(typeof C=="function"?C=$[B]=M?[P,C]:[C,P]:M?C.unshift(P):C.push(P),R=l(S),R>0&&C.length>R&&!C.warned){C.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=S,Z.type=B,Z.count=C.length,a(Z)}return S}i.prototype.addListener=function(B,P){return c(this,B,P,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(B,P){return c(this,B,P,!0)};function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,B,P){var M={fired:!1,wrapFn:void 0,target:S,type:B,listener:P},R=h.bind(M);return R.listener=P,M.wrapFn=R,R}i.prototype.once=function(B,P){return o(P),this.on(B,u(this,B,P)),this},i.prototype.prependOnceListener=function(B,P){return o(P),this.prependListener(B,u(this,B,P)),this},i.prototype.removeListener=function(B,P){var M,R,$,C,Z;if(o(P),R=this._events,R===void 0)return this;if(M=R[B],M===void 0)return this;if(M===P||M.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete R[B],R.removeListener&&this.emit("removeListener",B,M.listener||P));else if(typeof M!="function"){for($=-1,C=M.length-1;C>=0;C--)if(M[C]===P||M[C].listener===P){Z=M[C].listener,$=C;break}if($<0)return this;$===0?M.shift():m(M,$),M.length===1&&(R[B]=M[0]),R.removeListener!==void 0&&this.emit("removeListener",B,Z||P)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(B){var P,M,R;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[B]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[B]),this;if(arguments.length===0){var $=Object.keys(M),C;for(R=0;R<$.length;++R)C=$[R],C!=="removeListener"&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=M[B],typeof P=="function")this.removeListener(B,P);else if(P!==void 0)for(R=P.length-1;R>=0;R--)this.removeListener(B,P[R]);return this};function d(S,B,P){var M=S._events;if(M===void 0)return[];var R=M[B];return R===void 0?[]:typeof R=="function"?P?[R.listener||R]:[R]:P?y(R):g(R,R.length)}i.prototype.listeners=function(B){return d(this,B,!0)},i.prototype.rawListeners=function(B){return d(this,B,!1)},i.listenerCount=function(S,B){return typeof S.listenerCount=="function"?S.listenerCount(B):f.call(S,B)},i.prototype.listenerCount=f;function f(S){var B=this._events;if(B!==void 0){var P=B[S];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function g(S,B){for(var P=new Array(B),M=0;M<B;++M)P[M]=S[M];return P}function m(S,B){for(;B+1<S.length;B++)S[B]=S[B+1];S.pop()}function y(S){for(var B=new Array(S.length),P=0;P<B.length;++P)B[P]=S[P].listener||S[P];return B}function b(S,B){return new Promise(function(P,M){function R(C){S.removeListener(B,$),M(C)}function $(){typeof S.removeListener=="function"&&S.removeListener("error",R),P([].slice.call(arguments))}v(S,B,$,{once:!0}),B!=="error"&&w(S,R,{once:!0})})}function w(S,B,P){typeof S.on=="function"&&v(S,"error",B,P)}function v(S,B,P,M){if(typeof S.on=="function")M.once?S.once(B,P):S.on(B,P);else if(typeof S.addEventListener=="function")S.addEventListener(B,function R($){M.once&&S.removeEventListener(B,R),P($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return Co}var Co,Xb,Fi,FP,jP,DP,UP,qP,VP,Di=jt(()=>{E();I();x();Co={},Xb=!1;Fi=zP();Fi.once;Fi.once=function(t,e){return new Promise((r,a)=>{function n(...s){i!==void 0&&t.removeListener("error",i),r(s)}let i;e!=="error"&&(i=s=>{t.removeListener(name,n),a(s)},t.once("error",i)),t.once(e,n)})};Fi.on=function(t,e){let r=[],a=[],n=null,i=!1,s={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(n){let h=Promise.reject(n);return n=null,h}return i?createIterResult(void 0,!0):new Promise((h,u)=>a.push({resolve:h,reject:u}))},async return(){t.removeListener(e,o),t.removeListener("error",l),i=!0;for(let c of a)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){n=c,t.removeListener(e,o),t.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return t.on(e,o),t.on("error",l),s;function o(...c){let h=a.shift();h?h.resolve(createIterResult(c,!1)):r.push(c)}function l(c){i=!0;let h=a.shift();h?h.reject(c):n=c,s.return()}};({EventEmitter:FP,defaultMaxListeners:jP,init:DP,listenerCount:UP,on:qP,once:VP}=Fi)});var St=H((kD,Vu)=>{"use strict";E();I();x();var WP=(Vt(),_t(tr)),{format:HP,inspect:JP}=Du(),{codes:{ERR_INVALID_ARG_TYPE:qu}}=wt(),{kResistStopPropagation:GP,AggregateError:YP,SymbolDispose:KP}=Ke(),QP=globalThis.AbortSignal||za().AbortSignal,XP=globalThis.AbortController||za().AbortController,ZP=Object.getPrototypeOf(async function(){}).constructor,Zb=globalThis.Blob||WP.Blob,e8=typeof Zb<"u"?function(e){return e instanceof Zb}:function(e){return!1},ew=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new qu(e,"AbortSignal",t)},t8=(t,e)=>{if(typeof t!="function")throw new qu(e,"Function",t)};Vu.exports={AggregateError:YP,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((a,n)=>{t=a,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((a,...n)=>a?r(a):e(...n))})},debuglog(){return function(){}},format:HP,inspect:JP,types:{isAsyncFunction(t){return t instanceof ZP},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:e8,deprecate(t,e){return t},addAbortListener:(Di(),_t(ji)).addAbortListener||function(e,r){if(e===void 0)throw new qu("signal","AbortSignal",e);ew(e,"signal"),t8(r,"listener");let a;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[GP]:!0}),a=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[KP](){var n;(n=a)===null||n===void 0||n()}}},AbortSignalAny:QP.any||function(e){if(e.length===1)return e[0];let r=new XP,a=()=>r.abort();return e.forEach(n=>{ew(n,"signals"),n.addEventListener("abort",a,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",a))},{once:!0}),r.signal}};Vu.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ja=H((ID,fw)=>{"use strict";E();I();x();var{ArrayIsArray:Hu,ArrayPrototypeIncludes:aw,ArrayPrototypeJoin:iw,ArrayPrototypeMap:r8,NumberIsInteger:Ju,NumberIsNaN:n8,NumberMAX_SAFE_INTEGER:a8,NumberMIN_SAFE_INTEGER:i8,NumberParseInt:s8,ObjectPrototypeHasOwnProperty:o8,RegExpPrototypeExec:sw,String:l8,StringPrototypeToUpperCase:c8,StringPrototypeTrim:f8}=Ke(),{hideStackFrames:Dt,codes:{ERR_SOCKET_BAD_PORT:u8,ERR_INVALID_ARG_TYPE:vt,ERR_INVALID_ARG_VALUE:Fa,ERR_OUT_OF_RANGE:$n,ERR_UNKNOWN_SIGNAL:tw}}=wt(),{normalizeEncoding:h8}=St(),{isAsyncFunction:d8,isArrayBufferView:p8}=St().types,rw={};function g8(t){return t===(t|0)}function m8(t){return t===t>>>0}var _8=/^[0-7]+$/,y8="must be a 32-bit unsigned integer or an octal string";function b8(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(sw(_8,t)===null)throw new Fa(e,t,y8);t=s8(t,8)}return ow(t,e),t}var w8=Dt((t,e,r=i8,a=a8)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);if(t<r||t>a)throw new $n(e,`>= ${r} && <= ${a}`,t)}),v8=Dt((t,e,r=-2147483648,a=2147483647)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);if(t<r||t>a)throw new $n(e,`>= ${r} && <= ${a}`,t)}),ow=Dt((t,e,r=!1)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);let a=r?1:0,n=4294967295;if(t<a||t>n)throw new $n(e,`>= ${a} && <= ${n}`,t)});function Gu(t,e){if(typeof t!="string")throw new vt(e,"string",t)}function k8(t,e,r=void 0,a){if(typeof t!="number")throw new vt(e,"number",t);if(r!=null&&t<r||a!=null&&t>a||(r!=null||a!=null)&&n8(t))throw new $n(e,`${r!=null?`>= ${r}`:""}${r!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,t)}var S8=Dt((t,e,r)=>{if(!aw(r,t)){let n="must be one of: "+iw(r8(r,i=>typeof i=="string"?`'${i}'`:l8(i)),", ");throw new Fa(e,t,n)}});function lw(t,e){if(typeof t!="boolean")throw new vt(e,"boolean",t)}function Wu(t,e,r){return t==null||!o8(t,e)?r:t[e]}var E8=Dt((t,e,r=null)=>{let a=Wu(r,"allowArray",!1),n=Wu(r,"allowFunction",!1);if(!Wu(r,"nullable",!1)&&t===null||!a&&Hu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new vt(e,"Object",t)}),x8=Dt((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new vt(e,"a dictionary",t)}),Ro=Dt((t,e,r=0)=>{if(!Hu(t))throw new vt(e,"Array",t);if(t.length<r){let a=`must be longer than ${r}`;throw new Fa(e,t,a)}});function I8(t,e){Ro(t,e);for(let r=0;r<t.length;r++)Gu(t[r],`${e}[${r}]`)}function B8(t,e){Ro(t,e);for(let r=0;r<t.length;r++)lw(t[r],`${e}[${r}]`)}function A8(t,e){Ro(t,e);for(let r=0;r<t.length;r++){let a=t[r],n=`${e}[${r}]`;if(a==null)throw new vt(n,"AbortSignal",a);cw(a,n)}}function P8(t,e="signal"){if(Gu(t,e),rw[t]===void 0)throw rw[c8(t)]!==void 0?new tw(t+" (signals must use all capital letters)"):new tw(t)}var L8=Dt((t,e="buffer")=>{if(!p8(t))throw new vt(e,["Buffer","TypedArray","DataView"],t)});function O8(t,e){let r=h8(e),a=t.length;if(r==="hex"&&a%2!==0)throw new Fa("encoding",e,`is invalid for data of length ${a}`)}function T8(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&f8(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new u8(e,t,r);return t|0}var cw=Dt((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new vt(e,"AbortSignal",t)}),M8=Dt((t,e)=>{if(typeof t!="function")throw new vt(e,"Function",t)}),C8=Dt((t,e)=>{if(typeof t!="function"||d8(t))throw new vt(e,"Function",t)}),R8=Dt((t,e)=>{if(t!==void 0)throw new vt(e,"undefined",t)});function $8(t,e,r){if(!aw(r,t))throw new vt(e,`('${iw(r,"|")}')`,t)}var N8=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function nw(t,e){if(typeof t>"u"||!sw(N8,t))throw new Fa(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function z8(t){if(typeof t=="string")return nw(t,"hints"),t;if(Hu(t)){let e=t.length,r="";if(e===0)return r;for(let a=0;a<e;a++){let n=t[a];nw(n,"hints"),r+=n,a!==e-1&&(r+=", ")}return r}throw new Fa("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}fw.exports={isInt32:g8,isUint32:m8,parseFileMode:b8,validateArray:Ro,validateStringArray:I8,validateBooleanArray:B8,validateAbortSignalArray:A8,validateBoolean:lw,validateBuffer:L8,validateDictionary:x8,validateEncoding:O8,validateFunction:M8,validateInt32:v8,validateInteger:w8,validateNumber:k8,validateObject:E8,validateOneOf:S8,validatePlainFunction:C8,validatePort:T8,validateSignalName:P8,validateString:Gu,validateUint32:ow,validateUndefined:R8,validateUnion:$8,validateAbortSignal:cw,validateLinkHeaderValue:z8}});var sn=H((LD,pw)=>{E();I();x();var st=pw.exports={},nr,ar;function Yu(){throw new Error("setTimeout has not been defined")}function Ku(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nr=setTimeout:nr=Yu}catch{nr=Yu}try{typeof clearTimeout=="function"?ar=clearTimeout:ar=Ku}catch{ar=Ku}})();function uw(t){if(nr===setTimeout)return setTimeout(t,0);if((nr===Yu||!nr)&&setTimeout)return nr=setTimeout,setTimeout(t,0);try{return nr(t,0)}catch{try{return nr.call(null,t,0)}catch{return nr.call(this,t,0)}}}function F8(t){if(ar===clearTimeout)return clearTimeout(t);if((ar===Ku||!ar)&&clearTimeout)return ar=clearTimeout,clearTimeout(t);try{return ar(t)}catch{try{return ar.call(null,t)}catch{return ar.call(this,t)}}}var Lr=[],Da=!1,Nn,$o=-1;function j8(){!Da||!Nn||(Da=!1,Nn.length?Lr=Nn.concat(Lr):$o=-1,Lr.length&&hw())}function hw(){if(!Da){var t=uw(j8);Da=!0;for(var e=Lr.length;e;){for(Nn=Lr,Lr=[];++$o<e;)Nn&&Nn[$o].run();$o=-1,e=Lr.length}Nn=null,Da=!1,F8(t)}}st.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Lr.push(new dw(t,e)),Lr.length===1&&!Da&&uw(hw)};function dw(t,e){this.fun=t,this.array=e}dw.prototype.run=function(){this.fun.apply(null,this.array)};st.title="browser";st.browser=!0;st.env={};st.argv=[];st.version="";st.versions={};function Or(){}st.on=Or;st.addListener=Or;st.once=Or;st.off=Or;st.removeListener=Or;st.removeAllListeners=Or;st.emit=Or;st.prependListener=Or;st.prependOnceListener=Or;st.listeners=function(t){return[]};st.binding=function(t){throw new Error("process.binding is not supported")};st.cwd=function(){return"/"};st.chdir=function(t){throw new Error("process.chdir is not supported")};st.umask=function(){return 0}});var sr=H((CD,Pw)=>{"use strict";E();I();x();var{SymbolAsyncIterator:gw,SymbolIterator:mw,SymbolFor:zn}=Ke(),_w=zn("nodejs.stream.destroyed"),yw=zn("nodejs.stream.errored"),Qu=zn("nodejs.stream.readable"),Xu=zn("nodejs.stream.writable"),bw=zn("nodejs.stream.disturbed"),D8=zn("nodejs.webstream.isClosedPromise"),U8=zn("nodejs.webstream.controllerErrorFunction");function No(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function zo(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function q8(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function ir(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function ww(t){return!!(t&&!ir(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function vw(t){return!!(t&&!ir(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function kw(t){return!!(t&&!ir(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function V8(t){return ww(t)||vw(t)||kw(t)}function W8(t,e){return t==null?!1:e===!0?typeof t[gw]=="function":e===!1?typeof t[mw]=="function":typeof t[gw]=="function"||typeof t[mw]=="function"}function Fo(t){if(!ir(t))return null;let e=t._writableState,r=t._readableState,a=e||r;return!!(t.destroyed||t[_w]||a!=null&&a.destroyed)}function Sw(t){if(!zo(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function H8(t,e){if(!zo(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function J8(t){if(!No(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function Ew(t,e){if(!No(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function xw(t){return t&&t[Qu]!=null?t[Qu]:typeof t?.readable!="boolean"?null:Fo(t)?!1:No(t)&&t.readable&&!Ew(t)}function Iw(t){return t&&t[Xu]!=null?t[Xu]:typeof t?.writable!="boolean"?null:Fo(t)?!1:zo(t)&&t.writable&&!Sw(t)}function G8(t,e){return ir(t)?Fo(t)?!0:!(e?.readable!==!1&&xw(t)||e?.writable!==!1&&Iw(t)):null}function Y8(t){var e,r;return ir(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function K8(t){var e,r;return ir(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function Q8(t){if(!ir(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&Bw(t)?t._closed:null}function Bw(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function Aw(t){return typeof t._sent100=="boolean"&&Bw(t)}function X8(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function Z8(t){if(!ir(t))return null;let e=t._writableState,r=t._readableState,a=e||r;return!a&&Aw(t)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===!1)}function eL(t){var e;return!!(t&&((e=t[bw])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function tL(t){var e,r,a,n,i,s,o,l,c,h;return!!(t&&((e=(r=(a=(n=(i=(s=t[yw])!==null&&s!==void 0?s:t.readableErrored)!==null&&i!==void 0?i:t.writableErrored)!==null&&n!==void 0?n:(o=t._readableState)===null||o===void 0?void 0:o.errorEmitted)!==null&&a!==void 0?a:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(c=t._readableState)===null||c===void 0?void 0:c.errored)!==null&&e!==void 0?e:!((h=t._writableState)===null||h===void 0)&&h.errored))}Pw.exports={isDestroyed:Fo,kIsDestroyed:_w,isDisturbed:eL,kIsDisturbed:bw,isErrored:tL,kIsErrored:yw,isReadable:xw,kIsReadable:Qu,kIsClosedPromise:D8,kControllerErrorFunction:U8,kIsWritable:Xu,isClosed:Q8,isDuplexNodeStream:q8,isFinished:G8,isIterable:W8,isReadableNodeStream:No,isReadableStream:ww,isReadableEnded:J8,isReadableFinished:Ew,isReadableErrored:K8,isNodeStream:ir,isWebStream:V8,isWritable:Iw,isWritableNodeStream:zo,isWritableStream:vw,isWritableEnded:Sw,isWritableFinished:H8,isWritableErrored:Y8,isServerRequest:X8,isServerResponse:Aw,willEmitClose:Z8,isTransformStream:kw}});var Tr=H((zD,nh)=>{"use strict";E();I();x();var on=sn(),{AbortError:zw,codes:rL}=wt(),{ERR_INVALID_ARG_TYPE:nL,ERR_STREAM_PREMATURE_CLOSE:Lw}=rL,{kEmptyObject:eh,once:th}=St(),{validateAbortSignal:aL,validateFunction:iL,validateObject:sL,validateBoolean:oL}=ja(),{Promise:lL,PromisePrototypeThen:cL,SymbolDispose:Fw}=Ke(),{isClosed:fL,isReadable:Ow,isReadableNodeStream:Zu,isReadableStream:uL,isReadableFinished:Tw,isReadableErrored:Mw,isWritable:Cw,isWritableNodeStream:Rw,isWritableStream:hL,isWritableFinished:$w,isWritableErrored:Nw,isNodeStream:dL,willEmitClose:pL,kIsClosedPromise:gL}=sr(),Ua;function mL(t){return t.setHeader&&typeof t.abort=="function"}var rh=()=>{};function jw(t,e,r){var a,n;if(arguments.length===2?(r=e,e=eh):e==null?e=eh:sL(e,"options"),iL(r,"callback"),aL(e.signal,"options.signal"),r=th(r),uL(t)||hL(t))return _L(t,e,r);if(!dL(t))throw new nL("stream",["ReadableStream","WritableStream","Stream"],t);let i=(a=e.readable)!==null&&a!==void 0?a:Zu(t),s=(n=e.writable)!==null&&n!==void 0?n:Rw(t),o=t._writableState,l=t._readableState,c=()=>{t.writable||d()},h=pL(t)&&Zu(t)===i&&Rw(t)===s,u=$w(t,!1),d=()=>{u=!0,t.destroyed&&(h=!1),!(h&&(!t.readable||i))&&(!i||f)&&r.call(t)},f=Tw(t,!1),g=()=>{f=!0,t.destroyed&&(h=!1),!(h&&(!t.writable||s))&&(!s||u)&&r.call(t)},m=B=>{r.call(t,B)},y=fL(t),b=()=>{y=!0;let B=Nw(t)||Mw(t);if(B&&typeof B!="boolean")return r.call(t,B);if(i&&!f&&Zu(t,!0)&&!Tw(t,!1))return r.call(t,new Lw);if(s&&!u&&!$w(t,!1))return r.call(t,new Lw);r.call(t)},w=()=>{y=!0;let B=Nw(t)||Mw(t);if(B&&typeof B!="boolean")return r.call(t,B);r.call(t)},v=()=>{t.req.on("finish",d)};mL(t)?(t.on("complete",d),h||t.on("abort",b),t.req?v():t.on("request",v)):s&&!o&&(t.on("end",c),t.on("close",c)),!h&&typeof t.aborted=="boolean"&&t.on("aborted",b),t.on("end",g),t.on("finish",d),e.error!==!1&&t.on("error",m),t.on("close",b),y?on.nextTick(b):o!=null&&o.errorEmitted||l!=null&&l.errorEmitted?h||on.nextTick(w):(!i&&(!h||Ow(t))&&(u||Cw(t)===!1)||!s&&(!h||Cw(t))&&(f||Ow(t)===!1)||l&&t.req&&t.aborted)&&on.nextTick(w);let S=()=>{r=rh,t.removeListener("aborted",b),t.removeListener("complete",d),t.removeListener("abort",b),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",g),t.removeListener("error",m),t.removeListener("close",b)};if(e.signal&&!y){let B=()=>{let P=r;S(),P.call(t,new zw(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)on.nextTick(B);else{Ua=Ua||St().addAbortListener;let P=Ua(e.signal,B),M=r;r=th((...R)=>{P[Fw](),M.apply(t,R)})}}return S}function _L(t,e,r){let a=!1,n=rh;if(e.signal)if(n=()=>{a=!0,r.call(t,new zw(void 0,{cause:e.signal.reason}))},e.signal.aborted)on.nextTick(n);else{Ua=Ua||St().addAbortListener;let s=Ua(e.signal,n),o=r;r=th((...l)=>{s[Fw](),o.apply(t,l)})}let i=(...s)=>{a||on.nextTick(()=>r.apply(t,s))};return cL(t[gL].promise,i,i),rh}function yL(t,e){var r;let a=!1;return e===null&&(e=eh),(r=e)!==null&&r!==void 0&&r.cleanup&&(oL(e.cleanup,"cleanup"),a=e.cleanup),new lL((n,i)=>{let s=jw(t,e,o=>{a&&s(),o?i(o):n()})})}nh.exports=jw;nh.exports.finished=yL});var Fn=H((UD,Gw)=>{"use strict";E();I();x();var or=sn(),{aggregateTwoErrors:bL,codes:{ERR_MULTIPLE_CALLBACK:wL},AbortError:vL}=wt(),{Symbol:qw}=Ke(),{kIsDestroyed:kL,isDestroyed:SL,isFinished:EL,isServerRequest:xL}=sr(),Vw=qw("kDestroy"),ah=qw("kConstruct");function Ww(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function IL(t,e){let r=this._readableState,a=this._writableState,n=a||r;return a!=null&&a.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Ww(t,a,r),a&&(a.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Dw(this,t,e):this.once(Vw,function(i){Dw(this,bL(i,t),e)}),this)}function Dw(t,e,r){let a=!1;function n(i){if(a)return;a=!0;let s=t._readableState,o=t._writableState;Ww(i,o,s),o&&(o.closed=!0),s&&(s.closed=!0),typeof r=="function"&&r(i),i?or.nextTick(BL,t,i):or.nextTick(Hw,t)}try{t._destroy(e||null,n)}catch(i){n(i)}}function BL(t,e){ih(t,e),Hw(t)}function Hw(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function ih(t,e){let r=t._readableState,a=t._writableState;a!=null&&a.errorEmitted||r!=null&&r.errorEmitted||(a&&(a.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function AL(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function sh(t,e,r){let a=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||a!=null&&a.destroyed)return this;a!=null&&a.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),a&&!a.errored&&(a.errored=e),r?or.nextTick(ih,t,e):ih(t,e))}function PL(t,e){if(typeof t._construct!="function")return;let r=t._readableState,a=t._writableState;r&&(r.constructed=!1),a&&(a.constructed=!1),t.once(ah,e),!(t.listenerCount(ah)>1)&&or.nextTick(LL,t)}function LL(t){let e=!1;function r(a){if(e){sh(t,a??new wL);return}e=!0;let n=t._readableState,i=t._writableState,s=i||n;n&&(n.constructed=!0),i&&(i.constructed=!0),s.destroyed?t.emit(Vw,a):a?sh(t,a,!0):or.nextTick(OL,t)}try{t._construct(a=>{or.nextTick(r,a)})}catch(a){or.nextTick(r,a)}}function OL(t){t.emit(ah)}function Uw(t){return t?.setHeader&&typeof t.abort=="function"}function Jw(t){t.emit("close")}function TL(t,e){t.emit("error",e),or.nextTick(Jw,t)}function ML(t,e){!t||SL(t)||(!e&&!EL(t)&&(e=new vL),xL(t)?(t.socket=null,t.destroy(e)):Uw(t)?t.abort():Uw(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?or.nextTick(TL,t,e):or.nextTick(Jw,t),t.destroyed||(t[kL]=!0))}Gw.exports={construct:PL,destroyer:ML,destroy:IL,undestroy:AL,errorOrDestroy:sh}});var Uo=H((HD,Kw)=>{"use strict";E();I();x();var{ArrayIsArray:CL,ObjectSetPrototypeOf:Yw}=Ke(),{EventEmitter:jo}=(Di(),_t(ji));function Do(t){jo.call(this,t)}Yw(Do.prototype,jo.prototype);Yw(Do,jo);Do.prototype.pipe=function(t,e){let r=this;function a(h){t.writable&&t.write(h)===!1&&r.pause&&r.pause()}r.on("data",a);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",s),r.on("close",o));let i=!1;function s(){i||(i=!0,t.end())}function o(){i||(i=!0,typeof t.destroy=="function"&&t.destroy())}function l(h){c(),jo.listenerCount(this,"error")===0&&this.emit("error",h)}oh(r,"error",l),oh(t,"error",l);function c(){r.removeListener("data",a),t.removeListener("drain",n),r.removeListener("end",s),r.removeListener("close",o),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t};function oh(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):CL(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}Kw.exports={Stream:Do,prependListener:oh}});var Ui=H((KD,qo)=>{"use strict";E();I();x();var{SymbolDispose:RL}=Ke(),{AbortError:Qw,codes:$L}=wt(),{isNodeStream:Xw,isWebStream:NL,kControllerErrorFunction:zL}=sr(),FL=Tr(),{ERR_INVALID_ARG_TYPE:Zw}=$L,lh,jL=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Zw(e,"AbortSignal",t)};qo.exports.addAbortSignal=function(e,r){if(jL(e,"signal"),!Xw(r)&&!NL(r))throw new Zw("stream",["ReadableStream","WritableStream","Stream"],r);return qo.exports.addAbortSignalNoValidate(e,r)};qo.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Xw(e)?()=>{e.destroy(new Qw(void 0,{cause:t.reason}))}:()=>{e[zL](new Qw(void 0,{cause:t.reason}))};if(t.aborted)r();else{lh=lh||St().addAbortListener;let a=lh(t,r);FL(e,a[RL])}return e}});var r0=H((tU,t0)=>{"use strict";E();I();x();var{StringPrototypeSlice:e0,SymbolIterator:DL,TypedArrayPrototypeSet:Vo,Uint8Array:UL}=Ke(),{Buffer:ch}=(Vt(),_t(tr)),{inspect:qL}=St();t0.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,a=""+r.data;for(;(r=r.next)!==null;)a+=e+r.data;return a}concat(e){if(this.length===0)return ch.alloc(0);let r=ch.allocUnsafe(e>>>0),a=this.head,n=0;for(;a;)Vo(r,a.data,n),n+=a.data.length,a=a.next;return r}consume(e,r){let a=this.head.data;if(e<a.length){let n=a.slice(0,e);return this.head.data=a.slice(e),n}return e===a.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[DL](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",a=this.head,n=0;do{let i=a.data;if(e>i.length)r+=i,e-=i.length;else{e===i.length?(r+=i,++n,a.next?this.head=a.next:this.head=this.tail=null):(r+=e0(i,0,e),this.head=a,a.data=e0(i,e));break}++n}while((a=a.next)!==null);return this.length-=n,r}_getBuffer(e){let r=ch.allocUnsafe(e),a=e,n=this.head,i=0;do{let s=n.data;if(e>s.length)Vo(r,s,a-e),e-=s.length;else{e===s.length?(Vo(r,s,a-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(Vo(r,new UL(s.buffer,s.byteOffset,e),a-e),this.head=n,n.data=s.slice(e));break}++i}while((n=n.next)!==null);return this.length-=i,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return qL(this,{...r,depth:0,customInspect:!1})}}});var qi=H((iU,s0)=>{"use strict";E();I();x();var{MathFloor:VL,NumberIsInteger:WL}=Ke(),{validateInteger:HL}=ja(),{ERR_INVALID_ARG_VALUE:JL}=wt().codes,n0=16*1024,a0=16;function GL(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function i0(t){return t?a0:n0}function YL(t,e){HL(e,"value",0),t?a0=e:n0=e}function KL(t,e,r,a){let n=GL(e,a,r);if(n!=null){if(!WL(n)||n<0){let i=a?`options.${r}`:"options.highWaterMark";throw new JL(i,n)}return VL(n)}return i0(t.objectMode)}s0.exports={getHighWaterMark:KL,getDefaultHighWaterMark:i0,setDefaultHighWaterMark:YL}});var c0=H((fh,l0)=>{E();I();x();var Wo=(Vt(),_t(tr)),lr=Wo.Buffer;function o0(t,e){for(var r in t)e[r]=t[r]}lr.from&&lr.alloc&&lr.allocUnsafe&&lr.allocUnsafeSlow?l0.exports=Wo:(o0(Wo,fh),fh.Buffer=jn);function jn(t,e,r){return lr(t,e,r)}jn.prototype=Object.create(lr.prototype);o0(lr,jn);jn.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return lr(t,e,r)};jn.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var a=lr(t);return e!==void 0?typeof r=="string"?a.fill(e,r):a.fill(e):a.fill(0),a};jn.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return lr(t)};jn.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Wo.SlowBuffer(t)}});var h0=H(u0=>{"use strict";E();I();x();var hh=c0().Buffer,f0=hh.isEncoding||function(t){switch(t=""+t,t&&t.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 QL(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function XL(t){var e=QL(t);if(typeof e!="string"&&(hh.isEncoding===f0||!f0(t)))throw new Error("Unknown encoding: "+t);return e||t}u0.StringDecoder=Vi;function Vi(t){this.encoding=XL(t);var e;switch(this.encoding){case"utf16le":this.text=aO,this.end=iO,e=4;break;case"utf8":this.fillLast=tO,e=4;break;case"base64":this.text=sO,this.end=oO,e=3;break;default:this.write=lO,this.end=cO;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=hh.allocUnsafe(e)}Vi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Vi.prototype.end=nO;Vi.prototype.text=rO;Vi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function uh(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function ZL(t,e,r){var a=e.length-1;if(a<r)return 0;var n=uh(e[a]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--a<r||n===-2?0:(n=uh(e[a]),n>=0?(n>0&&(t.lastNeed=n-2),n):--a<r||n===-2?0:(n=uh(e[a]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function eO(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function tO(t){var e=this.lastTotal-this.lastNeed,r=eO(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function rO(t,e){var r=ZL(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var a=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,a),t.toString("utf8",e,a)}function nO(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function aO(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function iO(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function sO(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function oO(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function lO(t){return t.toString(this.encoding)}function cO(t){return t&&t.length?this.write(t):""}});var dh=H((mU,m0)=>{"use strict";E();I();x();var d0=sn(),{PromisePrototypeThen:fO,SymbolAsyncIterator:p0,SymbolIterator:g0}=Ke(),{Buffer:uO}=(Vt(),_t(tr)),{ERR_INVALID_ARG_TYPE:hO,ERR_STREAM_NULL_VALUES:dO}=wt().codes;function pO(t,e,r){let a;if(typeof e=="string"||e instanceof uO)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[p0])n=!0,a=e[p0]();else if(e&&e[g0])n=!1,a=e[g0]();else throw new hO("iterable",["Iterable"],e);let i=new t({objectMode:!0,highWaterMark:1,...r}),s=!1;i._read=function(){s||(s=!0,l())},i._destroy=function(c,h){fO(o(c),()=>d0.nextTick(h,c),u=>d0.nextTick(h,u||c))};async function o(c){let h=c!=null,u=typeof a.throw=="function";if(h&&u){let{value:d,done:f}=await a.throw(c);if(await d,f)return}if(typeof a.return=="function"){let{value:d}=await a.return();await d}}async function l(){for(;;){try{let{value:c,done:h}=n?await a.next():a.next();if(h)i.push(null);else{let u=c&&typeof c.then=="function"?await c:c;if(u===null)throw s=!1,new dO;if(i.push(u))continue;s=!1}}catch(c){i.destroy(c)}break}}return i}m0.exports=pO});var Hi=H((wU,C0)=>{"use strict";E();I();x();var Ht=sn(),{ArrayPrototypeIndexOf:gO,NumberIsInteger:mO,NumberIsNaN:_O,NumberParseInt:yO,ObjectDefineProperties:vh,ObjectKeys:bO,ObjectSetPrototypeOf:b0,Promise:w0,SafeSet:wO,SymbolAsyncDispose:vO,SymbolAsyncIterator:kO,Symbol:SO}=Ke();C0.exports=Se;Se.ReadableState=Yo;var{EventEmitter:EO}=(Di(),_t(ji)),{Stream:ln,prependListener:xO}=Uo(),{Buffer:ph}=(Vt(),_t(tr)),{addAbortSignal:IO}=Ui(),v0=Tr(),Pe=St().debuglog("stream",t=>{Pe=t}),BO=r0(),Wa=Fn(),{getHighWaterMark:AO,getDefaultHighWaterMark:PO}=qi(),{aggregateTwoErrors:_0,codes:{ERR_INVALID_ARG_TYPE:LO,ERR_METHOD_NOT_IMPLEMENTED:OO,ERR_OUT_OF_RANGE:TO,ERR_STREAM_PUSH_AFTER_EOF:MO,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:CO},AbortError:RO}=wt(),{validateObject:$O}=ja(),Dn=SO("kPaused"),{StringDecoder:k0}=h0(),NO=dh();b0(Se.prototype,ln.prototype);b0(Se,ln);var gh=()=>{},{errorOrDestroy:qa}=Wa,Va=1,zO=2,S0=4,Wi=8,E0=16,Ho=32,Jo=64,x0=128,FO=256,jO=512,DO=1024,bh=2048,wh=4096,UO=8192,qO=16384,VO=32768,I0=65536,WO=1<<17,HO=1<<18;function ht(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}vh(Yo.prototype,{objectMode:ht(Va),ended:ht(zO),endEmitted:ht(S0),reading:ht(Wi),constructed:ht(E0),sync:ht(Ho),needReadable:ht(Jo),emittedReadable:ht(x0),readableListening:ht(FO),resumeScheduled:ht(jO),errorEmitted:ht(DO),emitClose:ht(bh),autoDestroy:ht(wh),destroyed:ht(UO),closed:ht(qO),closeEmitted:ht(VO),multiAwaitDrain:ht(I0),readingMore:ht(WO),dataEmitted:ht(HO)});function Yo(t,e,r){typeof r!="boolean"&&(r=e instanceof cr()),this.state=bh|wh|E0|Ho,t&&t.objectMode&&(this.state|=Va),r&&t&&t.readableObjectMode&&(this.state|=Va),this.highWaterMark=t?AO(this,t,"readableHighWaterMark",r):PO(!1),this.buffer=new BO,this.length=0,this.pipes=[],this.flowing=null,this[Dn]=null,t&&t.emitClose===!1&&(this.state&=~bh),t&&t.autoDestroy===!1&&(this.state&=~wh),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new k0(t.encoding),this.encoding=t.encoding)}function Se(t){if(!(this instanceof Se))return new Se(t);let e=this instanceof cr();this._readableState=new Yo(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&IO(t.signal,this)),ln.call(this,t),Wa.construct(this,()=>{this._readableState.needReadable&&Go(this,this._readableState)})}Se.prototype.destroy=Wa.destroy;Se.prototype._undestroy=Wa.undestroy;Se.prototype._destroy=function(t,e){e(t)};Se.prototype[EO.captureRejectionSymbol]=function(t){this.destroy(t)};Se.prototype[vO]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new RO,this.destroy(t)),new w0((e,r)=>v0(this,a=>a&&a!==t?r(a):e(null)))};Se.prototype.push=function(t,e){return B0(this,t,e,!1)};Se.prototype.unshift=function(t,e){return B0(this,t,e,!0)};function B0(t,e,r,a){Pe("readableAddChunk",e);let n=t._readableState,i;if(n.state&Va||(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(a&&n.encoding?e=ph.from(e,r).toString(n.encoding):(e=ph.from(e,r),r=""))):e instanceof ph?r="":ln._isUint8Array(e)?(e=ln._uint8ArrayToBuffer(e),r=""):e!=null&&(i=new LO("chunk",["string","Buffer","Uint8Array"],e))),i)qa(t,i);else if(e===null)n.state&=~Wi,YO(t,n);else if(n.state&Va||e&&e.length>0)if(a)if(n.state&S0)qa(t,new CO);else{if(n.destroyed||n.errored)return!1;mh(t,n,e,!0)}else if(n.ended)qa(t,new MO);else{if(n.destroyed||n.errored)return!1;n.state&=~Wi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?mh(t,n,e,!1):Go(t,n)):mh(t,n,e,!1)}else a||(n.state&=~Wi,Go(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function mh(t,e,r,a){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?(e.state&I0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.state&Jo&&Ko(t)),Go(t,e)}Se.prototype.isPaused=function(){let t=this._readableState;return t[Dn]===!0||t.flowing===!1};Se.prototype.setEncoding=function(t){let e=new k0(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,a="";for(let n of r)a+=e.write(n);return r.clear(),a!==""&&r.push(a),this._readableState.length=a.length,this};var JO=1073741824;function GO(t){if(t>JO)throw new TO("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function y0(t,e){return t<=0||e.length===0&&e.ended?0:e.state&Va?1:_O(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Se.prototype.read=function(t){Pe("read",t),t===void 0?t=NaN:mO(t)||(t=yO(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=GO(t)),t!==0&&(e.state&=~x0),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_h(this):Ko(this),null;if(t=y0(t,e),t===0&&e.ended)return e.length===0&&_h(this),null;let a=(e.state&Jo)!==0;if(Pe("need readable",a),(e.length===0||e.length-t<e.highWaterMark)&&(a=!0,Pe("length less than watermark",a)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)a=!1,Pe("reading, ended or constructing",a);else if(a){Pe("do read"),e.state|=Wi|Ho,e.length===0&&(e.state|=Jo);try{this._read(e.highWaterMark)}catch(i){qa(this,i)}e.state&=~Ho,e.reading||(t=y0(r,e))}let n;return t>0?n=T0(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&_h(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function YO(t,e){if(Pe("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Ko(t):(e.needReadable=!1,e.emittedReadable=!0,A0(t))}}function Ko(t){let e=t._readableState;Pe("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pe("emitReadable",e.flowing),e.emittedReadable=!0,Ht.nextTick(A0,t))}function A0(t){let e=t._readableState;Pe("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L0(t)}function Go(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ht.nextTick(KO,t,e))}function KO(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(Pe("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Se.prototype._read=function(t){throw new OO("_read()")};Se.prototype.pipe=function(t,e){let r=this,a=this._readableState;a.pipes.length===1&&(a.multiAwaitDrain||(a.multiAwaitDrain=!0,a.awaitDrainWriters=new wO(a.awaitDrainWriters?[a.awaitDrainWriters]:[]))),a.pipes.push(t),Pe("pipe count=%d opts=%j",a.pipes.length,e);let i=(!e||e.end!==!1)&&t!==Ht.stdout&&t!==Ht.stderr?o:y;a.endEmitted?Ht.nextTick(i):r.once("end",i),t.on("unpipe",s);function s(b,w){Pe("onunpipe"),b===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,h())}function o(){Pe("onend"),t.end()}let l,c=!1;function h(){Pe("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",y),r.removeListener("data",d),c=!0,l&&a.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function u(){c||(a.pipes.length===1&&a.pipes[0]===t?(Pe("false write response, pause",0),a.awaitDrainWriters=t,a.multiAwaitDrain=!1):a.pipes.length>1&&a.pipes.includes(t)&&(Pe("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(t)),r.pause()),l||(l=QO(r,t),t.on("drain",l))}r.on("data",d);function d(b){Pe("ondata");let w=t.write(b);Pe("dest.write",w),w===!1&&u()}function f(b){if(Pe("onerror",b),y(),t.removeListener("error",f),t.listenerCount("error")===0){let w=t._writableState||t._readableState;w&&!w.errorEmitted?qa(t,b):t.emit("error",b)}}xO(t,"error",f);function g(){t.removeListener("finish",m),y()}t.once("close",g);function m(){Pe("onfinish"),t.removeListener("close",g),y()}t.once("finish",m);function y(){Pe("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?u():a.flowing||(Pe("pipe resume"),r.resume()),t};function QO(t,e){return function(){let a=t._readableState;a.awaitDrainWriters===e?(Pe("pipeOnDrain",1),a.awaitDrainWriters=null):a.multiAwaitDrain&&(Pe("pipeOnDrain",a.awaitDrainWriters.size),a.awaitDrainWriters.delete(e)),(!a.awaitDrainWriters||a.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Se.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let i=0;i<n.length;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}let a=gO(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Se.prototype.on=function(t,e){let r=ln.prototype.on.call(this,t,e),a=this._readableState;return t==="data"?(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1&&this.resume()):t==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,Pe("on readable",a.length,a.reading),a.length?Ko(this):a.reading||Ht.nextTick(XO,this)),r};Se.prototype.addListener=Se.prototype.on;Se.prototype.removeListener=function(t,e){let r=ln.prototype.removeListener.call(this,t,e);return t==="readable"&&Ht.nextTick(P0,this),r};Se.prototype.off=Se.prototype.removeListener;Se.prototype.removeAllListeners=function(t){let e=ln.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ht.nextTick(P0,this),e};function P0(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Dn]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function XO(t){Pe("readable nexttick read 0"),t.read(0)}Se.prototype.resume=function(){let t=this._readableState;return t.flowing||(Pe("resume"),t.flowing=!t.readableListening,ZO(this,t)),t[Dn]=!1,this};function ZO(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ht.nextTick(e7,t,e))}function e7(t,e){Pe("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L0(t),e.flowing&&!e.reading&&t.read(0)}Se.prototype.pause=function(){return Pe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Dn]=!0,this};function L0(t){let e=t._readableState;for(Pe("flow",e.flowing);e.flowing&&t.read()!==null;);}Se.prototype.wrap=function(t){let e=!1;t.on("data",a=>{!this.push(a)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",a=>{qa(this,a)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=bO(t);for(let a=1;a<r.length;a++){let n=r[a];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};Se.prototype[kO]=function(){return O0(this)};Se.prototype.iterator=function(t){return t!==void 0&&$O(t,"options"),O0(this,t)};function O0(t,e){typeof t.read!="function"&&(t=Se.wrap(t,{objectMode:!0}));let r=t7(t,e);return r.stream=t,r}async function*t7(t,e){let r=gh;function a(s){this===t?(r(),r=gh):r=s}t.on("readable",a);let n,i=v0(t,{writable:!1},s=>{n=s?_0(n,s):null,r(),r=gh});try{for(;;){let s=t.destroyed?null:t.read();if(s!==null)yield s;else{if(n)throw n;if(n===null)return;await new w0(a)}}}catch(s){throw n=_0(n,s),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wa.destroyer(t,null):(t.off("readable",a),i())}}vh(Se.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});vh(Yo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Dn]!==!1},set(t){this[Dn]=!!t}}});Se._fromList=T0;function T0(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function _h(t){let e=t._readableState;Pe("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ht.nextTick(r7,e,t))}function r7(t,e){if(Pe("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ht.nextTick(n7,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function n7(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Se.from=function(t,e){return NO(Se,t,e)};var yh;function M0(){return yh===void 0&&(yh={}),yh}Se.fromWeb=function(t,e){return M0().newStreamReadableFromReadableStream(t,e)};Se.toWeb=function(t,e){return M0().newReadableStreamFromStreamReadable(t,e)};Se.wrap=function(t,e){var r,a;return new Se({objectMode:(r=(a=t.readableObjectMode)!==null&&a!==void 0?a:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,i){Wa.destroyer(t,n),i(n)}}).wrap(t)}});var tl=H((EU,H0)=>{"use strict";E();I();x();var Un=sn(),{ArrayPrototypeSlice:N0,Error:a7,FunctionPrototypeSymbolHasInstance:z0,ObjectDefineProperty:F0,ObjectDefineProperties:i7,ObjectSetPrototypeOf:j0,StringPrototypeToLowerCase:s7,Symbol:o7,SymbolHasInstance:l7}=Ke();H0.exports=rt;rt.WritableState=Yi;var{EventEmitter:c7}=(Di(),_t(ji)),Ji=Uo().Stream,{Buffer:Qo}=(Vt(),_t(tr)),el=Fn(),{addAbortSignal:f7}=Ui(),{getHighWaterMark:u7,getDefaultHighWaterMark:h7}=qi(),{ERR_INVALID_ARG_TYPE:d7,ERR_METHOD_NOT_IMPLEMENTED:p7,ERR_MULTIPLE_CALLBACK:D0,ERR_STREAM_CANNOT_PIPE:g7,ERR_STREAM_DESTROYED:Gi,ERR_STREAM_ALREADY_FINISHED:m7,ERR_STREAM_NULL_VALUES:_7,ERR_STREAM_WRITE_AFTER_END:y7,ERR_UNKNOWN_ENCODING:U0}=wt().codes,{errorOrDestroy:Ha}=el;j0(rt.prototype,Ji.prototype);j0(rt,Ji);function Eh(){}var Ja=o7("kOnFinished");function Yi(t,e,r){typeof r!="boolean"&&(r=e instanceof cr()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?u7(this,t,"writableHighWaterMark",r):h7(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(t&&t.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w7.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Zo(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Ja]=[]}function Zo(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Yi.prototype.getBuffer=function(){return N0(this.buffered,this.bufferedIndex)};F0(Yi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function rt(t){let e=this instanceof cr();if(!e&&!z0(rt,this))return new rt(t);this._writableState=new Yi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&f7(t.signal,this)),Ji.call(this,t),el.construct(this,()=>{let r=this._writableState;r.writing||Ih(this,r),Bh(this,r)})}F0(rt,l7,{__proto__:null,value:function(t){return z0(this,t)?!0:this!==rt?!1:t&&t._writableState instanceof Yi}});rt.prototype.pipe=function(){Ha(this,new g7)};function q0(t,e,r,a){let n=t._writableState;if(typeof r=="function")a=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Qo.isEncoding(r))throw new U0(r);typeof a!="function"&&(a=Eh)}if(e===null)throw new _7;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Qo.from(e,r),r="buffer");else if(e instanceof Qo)r="buffer";else if(Ji._isUint8Array(e))e=Ji._uint8ArrayToBuffer(e),r="buffer";else throw new d7("chunk",["string","Buffer","Uint8Array"],e);let i;return n.ending?i=new y7:n.destroyed&&(i=new Gi("write")),i?(Un.nextTick(a,i),Ha(t,i,!0),i):(n.pendingcb++,b7(t,n,e,r,a))}rt.prototype.write=function(t,e,r){return q0(this,t,e,r)===!0};rt.prototype.cork=function(){this._writableState.corked++};rt.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||Ih(this,t))};rt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=s7(e)),!Qo.isEncoding(e))throw new U0(e);return this._writableState.defaultEncoding=e,this};function b7(t,e,r,a,n){let i=e.objectMode?1:r.length;e.length+=i;let s=e.length<e.highWaterMark;return s||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:a,callback:n}),e.allBuffers&&a!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==Eh&&(e.allNoop=!1)):(e.writelen=i,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,a,e.onwrite),e.sync=!1),s&&!e.errored&&!e.destroyed}function R0(t,e,r,a,n,i,s){e.writelen=a,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Gi("write")):r?t._writev(n,e.onwrite):t._write(n,i,e.onwrite),e.sync=!1}function $0(t,e,r,a){--e.pendingcb,a(r),xh(e),Ha(t,r)}function w7(t,e){let r=t._writableState,a=r.sync,n=r.writecb;if(typeof n!="function"){Ha(t,new D0);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),a?Un.nextTick($0,t,r,e,n):$0(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&Ih(t,r),a?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},Un.nextTick(v7,r.afterWriteTickInfo)):V0(t,r,1,n))}function v7({stream:t,state:e,count:r,cb:a}){return e.afterWriteTickInfo=null,V0(t,e,r,a)}function V0(t,e,r,a){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,a();e.destroyed&&xh(e),Bh(t,e)}function xh(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:i,callback:s}=t.buffered[n],o=t.objectMode?1:i.length;t.length-=o,s((e=t.errored)!==null&&e!==void 0?e:new Gi("write"))}let r=t[Ja].splice(0);for(let n=0;n<r.length;n++){var a;r[n]((a=t.errored)!==null&&a!==void 0?a:new Gi("end"))}Zo(t)}function Ih(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:a,objectMode:n}=e,i=r.length-a;if(!i)return;let s=a;if(e.bufferProcessing=!0,i>1&&t._writev){e.pendingcb-=i-1;let o=e.allNoop?Eh:c=>{for(let h=s;h<r.length;++h)r[h].callback(c)},l=e.allNoop&&s===0?r:N0(r,s);l.allBuffers=e.allBuffers,R0(t,e,!0,e.length,l,"",o),Zo(e)}else{do{let{chunk:o,encoding:l,callback:c}=r[s];r[s++]=null;let h=n?1:o.length;R0(t,e,!1,h,o,l,c)}while(s<r.length&&!e.writing);s===r.length?Zo(e):s>256?(r.splice(0,s),e.bufferedIndex=0):e.bufferedIndex=s}e.bufferProcessing=!1}rt.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new p7("_write()")};rt.prototype._writev=null;rt.prototype.end=function(t,e,r){let a=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let i=q0(this,t,e);i instanceof a7&&(n=i)}return a.corked&&(a.corked=1,this.uncork()),n||(!a.errored&&!a.ending?(a.ending=!0,Bh(this,a,!0),a.ended=!0):a.finished?n=new m7("end"):a.destroyed&&(n=new Gi("end"))),typeof r=="function"&&(n||a.finished?Un.nextTick(r,n):a[Ja].push(r)),this};function Xo(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function k7(t,e){let r=!1;function a(n){if(r){Ha(t,n??D0());return}if(r=!0,e.pendingcb--,n){let i=e[Ja].splice(0);for(let s=0;s<i.length;s++)i[s](n);Ha(t,n,e.sync)}else Xo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Un.nextTick(Sh,t,e))}e.sync=!0,e.pendingcb++;try{t._final(a)}catch(n){a(n)}e.sync=!1}function S7(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,k7(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Bh(t,e,r){Xo(e)&&(S7(t,e),e.pendingcb===0&&(r?(e.pendingcb++,Un.nextTick((a,n)=>{Xo(n)?Sh(a,n):n.pendingcb--},t,e)):Xo(e)&&(e.pendingcb++,Sh(t,e))))}function Sh(t,e){e.pendingcb--,e.finished=!0;let r=e[Ja].splice(0);for(let a=0;a<r.length;a++)r[a]();if(t.emit("finish"),e.autoDestroy){let a=t._readableState;(!a||a.autoDestroy&&(a.endEmitted||a.readable===!1))&&t.destroy()}}i7(rt.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var E7=el.destroy;rt.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Ja].length)&&Un.nextTick(xh,r),E7.call(this,t,e),this};rt.prototype._undestroy=el.undestroy;rt.prototype._destroy=function(t,e){e(t)};rt.prototype[c7.captureRejectionSymbol]=function(t){this.destroy(t)};var kh;function W0(){return kh===void 0&&(kh={}),kh}rt.fromWeb=function(t,e){return W0().newStreamWritableFromWritableStream(t,e)};rt.toWeb=function(t){return W0().newWritableStreamFromStreamWritable(t)}});var o2=H((AU,s2)=>{E();I();x();var Ah=sn(),x7=(Vt(),_t(tr)),{isReadable:I7,isWritable:B7,isIterable:J0,isNodeStream:A7,isReadableNodeStream:G0,isWritableNodeStream:Y0,isDuplexNodeStream:P7,isReadableStream:K0,isWritableStream:Q0}=sr(),X0=Tr(),{AbortError:a2,codes:{ERR_INVALID_ARG_TYPE:L7,ERR_INVALID_RETURN_VALUE:Z0}}=wt(),{destroyer:Ya}=Fn(),O7=cr(),i2=Hi(),T7=tl(),{createDeferredPromise:e2}=St(),t2=dh(),r2=globalThis.Blob||x7.Blob,M7=typeof r2<"u"?function(e){return e instanceof r2}:function(e){return!1},C7=globalThis.AbortController||za().AbortController,{FunctionPrototypeCall:n2}=Ke(),cn=class extends O7{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};s2.exports=function t(e,r){if(P7(e))return e;if(G0(e))return Ga({readable:e});if(Y0(e))return Ga({writable:e});if(A7(e))return Ga({writable:!1,readable:!1});if(K0(e))return Ga({readable:i2.fromWeb(e)});if(Q0(e))return Ga({writable:T7.fromWeb(e)});if(typeof e=="function"){let{value:n,write:i,final:s,destroy:o}=R7(e);if(J0(n))return t2(cn,n,{objectMode:!0,write:i,final:s,destroy:o});let l=n?.then;if(typeof l=="function"){let c,h=n2(l,n,u=>{if(u!=null)throw new Z0("nully","body",u)},u=>{Ya(c,u)});return c=new cn({objectMode:!0,readable:!1,write:i,final(u){s(async()=>{try{await h,Ah.nextTick(u,null)}catch(d){Ah.nextTick(u,d)}})},destroy:o})}throw new Z0("Iterable, AsyncIterable or AsyncFunction",r,n)}if(M7(e))return t(e.arrayBuffer());if(J0(e))return t2(cn,e,{objectMode:!0,writable:!1});if(K0(e?.readable)&&Q0(e?.writable))return cn.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?G0(e?.readable)?e?.readable:t(e.readable):void 0,i=e!=null&&e.writable?Y0(e?.writable)?e?.writable:t(e.writable):void 0;return Ga({readable:n,writable:i})}let a=e?.then;if(typeof a=="function"){let n;return n2(a,e,i=>{i!=null&&n.push(i),n.push(null)},i=>{Ya(n,i)}),n=new cn({objectMode:!0,writable:!1,read(){}})}throw new L7(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function R7(t){let{promise:e,resolve:r}=e2(),a=new C7,n=a.signal;return{value:t(async function*(){for(;;){let s=e;e=null;let{chunk:o,done:l,cb:c}=await s;if(Ah.nextTick(c),l)return;if(n.aborted)throw new a2(void 0,{cause:n.reason});({promise:e,resolve:r}=e2()),yield o}}(),{signal:n}),write(s,o,l){let c=r;r=null,c({chunk:s,done:!1,cb:l})},final(s){let o=r;r=null,o({done:!0,cb:s})},destroy(s,o){a.abort(),o(s)}}}function Ga(t){let e=t.readable&&typeof t.readable.read!="function"?i2.wrap(t.readable):t.readable,r=t.writable,a=!!I7(e),n=!!B7(r),i,s,o,l,c;function h(u){let d=l;l=null,d?d(u):u&&c.destroy(u)}return c=new cn({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:a,writable:n}),n&&(X0(r,u=>{n=!1,u&&Ya(e,u),h(u)}),c._write=function(u,d,f){r.write(u,d)?f():i=f},c._final=function(u){r.end(),s=u},r.on("drain",function(){if(i){let u=i;i=null,u()}}),r.on("finish",function(){if(s){let u=s;s=null,u()}})),a&&(X0(e,u=>{a=!1,u&&Ya(e,u),h(u)}),e.on("readable",function(){if(o){let u=o;o=null,u()}}),e.on("end",function(){c.push(null)}),c._read=function(){for(;;){let u=e.read();if(u===null){o=c._read;return}if(!c.push(u))return}}),c._destroy=function(u,d){!u&&l!==null&&(u=new a2),o=null,i=null,s=null,l===null?d(u):(l=d,Ya(r,u),Ya(e,u))},c}});var cr=H((TU,f2)=>{"use strict";E();I();x();var{ObjectDefineProperties:$7,ObjectGetOwnPropertyDescriptor:Mr,ObjectKeys:N7,ObjectSetPrototypeOf:l2}=Ke();f2.exports=Jt;var Oh=Hi(),Ut=tl();l2(Jt.prototype,Oh.prototype);l2(Jt,Oh);{let t=N7(Ut.prototype);for(let e=0;e<t.length;e++){let r=t[e];Jt.prototype[r]||(Jt.prototype[r]=Ut.prototype[r])}}function Jt(t){if(!(this instanceof Jt))return new Jt(t);Oh.call(this,t),Ut.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}$7(Jt.prototype,{writable:{__proto__:null,...Mr(Ut.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Mr(Ut.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Mr(Ut.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Mr(Ut.prototype,"writableBuffer")},writableLength:{__proto__:null,...Mr(Ut.prototype,"writableLength")},writableFinished:{__proto__:null,...Mr(Ut.prototype,"writableFinished")},writableCorked:{__proto__:null,...Mr(Ut.prototype,"writableCorked")},writableEnded:{__proto__:null,...Mr(Ut.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Mr(Ut.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var Ph;function c2(){return Ph===void 0&&(Ph={}),Ph}Jt.fromWeb=function(t,e){return c2().newStreamDuplexFromReadableWritablePair(t,e)};Jt.toWeb=function(t){return c2().newReadableWritablePairFromDuplex(t)};var Lh;Jt.from=function(t){return Lh||(Lh=o2()),Lh(t,"body")}});var Ch=H(($U,h2)=>{"use strict";E();I();x();var{ObjectSetPrototypeOf:u2,Symbol:z7}=Ke();h2.exports=Cr;var{ERR_METHOD_NOT_IMPLEMENTED:F7}=wt().codes,Mh=cr(),{getHighWaterMark:j7}=qi();u2(Cr.prototype,Mh.prototype);u2(Cr,Mh);var Ki=z7("kCallback");function Cr(t){if(!(this instanceof Cr))return new Cr(t);let e=t?j7(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Mh.call(this,t),this._readableState.sync=!1,this[Ki]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",D7)}function Th(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function D7(){this._final!==Th&&Th.call(this)}Cr.prototype._final=Th;Cr.prototype._transform=function(t,e,r){throw new F7("_transform()")};Cr.prototype._write=function(t,e,r){let a=this._readableState,n=this._writableState,i=a.length;this._transform(t,e,(s,o)=>{if(s){r(s);return}o!=null&&this.push(o),n.ended||i===a.length||a.length<a.highWaterMark?r():this[Ki]=r})};Cr.prototype._read=function(){if(this[Ki]){let t=this[Ki];this[Ki]=null,t()}}});var $h=H((jU,p2)=>{"use strict";E();I();x();var{ObjectSetPrototypeOf:d2}=Ke();p2.exports=Ka;var Rh=Ch();d2(Ka.prototype,Rh.prototype);d2(Ka,Rh);function Ka(t){if(!(this instanceof Ka))return new Ka(t);Rh.call(this,t)}Ka.prototype._transform=function(t,e,r){r(null,t)}});var il=H((VU,b2)=>{E();I();x();var Qi=sn(),{ArrayIsArray:U7,Promise:q7,SymbolAsyncIterator:V7,SymbolDispose:W7}=Ke(),al=Tr(),{once:H7}=St(),J7=Fn(),g2=cr(),{aggregateTwoErrors:G7,codes:{ERR_INVALID_ARG_TYPE:Wh,ERR_INVALID_RETURN_VALUE:Nh,ERR_MISSING_ARGS:Y7,ERR_STREAM_DESTROYED:K7,ERR_STREAM_PREMATURE_CLOSE:Q7},AbortError:X7}=wt(),{validateFunction:Z7,validateAbortSignal:e9}=ja(),{isIterable:qn,isReadable:zh,isReadableNodeStream:nl,isNodeStream:m2,isTransformStream:Qa,isWebStream:t9,isReadableStream:Fh,isReadableFinished:r9}=sr(),n9=globalThis.AbortController||za().AbortController,jh,Dh,Uh;function _2(t,e,r){let a=!1;t.on("close",()=>{a=!0});let n=al(t,{readable:e,writable:r},i=>{a=!i});return{destroy:i=>{a||(a=!0,J7.destroyer(t,i||new K7("pipe")))},cleanup:n}}function a9(t){return Z7(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function qh(t){if(qn(t))return t;if(nl(t))return i9(t);throw new Wh("val",["Readable","Iterable","AsyncIterable"],t)}async function*i9(t){Dh||(Dh=Hi()),yield*Dh.prototype[V7].call(t)}async function rl(t,e,r,{end:a}){let n,i=null,s=c=>{if(c&&(n=c),i){let h=i;i=null,h()}},o=()=>new q7((c,h)=>{n?h(n):i=()=>{n?h(n):c()}});e.on("drain",s);let l=al(e,{readable:!1},s);try{e.writableNeedDrain&&await o();for await(let c of t)e.write(c)||await o();a&&(e.end(),await o()),r()}catch(c){r(n!==c?G7(n,c):c)}finally{l(),e.off("drain",s)}}async function Vh(t,e,r,{end:a}){Qa(e)&&(e=e.writable);let n=e.getWriter();try{for await(let i of t)await n.ready,n.write(i).catch(()=>{});await n.ready,a&&await n.close(),r()}catch(i){try{await n.abort(i),r(i)}catch(s){r(s)}}}function s9(...t){return y2(t,H7(a9(t)))}function y2(t,e,r){if(t.length===1&&U7(t[0])&&(t=t[0]),t.length<2)throw new Y7("streams");let a=new n9,n=a.signal,i=r?.signal,s=[];e9(i,"options.signal");function o(){g(new X7)}Uh=Uh||St().addAbortListener;let l;i&&(l=Uh(i,o));let c,h,u=[],d=0;function f(v){g(v,--d===0)}function g(v,S){var B;if(v&&(!c||c.code==="ERR_STREAM_PREMATURE_CLOSE")&&(c=v),!(!c&&!S)){for(;u.length;)u.shift()(c);(B=l)===null||B===void 0||B[W7](),a.abort(),S&&(c||s.forEach(P=>P()),Qi.nextTick(e,c,h))}}let m;for(let v=0;v<t.length;v++){let S=t[v],B=v<t.length-1,P=v>0,M=B||r?.end!==!1,R=v===t.length-1;if(m2(S)){let $=function(C){C&&C.name!=="AbortError"&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"&&f(C)};var w=$;if(M){let{destroy:C,cleanup:Z}=_2(S,B,P);u.push(C),zh(S)&&R&&s.push(Z)}S.on("error",$),zh(S)&&R&&s.push(()=>{S.removeListener("error",$)})}if(v===0)if(typeof S=="function"){if(m=S({signal:n}),!qn(m))throw new Nh("Iterable, AsyncIterable or Stream","source",m)}else qn(S)||nl(S)||Qa(S)?m=S:m=g2.from(S);else if(typeof S=="function"){if(Qa(m)){var y;m=qh((y=m)===null||y===void 0?void 0:y.readable)}else m=qh(m);if(m=S(m,{signal:n}),B){if(!qn(m,!0))throw new Nh("AsyncIterable",`transform[${v-1}]`,m)}else{var b;jh||(jh=$h());let $=new jh({objectMode:!0}),C=(b=m)===null||b===void 0?void 0:b.then;if(typeof C=="function")d++,C.call(m,G=>{h=G,G!=null&&$.write(G),M&&$.end(),Qi.nextTick(f)},G=>{$.destroy(G),Qi.nextTick(f,G)});else if(qn(m,!0))d++,rl(m,$,f,{end:M});else if(Fh(m)||Qa(m)){let G=m.readable||m;d++,rl(G,$,f,{end:M})}else throw new Nh("AsyncIterable or Promise","destination",m);m=$;let{destroy:Z,cleanup:re}=_2(m,!1,!0);u.push(Z),R&&s.push(re)}}else if(m2(S)){if(nl(m)){d+=2;let $=o9(m,S,f,{end:M});zh(S)&&R&&s.push($)}else if(Qa(m)||Fh(m)){let $=m.readable||m;d++,rl($,S,f,{end:M})}else if(qn(m))d++,rl(m,S,f,{end:M});else throw new Wh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=S}else if(t9(S)){if(nl(m))d++,Vh(qh(m),S,f,{end:M});else if(Fh(m)||qn(m))d++,Vh(m,S,f,{end:M});else if(Qa(m))d++,Vh(m.readable,S,f,{end:M});else throw new Wh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=S}else m=g2.from(S)}return(n!=null&&n.aborted||i!=null&&i.aborted)&&Qi.nextTick(o),m}function o9(t,e,r,{end:a}){let n=!1;if(e.on("close",()=>{n||r(new Q7)}),t.pipe(e,{end:!1}),a){let s=function(){n=!0,e.end()};var i=s;r9(t)?Qi.nextTick(s):t.once("end",s)}else r();return al(t,{readable:!0,writable:!1},s=>{let o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),al(e,{readable:!1,writable:!0},r)}b2.exports={pipelineImpl:y2,pipeline:s9}});var Jh=H((GU,x2)=>{"use strict";E();I();x();var{pipeline:l9}=il(),sl=cr(),{destroyer:c9}=Fn(),{isNodeStream:ol,isReadable:w2,isWritable:v2,isWebStream:Hh,isTransformStream:Vn,isWritableStream:k2,isReadableStream:S2}=sr(),{AbortError:f9,codes:{ERR_INVALID_ARG_VALUE:E2,ERR_MISSING_ARGS:u9}}=wt(),h9=Tr();x2.exports=function(...e){if(e.length===0)throw new u9("streams");if(e.length===1)return sl.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=sl.from(e[0])),typeof e[e.length-1]=="function"){let f=e.length-1;e[f]=sl.from(e[f])}for(let f=0;f<e.length;++f)if(!(!ol(e[f])&&!Hh(e[f]))){if(f<e.length-1&&!(w2(e[f])||S2(e[f])||Vn(e[f])))throw new E2(`streams[${f}]`,r[f],"must be readable");if(f>0&&!(v2(e[f])||k2(e[f])||Vn(e[f])))throw new E2(`streams[${f}]`,r[f],"must be writable")}let a,n,i,s,o;function l(f){let g=s;s=null,g?g(f):f?o.destroy(f):!d&&!u&&o.destroy()}let c=e[0],h=l9(e,l),u=!!(v2(c)||k2(c)||Vn(c)),d=!!(w2(h)||S2(h)||Vn(h));if(o=new sl({writableObjectMode:!!(c!=null&&c.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:u,readable:d}),u){if(ol(c))o._write=function(g,m,y){c.write(g,m)?y():a=y},o._final=function(g){c.end(),n=g},c.on("drain",function(){if(a){let g=a;a=null,g()}});else if(Hh(c)){let m=(Vn(c)?c.writable:c).getWriter();o._write=async function(y,b,w){try{await m.ready,m.write(y).catch(()=>{}),w()}catch(v){w(v)}},o._final=async function(y){try{await m.ready,m.close().catch(()=>{}),n=y}catch(b){y(b)}}}let f=Vn(h)?h.readable:h;h9(f,()=>{if(n){let g=n;n=null,g()}})}if(d){if(ol(h))h.on("readable",function(){if(i){let f=i;i=null,f()}}),h.on("end",function(){o.push(null)}),o._read=function(){for(;;){let f=h.read();if(f===null){i=o._read;return}if(!o.push(f))return}};else if(Hh(h)){let g=(Vn(h)?h.readable:h).getReader();o._read=async function(){for(;;)try{let{value:m,done:y}=await g.read();if(!o.push(m))return;if(y){o.push(null);return}}catch{return}}}}return o._destroy=function(f,g){!f&&s!==null&&(f=new f9),i=null,a=null,n=null,s===null?g(f):(s=g,ol(h)&&c9(h,f))},o}});var R2=H((XU,Kh)=>{"use strict";E();I();x();var d9=globalThis.AbortController||za().AbortController,{codes:{ERR_INVALID_ARG_VALUE:p9,ERR_INVALID_ARG_TYPE:Xi,ERR_MISSING_ARGS:g9,ERR_OUT_OF_RANGE:m9},AbortError:fr}=wt(),{validateAbortSignal:Wn,validateInteger:I2,validateObject:Hn}=ja(),_9=Ke().Symbol("kWeak"),y9=Ke().Symbol("kResistStopPropagation"),{finished:b9}=Tr(),w9=Jh(),{addAbortSignalNoValidate:v9}=Ui(),{isWritable:k9,isNodeStream:S9}=sr(),{deprecate:E9}=St(),{ArrayPrototypePush:x9,Boolean:I9,MathFloor:B2,Number:B9,NumberIsNaN:A9,Promise:A2,PromiseReject:P2,PromiseResolve:P9,PromisePrototypeThen:L2,Symbol:T2}=Ke(),ll=T2("kEmpty"),O2=T2("kEof");function L9(t,e){if(e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),S9(t)&&!k9(t))throw new p9("stream",t,"must be writable");let r=w9(this,t);return e!=null&&e.signal&&v9(e.signal,r),r}function cl(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=B2(e.concurrency));let a=r-1;return e?.highWaterMark!=null&&(a=B2(e.highWaterMark)),I2(r,"options.concurrency",1),I2(a,"options.highWaterMark",0),a+=r,async function*(){let i=St().AbortSignalAny([e?.signal].filter(I9)),s=this,o=[],l={signal:i},c,h,u=!1,d=0;function f(){u=!0,g()}function g(){d-=1,m()}function m(){h&&!u&&d<r&&o.length<a&&(h(),h=null)}async function y(){try{for await(let b of s){if(u)return;if(i.aborted)throw new fr;try{if(b=t(b,l),b===ll)continue;b=P9(b)}catch(w){b=P2(w)}d+=1,L2(b,g,f),o.push(b),c&&(c(),c=null),!u&&(o.length>=a||d>=r)&&await new A2(w=>{h=w})}o.push(O2)}catch(b){let w=P2(b);L2(w,g,f),o.push(w)}finally{u=!0,c&&(c(),c=null)}}y();try{for(;;){for(;o.length>0;){let b=await o[0];if(b===O2)return;if(i.aborted)throw new fr;b!==ll&&(yield b),o.shift(),m()}await new A2(b=>{c=b})}}finally{u=!0,h&&(h(),h=null)}}.call(this)}function O9(t=void 0){return t!=null&&Hn(t,"options"),t?.signal!=null&&Wn(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new fr({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function M2(t,e=void 0){for await(let r of Yh.call(this,t,e))return!0;return!1}async function T9(t,e=void 0){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);return!await M2.call(this,async(...r)=>!await t(...r),e)}async function M9(t,e){for await(let r of Yh.call(this,t,e))return r}async function C9(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);async function r(a,n){return await t(a,n),ll}for await(let a of cl.call(this,r,e));}function Yh(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);async function r(a,n){return await t(a,n)?a:ll}return cl.call(this,r,e)}var Gh=class extends g9{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function R9(t,e,r){var a;if(typeof t!="function")throw new Xi("reducer",["Function","AsyncFunction"],t);r!=null&&Hn(r,"options"),r?.signal!=null&&Wn(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted){let c=new fr(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await b9(this.destroy(c)),c}let i=new d9,s=i.signal;if(r!=null&&r.signal){let c={once:!0,[_9]:this,[y9]:!0};r.signal.addEventListener("abort",()=>i.abort(),c)}let o=!1;try{for await(let c of this){var l;if(o=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fr;n?e=await t(e,c,{signal:s}):(e=c,n=!0)}if(!o&&!n)throw new Gh}finally{i.abort()}return e}async function $9(t){t!=null&&Hn(t,"options"),t?.signal!=null&&Wn(t.signal,"options.signal");let e=[];for await(let a of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new fr(void 0,{cause:t.signal.reason});x9(e,a)}return e}function N9(t,e){let r=cl.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function C2(t){if(t=B9(t),A9(t))return 0;if(t<0)throw new m9("number",">= 0",t);return t}function z9(t,e=void 0){return e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),t=C2(t),async function*(){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new fr;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new fr;t--<=0&&(yield i)}}.call(this)}function F9(t,e=void 0){return e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),t=C2(t),async function*(){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new fr;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new fr;if(t-- >0&&(yield i),t<=0)return}}.call(this)}Kh.exports.streamReturningOperators={asIndexedPairs:E9(O9,"readable.asIndexedPairs will be removed in a future version."),drop:z9,filter:Yh,flatMap:N9,map:cl,take:F9,compose:L9};Kh.exports.promiseReturningOperators={every:T9,forEach:C9,reduce:R9,toArray:$9,some:M2,find:M9}});var Qh=H((rq,$2)=>{"use strict";E();I();x();var{ArrayPrototypePop:j9,Promise:D9}=Ke(),{isIterable:U9,isNodeStream:q9,isWebStream:V9}=sr(),{pipelineImpl:W9}=il(),{finished:H9}=Tr();Xh();function J9(...t){return new D9((e,r)=>{let a,n,i=t[t.length-1];if(i&&typeof i=="object"&&!q9(i)&&!U9(i)&&!V9(i)){let s=j9(t);a=s.signal,n=s.end}W9(t,(s,o)=>{s?r(s):e(o)},{signal:a,end:n})})}$2.exports={finished:H9,pipeline:J9}});var Xh=H((sq,W2)=>{"use strict";E();I();x();var{Buffer:G9}=(Vt(),_t(tr)),{ObjectDefineProperty:Rr,ObjectKeys:F2,ReflectApply:j2}=Ke(),{promisify:{custom:D2}}=St(),{streamReturningOperators:N2,promiseReturningOperators:z2}=R2(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:U2}}=wt(),Y9=Jh(),{setDefaultHighWaterMark:K9,getDefaultHighWaterMark:Q9}=qi(),{pipeline:q2}=il(),{destroyer:X9}=Fn(),V2=Tr(),Zh=Qh(),Zi=sr(),Je=W2.exports=Uo().Stream;Je.isDestroyed=Zi.isDestroyed;Je.isDisturbed=Zi.isDisturbed;Je.isErrored=Zi.isErrored;Je.isReadable=Zi.isReadable;Je.isWritable=Zi.isWritable;Je.Readable=Hi();for(let t of F2(N2)){let r=function(...a){if(new.target)throw U2();return Je.Readable.from(j2(e,this,a))},e=N2[t];Rr(r,"name",{__proto__:null,value:e.name}),Rr(r,"length",{__proto__:null,value:e.length}),Rr(Je.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of F2(z2)){let r=function(...a){if(new.target)throw U2();return j2(e,this,a)},e=z2[t];Rr(r,"name",{__proto__:null,value:e.name}),Rr(r,"length",{__proto__:null,value:e.length}),Rr(Je.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}Je.Writable=tl();Je.Duplex=cr();Je.Transform=Ch();Je.PassThrough=$h();Je.pipeline=q2;var{addAbortSignal:Z9}=Ui();Je.addAbortSignal=Z9;Je.finished=V2;Je.destroy=X9;Je.compose=Y9;Je.setDefaultHighWaterMark=K9;Je.getDefaultHighWaterMark=Q9;Rr(Je,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Zh}});Rr(q2,D2,{__proto__:null,enumerable:!0,get(){return Zh.pipeline}});Rr(V2,D2,{__proto__:null,enumerable:!0,get(){return Zh.finished}});Je.Stream=Je;Je._isUint8Array=function(e){return e instanceof Uint8Array};Je._uint8ArrayToBuffer=function(e){return G9.from(e.buffer,e.byteOffset,e.byteLength)}});var H2=H((fq,ot)=>{"use strict";E();I();x();var dt=Xh(),eT=Qh(),tT=dt.Readable.destroy;ot.exports=dt.Readable;ot.exports._uint8ArrayToBuffer=dt._uint8ArrayToBuffer;ot.exports._isUint8Array=dt._isUint8Array;ot.exports.isDisturbed=dt.isDisturbed;ot.exports.isErrored=dt.isErrored;ot.exports.isReadable=dt.isReadable;ot.exports.Readable=dt.Readable;ot.exports.Writable=dt.Writable;ot.exports.Duplex=dt.Duplex;ot.exports.Transform=dt.Transform;ot.exports.PassThrough=dt.PassThrough;ot.exports.addAbortSignal=dt.addAbortSignal;ot.exports.finished=dt.finished;ot.exports.destroy=dt.destroy;ot.exports.destroy=tT;ot.exports.pipeline=dt.pipeline;ot.exports.compose=dt.compose;Object.defineProperty(dt,"promises",{configurable:!0,enumerable:!0,get(){return eT}});ot.exports.Stream=dt.Stream;ot.exports.default=ot.exports});var fl=H((pq,J2)=>{E();I();x();var nd=H2().Transform,ed=class extends nd{constructor(e,r){super({writableObjectMode:!0}),this.proto=e,this.mainType=r,this.queue=Buffer.alloc(0)}createPacketBuffer(e){return this.proto.createPacketBuffer(this.mainType,e)}_transform(e,r,a){let n;try{n=this.createPacketBuffer(e)}catch(i){return a(i)}return this.push(n),a()}},td=class extends nd{constructor(e,r){super({readableObjectMode:!0}),this.proto=e,this.mainType=r,this.queue=Buffer.alloc(0)}parsePacketBuffer(e){return this.proto.parsePacketBuffer(this.mainType,e)}_transform(e,r,a){for(this.queue=Buffer.concat([this.queue,e]);;){let n;try{n=this.parsePacketBuffer(this.queue)}catch(i){return i.partialReadError?a():(i.buffer=this.queue,this.queue=Buffer.alloc(0),a(i))}this.push(n),this.queue=this.queue.slice(n.metadata.size)}}},rd=class extends nd{constructor(e,r,a=!1){super({readableObjectMode:!0}),this.proto=e,this.mainType=r,this.noErrorLogging=a}parsePacketBuffer(e){return this.proto.parsePacketBuffer(this.mainType,e)}_transform(e,r,a){let n;try{n=this.parsePacketBuffer(e),n.metadata.size!==e.length&&!this.noErrorLogging&&console.log("Chunk size is "+e.length+" but only "+n.metadata.size+" was read ; partial packet : "+JSON.stringify(n.data)+"; buffer :"+e.toString("hex"))}catch(i){return i.partialReadError?(this.noErrorLogging||console.log(i.stack),a()):a(i)}this.push(n),a()}};J2.exports={Serializer:ed,Parser:td,FullPacketParser:rd}});var Y2=H((yq,G2)=>{E();I();x();G2.exports={Read:{switch:["parametrizable",(t,e)=>{let r=e.compareTo?e.compareTo:e.compareToValue,a=[];r.startsWith("$")?a.push(r):e.compareTo&&(r=t.getField(r,!0));let n=`switch (${r}) {
68
+ `;super(r),this.name="AggregateError",this.errors=e}};Hb.exports={AggregateError:ju,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Du=H((oD,Jb)=>{"use strict";E();I();x();Jb.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,a]){let n=e.shift();return a==="f"?n.toFixed(6):a==="j"?JSON.stringify(n):a==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var wt=H((uD,Kb)=>{"use strict";E();I();x();var{format:AP,inspect:Oo}=Du(),{AggregateError:PP}=Ke(),LP=globalThis.AggregateError||PP,OP=Symbol("kIsNodeError"),TP=["string","function","number","object","Function","Object","boolean","bigint","symbol"],MP=/^([A-Z][a-z0-9]*)+$/,CP="__node_internal_",To={};function Rn(t,e){if(!t)throw new To.ERR_INTERNAL_ASSERTION(e)}function Gb(t){let e="",r=t.length,a=t[0]==="-"?1:0;for(;r>=a+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function RP(t,e,r){if(typeof e=="function")return Rn(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let a=(e.match(/%[dfijoOs]/g)||[]).length;return Rn(a===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${a}).`),r.length===0?e:AP(e,...r)}function mt(t,e,r){r||(r=Error);class a extends r{constructor(...i){super(RP(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=t,a.prototype[OP]=!0,To[t]=a}function Yb(t){let e=CP+t.name;return Object.defineProperty(t,"name",{value:e}),t}function $P(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new LP([e,t],e.message);return r.code=e.code,r}return t||e}var Uu=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new To.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};mt("ERR_ASSERTION","%s",Error);mt("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Rn(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let a="The ";t.endsWith(" argument")?a+=`${t} `:a+=`"${t}" ${t.includes(".")?"property":"argument"} `,a+="must be ";let n=[],i=[],s=[];for(let l of e)Rn(typeof l=="string","All expected entries have to be of type string"),TP.includes(l)?n.push(l.toLowerCase()):MP.test(l)?i.push(l):(Rn(l!=="object",'The value "object" should be written as "Object"'),s.push(l));if(i.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),i.push("Object"))}if(n.length>0){switch(n.length){case 1:a+=`of type ${n[0]}`;break;case 2:a+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();a+=`one of type ${n.join(", ")}, or ${l}`}}(i.length>0||s.length>0)&&(a+=" or ")}if(i.length>0){switch(i.length){case 1:a+=`an instance of ${i[0]}`;break;case 2:a+=`an instance of ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();a+=`an instance of ${i.join(", ")}, or ${l}`}}s.length>0&&(a+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(a+="an "),a+=`${s[0]}`;break;case 2:a+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();a+=`one of ${s.join(", ")}, or ${l}`}}if(r==null)a+=`. Received ${r}`;else if(typeof r=="function"&&r.name)a+=`. Received function ${r.name}`;else if(typeof r=="object"){var o;if((o=r.constructor)!==null&&o!==void 0&&o.name)a+=`. Received an instance of ${r.constructor.name}`;else{let l=Oo(r,{depth:-1});a+=`. Received ${l}`}}else{let l=Oo(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),a+=`. Received type ${typeof r} (${l})`}return a},TypeError);mt("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let a=Oo(e);return a.length>128&&(a=a.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${a}`},TypeError);mt("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var a;let n=r!=null&&(a=r.constructor)!==null&&a!==void 0&&a.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);mt("ERR_MISSING_ARGS",(...t)=>{Rn(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(a=>`"${a}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let a=t.pop();e+=`The ${t.join(", ")}, and ${a} arguments`}break}return`${e} must be specified`},TypeError);mt("ERR_OUT_OF_RANGE",(t,e,r)=>{Rn(e,'Missing "range" argument');let a;if(Number.isInteger(r)&&Math.abs(r)>2**32)a=Gb(String(r));else if(typeof r=="bigint"){a=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(a=Gb(a)),a+="n"}else a=Oo(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${a}`},RangeError);mt("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);mt("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);mt("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);mt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);mt("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);mt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mt("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);mt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);mt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);mt("ERR_STREAM_WRITE_AFTER_END","write after end",Error);mt("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Kb.exports={AbortError:Uu,aggregateTwoErrors:Yb($P),hideStackFrames:Yb,codes:To}});var za=H((gD,Mo)=>{"use strict";E();I();x();var{AbortController:Qb,AbortSignal:NP}=typeof self<"u"?self:typeof window<"u"?window:void 0;Mo.exports=Qb;Mo.exports.AbortSignal=NP;Mo.exports.default=Qb});var ji={};xi(ji,{EventEmitter:()=>FP,default:()=>Fi,defaultMaxListeners:()=>jP,init:()=>DP,listenerCount:()=>UP,on:()=>qP,once:()=>VP});function zP(){if(Xb)return Co;Xb=!0;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(B,P,M){return Function.prototype.apply.call(B,P,M)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:r=function(B){return Object.getOwnPropertyNames(B)};function a(S){console&&console.warn&&console.warn(S)}var n=Number.isNaN||function(B){return B!==B};function i(){i.init.call(this)}Co=i,Co.once=b,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(S){if(typeof S!="number"||S<0||n(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");s=S}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||n(B))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+B+".");return this._maxListeners=B,this};function l(S){return S._maxListeners===void 0?i.defaultMaxListeners:S._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(B){for(var P=[],M=1;M<arguments.length;M++)P.push(arguments[M]);var R=B==="error",$=this._events;if($!==void 0)R=R&&$.error===void 0;else if(!R)return!1;if(R){var C;if(P.length>0&&(C=P[0]),C instanceof Error)throw C;var Z=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw Z.context=C,Z}var re=$[B];if(re===void 0)return!1;if(typeof re=="function")e(re,this,P);else for(var G=re.length,ne=g(re,G),M=0;M<G;++M)e(ne[M],this,P);return!0};function c(S,B,P,M){var R,$,C;if(o(P),$=S._events,$===void 0?($=S._events=Object.create(null),S._eventsCount=0):($.newListener!==void 0&&(S.emit("newListener",B,P.listener?P.listener:P),$=S._events),C=$[B]),C===void 0)C=$[B]=P,++S._eventsCount;else if(typeof C=="function"?C=$[B]=M?[P,C]:[C,P]:M?C.unshift(P):C.push(P),R=l(S),R>0&&C.length>R&&!C.warned){C.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=S,Z.type=B,Z.count=C.length,a(Z)}return S}i.prototype.addListener=function(B,P){return c(this,B,P,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(B,P){return c(this,B,P,!0)};function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,B,P){var M={fired:!1,wrapFn:void 0,target:S,type:B,listener:P},R=h.bind(M);return R.listener=P,M.wrapFn=R,R}i.prototype.once=function(B,P){return o(P),this.on(B,u(this,B,P)),this},i.prototype.prependOnceListener=function(B,P){return o(P),this.prependListener(B,u(this,B,P)),this},i.prototype.removeListener=function(B,P){var M,R,$,C,Z;if(o(P),R=this._events,R===void 0)return this;if(M=R[B],M===void 0)return this;if(M===P||M.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete R[B],R.removeListener&&this.emit("removeListener",B,M.listener||P));else if(typeof M!="function"){for($=-1,C=M.length-1;C>=0;C--)if(M[C]===P||M[C].listener===P){Z=M[C].listener,$=C;break}if($<0)return this;$===0?M.shift():m(M,$),M.length===1&&(R[B]=M[0]),R.removeListener!==void 0&&this.emit("removeListener",B,Z||P)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(B){var P,M,R;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[B]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[B]),this;if(arguments.length===0){var $=Object.keys(M),C;for(R=0;R<$.length;++R)C=$[R],C!=="removeListener"&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=M[B],typeof P=="function")this.removeListener(B,P);else if(P!==void 0)for(R=P.length-1;R>=0;R--)this.removeListener(B,P[R]);return this};function d(S,B,P){var M=S._events;if(M===void 0)return[];var R=M[B];return R===void 0?[]:typeof R=="function"?P?[R.listener||R]:[R]:P?y(R):g(R,R.length)}i.prototype.listeners=function(B){return d(this,B,!0)},i.prototype.rawListeners=function(B){return d(this,B,!1)},i.listenerCount=function(S,B){return typeof S.listenerCount=="function"?S.listenerCount(B):f.call(S,B)},i.prototype.listenerCount=f;function f(S){var B=this._events;if(B!==void 0){var P=B[S];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function g(S,B){for(var P=new Array(B),M=0;M<B;++M)P[M]=S[M];return P}function m(S,B){for(;B+1<S.length;B++)S[B]=S[B+1];S.pop()}function y(S){for(var B=new Array(S.length),P=0;P<B.length;++P)B[P]=S[P].listener||S[P];return B}function b(S,B){return new Promise(function(P,M){function R(C){S.removeListener(B,$),M(C)}function $(){typeof S.removeListener=="function"&&S.removeListener("error",R),P([].slice.call(arguments))}v(S,B,$,{once:!0}),B!=="error"&&w(S,R,{once:!0})})}function w(S,B,P){typeof S.on=="function"&&v(S,"error",B,P)}function v(S,B,P,M){if(typeof S.on=="function")M.once?S.once(B,P):S.on(B,P);else if(typeof S.addEventListener=="function")S.addEventListener(B,function R($){M.once&&S.removeEventListener(B,R),P($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return Co}var Co,Xb,Fi,FP,jP,DP,UP,qP,VP,Di=jt(()=>{E();I();x();Co={},Xb=!1;Fi=zP();Fi.once;Fi.once=function(t,e){return new Promise((r,a)=>{function n(...s){i!==void 0&&t.removeListener("error",i),r(s)}let i;e!=="error"&&(i=s=>{t.removeListener(name,n),a(s)},t.once("error",i)),t.once(e,n)})};Fi.on=function(t,e){let r=[],a=[],n=null,i=!1,s={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(n){let h=Promise.reject(n);return n=null,h}return i?createIterResult(void 0,!0):new Promise((h,u)=>a.push({resolve:h,reject:u}))},async return(){t.removeListener(e,o),t.removeListener("error",l),i=!0;for(let c of a)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){n=c,t.removeListener(e,o),t.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return t.on(e,o),t.on("error",l),s;function o(...c){let h=a.shift();h?h.resolve(createIterResult(c,!1)):r.push(c)}function l(c){i=!0;let h=a.shift();h?h.reject(c):n=c,s.return()}};({EventEmitter:FP,defaultMaxListeners:jP,init:DP,listenerCount:UP,on:qP,once:VP}=Fi)});var St=H((kD,Vu)=>{"use strict";E();I();x();var WP=(Vt(),_t(tr)),{format:HP,inspect:JP}=Du(),{codes:{ERR_INVALID_ARG_TYPE:qu}}=wt(),{kResistStopPropagation:GP,AggregateError:YP,SymbolDispose:KP}=Ke(),QP=globalThis.AbortSignal||za().AbortSignal,XP=globalThis.AbortController||za().AbortController,ZP=Object.getPrototypeOf(async function(){}).constructor,Zb=globalThis.Blob||WP.Blob,eL=typeof Zb<"u"?function(e){return e instanceof Zb}:function(e){return!1},ew=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new qu(e,"AbortSignal",t)},tL=(t,e)=>{if(typeof t!="function")throw new qu(e,"Function",t)};Vu.exports={AggregateError:YP,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((a,n)=>{t=a,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((a,...n)=>a?r(a):e(...n))})},debuglog(){return function(){}},format:HP,inspect:JP,types:{isAsyncFunction(t){return t instanceof ZP},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:eL,deprecate(t,e){return t},addAbortListener:(Di(),_t(ji)).addAbortListener||function(e,r){if(e===void 0)throw new qu("signal","AbortSignal",e);ew(e,"signal"),tL(r,"listener");let a;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[GP]:!0}),a=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[KP](){var n;(n=a)===null||n===void 0||n()}}},AbortSignalAny:QP.any||function(e){if(e.length===1)return e[0];let r=new XP,a=()=>r.abort();return e.forEach(n=>{ew(n,"signals"),n.addEventListener("abort",a,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",a))},{once:!0}),r.signal}};Vu.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ja=H((ID,fw)=>{"use strict";E();I();x();var{ArrayIsArray:Hu,ArrayPrototypeIncludes:aw,ArrayPrototypeJoin:iw,ArrayPrototypeMap:rL,NumberIsInteger:Ju,NumberIsNaN:nL,NumberMAX_SAFE_INTEGER:aL,NumberMIN_SAFE_INTEGER:iL,NumberParseInt:sL,ObjectPrototypeHasOwnProperty:oL,RegExpPrototypeExec:sw,String:lL,StringPrototypeToUpperCase:cL,StringPrototypeTrim:fL}=Ke(),{hideStackFrames:Dt,codes:{ERR_SOCKET_BAD_PORT:uL,ERR_INVALID_ARG_TYPE:vt,ERR_INVALID_ARG_VALUE:Fa,ERR_OUT_OF_RANGE:$n,ERR_UNKNOWN_SIGNAL:tw}}=wt(),{normalizeEncoding:hL}=St(),{isAsyncFunction:dL,isArrayBufferView:pL}=St().types,rw={};function gL(t){return t===(t|0)}function mL(t){return t===t>>>0}var _L=/^[0-7]+$/,yL="must be a 32-bit unsigned integer or an octal string";function bL(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(sw(_L,t)===null)throw new Fa(e,t,yL);t=sL(t,8)}return ow(t,e),t}var wL=Dt((t,e,r=iL,a=aL)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);if(t<r||t>a)throw new $n(e,`>= ${r} && <= ${a}`,t)}),vL=Dt((t,e,r=-2147483648,a=2147483647)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);if(t<r||t>a)throw new $n(e,`>= ${r} && <= ${a}`,t)}),ow=Dt((t,e,r=!1)=>{if(typeof t!="number")throw new vt(e,"number",t);if(!Ju(t))throw new $n(e,"an integer",t);let a=r?1:0,n=4294967295;if(t<a||t>n)throw new $n(e,`>= ${a} && <= ${n}`,t)});function Gu(t,e){if(typeof t!="string")throw new vt(e,"string",t)}function kL(t,e,r=void 0,a){if(typeof t!="number")throw new vt(e,"number",t);if(r!=null&&t<r||a!=null&&t>a||(r!=null||a!=null)&&nL(t))throw new $n(e,`${r!=null?`>= ${r}`:""}${r!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,t)}var SL=Dt((t,e,r)=>{if(!aw(r,t)){let n="must be one of: "+iw(rL(r,i=>typeof i=="string"?`'${i}'`:lL(i)),", ");throw new Fa(e,t,n)}});function lw(t,e){if(typeof t!="boolean")throw new vt(e,"boolean",t)}function Wu(t,e,r){return t==null||!oL(t,e)?r:t[e]}var EL=Dt((t,e,r=null)=>{let a=Wu(r,"allowArray",!1),n=Wu(r,"allowFunction",!1);if(!Wu(r,"nullable",!1)&&t===null||!a&&Hu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new vt(e,"Object",t)}),xL=Dt((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new vt(e,"a dictionary",t)}),Ro=Dt((t,e,r=0)=>{if(!Hu(t))throw new vt(e,"Array",t);if(t.length<r){let a=`must be longer than ${r}`;throw new Fa(e,t,a)}});function IL(t,e){Ro(t,e);for(let r=0;r<t.length;r++)Gu(t[r],`${e}[${r}]`)}function BL(t,e){Ro(t,e);for(let r=0;r<t.length;r++)lw(t[r],`${e}[${r}]`)}function AL(t,e){Ro(t,e);for(let r=0;r<t.length;r++){let a=t[r],n=`${e}[${r}]`;if(a==null)throw new vt(n,"AbortSignal",a);cw(a,n)}}function PL(t,e="signal"){if(Gu(t,e),rw[t]===void 0)throw rw[cL(t)]!==void 0?new tw(t+" (signals must use all capital letters)"):new tw(t)}var LL=Dt((t,e="buffer")=>{if(!pL(t))throw new vt(e,["Buffer","TypedArray","DataView"],t)});function OL(t,e){let r=hL(e),a=t.length;if(r==="hex"&&a%2!==0)throw new Fa("encoding",e,`is invalid for data of length ${a}`)}function TL(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&fL(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new uL(e,t,r);return t|0}var cw=Dt((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new vt(e,"AbortSignal",t)}),ML=Dt((t,e)=>{if(typeof t!="function")throw new vt(e,"Function",t)}),CL=Dt((t,e)=>{if(typeof t!="function"||dL(t))throw new vt(e,"Function",t)}),RL=Dt((t,e)=>{if(t!==void 0)throw new vt(e,"undefined",t)});function $L(t,e,r){if(!aw(r,t))throw new vt(e,`('${iw(r,"|")}')`,t)}var NL=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function nw(t,e){if(typeof t>"u"||!sw(NL,t))throw new Fa(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function zL(t){if(typeof t=="string")return nw(t,"hints"),t;if(Hu(t)){let e=t.length,r="";if(e===0)return r;for(let a=0;a<e;a++){let n=t[a];nw(n,"hints"),r+=n,a!==e-1&&(r+=", ")}return r}throw new Fa("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}fw.exports={isInt32:gL,isUint32:mL,parseFileMode:bL,validateArray:Ro,validateStringArray:IL,validateBooleanArray:BL,validateAbortSignalArray:AL,validateBoolean:lw,validateBuffer:LL,validateDictionary:xL,validateEncoding:OL,validateFunction:ML,validateInt32:vL,validateInteger:wL,validateNumber:kL,validateObject:EL,validateOneOf:SL,validatePlainFunction:CL,validatePort:TL,validateSignalName:PL,validateString:Gu,validateUint32:ow,validateUndefined:RL,validateUnion:$L,validateAbortSignal:cw,validateLinkHeaderValue:zL}});var sn=H((LD,pw)=>{E();I();x();var st=pw.exports={},nr,ar;function Yu(){throw new Error("setTimeout has not been defined")}function Ku(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nr=setTimeout:nr=Yu}catch{nr=Yu}try{typeof clearTimeout=="function"?ar=clearTimeout:ar=Ku}catch{ar=Ku}})();function uw(t){if(nr===setTimeout)return setTimeout(t,0);if((nr===Yu||!nr)&&setTimeout)return nr=setTimeout,setTimeout(t,0);try{return nr(t,0)}catch{try{return nr.call(null,t,0)}catch{return nr.call(this,t,0)}}}function FL(t){if(ar===clearTimeout)return clearTimeout(t);if((ar===Ku||!ar)&&clearTimeout)return ar=clearTimeout,clearTimeout(t);try{return ar(t)}catch{try{return ar.call(null,t)}catch{return ar.call(this,t)}}}var Lr=[],Da=!1,Nn,$o=-1;function jL(){!Da||!Nn||(Da=!1,Nn.length?Lr=Nn.concat(Lr):$o=-1,Lr.length&&hw())}function hw(){if(!Da){var t=uw(jL);Da=!0;for(var e=Lr.length;e;){for(Nn=Lr,Lr=[];++$o<e;)Nn&&Nn[$o].run();$o=-1,e=Lr.length}Nn=null,Da=!1,FL(t)}}st.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Lr.push(new dw(t,e)),Lr.length===1&&!Da&&uw(hw)};function dw(t,e){this.fun=t,this.array=e}dw.prototype.run=function(){this.fun.apply(null,this.array)};st.title="browser";st.browser=!0;st.env={};st.argv=[];st.version="";st.versions={};function Or(){}st.on=Or;st.addListener=Or;st.once=Or;st.off=Or;st.removeListener=Or;st.removeAllListeners=Or;st.emit=Or;st.prependListener=Or;st.prependOnceListener=Or;st.listeners=function(t){return[]};st.binding=function(t){throw new Error("process.binding is not supported")};st.cwd=function(){return"/"};st.chdir=function(t){throw new Error("process.chdir is not supported")};st.umask=function(){return 0}});var sr=H((CD,Pw)=>{"use strict";E();I();x();var{SymbolAsyncIterator:gw,SymbolIterator:mw,SymbolFor:zn}=Ke(),_w=zn("nodejs.stream.destroyed"),yw=zn("nodejs.stream.errored"),Qu=zn("nodejs.stream.readable"),Xu=zn("nodejs.stream.writable"),bw=zn("nodejs.stream.disturbed"),DL=zn("nodejs.webstream.isClosedPromise"),UL=zn("nodejs.webstream.controllerErrorFunction");function No(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function zo(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function qL(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function ir(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function ww(t){return!!(t&&!ir(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function vw(t){return!!(t&&!ir(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function kw(t){return!!(t&&!ir(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function VL(t){return ww(t)||vw(t)||kw(t)}function WL(t,e){return t==null?!1:e===!0?typeof t[gw]=="function":e===!1?typeof t[mw]=="function":typeof t[gw]=="function"||typeof t[mw]=="function"}function Fo(t){if(!ir(t))return null;let e=t._writableState,r=t._readableState,a=e||r;return!!(t.destroyed||t[_w]||a!=null&&a.destroyed)}function Sw(t){if(!zo(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function HL(t,e){if(!zo(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function JL(t){if(!No(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function Ew(t,e){if(!No(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function xw(t){return t&&t[Qu]!=null?t[Qu]:typeof t?.readable!="boolean"?null:Fo(t)?!1:No(t)&&t.readable&&!Ew(t)}function Iw(t){return t&&t[Xu]!=null?t[Xu]:typeof t?.writable!="boolean"?null:Fo(t)?!1:zo(t)&&t.writable&&!Sw(t)}function GL(t,e){return ir(t)?Fo(t)?!0:!(e?.readable!==!1&&xw(t)||e?.writable!==!1&&Iw(t)):null}function YL(t){var e,r;return ir(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function KL(t){var e,r;return ir(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function QL(t){if(!ir(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&Bw(t)?t._closed:null}function Bw(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function Aw(t){return typeof t._sent100=="boolean"&&Bw(t)}function XL(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function ZL(t){if(!ir(t))return null;let e=t._writableState,r=t._readableState,a=e||r;return!a&&Aw(t)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===!1)}function e8(t){var e;return!!(t&&((e=t[bw])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function t8(t){var e,r,a,n,i,s,o,l,c,h;return!!(t&&((e=(r=(a=(n=(i=(s=t[yw])!==null&&s!==void 0?s:t.readableErrored)!==null&&i!==void 0?i:t.writableErrored)!==null&&n!==void 0?n:(o=t._readableState)===null||o===void 0?void 0:o.errorEmitted)!==null&&a!==void 0?a:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(c=t._readableState)===null||c===void 0?void 0:c.errored)!==null&&e!==void 0?e:!((h=t._writableState)===null||h===void 0)&&h.errored))}Pw.exports={isDestroyed:Fo,kIsDestroyed:_w,isDisturbed:e8,kIsDisturbed:bw,isErrored:t8,kIsErrored:yw,isReadable:xw,kIsReadable:Qu,kIsClosedPromise:DL,kControllerErrorFunction:UL,kIsWritable:Xu,isClosed:QL,isDuplexNodeStream:qL,isFinished:GL,isIterable:WL,isReadableNodeStream:No,isReadableStream:ww,isReadableEnded:JL,isReadableFinished:Ew,isReadableErrored:KL,isNodeStream:ir,isWebStream:VL,isWritable:Iw,isWritableNodeStream:zo,isWritableStream:vw,isWritableEnded:Sw,isWritableFinished:HL,isWritableErrored:YL,isServerRequest:XL,isServerResponse:Aw,willEmitClose:ZL,isTransformStream:kw}});var Tr=H((zD,nh)=>{"use strict";E();I();x();var on=sn(),{AbortError:zw,codes:r8}=wt(),{ERR_INVALID_ARG_TYPE:n8,ERR_STREAM_PREMATURE_CLOSE:Lw}=r8,{kEmptyObject:eh,once:th}=St(),{validateAbortSignal:a8,validateFunction:i8,validateObject:s8,validateBoolean:o8}=ja(),{Promise:l8,PromisePrototypeThen:c8,SymbolDispose:Fw}=Ke(),{isClosed:f8,isReadable:Ow,isReadableNodeStream:Zu,isReadableStream:u8,isReadableFinished:Tw,isReadableErrored:Mw,isWritable:Cw,isWritableNodeStream:Rw,isWritableStream:h8,isWritableFinished:$w,isWritableErrored:Nw,isNodeStream:d8,willEmitClose:p8,kIsClosedPromise:g8}=sr(),Ua;function m8(t){return t.setHeader&&typeof t.abort=="function"}var rh=()=>{};function jw(t,e,r){var a,n;if(arguments.length===2?(r=e,e=eh):e==null?e=eh:s8(e,"options"),i8(r,"callback"),a8(e.signal,"options.signal"),r=th(r),u8(t)||h8(t))return _8(t,e,r);if(!d8(t))throw new n8("stream",["ReadableStream","WritableStream","Stream"],t);let i=(a=e.readable)!==null&&a!==void 0?a:Zu(t),s=(n=e.writable)!==null&&n!==void 0?n:Rw(t),o=t._writableState,l=t._readableState,c=()=>{t.writable||d()},h=p8(t)&&Zu(t)===i&&Rw(t)===s,u=$w(t,!1),d=()=>{u=!0,t.destroyed&&(h=!1),!(h&&(!t.readable||i))&&(!i||f)&&r.call(t)},f=Tw(t,!1),g=()=>{f=!0,t.destroyed&&(h=!1),!(h&&(!t.writable||s))&&(!s||u)&&r.call(t)},m=B=>{r.call(t,B)},y=f8(t),b=()=>{y=!0;let B=Nw(t)||Mw(t);if(B&&typeof B!="boolean")return r.call(t,B);if(i&&!f&&Zu(t,!0)&&!Tw(t,!1))return r.call(t,new Lw);if(s&&!u&&!$w(t,!1))return r.call(t,new Lw);r.call(t)},w=()=>{y=!0;let B=Nw(t)||Mw(t);if(B&&typeof B!="boolean")return r.call(t,B);r.call(t)},v=()=>{t.req.on("finish",d)};m8(t)?(t.on("complete",d),h||t.on("abort",b),t.req?v():t.on("request",v)):s&&!o&&(t.on("end",c),t.on("close",c)),!h&&typeof t.aborted=="boolean"&&t.on("aborted",b),t.on("end",g),t.on("finish",d),e.error!==!1&&t.on("error",m),t.on("close",b),y?on.nextTick(b):o!=null&&o.errorEmitted||l!=null&&l.errorEmitted?h||on.nextTick(w):(!i&&(!h||Ow(t))&&(u||Cw(t)===!1)||!s&&(!h||Cw(t))&&(f||Ow(t)===!1)||l&&t.req&&t.aborted)&&on.nextTick(w);let S=()=>{r=rh,t.removeListener("aborted",b),t.removeListener("complete",d),t.removeListener("abort",b),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",g),t.removeListener("error",m),t.removeListener("close",b)};if(e.signal&&!y){let B=()=>{let P=r;S(),P.call(t,new zw(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)on.nextTick(B);else{Ua=Ua||St().addAbortListener;let P=Ua(e.signal,B),M=r;r=th((...R)=>{P[Fw](),M.apply(t,R)})}}return S}function _8(t,e,r){let a=!1,n=rh;if(e.signal)if(n=()=>{a=!0,r.call(t,new zw(void 0,{cause:e.signal.reason}))},e.signal.aborted)on.nextTick(n);else{Ua=Ua||St().addAbortListener;let s=Ua(e.signal,n),o=r;r=th((...l)=>{s[Fw](),o.apply(t,l)})}let i=(...s)=>{a||on.nextTick(()=>r.apply(t,s))};return c8(t[g8].promise,i,i),rh}function y8(t,e){var r;let a=!1;return e===null&&(e=eh),(r=e)!==null&&r!==void 0&&r.cleanup&&(o8(e.cleanup,"cleanup"),a=e.cleanup),new l8((n,i)=>{let s=jw(t,e,o=>{a&&s(),o?i(o):n()})})}nh.exports=jw;nh.exports.finished=y8});var Fn=H((UD,Gw)=>{"use strict";E();I();x();var or=sn(),{aggregateTwoErrors:b8,codes:{ERR_MULTIPLE_CALLBACK:w8},AbortError:v8}=wt(),{Symbol:qw}=Ke(),{kIsDestroyed:k8,isDestroyed:S8,isFinished:E8,isServerRequest:x8}=sr(),Vw=qw("kDestroy"),ah=qw("kConstruct");function Ww(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function I8(t,e){let r=this._readableState,a=this._writableState,n=a||r;return a!=null&&a.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Ww(t,a,r),a&&(a.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Dw(this,t,e):this.once(Vw,function(i){Dw(this,b8(i,t),e)}),this)}function Dw(t,e,r){let a=!1;function n(i){if(a)return;a=!0;let s=t._readableState,o=t._writableState;Ww(i,o,s),o&&(o.closed=!0),s&&(s.closed=!0),typeof r=="function"&&r(i),i?or.nextTick(B8,t,i):or.nextTick(Hw,t)}try{t._destroy(e||null,n)}catch(i){n(i)}}function B8(t,e){ih(t,e),Hw(t)}function Hw(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function ih(t,e){let r=t._readableState,a=t._writableState;a!=null&&a.errorEmitted||r!=null&&r.errorEmitted||(a&&(a.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function A8(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function sh(t,e,r){let a=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||a!=null&&a.destroyed)return this;a!=null&&a.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),a&&!a.errored&&(a.errored=e),r?or.nextTick(ih,t,e):ih(t,e))}function P8(t,e){if(typeof t._construct!="function")return;let r=t._readableState,a=t._writableState;r&&(r.constructed=!1),a&&(a.constructed=!1),t.once(ah,e),!(t.listenerCount(ah)>1)&&or.nextTick(L8,t)}function L8(t){let e=!1;function r(a){if(e){sh(t,a??new w8);return}e=!0;let n=t._readableState,i=t._writableState,s=i||n;n&&(n.constructed=!0),i&&(i.constructed=!0),s.destroyed?t.emit(Vw,a):a?sh(t,a,!0):or.nextTick(O8,t)}try{t._construct(a=>{or.nextTick(r,a)})}catch(a){or.nextTick(r,a)}}function O8(t){t.emit(ah)}function Uw(t){return t?.setHeader&&typeof t.abort=="function"}function Jw(t){t.emit("close")}function T8(t,e){t.emit("error",e),or.nextTick(Jw,t)}function M8(t,e){!t||S8(t)||(!e&&!E8(t)&&(e=new v8),x8(t)?(t.socket=null,t.destroy(e)):Uw(t)?t.abort():Uw(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?or.nextTick(T8,t,e):or.nextTick(Jw,t),t.destroyed||(t[k8]=!0))}Gw.exports={construct:P8,destroyer:M8,destroy:I8,undestroy:A8,errorOrDestroy:sh}});var Uo=H((HD,Kw)=>{"use strict";E();I();x();var{ArrayIsArray:C8,ObjectSetPrototypeOf:Yw}=Ke(),{EventEmitter:jo}=(Di(),_t(ji));function Do(t){jo.call(this,t)}Yw(Do.prototype,jo.prototype);Yw(Do,jo);Do.prototype.pipe=function(t,e){let r=this;function a(h){t.writable&&t.write(h)===!1&&r.pause&&r.pause()}r.on("data",a);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",s),r.on("close",o));let i=!1;function s(){i||(i=!0,t.end())}function o(){i||(i=!0,typeof t.destroy=="function"&&t.destroy())}function l(h){c(),jo.listenerCount(this,"error")===0&&this.emit("error",h)}oh(r,"error",l),oh(t,"error",l);function c(){r.removeListener("data",a),t.removeListener("drain",n),r.removeListener("end",s),r.removeListener("close",o),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t};function oh(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):C8(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}Kw.exports={Stream:Do,prependListener:oh}});var Ui=H((KD,qo)=>{"use strict";E();I();x();var{SymbolDispose:R8}=Ke(),{AbortError:Qw,codes:$8}=wt(),{isNodeStream:Xw,isWebStream:N8,kControllerErrorFunction:z8}=sr(),F8=Tr(),{ERR_INVALID_ARG_TYPE:Zw}=$8,lh,j8=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Zw(e,"AbortSignal",t)};qo.exports.addAbortSignal=function(e,r){if(j8(e,"signal"),!Xw(r)&&!N8(r))throw new Zw("stream",["ReadableStream","WritableStream","Stream"],r);return qo.exports.addAbortSignalNoValidate(e,r)};qo.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Xw(e)?()=>{e.destroy(new Qw(void 0,{cause:t.reason}))}:()=>{e[z8](new Qw(void 0,{cause:t.reason}))};if(t.aborted)r();else{lh=lh||St().addAbortListener;let a=lh(t,r);F8(e,a[R8])}return e}});var r0=H((tU,t0)=>{"use strict";E();I();x();var{StringPrototypeSlice:e0,SymbolIterator:D8,TypedArrayPrototypeSet:Vo,Uint8Array:U8}=Ke(),{Buffer:ch}=(Vt(),_t(tr)),{inspect:q8}=St();t0.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,a=""+r.data;for(;(r=r.next)!==null;)a+=e+r.data;return a}concat(e){if(this.length===0)return ch.alloc(0);let r=ch.allocUnsafe(e>>>0),a=this.head,n=0;for(;a;)Vo(r,a.data,n),n+=a.data.length,a=a.next;return r}consume(e,r){let a=this.head.data;if(e<a.length){let n=a.slice(0,e);return this.head.data=a.slice(e),n}return e===a.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[D8](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",a=this.head,n=0;do{let i=a.data;if(e>i.length)r+=i,e-=i.length;else{e===i.length?(r+=i,++n,a.next?this.head=a.next:this.head=this.tail=null):(r+=e0(i,0,e),this.head=a,a.data=e0(i,e));break}++n}while((a=a.next)!==null);return this.length-=n,r}_getBuffer(e){let r=ch.allocUnsafe(e),a=e,n=this.head,i=0;do{let s=n.data;if(e>s.length)Vo(r,s,a-e),e-=s.length;else{e===s.length?(Vo(r,s,a-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(Vo(r,new U8(s.buffer,s.byteOffset,e),a-e),this.head=n,n.data=s.slice(e));break}++i}while((n=n.next)!==null);return this.length-=i,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return q8(this,{...r,depth:0,customInspect:!1})}}});var qi=H((iU,s0)=>{"use strict";E();I();x();var{MathFloor:V8,NumberIsInteger:W8}=Ke(),{validateInteger:H8}=ja(),{ERR_INVALID_ARG_VALUE:J8}=wt().codes,n0=16*1024,a0=16;function G8(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function i0(t){return t?a0:n0}function Y8(t,e){H8(e,"value",0),t?a0=e:n0=e}function K8(t,e,r,a){let n=G8(e,a,r);if(n!=null){if(!W8(n)||n<0){let i=a?`options.${r}`:"options.highWaterMark";throw new J8(i,n)}return V8(n)}return i0(t.objectMode)}s0.exports={getHighWaterMark:K8,getDefaultHighWaterMark:i0,setDefaultHighWaterMark:Y8}});var c0=H((fh,l0)=>{E();I();x();var Wo=(Vt(),_t(tr)),lr=Wo.Buffer;function o0(t,e){for(var r in t)e[r]=t[r]}lr.from&&lr.alloc&&lr.allocUnsafe&&lr.allocUnsafeSlow?l0.exports=Wo:(o0(Wo,fh),fh.Buffer=jn);function jn(t,e,r){return lr(t,e,r)}jn.prototype=Object.create(lr.prototype);o0(lr,jn);jn.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return lr(t,e,r)};jn.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var a=lr(t);return e!==void 0?typeof r=="string"?a.fill(e,r):a.fill(e):a.fill(0),a};jn.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return lr(t)};jn.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Wo.SlowBuffer(t)}});var h0=H(u0=>{"use strict";E();I();x();var hh=c0().Buffer,f0=hh.isEncoding||function(t){switch(t=""+t,t&&t.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 Q8(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function X8(t){var e=Q8(t);if(typeof e!="string"&&(hh.isEncoding===f0||!f0(t)))throw new Error("Unknown encoding: "+t);return e||t}u0.StringDecoder=Vi;function Vi(t){this.encoding=X8(t);var e;switch(this.encoding){case"utf16le":this.text=aO,this.end=iO,e=4;break;case"utf8":this.fillLast=tO,e=4;break;case"base64":this.text=sO,this.end=oO,e=3;break;default:this.write=lO,this.end=cO;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=hh.allocUnsafe(e)}Vi.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Vi.prototype.end=nO;Vi.prototype.text=rO;Vi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function uh(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Z8(t,e,r){var a=e.length-1;if(a<r)return 0;var n=uh(e[a]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--a<r||n===-2?0:(n=uh(e[a]),n>=0?(n>0&&(t.lastNeed=n-2),n):--a<r||n===-2?0:(n=uh(e[a]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function eO(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function tO(t){var e=this.lastTotal-this.lastNeed,r=eO(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function rO(t,e){var r=Z8(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var a=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,a),t.toString("utf8",e,a)}function nO(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function aO(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function iO(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function sO(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function oO(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function lO(t){return t.toString(this.encoding)}function cO(t){return t&&t.length?this.write(t):""}});var dh=H((mU,m0)=>{"use strict";E();I();x();var d0=sn(),{PromisePrototypeThen:fO,SymbolAsyncIterator:p0,SymbolIterator:g0}=Ke(),{Buffer:uO}=(Vt(),_t(tr)),{ERR_INVALID_ARG_TYPE:hO,ERR_STREAM_NULL_VALUES:dO}=wt().codes;function pO(t,e,r){let a;if(typeof e=="string"||e instanceof uO)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[p0])n=!0,a=e[p0]();else if(e&&e[g0])n=!1,a=e[g0]();else throw new hO("iterable",["Iterable"],e);let i=new t({objectMode:!0,highWaterMark:1,...r}),s=!1;i._read=function(){s||(s=!0,l())},i._destroy=function(c,h){fO(o(c),()=>d0.nextTick(h,c),u=>d0.nextTick(h,u||c))};async function o(c){let h=c!=null,u=typeof a.throw=="function";if(h&&u){let{value:d,done:f}=await a.throw(c);if(await d,f)return}if(typeof a.return=="function"){let{value:d}=await a.return();await d}}async function l(){for(;;){try{let{value:c,done:h}=n?await a.next():a.next();if(h)i.push(null);else{let u=c&&typeof c.then=="function"?await c:c;if(u===null)throw s=!1,new dO;if(i.push(u))continue;s=!1}}catch(c){i.destroy(c)}break}}return i}m0.exports=pO});var Hi=H((wU,C0)=>{"use strict";E();I();x();var Ht=sn(),{ArrayPrototypeIndexOf:gO,NumberIsInteger:mO,NumberIsNaN:_O,NumberParseInt:yO,ObjectDefineProperties:vh,ObjectKeys:bO,ObjectSetPrototypeOf:b0,Promise:w0,SafeSet:wO,SymbolAsyncDispose:vO,SymbolAsyncIterator:kO,Symbol:SO}=Ke();C0.exports=Se;Se.ReadableState=Yo;var{EventEmitter:EO}=(Di(),_t(ji)),{Stream:ln,prependListener:xO}=Uo(),{Buffer:ph}=(Vt(),_t(tr)),{addAbortSignal:IO}=Ui(),v0=Tr(),Pe=St().debuglog("stream",t=>{Pe=t}),BO=r0(),Wa=Fn(),{getHighWaterMark:AO,getDefaultHighWaterMark:PO}=qi(),{aggregateTwoErrors:_0,codes:{ERR_INVALID_ARG_TYPE:LO,ERR_METHOD_NOT_IMPLEMENTED:OO,ERR_OUT_OF_RANGE:TO,ERR_STREAM_PUSH_AFTER_EOF:MO,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:CO},AbortError:RO}=wt(),{validateObject:$O}=ja(),Dn=SO("kPaused"),{StringDecoder:k0}=h0(),NO=dh();b0(Se.prototype,ln.prototype);b0(Se,ln);var gh=()=>{},{errorOrDestroy:qa}=Wa,Va=1,zO=2,S0=4,Wi=8,E0=16,Ho=32,Jo=64,x0=128,FO=256,jO=512,DO=1024,bh=2048,wh=4096,UO=8192,qO=16384,VO=32768,I0=65536,WO=1<<17,HO=1<<18;function ht(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}vh(Yo.prototype,{objectMode:ht(Va),ended:ht(zO),endEmitted:ht(S0),reading:ht(Wi),constructed:ht(E0),sync:ht(Ho),needReadable:ht(Jo),emittedReadable:ht(x0),readableListening:ht(FO),resumeScheduled:ht(jO),errorEmitted:ht(DO),emitClose:ht(bh),autoDestroy:ht(wh),destroyed:ht(UO),closed:ht(qO),closeEmitted:ht(VO),multiAwaitDrain:ht(I0),readingMore:ht(WO),dataEmitted:ht(HO)});function Yo(t,e,r){typeof r!="boolean"&&(r=e instanceof cr()),this.state=bh|wh|E0|Ho,t&&t.objectMode&&(this.state|=Va),r&&t&&t.readableObjectMode&&(this.state|=Va),this.highWaterMark=t?AO(this,t,"readableHighWaterMark",r):PO(!1),this.buffer=new BO,this.length=0,this.pipes=[],this.flowing=null,this[Dn]=null,t&&t.emitClose===!1&&(this.state&=~bh),t&&t.autoDestroy===!1&&(this.state&=~wh),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new k0(t.encoding),this.encoding=t.encoding)}function Se(t){if(!(this instanceof Se))return new Se(t);let e=this instanceof cr();this._readableState=new Yo(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&IO(t.signal,this)),ln.call(this,t),Wa.construct(this,()=>{this._readableState.needReadable&&Go(this,this._readableState)})}Se.prototype.destroy=Wa.destroy;Se.prototype._undestroy=Wa.undestroy;Se.prototype._destroy=function(t,e){e(t)};Se.prototype[EO.captureRejectionSymbol]=function(t){this.destroy(t)};Se.prototype[vO]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new RO,this.destroy(t)),new w0((e,r)=>v0(this,a=>a&&a!==t?r(a):e(null)))};Se.prototype.push=function(t,e){return B0(this,t,e,!1)};Se.prototype.unshift=function(t,e){return B0(this,t,e,!0)};function B0(t,e,r,a){Pe("readableAddChunk",e);let n=t._readableState,i;if(n.state&Va||(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(a&&n.encoding?e=ph.from(e,r).toString(n.encoding):(e=ph.from(e,r),r=""))):e instanceof ph?r="":ln._isUint8Array(e)?(e=ln._uint8ArrayToBuffer(e),r=""):e!=null&&(i=new LO("chunk",["string","Buffer","Uint8Array"],e))),i)qa(t,i);else if(e===null)n.state&=~Wi,YO(t,n);else if(n.state&Va||e&&e.length>0)if(a)if(n.state&S0)qa(t,new CO);else{if(n.destroyed||n.errored)return!1;mh(t,n,e,!0)}else if(n.ended)qa(t,new MO);else{if(n.destroyed||n.errored)return!1;n.state&=~Wi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?mh(t,n,e,!1):Go(t,n)):mh(t,n,e,!1)}else a||(n.state&=~Wi,Go(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function mh(t,e,r,a){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?(e.state&I0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.state&Jo&&Ko(t)),Go(t,e)}Se.prototype.isPaused=function(){let t=this._readableState;return t[Dn]===!0||t.flowing===!1};Se.prototype.setEncoding=function(t){let e=new k0(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,a="";for(let n of r)a+=e.write(n);return r.clear(),a!==""&&r.push(a),this._readableState.length=a.length,this};var JO=1073741824;function GO(t){if(t>JO)throw new TO("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function y0(t,e){return t<=0||e.length===0&&e.ended?0:e.state&Va?1:_O(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Se.prototype.read=function(t){Pe("read",t),t===void 0?t=NaN:mO(t)||(t=yO(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=GO(t)),t!==0&&(e.state&=~x0),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_h(this):Ko(this),null;if(t=y0(t,e),t===0&&e.ended)return e.length===0&&_h(this),null;let a=(e.state&Jo)!==0;if(Pe("need readable",a),(e.length===0||e.length-t<e.highWaterMark)&&(a=!0,Pe("length less than watermark",a)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)a=!1,Pe("reading, ended or constructing",a);else if(a){Pe("do read"),e.state|=Wi|Ho,e.length===0&&(e.state|=Jo);try{this._read(e.highWaterMark)}catch(i){qa(this,i)}e.state&=~Ho,e.reading||(t=y0(r,e))}let n;return t>0?n=T0(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&_h(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function YO(t,e){if(Pe("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Ko(t):(e.needReadable=!1,e.emittedReadable=!0,A0(t))}}function Ko(t){let e=t._readableState;Pe("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pe("emitReadable",e.flowing),e.emittedReadable=!0,Ht.nextTick(A0,t))}function A0(t){let e=t._readableState;Pe("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L0(t)}function Go(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ht.nextTick(KO,t,e))}function KO(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(Pe("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Se.prototype._read=function(t){throw new OO("_read()")};Se.prototype.pipe=function(t,e){let r=this,a=this._readableState;a.pipes.length===1&&(a.multiAwaitDrain||(a.multiAwaitDrain=!0,a.awaitDrainWriters=new wO(a.awaitDrainWriters?[a.awaitDrainWriters]:[]))),a.pipes.push(t),Pe("pipe count=%d opts=%j",a.pipes.length,e);let i=(!e||e.end!==!1)&&t!==Ht.stdout&&t!==Ht.stderr?o:y;a.endEmitted?Ht.nextTick(i):r.once("end",i),t.on("unpipe",s);function s(b,w){Pe("onunpipe"),b===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,h())}function o(){Pe("onend"),t.end()}let l,c=!1;function h(){Pe("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",y),r.removeListener("data",d),c=!0,l&&a.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function u(){c||(a.pipes.length===1&&a.pipes[0]===t?(Pe("false write response, pause",0),a.awaitDrainWriters=t,a.multiAwaitDrain=!1):a.pipes.length>1&&a.pipes.includes(t)&&(Pe("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(t)),r.pause()),l||(l=QO(r,t),t.on("drain",l))}r.on("data",d);function d(b){Pe("ondata");let w=t.write(b);Pe("dest.write",w),w===!1&&u()}function f(b){if(Pe("onerror",b),y(),t.removeListener("error",f),t.listenerCount("error")===0){let w=t._writableState||t._readableState;w&&!w.errorEmitted?qa(t,b):t.emit("error",b)}}xO(t,"error",f);function g(){t.removeListener("finish",m),y()}t.once("close",g);function m(){Pe("onfinish"),t.removeListener("close",g),y()}t.once("finish",m);function y(){Pe("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?u():a.flowing||(Pe("pipe resume"),r.resume()),t};function QO(t,e){return function(){let a=t._readableState;a.awaitDrainWriters===e?(Pe("pipeOnDrain",1),a.awaitDrainWriters=null):a.multiAwaitDrain&&(Pe("pipeOnDrain",a.awaitDrainWriters.size),a.awaitDrainWriters.delete(e)),(!a.awaitDrainWriters||a.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Se.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let i=0;i<n.length;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}let a=gO(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Se.prototype.on=function(t,e){let r=ln.prototype.on.call(this,t,e),a=this._readableState;return t==="data"?(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1&&this.resume()):t==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,Pe("on readable",a.length,a.reading),a.length?Ko(this):a.reading||Ht.nextTick(XO,this)),r};Se.prototype.addListener=Se.prototype.on;Se.prototype.removeListener=function(t,e){let r=ln.prototype.removeListener.call(this,t,e);return t==="readable"&&Ht.nextTick(P0,this),r};Se.prototype.off=Se.prototype.removeListener;Se.prototype.removeAllListeners=function(t){let e=ln.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ht.nextTick(P0,this),e};function P0(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Dn]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function XO(t){Pe("readable nexttick read 0"),t.read(0)}Se.prototype.resume=function(){let t=this._readableState;return t.flowing||(Pe("resume"),t.flowing=!t.readableListening,ZO(this,t)),t[Dn]=!1,this};function ZO(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ht.nextTick(e7,t,e))}function e7(t,e){Pe("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L0(t),e.flowing&&!e.reading&&t.read(0)}Se.prototype.pause=function(){return Pe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Dn]=!0,this};function L0(t){let e=t._readableState;for(Pe("flow",e.flowing);e.flowing&&t.read()!==null;);}Se.prototype.wrap=function(t){let e=!1;t.on("data",a=>{!this.push(a)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",a=>{qa(this,a)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=bO(t);for(let a=1;a<r.length;a++){let n=r[a];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};Se.prototype[kO]=function(){return O0(this)};Se.prototype.iterator=function(t){return t!==void 0&&$O(t,"options"),O0(this,t)};function O0(t,e){typeof t.read!="function"&&(t=Se.wrap(t,{objectMode:!0}));let r=t7(t,e);return r.stream=t,r}async function*t7(t,e){let r=gh;function a(s){this===t?(r(),r=gh):r=s}t.on("readable",a);let n,i=v0(t,{writable:!1},s=>{n=s?_0(n,s):null,r(),r=gh});try{for(;;){let s=t.destroyed?null:t.read();if(s!==null)yield s;else{if(n)throw n;if(n===null)return;await new w0(a)}}}catch(s){throw n=_0(n,s),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wa.destroyer(t,null):(t.off("readable",a),i())}}vh(Se.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});vh(Yo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Dn]!==!1},set(t){this[Dn]=!!t}}});Se._fromList=T0;function T0(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function _h(t){let e=t._readableState;Pe("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ht.nextTick(r7,e,t))}function r7(t,e){if(Pe("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ht.nextTick(n7,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function n7(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Se.from=function(t,e){return NO(Se,t,e)};var yh;function M0(){return yh===void 0&&(yh={}),yh}Se.fromWeb=function(t,e){return M0().newStreamReadableFromReadableStream(t,e)};Se.toWeb=function(t,e){return M0().newReadableStreamFromStreamReadable(t,e)};Se.wrap=function(t,e){var r,a;return new Se({objectMode:(r=(a=t.readableObjectMode)!==null&&a!==void 0?a:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,i){Wa.destroyer(t,n),i(n)}}).wrap(t)}});var tl=H((EU,H0)=>{"use strict";E();I();x();var Un=sn(),{ArrayPrototypeSlice:N0,Error:a7,FunctionPrototypeSymbolHasInstance:z0,ObjectDefineProperty:F0,ObjectDefineProperties:i7,ObjectSetPrototypeOf:j0,StringPrototypeToLowerCase:s7,Symbol:o7,SymbolHasInstance:l7}=Ke();H0.exports=rt;rt.WritableState=Yi;var{EventEmitter:c7}=(Di(),_t(ji)),Ji=Uo().Stream,{Buffer:Qo}=(Vt(),_t(tr)),el=Fn(),{addAbortSignal:f7}=Ui(),{getHighWaterMark:u7,getDefaultHighWaterMark:h7}=qi(),{ERR_INVALID_ARG_TYPE:d7,ERR_METHOD_NOT_IMPLEMENTED:p7,ERR_MULTIPLE_CALLBACK:D0,ERR_STREAM_CANNOT_PIPE:g7,ERR_STREAM_DESTROYED:Gi,ERR_STREAM_ALREADY_FINISHED:m7,ERR_STREAM_NULL_VALUES:_7,ERR_STREAM_WRITE_AFTER_END:y7,ERR_UNKNOWN_ENCODING:U0}=wt().codes,{errorOrDestroy:Ha}=el;j0(rt.prototype,Ji.prototype);j0(rt,Ji);function Eh(){}var Ja=o7("kOnFinished");function Yi(t,e,r){typeof r!="boolean"&&(r=e instanceof cr()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?u7(this,t,"writableHighWaterMark",r):h7(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(t&&t.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w7.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Zo(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Ja]=[]}function Zo(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Yi.prototype.getBuffer=function(){return N0(this.buffered,this.bufferedIndex)};F0(Yi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function rt(t){let e=this instanceof cr();if(!e&&!z0(rt,this))return new rt(t);this._writableState=new Yi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&f7(t.signal,this)),Ji.call(this,t),el.construct(this,()=>{let r=this._writableState;r.writing||Ih(this,r),Bh(this,r)})}F0(rt,l7,{__proto__:null,value:function(t){return z0(this,t)?!0:this!==rt?!1:t&&t._writableState instanceof Yi}});rt.prototype.pipe=function(){Ha(this,new g7)};function q0(t,e,r,a){let n=t._writableState;if(typeof r=="function")a=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Qo.isEncoding(r))throw new U0(r);typeof a!="function"&&(a=Eh)}if(e===null)throw new _7;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Qo.from(e,r),r="buffer");else if(e instanceof Qo)r="buffer";else if(Ji._isUint8Array(e))e=Ji._uint8ArrayToBuffer(e),r="buffer";else throw new d7("chunk",["string","Buffer","Uint8Array"],e);let i;return n.ending?i=new y7:n.destroyed&&(i=new Gi("write")),i?(Un.nextTick(a,i),Ha(t,i,!0),i):(n.pendingcb++,b7(t,n,e,r,a))}rt.prototype.write=function(t,e,r){return q0(this,t,e,r)===!0};rt.prototype.cork=function(){this._writableState.corked++};rt.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||Ih(this,t))};rt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=s7(e)),!Qo.isEncoding(e))throw new U0(e);return this._writableState.defaultEncoding=e,this};function b7(t,e,r,a,n){let i=e.objectMode?1:r.length;e.length+=i;let s=e.length<e.highWaterMark;return s||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:a,callback:n}),e.allBuffers&&a!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==Eh&&(e.allNoop=!1)):(e.writelen=i,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,a,e.onwrite),e.sync=!1),s&&!e.errored&&!e.destroyed}function R0(t,e,r,a,n,i,s){e.writelen=a,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Gi("write")):r?t._writev(n,e.onwrite):t._write(n,i,e.onwrite),e.sync=!1}function $0(t,e,r,a){--e.pendingcb,a(r),xh(e),Ha(t,r)}function w7(t,e){let r=t._writableState,a=r.sync,n=r.writecb;if(typeof n!="function"){Ha(t,new D0);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),a?Un.nextTick($0,t,r,e,n):$0(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&Ih(t,r),a?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},Un.nextTick(v7,r.afterWriteTickInfo)):V0(t,r,1,n))}function v7({stream:t,state:e,count:r,cb:a}){return e.afterWriteTickInfo=null,V0(t,e,r,a)}function V0(t,e,r,a){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,a();e.destroyed&&xh(e),Bh(t,e)}function xh(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:i,callback:s}=t.buffered[n],o=t.objectMode?1:i.length;t.length-=o,s((e=t.errored)!==null&&e!==void 0?e:new Gi("write"))}let r=t[Ja].splice(0);for(let n=0;n<r.length;n++){var a;r[n]((a=t.errored)!==null&&a!==void 0?a:new Gi("end"))}Zo(t)}function Ih(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:a,objectMode:n}=e,i=r.length-a;if(!i)return;let s=a;if(e.bufferProcessing=!0,i>1&&t._writev){e.pendingcb-=i-1;let o=e.allNoop?Eh:c=>{for(let h=s;h<r.length;++h)r[h].callback(c)},l=e.allNoop&&s===0?r:N0(r,s);l.allBuffers=e.allBuffers,R0(t,e,!0,e.length,l,"",o),Zo(e)}else{do{let{chunk:o,encoding:l,callback:c}=r[s];r[s++]=null;let h=n?1:o.length;R0(t,e,!1,h,o,l,c)}while(s<r.length&&!e.writing);s===r.length?Zo(e):s>256?(r.splice(0,s),e.bufferedIndex=0):e.bufferedIndex=s}e.bufferProcessing=!1}rt.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new p7("_write()")};rt.prototype._writev=null;rt.prototype.end=function(t,e,r){let a=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let i=q0(this,t,e);i instanceof a7&&(n=i)}return a.corked&&(a.corked=1,this.uncork()),n||(!a.errored&&!a.ending?(a.ending=!0,Bh(this,a,!0),a.ended=!0):a.finished?n=new m7("end"):a.destroyed&&(n=new Gi("end"))),typeof r=="function"&&(n||a.finished?Un.nextTick(r,n):a[Ja].push(r)),this};function Xo(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function k7(t,e){let r=!1;function a(n){if(r){Ha(t,n??D0());return}if(r=!0,e.pendingcb--,n){let i=e[Ja].splice(0);for(let s=0;s<i.length;s++)i[s](n);Ha(t,n,e.sync)}else Xo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Un.nextTick(Sh,t,e))}e.sync=!0,e.pendingcb++;try{t._final(a)}catch(n){a(n)}e.sync=!1}function S7(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,k7(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Bh(t,e,r){Xo(e)&&(S7(t,e),e.pendingcb===0&&(r?(e.pendingcb++,Un.nextTick((a,n)=>{Xo(n)?Sh(a,n):n.pendingcb--},t,e)):Xo(e)&&(e.pendingcb++,Sh(t,e))))}function Sh(t,e){e.pendingcb--,e.finished=!0;let r=e[Ja].splice(0);for(let a=0;a<r.length;a++)r[a]();if(t.emit("finish"),e.autoDestroy){let a=t._readableState;(!a||a.autoDestroy&&(a.endEmitted||a.readable===!1))&&t.destroy()}}i7(rt.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var E7=el.destroy;rt.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Ja].length)&&Un.nextTick(xh,r),E7.call(this,t,e),this};rt.prototype._undestroy=el.undestroy;rt.prototype._destroy=function(t,e){e(t)};rt.prototype[c7.captureRejectionSymbol]=function(t){this.destroy(t)};var kh;function W0(){return kh===void 0&&(kh={}),kh}rt.fromWeb=function(t,e){return W0().newStreamWritableFromWritableStream(t,e)};rt.toWeb=function(t){return W0().newWritableStreamFromStreamWritable(t)}});var o2=H((AU,s2)=>{E();I();x();var Ah=sn(),x7=(Vt(),_t(tr)),{isReadable:I7,isWritable:B7,isIterable:J0,isNodeStream:A7,isReadableNodeStream:G0,isWritableNodeStream:Y0,isDuplexNodeStream:P7,isReadableStream:K0,isWritableStream:Q0}=sr(),X0=Tr(),{AbortError:a2,codes:{ERR_INVALID_ARG_TYPE:L7,ERR_INVALID_RETURN_VALUE:Z0}}=wt(),{destroyer:Ya}=Fn(),O7=cr(),i2=Hi(),T7=tl(),{createDeferredPromise:e2}=St(),t2=dh(),r2=globalThis.Blob||x7.Blob,M7=typeof r2<"u"?function(e){return e instanceof r2}:function(e){return!1},C7=globalThis.AbortController||za().AbortController,{FunctionPrototypeCall:n2}=Ke(),cn=class extends O7{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};s2.exports=function t(e,r){if(P7(e))return e;if(G0(e))return Ga({readable:e});if(Y0(e))return Ga({writable:e});if(A7(e))return Ga({writable:!1,readable:!1});if(K0(e))return Ga({readable:i2.fromWeb(e)});if(Q0(e))return Ga({writable:T7.fromWeb(e)});if(typeof e=="function"){let{value:n,write:i,final:s,destroy:o}=R7(e);if(J0(n))return t2(cn,n,{objectMode:!0,write:i,final:s,destroy:o});let l=n?.then;if(typeof l=="function"){let c,h=n2(l,n,u=>{if(u!=null)throw new Z0("nully","body",u)},u=>{Ya(c,u)});return c=new cn({objectMode:!0,readable:!1,write:i,final(u){s(async()=>{try{await h,Ah.nextTick(u,null)}catch(d){Ah.nextTick(u,d)}})},destroy:o})}throw new Z0("Iterable, AsyncIterable or AsyncFunction",r,n)}if(M7(e))return t(e.arrayBuffer());if(J0(e))return t2(cn,e,{objectMode:!0,writable:!1});if(K0(e?.readable)&&Q0(e?.writable))return cn.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?G0(e?.readable)?e?.readable:t(e.readable):void 0,i=e!=null&&e.writable?Y0(e?.writable)?e?.writable:t(e.writable):void 0;return Ga({readable:n,writable:i})}let a=e?.then;if(typeof a=="function"){let n;return n2(a,e,i=>{i!=null&&n.push(i),n.push(null)},i=>{Ya(n,i)}),n=new cn({objectMode:!0,writable:!1,read(){}})}throw new L7(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function R7(t){let{promise:e,resolve:r}=e2(),a=new C7,n=a.signal;return{value:t(async function*(){for(;;){let s=e;e=null;let{chunk:o,done:l,cb:c}=await s;if(Ah.nextTick(c),l)return;if(n.aborted)throw new a2(void 0,{cause:n.reason});({promise:e,resolve:r}=e2()),yield o}}(),{signal:n}),write(s,o,l){let c=r;r=null,c({chunk:s,done:!1,cb:l})},final(s){let o=r;r=null,o({done:!0,cb:s})},destroy(s,o){a.abort(),o(s)}}}function Ga(t){let e=t.readable&&typeof t.readable.read!="function"?i2.wrap(t.readable):t.readable,r=t.writable,a=!!I7(e),n=!!B7(r),i,s,o,l,c;function h(u){let d=l;l=null,d?d(u):u&&c.destroy(u)}return c=new cn({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:a,writable:n}),n&&(X0(r,u=>{n=!1,u&&Ya(e,u),h(u)}),c._write=function(u,d,f){r.write(u,d)?f():i=f},c._final=function(u){r.end(),s=u},r.on("drain",function(){if(i){let u=i;i=null,u()}}),r.on("finish",function(){if(s){let u=s;s=null,u()}})),a&&(X0(e,u=>{a=!1,u&&Ya(e,u),h(u)}),e.on("readable",function(){if(o){let u=o;o=null,u()}}),e.on("end",function(){c.push(null)}),c._read=function(){for(;;){let u=e.read();if(u===null){o=c._read;return}if(!c.push(u))return}}),c._destroy=function(u,d){!u&&l!==null&&(u=new a2),o=null,i=null,s=null,l===null?d(u):(l=d,Ya(r,u),Ya(e,u))},c}});var cr=H((TU,f2)=>{"use strict";E();I();x();var{ObjectDefineProperties:$7,ObjectGetOwnPropertyDescriptor:Mr,ObjectKeys:N7,ObjectSetPrototypeOf:l2}=Ke();f2.exports=Jt;var Oh=Hi(),Ut=tl();l2(Jt.prototype,Oh.prototype);l2(Jt,Oh);{let t=N7(Ut.prototype);for(let e=0;e<t.length;e++){let r=t[e];Jt.prototype[r]||(Jt.prototype[r]=Ut.prototype[r])}}function Jt(t){if(!(this instanceof Jt))return new Jt(t);Oh.call(this,t),Ut.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}$7(Jt.prototype,{writable:{__proto__:null,...Mr(Ut.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Mr(Ut.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Mr(Ut.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Mr(Ut.prototype,"writableBuffer")},writableLength:{__proto__:null,...Mr(Ut.prototype,"writableLength")},writableFinished:{__proto__:null,...Mr(Ut.prototype,"writableFinished")},writableCorked:{__proto__:null,...Mr(Ut.prototype,"writableCorked")},writableEnded:{__proto__:null,...Mr(Ut.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Mr(Ut.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var Ph;function c2(){return Ph===void 0&&(Ph={}),Ph}Jt.fromWeb=function(t,e){return c2().newStreamDuplexFromReadableWritablePair(t,e)};Jt.toWeb=function(t){return c2().newReadableWritablePairFromDuplex(t)};var Lh;Jt.from=function(t){return Lh||(Lh=o2()),Lh(t,"body")}});var Ch=H(($U,h2)=>{"use strict";E();I();x();var{ObjectSetPrototypeOf:u2,Symbol:z7}=Ke();h2.exports=Cr;var{ERR_METHOD_NOT_IMPLEMENTED:F7}=wt().codes,Mh=cr(),{getHighWaterMark:j7}=qi();u2(Cr.prototype,Mh.prototype);u2(Cr,Mh);var Ki=z7("kCallback");function Cr(t){if(!(this instanceof Cr))return new Cr(t);let e=t?j7(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Mh.call(this,t),this._readableState.sync=!1,this[Ki]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",D7)}function Th(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function D7(){this._final!==Th&&Th.call(this)}Cr.prototype._final=Th;Cr.prototype._transform=function(t,e,r){throw new F7("_transform()")};Cr.prototype._write=function(t,e,r){let a=this._readableState,n=this._writableState,i=a.length;this._transform(t,e,(s,o)=>{if(s){r(s);return}o!=null&&this.push(o),n.ended||i===a.length||a.length<a.highWaterMark?r():this[Ki]=r})};Cr.prototype._read=function(){if(this[Ki]){let t=this[Ki];this[Ki]=null,t()}}});var $h=H((jU,p2)=>{"use strict";E();I();x();var{ObjectSetPrototypeOf:d2}=Ke();p2.exports=Ka;var Rh=Ch();d2(Ka.prototype,Rh.prototype);d2(Ka,Rh);function Ka(t){if(!(this instanceof Ka))return new Ka(t);Rh.call(this,t)}Ka.prototype._transform=function(t,e,r){r(null,t)}});var il=H((VU,b2)=>{E();I();x();var Qi=sn(),{ArrayIsArray:U7,Promise:q7,SymbolAsyncIterator:V7,SymbolDispose:W7}=Ke(),al=Tr(),{once:H7}=St(),J7=Fn(),g2=cr(),{aggregateTwoErrors:G7,codes:{ERR_INVALID_ARG_TYPE:Wh,ERR_INVALID_RETURN_VALUE:Nh,ERR_MISSING_ARGS:Y7,ERR_STREAM_DESTROYED:K7,ERR_STREAM_PREMATURE_CLOSE:Q7},AbortError:X7}=wt(),{validateFunction:Z7,validateAbortSignal:e9}=ja(),{isIterable:qn,isReadable:zh,isReadableNodeStream:nl,isNodeStream:m2,isTransformStream:Qa,isWebStream:t9,isReadableStream:Fh,isReadableFinished:r9}=sr(),n9=globalThis.AbortController||za().AbortController,jh,Dh,Uh;function _2(t,e,r){let a=!1;t.on("close",()=>{a=!0});let n=al(t,{readable:e,writable:r},i=>{a=!i});return{destroy:i=>{a||(a=!0,J7.destroyer(t,i||new K7("pipe")))},cleanup:n}}function a9(t){return Z7(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function qh(t){if(qn(t))return t;if(nl(t))return i9(t);throw new Wh("val",["Readable","Iterable","AsyncIterable"],t)}async function*i9(t){Dh||(Dh=Hi()),yield*Dh.prototype[V7].call(t)}async function rl(t,e,r,{end:a}){let n,i=null,s=c=>{if(c&&(n=c),i){let h=i;i=null,h()}},o=()=>new q7((c,h)=>{n?h(n):i=()=>{n?h(n):c()}});e.on("drain",s);let l=al(e,{readable:!1},s);try{e.writableNeedDrain&&await o();for await(let c of t)e.write(c)||await o();a&&(e.end(),await o()),r()}catch(c){r(n!==c?G7(n,c):c)}finally{l(),e.off("drain",s)}}async function Vh(t,e,r,{end:a}){Qa(e)&&(e=e.writable);let n=e.getWriter();try{for await(let i of t)await n.ready,n.write(i).catch(()=>{});await n.ready,a&&await n.close(),r()}catch(i){try{await n.abort(i),r(i)}catch(s){r(s)}}}function s9(...t){return y2(t,H7(a9(t)))}function y2(t,e,r){if(t.length===1&&U7(t[0])&&(t=t[0]),t.length<2)throw new Y7("streams");let a=new n9,n=a.signal,i=r?.signal,s=[];e9(i,"options.signal");function o(){g(new X7)}Uh=Uh||St().addAbortListener;let l;i&&(l=Uh(i,o));let c,h,u=[],d=0;function f(v){g(v,--d===0)}function g(v,S){var B;if(v&&(!c||c.code==="ERR_STREAM_PREMATURE_CLOSE")&&(c=v),!(!c&&!S)){for(;u.length;)u.shift()(c);(B=l)===null||B===void 0||B[W7](),a.abort(),S&&(c||s.forEach(P=>P()),Qi.nextTick(e,c,h))}}let m;for(let v=0;v<t.length;v++){let S=t[v],B=v<t.length-1,P=v>0,M=B||r?.end!==!1,R=v===t.length-1;if(m2(S)){let $=function(C){C&&C.name!=="AbortError"&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"&&f(C)};var w=$;if(M){let{destroy:C,cleanup:Z}=_2(S,B,P);u.push(C),zh(S)&&R&&s.push(Z)}S.on("error",$),zh(S)&&R&&s.push(()=>{S.removeListener("error",$)})}if(v===0)if(typeof S=="function"){if(m=S({signal:n}),!qn(m))throw new Nh("Iterable, AsyncIterable or Stream","source",m)}else qn(S)||nl(S)||Qa(S)?m=S:m=g2.from(S);else if(typeof S=="function"){if(Qa(m)){var y;m=qh((y=m)===null||y===void 0?void 0:y.readable)}else m=qh(m);if(m=S(m,{signal:n}),B){if(!qn(m,!0))throw new Nh("AsyncIterable",`transform[${v-1}]`,m)}else{var b;jh||(jh=$h());let $=new jh({objectMode:!0}),C=(b=m)===null||b===void 0?void 0:b.then;if(typeof C=="function")d++,C.call(m,G=>{h=G,G!=null&&$.write(G),M&&$.end(),Qi.nextTick(f)},G=>{$.destroy(G),Qi.nextTick(f,G)});else if(qn(m,!0))d++,rl(m,$,f,{end:M});else if(Fh(m)||Qa(m)){let G=m.readable||m;d++,rl(G,$,f,{end:M})}else throw new Nh("AsyncIterable or Promise","destination",m);m=$;let{destroy:Z,cleanup:re}=_2(m,!1,!0);u.push(Z),R&&s.push(re)}}else if(m2(S)){if(nl(m)){d+=2;let $=o9(m,S,f,{end:M});zh(S)&&R&&s.push($)}else if(Qa(m)||Fh(m)){let $=m.readable||m;d++,rl($,S,f,{end:M})}else if(qn(m))d++,rl(m,S,f,{end:M});else throw new Wh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=S}else if(t9(S)){if(nl(m))d++,Vh(qh(m),S,f,{end:M});else if(Fh(m)||qn(m))d++,Vh(m,S,f,{end:M});else if(Qa(m))d++,Vh(m.readable,S,f,{end:M});else throw new Wh("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=S}else m=g2.from(S)}return(n!=null&&n.aborted||i!=null&&i.aborted)&&Qi.nextTick(o),m}function o9(t,e,r,{end:a}){let n=!1;if(e.on("close",()=>{n||r(new Q7)}),t.pipe(e,{end:!1}),a){let s=function(){n=!0,e.end()};var i=s;r9(t)?Qi.nextTick(s):t.once("end",s)}else r();return al(t,{readable:!0,writable:!1},s=>{let o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),al(e,{readable:!1,writable:!0},r)}b2.exports={pipelineImpl:y2,pipeline:s9}});var Jh=H((GU,x2)=>{"use strict";E();I();x();var{pipeline:l9}=il(),sl=cr(),{destroyer:c9}=Fn(),{isNodeStream:ol,isReadable:w2,isWritable:v2,isWebStream:Hh,isTransformStream:Vn,isWritableStream:k2,isReadableStream:S2}=sr(),{AbortError:f9,codes:{ERR_INVALID_ARG_VALUE:E2,ERR_MISSING_ARGS:u9}}=wt(),h9=Tr();x2.exports=function(...e){if(e.length===0)throw new u9("streams");if(e.length===1)return sl.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=sl.from(e[0])),typeof e[e.length-1]=="function"){let f=e.length-1;e[f]=sl.from(e[f])}for(let f=0;f<e.length;++f)if(!(!ol(e[f])&&!Hh(e[f]))){if(f<e.length-1&&!(w2(e[f])||S2(e[f])||Vn(e[f])))throw new E2(`streams[${f}]`,r[f],"must be readable");if(f>0&&!(v2(e[f])||k2(e[f])||Vn(e[f])))throw new E2(`streams[${f}]`,r[f],"must be writable")}let a,n,i,s,o;function l(f){let g=s;s=null,g?g(f):f?o.destroy(f):!d&&!u&&o.destroy()}let c=e[0],h=l9(e,l),u=!!(v2(c)||k2(c)||Vn(c)),d=!!(w2(h)||S2(h)||Vn(h));if(o=new sl({writableObjectMode:!!(c!=null&&c.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:u,readable:d}),u){if(ol(c))o._write=function(g,m,y){c.write(g,m)?y():a=y},o._final=function(g){c.end(),n=g},c.on("drain",function(){if(a){let g=a;a=null,g()}});else if(Hh(c)){let m=(Vn(c)?c.writable:c).getWriter();o._write=async function(y,b,w){try{await m.ready,m.write(y).catch(()=>{}),w()}catch(v){w(v)}},o._final=async function(y){try{await m.ready,m.close().catch(()=>{}),n=y}catch(b){y(b)}}}let f=Vn(h)?h.readable:h;h9(f,()=>{if(n){let g=n;n=null,g()}})}if(d){if(ol(h))h.on("readable",function(){if(i){let f=i;i=null,f()}}),h.on("end",function(){o.push(null)}),o._read=function(){for(;;){let f=h.read();if(f===null){i=o._read;return}if(!o.push(f))return}};else if(Hh(h)){let g=(Vn(h)?h.readable:h).getReader();o._read=async function(){for(;;)try{let{value:m,done:y}=await g.read();if(!o.push(m))return;if(y){o.push(null);return}}catch{return}}}}return o._destroy=function(f,g){!f&&s!==null&&(f=new f9),i=null,a=null,n=null,s===null?g(f):(s=g,ol(h)&&c9(h,f))},o}});var R2=H((XU,Kh)=>{"use strict";E();I();x();var d9=globalThis.AbortController||za().AbortController,{codes:{ERR_INVALID_ARG_VALUE:p9,ERR_INVALID_ARG_TYPE:Xi,ERR_MISSING_ARGS:g9,ERR_OUT_OF_RANGE:m9},AbortError:fr}=wt(),{validateAbortSignal:Wn,validateInteger:I2,validateObject:Hn}=ja(),_9=Ke().Symbol("kWeak"),y9=Ke().Symbol("kResistStopPropagation"),{finished:b9}=Tr(),w9=Jh(),{addAbortSignalNoValidate:v9}=Ui(),{isWritable:k9,isNodeStream:S9}=sr(),{deprecate:E9}=St(),{ArrayPrototypePush:x9,Boolean:I9,MathFloor:B2,Number:B9,NumberIsNaN:A9,Promise:A2,PromiseReject:P2,PromiseResolve:P9,PromisePrototypeThen:L2,Symbol:T2}=Ke(),ll=T2("kEmpty"),O2=T2("kEof");function L9(t,e){if(e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),S9(t)&&!k9(t))throw new p9("stream",t,"must be writable");let r=w9(this,t);return e!=null&&e.signal&&v9(e.signal,r),r}function cl(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=B2(e.concurrency));let a=r-1;return e?.highWaterMark!=null&&(a=B2(e.highWaterMark)),I2(r,"options.concurrency",1),I2(a,"options.highWaterMark",0),a+=r,async function*(){let i=St().AbortSignalAny([e?.signal].filter(I9)),s=this,o=[],l={signal:i},c,h,u=!1,d=0;function f(){u=!0,g()}function g(){d-=1,m()}function m(){h&&!u&&d<r&&o.length<a&&(h(),h=null)}async function y(){try{for await(let b of s){if(u)return;if(i.aborted)throw new fr;try{if(b=t(b,l),b===ll)continue;b=P9(b)}catch(w){b=P2(w)}d+=1,L2(b,g,f),o.push(b),c&&(c(),c=null),!u&&(o.length>=a||d>=r)&&await new A2(w=>{h=w})}o.push(O2)}catch(b){let w=P2(b);L2(w,g,f),o.push(w)}finally{u=!0,c&&(c(),c=null)}}y();try{for(;;){for(;o.length>0;){let b=await o[0];if(b===O2)return;if(i.aborted)throw new fr;b!==ll&&(yield b),o.shift(),m()}await new A2(b=>{c=b})}}finally{u=!0,h&&(h(),h=null)}}.call(this)}function O9(t=void 0){return t!=null&&Hn(t,"options"),t?.signal!=null&&Wn(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new fr({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function M2(t,e=void 0){for await(let r of Yh.call(this,t,e))return!0;return!1}async function T9(t,e=void 0){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);return!await M2.call(this,async(...r)=>!await t(...r),e)}async function M9(t,e){for await(let r of Yh.call(this,t,e))return r}async function C9(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);async function r(a,n){return await t(a,n),ll}for await(let a of cl.call(this,r,e));}function Yh(t,e){if(typeof t!="function")throw new Xi("fn",["Function","AsyncFunction"],t);async function r(a,n){return await t(a,n)?a:ll}return cl.call(this,r,e)}var Gh=class extends g9{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function R9(t,e,r){var a;if(typeof t!="function")throw new Xi("reducer",["Function","AsyncFunction"],t);r!=null&&Hn(r,"options"),r?.signal!=null&&Wn(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted){let c=new fr(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await b9(this.destroy(c)),c}let i=new d9,s=i.signal;if(r!=null&&r.signal){let c={once:!0,[_9]:this,[y9]:!0};r.signal.addEventListener("abort",()=>i.abort(),c)}let o=!1;try{for await(let c of this){var l;if(o=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fr;n?e=await t(e,c,{signal:s}):(e=c,n=!0)}if(!o&&!n)throw new Gh}finally{i.abort()}return e}async function $9(t){t!=null&&Hn(t,"options"),t?.signal!=null&&Wn(t.signal,"options.signal");let e=[];for await(let a of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new fr(void 0,{cause:t.signal.reason});x9(e,a)}return e}function N9(t,e){let r=cl.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function C2(t){if(t=B9(t),A9(t))return 0;if(t<0)throw new m9("number",">= 0",t);return t}function z9(t,e=void 0){return e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),t=C2(t),async function*(){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new fr;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new fr;t--<=0&&(yield i)}}.call(this)}function F9(t,e=void 0){return e!=null&&Hn(e,"options"),e?.signal!=null&&Wn(e.signal,"options.signal"),t=C2(t),async function*(){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new fr;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new fr;if(t-- >0&&(yield i),t<=0)return}}.call(this)}Kh.exports.streamReturningOperators={asIndexedPairs:E9(O9,"readable.asIndexedPairs will be removed in a future version."),drop:z9,filter:Yh,flatMap:N9,map:cl,take:F9,compose:L9};Kh.exports.promiseReturningOperators={every:T9,forEach:C9,reduce:R9,toArray:$9,some:M2,find:M9}});var Qh=H((rq,$2)=>{"use strict";E();I();x();var{ArrayPrototypePop:j9,Promise:D9}=Ke(),{isIterable:U9,isNodeStream:q9,isWebStream:V9}=sr(),{pipelineImpl:W9}=il(),{finished:H9}=Tr();Xh();function J9(...t){return new D9((e,r)=>{let a,n,i=t[t.length-1];if(i&&typeof i=="object"&&!q9(i)&&!U9(i)&&!V9(i)){let s=j9(t);a=s.signal,n=s.end}W9(t,(s,o)=>{s?r(s):e(o)},{signal:a,end:n})})}$2.exports={finished:H9,pipeline:J9}});var Xh=H((sq,W2)=>{"use strict";E();I();x();var{Buffer:G9}=(Vt(),_t(tr)),{ObjectDefineProperty:Rr,ObjectKeys:F2,ReflectApply:j2}=Ke(),{promisify:{custom:D2}}=St(),{streamReturningOperators:N2,promiseReturningOperators:z2}=R2(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:U2}}=wt(),Y9=Jh(),{setDefaultHighWaterMark:K9,getDefaultHighWaterMark:Q9}=qi(),{pipeline:q2}=il(),{destroyer:X9}=Fn(),V2=Tr(),Zh=Qh(),Zi=sr(),Je=W2.exports=Uo().Stream;Je.isDestroyed=Zi.isDestroyed;Je.isDisturbed=Zi.isDisturbed;Je.isErrored=Zi.isErrored;Je.isReadable=Zi.isReadable;Je.isWritable=Zi.isWritable;Je.Readable=Hi();for(let t of F2(N2)){let r=function(...a){if(new.target)throw U2();return Je.Readable.from(j2(e,this,a))},e=N2[t];Rr(r,"name",{__proto__:null,value:e.name}),Rr(r,"length",{__proto__:null,value:e.length}),Rr(Je.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of F2(z2)){let r=function(...a){if(new.target)throw U2();return j2(e,this,a)},e=z2[t];Rr(r,"name",{__proto__:null,value:e.name}),Rr(r,"length",{__proto__:null,value:e.length}),Rr(Je.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}Je.Writable=tl();Je.Duplex=cr();Je.Transform=Ch();Je.PassThrough=$h();Je.pipeline=q2;var{addAbortSignal:Z9}=Ui();Je.addAbortSignal=Z9;Je.finished=V2;Je.destroy=X9;Je.compose=Y9;Je.setDefaultHighWaterMark=K9;Je.getDefaultHighWaterMark=Q9;Rr(Je,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Zh}});Rr(q2,D2,{__proto__:null,enumerable:!0,get(){return Zh.pipeline}});Rr(V2,D2,{__proto__:null,enumerable:!0,get(){return Zh.finished}});Je.Stream=Je;Je._isUint8Array=function(e){return e instanceof Uint8Array};Je._uint8ArrayToBuffer=function(e){return G9.from(e.buffer,e.byteOffset,e.byteLength)}});var H2=H((fq,ot)=>{"use strict";E();I();x();var dt=Xh(),eT=Qh(),tT=dt.Readable.destroy;ot.exports=dt.Readable;ot.exports._uint8ArrayToBuffer=dt._uint8ArrayToBuffer;ot.exports._isUint8Array=dt._isUint8Array;ot.exports.isDisturbed=dt.isDisturbed;ot.exports.isErrored=dt.isErrored;ot.exports.isReadable=dt.isReadable;ot.exports.Readable=dt.Readable;ot.exports.Writable=dt.Writable;ot.exports.Duplex=dt.Duplex;ot.exports.Transform=dt.Transform;ot.exports.PassThrough=dt.PassThrough;ot.exports.addAbortSignal=dt.addAbortSignal;ot.exports.finished=dt.finished;ot.exports.destroy=dt.destroy;ot.exports.destroy=tT;ot.exports.pipeline=dt.pipeline;ot.exports.compose=dt.compose;Object.defineProperty(dt,"promises",{configurable:!0,enumerable:!0,get(){return eT}});ot.exports.Stream=dt.Stream;ot.exports.default=ot.exports});var fl=H((pq,J2)=>{E();I();x();var nd=H2().Transform,ed=class extends nd{constructor(e,r){super({writableObjectMode:!0}),this.proto=e,this.mainType=r,this.queue=Buffer.alloc(0)}createPacketBuffer(e){return this.proto.createPacketBuffer(this.mainType,e)}_transform(e,r,a){let n;try{n=this.createPacketBuffer(e)}catch(i){return a(i)}return this.push(n),a()}},td=class extends nd{constructor(e,r){super({readableObjectMode:!0}),this.proto=e,this.mainType=r,this.queue=Buffer.alloc(0)}parsePacketBuffer(e){return this.proto.parsePacketBuffer(this.mainType,e)}_transform(e,r,a){for(this.queue=Buffer.concat([this.queue,e]);;){let n;try{n=this.parsePacketBuffer(this.queue)}catch(i){return i.partialReadError?a():(i.buffer=this.queue,this.queue=Buffer.alloc(0),a(i))}this.push(n),this.queue=this.queue.slice(n.metadata.size)}}},rd=class extends nd{constructor(e,r,a=!1){super({readableObjectMode:!0}),this.proto=e,this.mainType=r,this.noErrorLogging=a}parsePacketBuffer(e){return this.proto.parsePacketBuffer(this.mainType,e)}_transform(e,r,a){let n;try{n=this.parsePacketBuffer(e),n.metadata.size!==e.length&&!this.noErrorLogging&&console.log("Chunk size is "+e.length+" but only "+n.metadata.size+" was read ; partial packet : "+JSON.stringify(n.data)+"; buffer :"+e.toString("hex"))}catch(i){return i.partialReadError?(this.noErrorLogging||console.log(i.stack),a()):a(i)}this.push(n),a()}};J2.exports={Serializer:ed,Parser:td,FullPacketParser:rd}});var Y2=H((yq,G2)=>{E();I();x();G2.exports={Read:{switch:["parametrizable",(t,e)=>{let r=e.compareTo?e.compareTo:e.compareToValue,a=[];r.startsWith("$")?a.push(r):e.compareTo&&(r=t.getField(r,!0));let n=`switch (${r}) {
69
69
  `;for(let i in e.fields){let s=i;s.startsWith("/")?s="ctx."+s.slice(1):isNaN(s)&&s!=="true"&&s!=="false"&&(s=`"${s}"`),n+=t.indent(`case ${s}: return `+t.callType(e.fields[i]))+`
70
70
  `}return n+=t.indent("default: return "+t.callType(e.default?e.default:"void"))+`
71
71
  `,n+="}",t.wrapCode(n,a)}],option:["parametrizable",(t,e)=>{let r=`const {value} = ctx.bool(buffer, offset)