+
+
+
+ HyperQuark
+
+
+
+
+
+
+
+
diff --git a/docs/assets/AboutView-b68354b6.js b/docs/assets/AboutView-b68354b6.js
new file mode 100644
index 0000000..a4259dd
--- /dev/null
+++ b/docs/assets/AboutView-b68354b6.js
@@ -0,0 +1 @@
+import{_ as e,o as t,c as s,a}from"./index-19163c0d.js";const o={},r={class:"about"},c=a('
This is an about page.
HyperQuark compiles Scratch projects to WebAssembly in an attempt to make them faster. It was created by pufferfish101007 and was written in Rust mainly, with the exception of this website which uses Vue. The source code is available on Github.
',2),h=[c];function i(n,u){return t(),s("div",r,h)}const p=e(o,[["render",i]]);export{p as default};
diff --git a/docs/assets/AboutView-e27ce503.css b/docs/assets/AboutView-e27ce503.css
new file mode 100644
index 0000000..cf6d780
--- /dev/null
+++ b/docs/assets/AboutView-e27ce503.css
@@ -0,0 +1 @@
+@media (min-width: 1024px){.about{min-height:100vh;display:flex;align-items:center;flex-direction:column;text-align:center}}
diff --git a/docs/assets/HomeView-014b65ab.css b/docs/assets/HomeView-014b65ab.css
new file mode 100644
index 0000000..d395415
--- /dev/null
+++ b/docs/assets/HomeView-014b65ab.css
@@ -0,0 +1 @@
+.inline-block[data-v-b0d7b0b7]{display:inline-block}input[type=number][data-v-b0d7b0b7]{width:12ch;color:var(--color-text);background:var(--color-background);border:0;[data-v-b0d7b0b7]:focus{outline:none}}.projinput[data-v-b0d7b0b7]{font-family:monospace;font-size:12px;padding:0;border:var(--color-border) solid 1px}h1[data-v-b1223993]{font-size:2rem;font-weight:500;margin-bottom:1rem}span#blazing[data-v-b1223993]{font-style:italic;text-decoration:line-through}
diff --git a/docs/assets/HomeView-e6445906.js b/docs/assets/HomeView-e6445906.js
new file mode 100644
index 0000000..423ba85
--- /dev/null
+++ b/docs/assets/HomeView-e6445906.js
@@ -0,0 +1 @@
+import{_ as d,u as I,r,o as c,c as u,b as o,t as j,d as e,w as x,v as w,e as p,F as m,p as b,f as v,g,h as V}from"./index-19163c0d.js";import{_ as S}from"./ProjectFileInput-da36d62d.js";const $=t=>(b("data-v-b0d7b0b7"),t=t(),v(),t),H={key:0},N=$(()=>e("summary",null,"An error occured",-1)),P={class:".inline-block"},B={class:"inline-block"},C={__name:"ProjectInput",setup(t){const _=I(),n=r(""),s=r(null);r(null);const l=r(null);function f(){if(!/^\d+$/.test(n.value))return alert("invalid project id");_.push({name:"projectIdPlayer",params:{id:n.value}})}function y(i){l.value=i}return(i,a)=>l.value?(c(),u("details",H,[N,o(" "+j(l.value),1)])):(c(),u(m,{key:1},[e("span",P,[o("Enter a project id: "),e("span",{class:"projinput inline-block",tabindex:"0",onFocus:a[1]||(a[1]=()=>s.value.focus())},[o("https://scratch.mit.edu/projects/"),x(e("input",{type:"number",min:"1",placeholder:"771449498",ref_key:"numInput",ref:s,"onUpdate:modelValue":a[0]||(a[0]=k=>n.value=k)},null,512),[[w,n.value]])],32),e("button",{onClick:f},"Go!")]),o(),e("span",B,[o("or upload a project: "),p(S,{onError:y})])],64))}},E=d(C,[["__scopeId","data-v-b0d7b0b7"]]);const h=t=>(b("data-v-b1223993"),t=t(),v(),t),F=h(()=>e("header",null,[e("h1",null,"HyperQuark")],-1)),L=h(()=>e("div",null,[o("HyperQuark compiles Scratch projects to WebAssembly in order to run them "),e("span",{id:"blazing"},"⚡ blazingly fast ⚡"),o(" really quickly.")],-1)),R={__name:"HomeView",setup(t){return(_,n)=>{const s=g("RouterLink");return c(),u(m,null,[F,e("main",null,[L,e("div",null,[p(s,{to:"/about"},{default:V(()=>[o("Learn more")]),_:1})]),p(E)])],64)}}},D=d(R,[["__scopeId","data-v-b1223993"]]);export{D as default};
diff --git a/docs/assets/ProjectFileInput-da36d62d.js b/docs/assets/ProjectFileInput-da36d62d.js
new file mode 100644
index 0000000..4aa4c8a
--- /dev/null
+++ b/docs/assets/ProjectFileInput-da36d62d.js
@@ -0,0 +1,18 @@
+import{k as commonjsGlobal,l as process,m as buffer,n as getDefaultExportFromCjs,q as defineStore,r as ref$1,u as useRouter,o as openBlock,j as createBlock,c as createElementBlock,L as Loading}from"./index-19163c0d.js";const processFn=(e,l)=>function(...u){const r=l.promiseModule;return new r((n,t)=>{l.multiArgs?u.push((...i)=>{l.errorFirst?i[0]?t(i):(i.shift(),n(i)):n(i)}):l.errorFirst?u.push((i,s)=>{i?t(i):n(s)}):u.push(n),e.apply(this,u)})};var pify$1=(e,l)=>{l=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},l);const u=typeof e;if(!(e!==null&&(u==="object"||u==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":u}\``);const r=t=>{const i=s=>typeof s=="string"?t===s:s.test(t);return l.include?l.include.some(i):!l.exclude.some(i)};let n;u==="function"?n=function(...t){return l.excludeMain?e(...t):processFn(e,l).apply(this,t)}:n=Object.create(Object.getPrototypeOf(e));for(const t in e){const i=e[t];n[t]=typeof i=="function"&&r(t)?processFn(i,l):i}return n},utf8={},utils={},support={},events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var e=typeof Reflect=="object"?Reflect:null,l=e&&typeof e.apply=="function"?e.apply:function(E,x,q){return Function.prototype.apply.call(E,x,q)},u;e&&typeof e.ownKeys=="function"?u=e.ownKeys:Object.getOwnPropertySymbols?u=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:u=function(E){return Object.getOwnPropertyNames(E)};function r(_){console&&console.warn&&console.warn(_)}var n=Number.isNaN||function(E){return E!==E};function t(){t.init.call(this)}events.exports=t,events.exports.once=p,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var i=10;function s(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(_){if(typeof _!="number"||_<0||n(_))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_+".");i=_}}),t.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},t.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||n(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function o(_){return _._maxListeners===void 0?t.defaultMaxListeners:_._maxListeners}t.prototype.getMaxListeners=function(){return o(this)},t.prototype.emit=function(E){for(var x=[],q=1;q0&&(V=x[0]),V instanceof Error)throw V;var u2=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw u2.context=V,u2}var e2=j[E];if(e2===void 0)return!1;if(typeof e2=="function")l(e2,this,x);else for(var J=e2.length,a2=h(e2,J),q=0;q0&&V.length>T&&!V.warned){V.warned=!0;var u2=new Error("Possible EventEmitter memory leak detected. "+V.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");u2.name="MaxListenersExceededWarning",u2.emitter=_,u2.type=E,u2.count=V.length,r(u2)}return _}t.prototype.addListener=function(E,x){return g(this,E,x,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(E,x){return g(this,E,x,!0)};function m(){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 d(_,E,x){var q={fired:!1,wrapFn:void 0,target:_,type:E,listener:x},T=m.bind(q);return T.listener=x,q.wrapFn=T,T}t.prototype.once=function(E,x){return s(x),this.on(E,d(this,E,x)),this},t.prototype.prependOnceListener=function(E,x){return s(x),this.prependListener(E,d(this,E,x)),this},t.prototype.removeListener=function(E,x){var q,T,j,V,u2;if(s(x),T=this._events,T===void 0)return this;if(q=T[E],q===void 0)return this;if(q===x||q.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete T[E],T.removeListener&&this.emit("removeListener",E,q.listener||x));else if(typeof q!="function"){for(j=-1,V=q.length-1;V>=0;V--)if(q[V]===x||q[V].listener===x){u2=q[V].listener,j=V;break}if(j<0)return this;j===0?q.shift():S(q,j),q.length===1&&(T[E]=q[0]),T.removeListener!==void 0&&this.emit("removeListener",E,u2||x)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(E){var x,q,T;if(q=this._events,q===void 0)return this;if(q.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):q[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete q[E]),this;if(arguments.length===0){var j=Object.keys(q),V;for(T=0;T=0;T--)this.removeListener(E,x[T]);return this};function c(_,E,x){var q=_._events;if(q===void 0)return[];var T=q[E];return T===void 0?[]:typeof T=="function"?x?[T.listener||T]:[T]:x?v(T):h(T,T.length)}t.prototype.listeners=function(E){return c(this,E,!0)},t.prototype.rawListeners=function(E){return c(this,E,!1)},t.listenerCount=function(_,E){return typeof _.listenerCount=="function"?_.listenerCount(E):a.call(_,E)},t.prototype.listenerCount=a;function a(_){var E=this._events;if(E!==void 0){var x=E[_];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?u(this._events):[]};function h(_,E){for(var x=new Array(E),q=0;q"u"||!m?e:m(Uint8Array),a={"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":o&&m?m([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":o&&m?m(m([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!o||!m?e:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!o||!m?e:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":o&&m?m(""[Symbol.iterator]()):e,"%Symbol%":o?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":s,"%TypedArray%":c,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(m)try{null.error}catch(e2){var h=m(m(e2));a["%Error.prototype%"]=h}var S=function e2(J){var a2;if(J==="%AsyncFunction%")a2=n("async function () {}");else if(J==="%GeneratorFunction%")a2=n("function* () {}");else if(J==="%AsyncGeneratorFunction%")a2=n("async function* () {}");else if(J==="%AsyncGenerator%"){var m2=e2("%AsyncGeneratorFunction%");m2&&(a2=m2.prototype)}else if(J==="%AsyncIteratorPrototype%"){var g2=e2("%AsyncGenerator%");g2&&m&&(a2=m(g2.prototype))}return a[J]=a2,a2},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},p=requireFunctionBind(),b=requireSrc(),y=p.call(Function.call,Array.prototype.concat),_=p.call(Function.apply,Array.prototype.splice),E=p.call(Function.call,String.prototype.replace),x=p.call(Function.call,String.prototype.slice),q=p.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,V=function(J){var a2=x(J,0,1),m2=x(J,-1);if(a2==="%"&&m2!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(m2==="%"&&a2!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var g2=[];return E(J,T,function(f2,_2,s2,o2){g2[g2.length]=s2?E(o2,j,"$1"):_2||f2}),g2},u2=function(J,a2){var m2=J,g2;if(b(v,m2)&&(g2=v[m2],m2="%"+g2[0]+"%"),b(a,m2)){var f2=a[m2];if(f2===d&&(f2=S(m2)),typeof f2>"u"&&!a2)throw new r("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:g2,name:m2,value:f2}}throw new l("intrinsic "+J+" does not exist!")};return getIntrinsic=function(J,a2){if(typeof J!="string"||J.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a2!="boolean")throw new r('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,J)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m2=V(J),g2=m2.length>0?m2[0]:"",f2=u2("%"+g2+"%",a2),_2=f2.name,s2=f2.value,o2=!1,y2=f2.alias;y2&&(g2=y2[0],_(m2,y([0,1],y2)));for(var N=1,B=!0;N=m2.length){var I=t(s2,$);B=!!I,B&&"get"in I&&!("originalValue"in I.get)?s2=I.get:s2=s2[$]}else B=b(s2,$),s2=s2[$];B&&!o2&&(a[_2]=s2)}}return s2},getIntrinsic}var callBind={exports:{}},hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var l=requireFunctionBind(),u=requireGetIntrinsic(),r=u("%Function.prototype.apply%"),n=u("%Function.prototype.call%"),t=u("%Reflect.apply%",!0)||l.call(n,r),i=u("%Object.getOwnPropertyDescriptor%",!0),s=u("%Object.defineProperty%",!0),o=u("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var c=t(l,n,arguments);if(i&&s){var a=i(c,"length");a.configurable&&s(c,"length",{value:1+o(0,d.length-(arguments.length-1))})}return c};var g=function(){return t(l,r,arguments)};s?s(e.exports,"apply",{value:g}):e.exports.apply=g}(callBind)),callBind.exports}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),l=requireCallBind(),u=l(e("String.prototype.indexOf"));return callBound=function(n,t){var i=e(n,!!t);return typeof i=="function"&&u(n,".prototype.")>-1?l(i):i},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams()(),l=requireCallBound(),u=l("Object.prototype.toString"),r=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:u(s)==="[object Arguments]"},n=function(s){return r(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&u(s)!=="[object Array]"&&u(s.callee)==="[object Function]"},t=function(){return r(arguments)}();return r.isLegacyArguments=n,isArguments=t?r:n,isArguments}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=Object.prototype.toString,l=Function.prototype.toString,u=/^\s*(?:function)?\*/,r=requireShams()(),n=Object.getPrototypeOf,t=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},i;return isGeneratorFunction=function(o){if(typeof o!="function")return!1;if(u.test(l.call(o)))return!0;if(!r){var g=e.call(o);return g==="[object GeneratorFunction]"}if(!n)return!1;if(typeof i>"u"){var m=t();i=m?n(m):!1}return n(o)===i},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,l=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,u,r;if(typeof l=="function"&&typeof Object.defineProperty=="function")try{u=Object.defineProperty({},"length",{get:function(){throw r}}),r={},l(function(){throw 42},null,u)}catch(b){b!==r&&(l=null)}else l=null;var n=/^\s*class\b/,t=function(y){try{var _=e.call(y);return n.test(_)}catch{return!1}},i=function(y){try{return t(y)?!1:(e.call(y),!0)}catch{return!1}},s=Object.prototype.toString,o="[object Object]",g="[object Function]",m="[object GeneratorFunction]",d="[object HTMLAllCollection]",c="[object HTML document.all class]",a="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var p=document.all;s.call(p)===s.call(document.all)&&(v=function(y){if((S||!y)&&(typeof y>"u"||typeof y=="object"))try{var _=s.call(y);return(_===d||_===c||_===a||_===o)&&y("")==null}catch{}return!1})}return isCallable=l?function(y){if(v(y))return!0;if(!y||typeof y!="function"&&typeof y!="object")return!1;try{l(y,null,u)}catch(_){if(_!==r)return!1}return!t(y)&&i(y)}:function(y){if(v(y))return!0;if(!y||typeof y!="function"&&typeof y!="object")return!1;if(h)return i(y);if(t(y))return!1;var _=s.call(y);return _!==g&&_!==m&&!/^\[object HTML/.test(_)?!1:i(y)},isCallable}var forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var e=requireIsCallable(),l=Object.prototype.toString,u=Object.prototype.hasOwnProperty,r=function(o,g,m){for(var d=0,c=o.length;d=3&&(d=m),l.call(o)==="[object Array]"?r(o,g,d):typeof o=="string"?n(o,g,d):t(o,g,d)};return forEach_1=i,forEach_1}var availableTypedArrays,hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],l=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var r=[],n=0;n"u"?commonjsGlobal:globalThis,o=l(),g=r("String.prototype.slice"),m=Object.getPrototypeOf,d=r("Array.prototype.indexOf",!0)||function(v,p){for(var b=0;b-1?p:p!=="Object"?!1:h(v)}return n?a(v):null},whichTypedArray}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray=function(u){return!!e(u)},isTypedArray}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var l=requireIsArguments(),u=requireIsGeneratorFunction(),r=requireWhichTypedArray(),n=requireIsTypedArray();function t(C){return C.call.bind(C)}var i=typeof BigInt<"u",s=typeof Symbol<"u",o=t(Object.prototype.toString),g=t(Number.prototype.valueOf),m=t(String.prototype.valueOf),d=t(Boolean.prototype.valueOf);if(i)var c=t(BigInt.prototype.valueOf);if(s)var a=t(Symbol.prototype.valueOf);function h(C,W){if(typeof C!="object")return!1;try{return W(C),!0}catch{return!1}}e.isArgumentsObject=l,e.isGeneratorFunction=u,e.isTypedArray=n;function S(C){return typeof Promise<"u"&&C instanceof Promise||C!==null&&typeof C=="object"&&typeof C.then=="function"&&typeof C.catch=="function"}e.isPromise=S;function v(C){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(C):n(C)||B(C)}e.isArrayBufferView=v;function p(C){return r(C)==="Uint8Array"}e.isUint8Array=p;function b(C){return r(C)==="Uint8ClampedArray"}e.isUint8ClampedArray=b;function y(C){return r(C)==="Uint16Array"}e.isUint16Array=y;function _(C){return r(C)==="Uint32Array"}e.isUint32Array=_;function E(C){return r(C)==="Int8Array"}e.isInt8Array=E;function x(C){return r(C)==="Int16Array"}e.isInt16Array=x;function q(C){return r(C)==="Int32Array"}e.isInt32Array=q;function T(C){return r(C)==="Float32Array"}e.isFloat32Array=T;function j(C){return r(C)==="Float64Array"}e.isFloat64Array=j;function V(C){return r(C)==="BigInt64Array"}e.isBigInt64Array=V;function u2(C){return r(C)==="BigUint64Array"}e.isBigUint64Array=u2;function e2(C){return o(C)==="[object Map]"}e2.working=typeof Map<"u"&&e2(new Map);function J(C){return typeof Map>"u"?!1:e2.working?e2(C):C instanceof Map}e.isMap=J;function a2(C){return o(C)==="[object Set]"}a2.working=typeof Set<"u"&&a2(new Set);function m2(C){return typeof Set>"u"?!1:a2.working?a2(C):C instanceof Set}e.isSet=m2;function g2(C){return o(C)==="[object WeakMap]"}g2.working=typeof WeakMap<"u"&&g2(new WeakMap);function f2(C){return typeof WeakMap>"u"?!1:g2.working?g2(C):C instanceof WeakMap}e.isWeakMap=f2;function _2(C){return o(C)==="[object WeakSet]"}_2.working=typeof WeakSet<"u"&&_2(new WeakSet);function s2(C){return _2(C)}e.isWeakSet=s2;function o2(C){return o(C)==="[object ArrayBuffer]"}o2.working=typeof ArrayBuffer<"u"&&o2(new ArrayBuffer);function y2(C){return typeof ArrayBuffer>"u"?!1:o2.working?o2(C):C instanceof ArrayBuffer}e.isArrayBuffer=y2;function N(C){return o(C)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function B(C){return typeof DataView>"u"?!1:N.working?N(C):C instanceof DataView}e.isDataView=B;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function D(C){return o(C)==="[object SharedArrayBuffer]"}function R(C){return typeof $>"u"?!1:(typeof D.working>"u"&&(D.working=D(new $)),D.working?D(C):C instanceof $)}e.isSharedArrayBuffer=R;function I(C){return o(C)==="[object AsyncFunction]"}e.isAsyncFunction=I;function U(C){return o(C)==="[object Map Iterator]"}e.isMapIterator=U;function K(C){return o(C)==="[object Set Iterator]"}e.isSetIterator=K;function Q(C){return o(C)==="[object Generator]"}e.isGeneratorObject=Q;function P(C){return o(C)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=P;function A(C){return h(C,g)}e.isNumberObject=A;function X(C){return h(C,m)}e.isStringObject=X;function h2(C){return h(C,d)}e.isBooleanObject=h2;function x2(C){return i&&h(C,c)}e.isBigIntObject=x2;function b2(C){return s&&h(C,a)}e.isSymbolObject=b2;function k(C){return A(C)||X(C)||h2(C)||x2(C)||b2(C)}e.isBoxedPrimitive=k;function z(C){return typeof Uint8Array<"u"&&(y2(C)||R(C))}e.isAnyArrayBuffer=z,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(C){Object.defineProperty(e,C,{enumerable:!1,value:function(){throw new Error(C+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(l){return l&&typeof l=="object"&&typeof l.copy=="function"&&typeof l.fill=="function"&&typeof l.readUInt8=="function"}),isBufferBrowser}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var l=Object.getOwnPropertyDescriptors||function(B){for(var $=Object.keys(B),D={},R=0;R<$.length;R++)D[$[R]]=Object.getOwnPropertyDescriptor(B,$[R]);return D},u=/%[sdj%]/g;e.format=function(N){if(!E(N)){for(var B=[],$=0;$=R)return K;switch(K){case"%s":return String(D[$++]);case"%d":return Number(D[$++]);case"%j":try{return JSON.stringify(D[$++])}catch{return"[Circular]"}default:return K}}),U=D[$];$"u")return function(){return e.deprecate(N,B).apply(this,arguments)};var $=!1;function D(){if(!$){if(process.throwDeprecation)throw new Error(B);process.traceDeprecation?console.trace(B):console.error(B),$=!0}return N.apply(this,arguments)}return D};var r={},n=/^$/;if({}.NODE_DEBUG){var t={}.NODE_DEBUG;t=t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),n=new RegExp("^"+t+"$","i")}e.debuglog=function(N){if(N=N.toUpperCase(),!r[N])if(n.test(N)){var B=process.pid;r[N]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",N,B,$)}}else r[N]=function(){};return r[N]};function i(N,B){var $={seen:[],stylize:o};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),p(B)?$.showHidden=B:B&&e._extend($,B),q($.showHidden)&&($.showHidden=!1),q($.depth)&&($.depth=2),q($.colors)&&($.colors=!1),q($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=s),m($,N,$.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(N,B){var $=i.styles[B];return $?"\x1B["+i.colors[$][0]+"m"+N+"\x1B["+i.colors[$][1]+"m":N}function o(N,B){return N}function g(N){var B={};return N.forEach(function($,D){B[$]=!0}),B}function m(N,B,$){if(N.customInspect&&B&&e2(B.inspect)&&B.inspect!==e.inspect&&!(B.constructor&&B.constructor.prototype===B)){var D=B.inspect($,N);return E(D)||(D=m(N,D,$)),D}var R=d(N,B);if(R)return R;var I=Object.keys(B),U=g(I);if(N.showHidden&&(I=Object.getOwnPropertyNames(B)),u2(B)&&(I.indexOf("message")>=0||I.indexOf("description")>=0))return c(B);if(I.length===0){if(e2(B)){var K=B.name?": "+B.name:"";return N.stylize("[Function"+K+"]","special")}if(T(B))return N.stylize(RegExp.prototype.toString.call(B),"regexp");if(V(B))return N.stylize(Date.prototype.toString.call(B),"date");if(u2(B))return c(B)}var Q="",P=!1,A=["{","}"];if(v(B)&&(P=!0,A=["[","]"]),e2(B)){var X=B.name?": "+B.name:"";Q=" [Function"+X+"]"}if(T(B)&&(Q=" "+RegExp.prototype.toString.call(B)),V(B)&&(Q=" "+Date.prototype.toUTCString.call(B)),u2(B)&&(Q=" "+c(B)),I.length===0&&(!P||B.length==0))return A[0]+Q+A[1];if($<0)return T(B)?N.stylize(RegExp.prototype.toString.call(B),"regexp"):N.stylize("[Object]","special");N.seen.push(B);var h2;return P?h2=a(N,B,$,U,I):h2=I.map(function(x2){return h(N,B,$,U,x2,P)}),N.seen.pop(),S(h2,Q,A)}function d(N,B){if(q(B))return N.stylize("undefined","undefined");if(E(B)){var $="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize($,"string")}if(_(B))return N.stylize(""+B,"number");if(p(B))return N.stylize(""+B,"boolean");if(b(B))return N.stylize("null","null")}function c(N){return"["+Error.prototype.toString.call(N)+"]"}function a(N,B,$,D,R){for(var I=[],U=0,K=B.length;U-1&&(I?K=K.split(`
+`).map(function(P){return" "+P}).join(`
+`).slice(2):K=`
+`+K.split(`
+`).map(function(P){return" "+P}).join(`
+`))):K=N.stylize("[Circular]","special")),q(U)){if(I&&R.match(/^\d+$/))return K;U=JSON.stringify(""+R),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=N.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=N.stylize(U,"string"))}return U+": "+K}function S(N,B,$){var D=N.reduce(function(R,I){return I.indexOf(`
+`)>=0,R+I.replace(/\u001b\[\d\d?m/g,"").length+1},0);return D>60?$[0]+(B===""?"":B+`
+ `)+" "+N.join(`,
+ `)+" "+$[1]:$[0]+B+" "+N.join(", ")+" "+$[1]}e.types=requireTypes();function v(N){return Array.isArray(N)}e.isArray=v;function p(N){return typeof N=="boolean"}e.isBoolean=p;function b(N){return N===null}e.isNull=b;function y(N){return N==null}e.isNullOrUndefined=y;function _(N){return typeof N=="number"}e.isNumber=_;function E(N){return typeof N=="string"}e.isString=E;function x(N){return typeof N=="symbol"}e.isSymbol=x;function q(N){return N===void 0}e.isUndefined=q;function T(N){return j(N)&&a2(N)==="[object RegExp]"}e.isRegExp=T,e.types.isRegExp=T;function j(N){return typeof N=="object"&&N!==null}e.isObject=j;function V(N){return j(N)&&a2(N)==="[object Date]"}e.isDate=V,e.types.isDate=V;function u2(N){return j(N)&&(a2(N)==="[object Error]"||N instanceof Error)}e.isError=u2,e.types.isNativeError=u2;function e2(N){return typeof N=="function"}e.isFunction=e2;function J(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}e.isPrimitive=J,e.isBuffer=requireIsBufferBrowser();function a2(N){return Object.prototype.toString.call(N)}function m2(N){return N<10?"0"+N.toString(10):N.toString(10)}var g2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f2(){var N=new Date,B=[m2(N.getHours()),m2(N.getMinutes()),m2(N.getSeconds())].join(":");return[N.getDate(),g2[N.getMonth()],B].join(" ")}e.log=function(){console.log("%s - %s",f2(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(N,B){if(!B||!j(B))return N;for(var $=Object.keys(B),D=$.length;D--;)N[$[D]]=B[$[D]];return N};function _2(N,B){return Object.prototype.hasOwnProperty.call(N,B)}var s2=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(s2&&B[s2]){var $=B[s2];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,s2,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var D,R,I=new Promise(function(Q,P){D=Q,R=P}),U=[],K=0;K0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(v){var p={data:v,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var p=this.head,b=""+p.data;p=p.next;)b+=v+p.data;return b}},{key:"concat",value:function(v){if(this.length===0)return g.alloc(0);for(var p=g.allocUnsafe(v>>>0),b=this.head,y=0;b;)a(b.data,p,y),y+=b.data.length,b=b.next;return p}},{key:"consume",value:function(v,p){var b;return v_.length?_.length:v;if(E===_.length?y+=_:y+=_.slice(0,v),v-=E,v===0){E===_.length?(++b,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=_.slice(E));break}++b}return this.length-=b,y}},{key:"_getBuffer",value:function(v){var p=g.allocUnsafe(v),b=this.head,y=1;for(b.data.copy(p),v-=b.data.length;b=b.next;){var _=b.data,E=v>_.length?_.length:v;if(_.copy(p,p.length-v,0,E),v-=E,v===0){E===_.length?(++y,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(E));break}++y}return this.length-=y,p}},{key:c,value:function(v,p){return d(this,l(l({},p),{},{depth:0,customInspect:!1}))}}]),h}(),buffer_list}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;function e(i,s){var o=this,g=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return g||m?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,i)):process.nextTick(n,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(d){!s&&d?o._writableState?o._writableState.errorEmitted?process.nextTick(u,o):(o._writableState.errorEmitted=!0,process.nextTick(l,o,d)):process.nextTick(l,o,d):s?(process.nextTick(u,o),s(d)):process.nextTick(u,o)}),this)}function l(i,s){n(i,s),u(i)}function u(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(i,s){i.emit("error",s)}function t(i,s){var o=i._readableState,g=i._writableState;o&&o.autoDestroy||g&&g.autoDestroy?i.destroy(s):i.emit("error",s)}return destroy_1={destroy:e,undestroy:r,errorOrDestroy:t},destroy_1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function e(s,o){s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.__proto__=o}var l={};function u(s,o,g){g||(g=Error);function m(c,a,h){return typeof o=="string"?o:o(c,a,h)}var d=function(c){e(a,c);function a(h,S,v){return c.call(this,m(h,S,v))||this}return a}(g);d.prototype.name=g.name,d.prototype.code=s,l[s]=d}function r(s,o){if(Array.isArray(s)){var g=s.length;return s=s.map(function(m){return String(m)}),g>2?"one of ".concat(o," ").concat(s.slice(0,g-1).join(", "),", or ")+s[g-1]:g===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}else return"of ".concat(o," ").concat(String(s))}function n(s,o,g){return s.substr(!g||g<0?0:+g,o.length)===o}function t(s,o,g){return(g===void 0||g>s.length)&&(g=s.length),s.substring(g-o.length,g)===o}function i(s,o,g){return typeof g!="number"&&(g=0),g+o.length>s.length?!1:s.indexOf(o,g)!==-1}return u("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(s,o,g){var m;typeof o=="string"&&n(o,"not ")?(m="must not be",o=o.replace(/^not /,"")):m="must be";var d;if(t(s," argument"))d="The ".concat(s," ").concat(m," ").concat(r(o,"type"));else{var c=i(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(c," ").concat(m," ").concat(r(o,"type"))}return d+=". Received type ".concat(typeof g),d},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=l,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function l(r,n,t){return r.highWaterMark!=null?r.highWaterMark:n?r[t]:null}function u(r,n,t,i){var s=l(n,i,t);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?t:"highWaterMark";throw new e(o,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return state={getHighWaterMark:u},state}var browser$2,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$2;hasRequiredBrowser$2=1,browser$2=e;function e(u,r){if(l("noDeprecation"))return u;var n=!1;function t(){if(!n){if(l("throwDeprecation"))throw new Error(r);l("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return u.apply(this,arguments)}return t}function l(u){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var r=commonjsGlobal.localStorage[u];return r==null?!1:String(r).toLowerCase()==="true"}return browser$2}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=T;function e(R){var I=this;this.next=null,this.entry=null,this.finish=function(){D(I,R)}}var l;T.WritableState=x;var u={deprecate:requireBrowser$2()},r=requireStreamBrowser(),n=buffer.Buffer,t=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(R){return n.from(R)}function s(R){return n.isBuffer(R)||R instanceof t}var o=requireDestroy(),g=requireState(),m=g.getHighWaterMark,d=requireErrorsBrowser().codes,c=d.ERR_INVALID_ARG_TYPE,a=d.ERR_METHOD_NOT_IMPLEMENTED,h=d.ERR_MULTIPLE_CALLBACK,S=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,p=d.ERR_STREAM_NULL_VALUES,b=d.ERR_STREAM_WRITE_AFTER_END,y=d.ERR_UNKNOWN_ENCODING,_=o.errorOrDestroy;requireInherits_browser()(T,r);function E(){}function x(R,I,U){l=l||require_stream_duplex(),R=R||{},typeof U!="boolean"&&(U=I instanceof l),this.objectMode=!!R.objectMode,U&&(this.objectMode=this.objectMode||!!R.writableObjectMode),this.highWaterMark=m(this,R,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=R.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){g2(I,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}x.prototype.getBuffer=function(){for(var I=this.bufferedRequest,U=[];I;)U.push(I),I=I.next;return U},function(){try{Object.defineProperty(x.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var q;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(q=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(I){return q.call(this,I)?!0:this!==T?!1:I&&I._writableState instanceof x}})):q=function(I){return I instanceof this};function T(R){l=l||require_stream_duplex();var I=this instanceof l;if(!I&&!q.call(T,this))return new T(R);this._writableState=new x(R,this,I),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),r.call(this)}T.prototype.pipe=function(){_(this,new S)};function j(R,I){var U=new b;_(R,U),process.nextTick(I,U)}function V(R,I,U,K){var Q;return U===null?Q=new p:typeof U!="string"&&!I.objectMode&&(Q=new c("chunk",["string","Buffer"],U)),Q?(_(R,Q),process.nextTick(K,Q),!1):!0}T.prototype.write=function(R,I,U){var K=this._writableState,Q=!1,P=!K.objectMode&&s(R);return P&&!n.isBuffer(R)&&(R=i(R)),typeof I=="function"&&(U=I,I=null),P?I="buffer":I||(I=K.defaultEncoding),typeof U!="function"&&(U=E),K.ending?j(this,U):(P||V(this,K,R,U))&&(K.pendingcb++,Q=e2(this,K,P,R,I,U)),Q},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&s2(this,R))},T.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new y(I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function u2(R,I,U){return!R.objectMode&&R.decodeStrings!==!1&&typeof I=="string"&&(I=n.from(I,U)),I}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e2(R,I,U,K,Q,P){if(!U){var A=u2(I,K,Q);K!==A&&(U=!0,Q="buffer",K=A)}var X=I.objectMode?1:K.length;I.length+=X;var h2=I.length */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,l){var u=buffer,r=u.Buffer;function n(i,s){for(var o in i)s[o]=i[o]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=u:(n(u,l),l.Buffer=t);function t(i,s,o){return r(i,s,o)}t.prototype=Object.create(r.prototype),n(r,t),t.from=function(i,s,o){if(typeof i=="number")throw new TypeError("Argument must not be a number");return r(i,s,o)},t.alloc=function(i,s,o){if(typeof i!="number")throw new TypeError("Argument must be a number");var g=r(i);return s!==void 0?typeof o=="string"?g.fill(s,o):g.fill(s):g.fill(0),g},t.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r(i)},t.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(i)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,l=e.isEncoding||function(p){switch(p=""+p,p&&p.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 u(p){if(!p)return"utf8";for(var b;;)switch(p){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 p;default:if(b)return;p=(""+p).toLowerCase(),b=!0}}function r(p){var b=u(p);if(typeof b!="string"&&(e.isEncoding===l||!l(p)))throw new Error("Unknown encoding: "+p);return b||p}string_decoder.StringDecoder=n;function n(p){this.encoding=r(p);var b;switch(this.encoding){case"utf16le":this.text=d,this.end=c,b=4;break;case"utf8":this.fillLast=o,b=4;break;case"base64":this.text=a,this.end=h,b=3;break;default:this.write=S,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(b)}n.prototype.write=function(p){if(p.length===0)return"";var b,y;if(this.lastNeed){if(b=this.fillLast(p),b===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function i(p,b,y){var _=b.length-1;if(_=0?(E>0&&(p.lastNeed=E-1),E):--_=0?(E>0&&(p.lastNeed=E-2),E):--_=0?(E>0&&(E===2?E=0:p.lastNeed=E-3),E):0))}function s(p,b,y){if((b[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return p.lastNeed=2,"�"}}function o(p){var b=this.lastTotal-this.lastNeed,y=s(this,p);if(y!==void 0)return y;if(this.lastNeed<=p.length)return p.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,b,0,p.length),this.lastNeed-=p.length}function g(p,b){var y=i(this,p,b);if(!this.lastNeed)return p.toString("utf8",b);this.lastTotal=y;var _=p.length-(y-this.lastNeed);return p.copy(this.lastChar,0,_),p.toString("utf8",b,_)}function m(p){var b=p&&p.length?this.write(p):"";return this.lastNeed?b+"�":b}function d(p,b){if((p.length-b)%2===0){var y=p.toString("utf16le",b);if(y){var _=y.charCodeAt(y.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",b,p.length-1)}function c(p){var b=p&&p.length?this.write(p):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,y)}return b}function a(p,b){var y=(p.length-b)%3;return y===0?p.toString("base64",b):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",b,p.length-y))}function h(p){var b=p&&p.length?this.write(p):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function S(p){return p.toString(this.encoding)}function v(p){return p&&p.length?this.write(p):""}return string_decoder}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var e=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function l(t){var i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,o=new Array(s),g=0;g0)if(typeof A!="string"&&!b2.objectMode&&Object.getPrototypeOf(A)!==r.prototype&&(A=t(A)),h2)b2.endEmitted?E(P,new p):u2(P,b2,A,!0);else if(b2.ended)E(P,new S);else{if(b2.destroyed)return!1;b2.reading=!1,b2.decoder&&!X?(A=b2.decoder.write(A),b2.objectMode||A.length!==0?u2(P,b2,A,!1):s2(P,b2)):u2(P,b2,A,!1)}else h2||(b2.reading=!1,s2(P,b2))}return!b2.ended&&(b2.length=J?P=J:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function m2(P,A){return P<=0||A.length===0&&A.ended?0:A.objectMode?1:P!==P?A.flowing&&A.length?A.buffer.head.data.length:A.length:(P>A.highWaterMark&&(A.highWaterMark=a2(P)),P<=A.length?P:A.ended?A.length:(A.needReadable=!0,0))}j.prototype.read=function(P){o("read",P),P=parseInt(P,10);var A=this._readableState,X=P;if(P!==0&&(A.emittedReadable=!1),P===0&&A.needReadable&&((A.highWaterMark!==0?A.length>=A.highWaterMark:A.length>0)||A.ended))return o("read: emitReadable",A.length,A.ended),A.length===0&&A.ended?U(this):f2(this),null;if(P=m2(P,A),P===0&&A.ended)return A.length===0&&U(this),null;var h2=A.needReadable;o("need readable",h2),(A.length===0||A.length-P0?x2=I(P,A):x2=null,x2===null?(A.needReadable=A.length<=A.highWaterMark,P=0):(A.length-=P,A.awaitDrain=0),A.length===0&&(A.ended||(A.needReadable=!0),X!==P&&A.ended&&U(this)),x2!==null&&this.emit("data",x2),x2};function g2(P,A){if(o("onEofChunk"),!A.ended){if(A.decoder){var X=A.decoder.end();X&&X.length&&(A.buffer.push(X),A.length+=A.objectMode?1:X.length)}A.ended=!0,A.sync?f2(P):(A.needReadable=!1,A.emittedReadable||(A.emittedReadable=!0,_2(P)))}}function f2(P){var A=P._readableState;o("emitReadable",A.needReadable,A.emittedReadable),A.needReadable=!1,A.emittedReadable||(o("emitReadable",A.flowing),A.emittedReadable=!0,process.nextTick(_2,P))}function _2(P){var A=P._readableState;o("emitReadable_",A.destroyed,A.length,A.ended),!A.destroyed&&(A.length||A.ended)&&(P.emit("readable"),A.emittedReadable=!1),A.needReadable=!A.flowing&&!A.ended&&A.length<=A.highWaterMark,R(P)}function s2(P,A){A.readingMore||(A.readingMore=!0,process.nextTick(o2,P,A))}function o2(P,A){for(;!A.reading&&!A.ended&&(A.length1&&Q(h2.pipes,P)!==-1)&&!W&&(o("false write response, pause",h2.awaitDrain),h2.awaitDrain++),X.pause())}function c2(F2){o("onerror",F2),G(),P.removeListener("error",c2),l(P,"error")===0&&E(P,F2)}q(P,"error",c2);function L(){P.removeListener("finish",l2),G()}P.once("close",L);function l2(){o("onfinish"),P.removeListener("close",L),G()}P.once("finish",l2);function G(){o("unpipe"),X.unpipe(P)}return P.emit("pipe",X),h2.flowing||(o("pipe resume"),X.resume()),P};function y2(P){return function(){var X=P._readableState;o("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,X.awaitDrain===0&&l(P,"data")&&(X.flowing=!0,R(P))}}j.prototype.unpipe=function(P){var A=this._readableState,X={hasUnpiped:!1};if(A.pipesCount===0)return this;if(A.pipesCount===1)return P&&P!==A.pipes?this:(P||(P=A.pipes),A.pipes=null,A.pipesCount=0,A.flowing=!1,P&&P.emit("unpipe",this,X),this);if(!P){var h2=A.pipes,x2=A.pipesCount;A.pipes=null,A.pipesCount=0,A.flowing=!1;for(var b2=0;b20,h2.flowing!==!1&&this.resume()):P==="readable"&&!h2.endEmitted&&!h2.readableListening&&(h2.readableListening=h2.needReadable=!0,h2.flowing=!1,h2.emittedReadable=!1,o("on readable",h2.length,h2.reading),h2.length?f2(this):h2.reading||process.nextTick(B,this)),X},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(P,A){var X=u.prototype.removeListener.call(this,P,A);return P==="readable"&&process.nextTick(N,this),X},j.prototype.removeAllListeners=function(P){var A=u.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&process.nextTick(N,this),A};function N(P){var A=P._readableState;A.readableListening=P.listenerCount("readable")>0,A.resumeScheduled&&!A.paused?A.flowing=!0:P.listenerCount("data")>0&&P.resume()}function B(P){o("readable nexttick read 0"),P.read(0)}j.prototype.resume=function(){var P=this._readableState;return P.flowing||(o("resume"),P.flowing=!P.readableListening,$(this,P)),P.paused=!1,this};function $(P,A){A.resumeScheduled||(A.resumeScheduled=!0,process.nextTick(D,P,A))}function D(P,A){o("resume",A.reading),A.reading||P.read(0),A.resumeScheduled=!1,P.emit("resume"),R(P),A.flowing&&!A.reading&&P.read(0)}j.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function R(P){var A=P._readableState;for(o("flow",A.flowing);A.flowing&&P.read()!==null;);}j.prototype.wrap=function(P){var A=this,X=this._readableState,h2=!1;P.on("end",function(){if(o("wrapped end"),X.decoder&&!X.ended){var k=X.decoder.end();k&&k.length&&A.push(k)}A.push(null)}),P.on("data",function(k){if(o("wrapped data"),X.decoder&&(k=X.decoder.write(k)),!(X.objectMode&&k==null)&&!(!X.objectMode&&(!k||!k.length))){var z=A.push(k);z||(h2=!0,P.pause())}});for(var x2 in P)this[x2]===void 0&&typeof P[x2]=="function"&&(this[x2]=function(z){return function(){return P[z].apply(P,arguments)}}(x2));for(var b2=0;b2=A.length?(A.decoder?X=A.buffer.join(""):A.buffer.length===1?X=A.buffer.first():X=A.buffer.concat(A.length),A.buffer.clear()):X=A.buffer.consume(P,A.decoder),X}function U(P){var A=P._readableState;o("endReadable",A.endEmitted),A.endEmitted||(A.ended=!0,process.nextTick(K,A,P))}function K(P,A){if(o("endReadableNT",P.endEmitted,P.length),!P.endEmitted&&P.length===0&&(P.endEmitted=!0,A.readable=!1,A.emit("end"),P.autoDestroy)){var X=A._writableState;(!X||X.autoDestroy&&X.finished)&&A.destroy()}}typeof Symbol=="function"&&(j.from=function(P,A){return _===void 0&&(_=requireFromBrowser()),_(j,P,A)});function Q(P,A){for(var X=0,h2=P.length;X
>>24,v>>>=q,p-=q,q=x>>>16&255,q&16){if(j=x&65535,q&=15,pd){r.msg="invalid distance too far back",t.mode=e;break l}if(v>>>=q,p-=q,q=o-g,j>q){if(q=j-q,q>a&&t.sane){r.msg="invalid distance too far back",t.mode=e;break l}if(V=0,u2=S,h===0){if(V+=c-q,q2;)J[o++]=u2[V++],J[o++]=u2[V++],J[o++]=u2[V++],T-=3;T&&(J[o++]=u2[V++],T>1&&(J[o++]=u2[V++]))}else{V=o-j;do J[o++]=J[V++],J[o++]=J[V++],J[o++]=J[V++],T-=3;while(T>2);T&&(J[o++]=J[V++],T>1&&(J[o++]=J[V++]))}}else if(q&64){r.msg="invalid distance code",t.mode=e;break l}else{x=y[(x&65535)+(v&(1<>3,i-=T,p-=T<<3,v&=(1<