MCPcopy
hub / github.com/simstudioai/sim / i2

Function i2

apps/sim/lib/execution/sandbox/bundles/docx.cjs:13–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11`)>=0);return p+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(Z0>60)return n[0]+(r===""?"":r+`
12 `)+" "+_.join(`,
13 `)+" "+n[1];return n[0]+r+" "+_.join(", ")+" "+n[1]}$.types=oq();function O(_){return Array.isArray(_)}$.isArray=O;function V(_){return typeof _==="boolean"}$.isBoolean=V;function j(_){return _===null}$.isNull=j;function M(_){return _==null}$.isNullOrUndefined=M;function L(_){return typeof _==="number"}$.isNumber=L;function A(_){return typeof _==="string"}$.isString=A;function y(_){return typeof _==="symbol"}$.isSymbol=y;function g(_){return _===void 0}$.isUndefined=g;function d(_){return E(_)&&N(_)==="[object RegExp]"}$.isRegExp=d,$.types.isRegExp=d;function E(_){return typeof _==="object"&&_!==null}$.isObject=E;function s(_){return E(_)&&N(_)==="[object Date]"}$.isDate=s,$.types.isDate=s;function V0(_){return E(_)&&(N(_)==="[object Error]"||_ instanceof Error)}$.isError=V0,$.types.isNativeError=V0;function S(_){return typeof _==="function"}$.isFunction=S;function h(_){return _===null||typeof _==="boolean"||typeof _==="number"||typeof _==="string"||typeof _==="symbol"||typeof _>"u"}$.isPrimitive=h,$.isBuffer=tq();function N(_){return Object.prototype.toString.call(_)}function a(_){return _<10?"0"+_.toString(10):_.toString(10)}var $0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function m(){var _=new Date,r=[a(_.getHours()),a(_.getMinutes()),a(_.getSeconds())].join(":");return[_.getDate(),$0[_.getMonth()],r].join(" ")}$.log=function(){console.log("%s - %s",m(),$.format.apply($,arguments))},$.inherits=R2(),$._extend=function(_,r){if(!r||!E(r))return _;var n=Object.keys(r),Z0=n.length;while(Z0--)_[n[Z0]]=r[n[Z0]];return _};function J0(_,r){return Object.prototype.hasOwnProperty.call(_,r)}var U0=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;$.promisify=function(r){if(typeof r!=="function")throw TypeError('The "original" argument must be of type Function');if(U0&&r[U0]){var n=r[U0];if(typeof n!=="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,U0,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){var Z0,p,P=new Promise(function(f,v){Z0=f,p=v}),R=[];for(var c=0;c<arguments.length;c++)R.push(arguments[c]);R.push(function(f,v){if(f)p(f);else Z0(v)});try{r.apply(this,R)}catch(f){p(f)}return P}if(Object.setPrototypeOf(n,Object.getPrototypeOf(r)),U0)Object.defineProperty(n,U0,{value:n,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(n,U(r))},$.promisify.custom=U0;function L0(_,r){if(!_){var n=Error("Promise was rejected with a falsy value");n.reason=_,_=n}return r(_)}function i(_){if(typeof _!=="function")throw TypeError('The "original" argument must be of type Function');function r(){var n=[];for(var Z0=0;Z0<arguments.length;Z0++)n.push(arguments[Z0]);var p=n.pop();if(typeof p!=="function")throw TypeError("The last argument must be of type Function");var P=this,R=function(){return p.apply(P,arguments)};_.apply(this,n).then(function(c){j0.nextTick(R.bind(null,null,c))},function(c){j0.nextTick(L0.bind(null,c,R))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(_)),Object.defineProperties(r,U(_)),r}$.callbackify=i}(g8),g8}var y6,tY;function eq(){if(tY)return y6;tY=1;function $(C,H){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);H&&(V=V.filter(function(j){return Object.getOwnPropertyDescriptor(C,j).enumerable})),O.push.apply(O,V)}return O}function U(C){for(var H=1;H<arguments.length;H++){var O=arguments[H]!=null?arguments[H]:{};H%2?$(Object(O),!0).forEach(function(V){Y(C,V,O[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):$(Object(O)).forEach(function(V){Object.defineProperty(C,V,Object.getOwnPropertyDescriptor(O,V))})}return C}function Y(C,H,O){if(H=X(H),H in C)Object.defineProperty(C,H,{value:O,enumerable:!0,configurable:!0,writable:!0});else C[H]=O;return C}function Z(C,H){if(!(C instanceof H))throw TypeError("Cannot call a class as a function")}function J(C,H){for(var O=0;O<H.length;O++){var V=H[O];if(V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V)V.writable=!0;Object.defineProperty(C,X(V.key),V)}}function G(C,H,O){if(H)J(C.prototype,H);return Object.defineProperty(C,"prototype",{writable:!1}),C}function X(C){var H=Q(C,"string");return typeof H==="symbol"?H:String(H)}function Q(C,H){if(typeof C!=="object"||C===null)return C;var O=C[Symbol.toPrimitive];if(O!==void 0){var V=O.call(C,H);if(typeof V!=="object")return V;throw TypeError("@@toPrimitive must return a primitive value.")}return String(C)}var B=o1(),F=B.Buffer,z=IQ(),W=z.inspect,k=W&&W.custom||"inspect";function D(C,H,O){F.prototype.copy.call(C,H,O)}return y6=function(){function C(){Z(this,C),this.head=null,this.tail=null,this.length=0}return G(C,[{key:"push",value:function(O){var V={data:O,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length}},{key:"unshift",value:function(O){var V={data:O,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var O=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,O}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(O){if(this.length===0)return"";var V=this.head,j=""+V.data;while(V=V.next)j+=O+V.data;return j}},{key:"concat",value:function(O){if(this.length===0)return F.alloc(0);var V=F.allocUnsafe(O>>>0),j=this.head,M=0;while(j)D(j.data,V,M),M+=j.data.length,j=j.next;return V}},{key:"consume",value:function(O,V){var j;if(O<this.head.data.length)j=this.head.data.slice(0,O),this.head.data=this.head.data.slice(O);else if(O===this.head.data.length)j=this.shift();else j=V?this._getString(O):this._getBuffer(O);return j}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(O){var V=this.head,j=1,M=V.data;O-=M.length;while(V=V.next){var L=V.data,A=O>L.length?L.length:O;if(A===L.length)M+=L;else M+=L.slice(0,O);if(O-=A,O===0){if(A===L.length)if(++j,V.next)this.head=V.next;else this.head=this.tail=null;else this.head=V,V.data=L.slice(A);break}++j}return this.length-=j,M}},{key:"_getBuffer",value:function(O){var V=F.allocUnsafe(O),j=this.head,M=1;j.data.copy(V),O-=j.data.length;while(j=j.next){var L=j.data,A=O>L.length?L.length:O;if(L.copy(V,V.length-O,0,A),O-=A,O===0){if(A===L.length)if(++M,j.next)this.head=j.next;else this.head=this.tail=null;else this.head=j,j.data=L.slice(A);break}++M}return this.length-=M,V}},{key:k,value:function(O,V){return W(this,U(U({},V),{},{depth:0,customInspect:!1}))}}]),C}(),y6}var b6,eY;function wQ(){if(eY)return b6;eY=1;function $(X,Q){var B=this,F=this._readableState&&this._readableState.destroyed,z=this._writableState&&this._writableState.destroyed;if(F||z){if(Q)Q(X);else if(X){if(!this._writableState)j0.nextTick(J,this,X);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,j0.nextTick(J,this,X)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(X||null,function(W){if(!Q&&W)if(!B._writableState)j0.nextTick(U,B,W);else if(!B._writableState.errorEmitted)B._writableState.errorEmitted=!0,j0.nextTick(U,B,W);else j0.nextTick(Y,B);else if(Q)j0.nextTick(Y,B),Q(W);else j0.nextTick(Y,B)}),this}function U(X,Q){J(X,Q),Y(X)}function Y(X){if(X._writableState&&!X._writableState.emitClose)return;if(X._readableState&&!X._readableState.emitClose)return;X.emit("close")}function Z(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(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 J(X,Q){X.emit("error",Q)}function G(X,Q){var{_readableState:B,_writableState:F}=X;if(B&&B.autoDestroy||F&&F.autoDestroy)X.destroy(Q);else X.emit("error",Q)}return b6={destroy:$,undestroy:Z,errorOrDestroy:G},b6}var g6={},$Z;function i2(){if($Z)return g6;$Z=1;function $(Q,B){Q.prototype=Object.create(B.prototype),Q.prototype.constructor=Q,Q.__proto__=B}var U={};function Y(Q,B,F){if(!F)F=Error;function z(k,D,C){if(typeof B==="string")return B;else return B(k,D,C)}var W=function(k){$(D,k);function D(C,H,O){return k.call(this,z(C,H,O))||this}return D}(F);W.prototype.name=F.name,W.prototype.code=Q,U[Q]=W}function Z(Q,B){if(Array.isArray(Q)){var F=Q.length;if(Q=Q.map(function(z){return String(z)}),F>2)return"one of ".concat(B," ").concat(Q.slice(0,F-1).join(", "),", or ")+Q[F-1];else if(F===2)return"one of ".concat(B," ").concat(Q[0]," or ").concat(Q[1]);else return"of ".concat(B," ").concat(Q[0])}else return"of ".concat(B," ").concat(String(Q))}function J(Q,B,F){return Q.substr(0,B.length)===B}function G(Q,B,F){if(F===void 0||F>Q.length)F=Q.length;return Q.substring(F-B.length,F)===B}function X(Q,B,F){if(typeof F!=="number")F=0;if(F+B.length>Q.length)return!1;else return Q.indexOf(B,F)!==-1}return Y("ERR_INVALID_OPT_VALUE",function(Q,B){return'The value "'+B+'" is invalid for option "'+Q+'"'},TypeError),Y("ERR_INVALID_ARG_TYPE",function(Q,B,F){var z;if(typeof B==="string"&&J(B,"not "))z="must not be",B=B.replace(/^not /,"");else z="must be";var W;if(G(Q," argument"))W="The ".concat(Q," ").concat(z," ").concat(Z(B,"type"));else{var k=X(Q,".")?"property":"argument";W='The "'.concat(Q,'" ').concat(k," ").concat(z," ").concat(Z(B,"type"))}return W+=". Received type ".concat(typeof F),W},TypeError),Y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Y("ERR_METHOD_NOT_IMPLEMENTED",function(Q){return"The "+Q+" method is not implemented"}),Y("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Y("ERR_STREAM_DESTROYED",function(Q){return"Cannot call "+Q+" after a stream was destroyed"}),Y("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Y("ERR_STREAM_WRITE_AFTER_END","write after end"),Y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Y("ERR_UNKNOWN_ENCODING",function(Q){return"Unknown encoding: "+Q},TypeError),Y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g6.codes=U,g6}var x6,UZ;function WQ(){if(UZ)return x6;UZ=1;var $=i2().codes.ERR_INVALID_OPT_VALUE;function U(Z,J,G){return Z.highWaterMark!=null?Z.highWaterMark:J?Z[G]:null}function Y(Z,J,G,X){var Q=U(J,X,G);if(Q!=null){if(!(isFinite(Q)&&Math.floor(Q)===Q)||Q<0){var B=X?G:"highWaterMark";throw new $(B,Q)}return Math.floor(Q)}return Z.objectMode?16:16384}return x6={getHighWaterMark:Y},x6}var f6,YZ;function $X(){if(YZ)return f6;YZ=1,f6=$;function $(Y,Z){if(U("noDeprecation"))return Y;var J=!1;function G(){if(!J){if(U("throwDeprecation"))throw Error(Z);else if(U("traceDeprecation"))console.trace(Z);else console.warn(Z);J=!0}return Y.apply(this,arguments)}return G}function U(Y){try{if(!c0.localStorage)return!1}catch(J){return!1}var Z=c0.localStorage[Y];if(Z==null)return!1;return String(Z).toLowerCase()==="true"}return f6}var h6,ZZ;function HQ(){if(ZZ)return h6;ZZ=1,h6=d;function $(p){var P=this;this.next=null,this.entry=null,this.finish=function(){Z0(P,p)}}var U;d.WritableState=y;var Y={deprecate:$X()},Z=ZQ(),J=o1().Buffer,G=(typeof c0<"u"?c0:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function X(p){return J.from(p)}function Q(p){return J.isBuffer(p)||p instanceof G}var B=wQ(),F=WQ(),z=F.getHighWaterMark,W=i2().codes,k=W.ERR_INVALID_ARG_TYPE,D=W.ERR_METHOD_NOT_IMPLEMENTED,C=W.ERR_MULTIPLE_CALLBACK,H=W.ERR_STREAM_CANNOT_PIPE,O=W.ERR_STREAM_DESTROYED,V=W.ERR_STREAM_NULL_VALUES,j=W.ERR_STREAM_WRITE_AFTER_END,M=W.ERR_UNKNOWN_ENCODING,L=B.errorOrDestroy;R2()(d,Z);function A(){}function y(p,P,R){if(U=U||l2(),p=p||{},typeof R!=="boolean")R=P instanceof U;if(this.objectMode=!!p.objectMode,R)this.objectMode=this.objectMode||!!p.writableObjectMode;this.highWaterMark=z(this,p,"writableHighWaterMark",R),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=p.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){$0(P,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=p.emitClose!==!1,this.autoDestroy=!!p.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new $(this)}y.prototype.getBuffer=function(){var P=this.bufferedRequest,R=[];while(P)R.push(P),P=P.next;return R},function(){try{Object.defineProperty(y.prototype,"buffer",{get:Y.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(p){}}();var g;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")g=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(P){if(g.call(this,P))return!0;if(this!==d)return!1;return P&&P._writableState instanceof y}});else g=function(P){return P instanceof this};function d(p){U=U||l2();var P=this instanceof U;if(!P&&!g.call(d,this))return new d(p);if(this._writableState=new y(p,this,P),this.writable=!0,p){if(typeof p.write==="function")this._write=p.write;if(typeof p.writev==="function")this._writev=p.writev;if(typeof p.destroy==="function")this._destroy=p.destroy;if(typeof p.final==="function")this._final=p.final}Z.call(this)}d.prototype.pipe=function(){L(this,new H)};function E(p,P){var R=new j;L(p,R),j0.nextTick(P,R)}function s(p,P,R,c){var f;if(R===null)f=new V;else if(typeof R!=="string"&&!P.objectMode)f=new k("chunk",["string","Buffer"],R);if(f)return L(p,f),j0.nextTick(c,f),!1;return!0}d.prototype.write=function(p,P,R){var c=this._writableState,f=!1,v=!c.objectMode&&Q(p);if(v&&!J.isBuffer(p))p=X(p);if(typeof P==="function")R=P,P=null;if(v)P="buffer";else if(!P)P=c.defaultEncoding;if(typeof R!=="function")R=A;if(c.ending)E(this,R);else if(v||s(this,c,p,R))c.pendingcb++,f=S(this,c,v,p,P,R);return f},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var p=this._writableState;if(p.corked){if(p.corked--,!p.writing&&!p.corked&&!p.bufferProcessing&&p.bufferedRequest)U0(this,p)}},d.prototype.setDefaultEncoding=function(P){if(typeof P==="string")P=P.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new M(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function V0(p,P,R){if(!p.objectMode&&p.decodeStrings!==!1&&typeof P==="string")P=J.from(P,R);return P}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(p,P,R,c,f,v){if(!R){var b=V0(P,c,f);if(c!==b)R=!0,f="buffer",c=b}var e=P.objectMode?1:c.length;P.length+=e;var I=P.length<P.highWaterMark;if(!I)P.needDrain=!0;if(P.writing||P.corked){var t=P.lastBufferedRequest;if(P.lastBufferedRequest={chunk:c,encoding:f,isBuf:R,callback:v,next:null},t)t.next=P.lastBufferedRequest;else P.bufferedRequest=P.lastBufferedRequest;P.bufferedRequestCount+=1}else h(p,P,!1,e,c,f,v);return I}function h(p,P,R,c,f,v,b){if(P.writelen=c,P.writecb=b,P.writing=!0,P.sync=!0,P.destroyed)P.onwrite(new O("write"));else if(R)p._writev(f,P.onwrite);else p._write(f,v,P.onwrite);P.sync=!1}function N(p,P,R,c,f){if(--P.pendingcb,R)j0.nextTick(f,c),j0.nextTick(r,p,P),p._writableState.errorEmitted=!0,L(p,c);else f(c),p._writableState.errorEmitted=!0,L(p,c),r(p,P)}function a(p){p.writing=!1,p.writecb=null,p.length-=p.writelen,p.writelen=0}function $0(p,P){var R=p._writableState,c=R.sync,f=R.writecb;if(typeof f!=="function")throw new C;if(a(R),P)N(p,R,c,P,f);else{var v=L0(R)||p.destroyed;if(!v&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest)U0(p,R);if(c)j0.nextTick(m,p,R,v,f);else m(p,R,v,f)}}function m(p,P,R,c){if(!R)J0(p,P);P.pendingcb--,c(),r(p,P)}function J0(p,P){if(P.length===0&&P.needDrain)P.needDrain=!1,p.emit("drain")}function U0(p,P){P.bufferProcessing=!0;var R=P.bufferedRequest;if(p._writev&&R&&R.next){var c=P.bufferedRequestCount,f=Array(c),v=P.corkedRequestsFree;v.entry=R;var b=0,e=!0;while(R){if(f[b]=R,!R.isBuf)e=!1;R=R.next,b+=1}if(f.allBuffers=e,h(p,P,!0,P.length,f,"",v.finish),P.pendingcb++,P.lastBufferedRequest=null,v.next)P.corkedRequestsFree=v.next,v.next=null;else P.corkedRequestsFree=new $(P);P.bufferedRequestCount=0}else{while(R){var{chunk:I,encoding:t,callback:T}=R,K=P.objectMode?1:I.length;if(h(p,P,!1,K,I,t,T),R=R.next,P.bufferedRequestCount--,P.writing)break}if(R===null)P.lastBufferedRequest=null}P.bufferedRequest=R,P.bufferProcessing=!1}d.prototype._write=function(p,P,R){R(new D("_write()"))},d.prototype._writev=null,d.prototype.end=function(p,P,R){var c=this._writableState;if(typeof p==="function")R=p,p=null,P=null;else if(typeof P==="function")R=P,P=null;if(p!==null&&p!==void 0)this.write(p,P);if(c.corked)c.corked=1,this.uncork();if(!c.ending)n(this,c,R);return this},Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L0(p){return p.ending&&p.length===0&&p.bufferedRequest===null&&!p.finished&&!p.writing}function i(p,P){p._final(function(R){if(P.pendingcb--,R)L(p,R);P.prefinished=!0,p.emit("prefinish"),r(p,P)})}function _(p,P){if(!P.prefinished&&!P.finalCalled)if(typeof p._final==="function"&&!P.destroyed)P.pendingcb++,P.finalCalled=!0,j0.nextTick(i,p,P);else P.prefinished=!0,p.emit("prefinish")}function r(p,P){var R=L0(P);if(R){if(_(p,P),P.pendingcb===0){if(P.finished=!0,p.emit("finish"),P.autoDestroy){var c=p._readableState;if(!c||c.autoDestroy&&c.endEmitted)p.destroy()}}}return R}function n(p,P,R){if(P.ending=!0,r(p,P),R)if(P.finished)j0.nextTick(R);else p.once("finish",R);P.ended=!0,p.writable=!1}function Z0(p,P,R){var c=p.entry;p.entry=null;while(c){var f=c.callback;P.pendingcb--,f(R),c=c.next}P.corkedRequestsFree.next=p}return Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(P){if(!this._writableState)return;this._writableState.destroyed=P}}),d.prototype.destroy=B.destroy,d.prototype._undestroy=B.undestroy,d.prototype._destroy=function(p,P){P(p)},h6}var u6,QZ;function l2(){if(QZ)return u6;QZ=1;var $=Object.keys||function(F){var z=[];for(var W in F)z.push(W);return z};u6=X;var U=jQ(),Y=HQ();R2()(X,U);{var Z=$(Y.prototype);for(var J=0;J<Z.length;J++){var G=Z[J];if(!X.prototype[G])X.prototype[G]=Y.prototype[G]}}function X(F){if(!(this instanceof X))return new X(F);if(U.call(this,F),Y.call(this,F),this.allowHalfOpen=!0,F){if(F.readable===!1)this.readable=!1;if(F.writable===!1)this.writable=!1;if(F.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",Q)}}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(X.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Q(){if(this._writableState.ended)return;j0.nextTick(B,this)}function B(F){F.end()}return Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(z){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=z,this._writableState.destroyed=z}}),u6}var d6={},v1={exports:{}},JZ;function UX(){if(JZ)return v1.exports;return JZ=1,function($,U){var Y=o1(),Z=Y.Buffer;function J(X,Q){for(var B in X)Q[B]=X[B]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)$.exports=Y;else J(Y,U),U.Buffer=G;function G(X,Q,B){return Z(X,Q,B)}J(Z,G),G.from=function(X,Q,B){if(typeof X==="number")throw TypeError("Argument must not be a number");return Z(X,Q,B)},G.alloc=function(X,Q,B){if(typeof X!=="number")throw TypeError("Argument must be a number");var F=Z(X);if(Q!==void 0)if(typeof B==="string")F.fill(Q,B);else F.fill(Q);else F.fill(0);return F},G.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return Z(X)},G.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return Y.SlowBuffer(X)}}(v1,v1.exports),v1.exports}var GZ;function R9(){if(GZ)return d6;GZ=1;var $=UX().Buffer,U=$.isEncoding||function(V){switch(V=""+V,V&&V.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 Y(V){if(!V)return"utf8";var j;while(!0)switch(V){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 V;default:if(j)return;V=(""+V).toLowerCase(),j=!0}}function Z(V){var j=Y(V);if(typeof j!=="string"&&($.isEncoding===U||!U(V)))throw Error("Unknown encoding: "+V);return j||V}d6.StringDecoder=J;function J(V){this.encoding=Z(V);var j;switch(this.encoding){case"utf16le":this.text=W,this.end=k,j=4;break;case"utf8":this.fillLast=B,j=4;break;case"base64":this.text=D,this.end=C,j=3;break;default:this.write=H,this.end=O;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$.allocUnsafe(j)}J.prototype.write=function(V){if(V.length===0)return"";var j,M;if(this.lastNeed){if(j=this.fillLast(V),j===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;if(M<V.length)return j?j+this.text(V,M):this.text(V,M);return j||""},J.prototype.end=z,J.prototype.text=F,J.prototype.fillLast=function(V){if(this.lastNeed<=V.length)return V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,V.length),this.lastNeed-=V.length};function G(V){if(V<=127)return 0;else if(V>>5===6)return 2;else if(V>>4===14)return 3;else if(V>>3===30)return 4;return V>>6===2?-1:-2}function X(V,j,M){var L=j.length-1;if(L<M)return 0;var A=G(j[L]);if(A>=0){if(A>0)V.lastNeed=A-1;return A}if(--L<M||A===-2)return 0;if(A=G(j[L]),A>=0){if(A>0)V.lastNeed=A-2;return A}if(--L<M||A===-2)return 0;if(A=G(j[L]),A>=0){if(A>0)if(A===2)A=0;else V.lastNeed=A-3;return A}return 0}function Q(V,j,M){if((j[0]&192)!==128)return V.lastNeed=0,"�";if(V.lastNeed>1&&j.length>1){if((j[1]&192)!==128)return V.lastNeed=1,"�";if(V.lastNeed>2&&j.length>2){if((j[2]&192)!==128)return V.lastNeed=2,"�"}}}function B(V){var j=this.lastTotal-this.lastNeed,M=Q(this,V);if(M!==void 0)return M;if(this.lastNeed<=V.length)return V.copy(this.lastChar,j,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,j,0,V.length),this.lastNeed-=V.length}function F(V,j){var M=X(this,V,j);if(!this.lastNeed)return V.toString("utf8",j);this.lastTotal=M;var L=V.length-(M-this.lastNeed);return V.copy(this.lastChar,0,L),V.toString("utf8",j,L)}function z(V){var j=V&&V.length?this.write(V):"";if(this.lastNeed)return j+"�";return j}function W(V,j){if((V.length-j)%2===0){var M=V.toString("utf16le",j);if(M){var L=M.charCodeAt(M.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=V[V.length-1],V.toString("utf16le",j,V.length-1)}function k(V){var j=V&&V.length?this.write(V):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return j+this.lastChar.toString("utf16le",0,M)}return j}function D(V,j){var M=(V.length-j)%3;if(M===0)return V.toString("base64",j);if(this.lastNeed=3-M,this.lastTotal=3,M===1)this.lastChar[0]=V[V.length-1];else this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1];return V.toString("base64",j,V.length-M)}function C(V){var j=V&&V.length?this.write(V):"";if(this.lastNeed)return j+this.lastChar.toString("base64",0,3-this.lastNeed);return j}function H(V){return V.toString(this.encoding)}function O(V){return V&&V.length?this.write(V):""}return d6}var c6,KZ;function c9(){if(KZ)return c6;KZ=1;var $=i2().codes.ERR_STREAM_PREMATURE_CLOSE;function U(G){var X=!1;return function(){if(X)return;X=!0;for(var Q=arguments.length,B=Array(Q),F=0;F<Q;F++)B[F]=arguments[F];G.apply(this,B)}}function Y(){}function Z(G){return G.setHeader&&typeof G.abort==="function"}function J(G,X,Q){if(typeof X==="function")return J(G,null,X);if(!X)X={};Q=U(Q||Y);var B=X.readable||X.readable!==!1&&G.readable,F=X.writable||X.writable!==!1&&G.writable,z=function(){if(!G.writable)k()},W=G._writableState&&G._writableState.finished,k=function(){if(F=!1,W=!0,!B)Q.call(G)},D=G._readableState&&G._readableState.endEmitted,C=function(){if(B=!1,D=!0,!F)Q.call(G)},H=function(M){Q.call(G,M)},O=function(){var M;if(B&&!D){if(!G._readableState||!G._readableState.ended)M=new $;return Q.call(G,M)}if(F&&!W){if(!G._writableState||!G._writableState.ended)M=new $;return Q.call(G,M)}},V=function(){G.req.on("finish",k)};if(Z(G))if(G.on("complete",k),G.on("abort",O),G.req)V();else G.on("request",V);else if(F&&!G._writableState)G.on("end",z),G.on("close",z);if(G.on("end",C),G.on("finish",k),X.error!==!1)G.on("error",H);return G.on("close",O),function(){if(G.removeListener("complete",k),G.removeListener("abort",O),G.removeListener("request",V),G.req)G.req.removeListener("finish",k);G.removeListener("end",z),G.removeListener("close",z),G.removeListener("finish",k),G.removeListener("end",C),G.removeListener("error",H),G.removeListener("close",O)}}return c6=J,c6}var m6,qZ;function YX(){if(qZ)return m6;qZ=1;var $;function U(M,L,A){if(L=Y(L),L in M)Object.defineProperty(M,L,{value:A,enumerable:!0,configurable:!0,writable:!0});else M[L]=A;return M}function Y(M){var L=Z(M,"string");return typeof L==="symbol"?L:String(L)}function Z(M,L){if(typeof M!=="object"||M===null)return M;var A=M[Symbol.toPrimitive];if(A!==void 0){var y=A.call(M,L);if(typeof y!=="object")return y;throw TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(M)}var J=c9(),G=Symbol("lastResolve"),X=Symbol("lastReject"),Q=Symbol("error"),B=Symbol("ended"),F=Symbol("lastPromise"),z=Symbol("handlePromise"),W=Symbol("stream");function k(M,L){return{value:M,done:L}}function D(M){var L=M[G];if(L!==null){var A=M[W].read();if(A!==null)M[F]=null,M[G]=null,M[X]=null,L(k(A,!1))}}function C(M){j0.nextTick(D,M)}function H(M,L){return function(A,y){M.then(function(){if(L[B]){A(k(void 0,!0));return}L[z](A,y)},y)}}var O=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf(($={get stream(){return this[W]},next:function(){var L=this,A=this[Q];if(A!==null)return Promise.reject(A);if(this[B])return Promise.resolve(k(void 0,!0));if(this[W].destroyed)return new Promise(function(E,s){j0.nextTick(function(){if(L[Q])s(L[Q]);else E(k(void 0,!0))})});var y=this[F],g;if(y)g=new Promise(H(y,this));else{var d=this[W].read();if(d!==null)return Promise.resolve(k(d,!1));g=new Promise(this[z])}return this[F]=g,g}},U($,Symbol.asyncIterator,function(){return this}),U($,"return",function(){var L=this;return new Promise(function(A,y){L[W].destroy(null,function(g){if(g){y(g);return}A(k(void 0,!0))})})}),$),O),j=function(L){var A,y=Object.create(V,(A={},U(A,W,{value:L,writable:!0}),U(A,G,{value:null,writable:!0}),U(A,X,{value:null,writable:!0}),U(A,Q,{value:null,writable:!0}),U(A,B,{value:L._readableState.endEmitted,writable:!0}),U(A,z,{value:function(d,E){var s=y[W].read();if(s)y[F]=null,y[G]=null,y[X]=null,d(k(s,!1));else y[G]=d,y[X]=E},writable:!0}),A));return y[F]=null,J(L,function(g){if(g&&g.code!=="ERR_STREAM_PREMATURE_CLOSE"){var d=y[X];if(d!==null)y[F]=null,y[G]=null,y[X]=null,d(g);y[Q]=g;return}var E=y[G];if(E!==null)y[F]=null,y[G]=null,y[X]=null,E(k(void 0,!0));y[B]=!0}),L.on("readable",C.bind(null,y)),y};return m6=j,m6}var l6,XZ;function ZX(){if(XZ)return l6;return XZ=1,l6=function(){throw Error("Readable.from is not available in the browser")},l6}var a6,VZ;function jQ(){if(VZ)return a6;VZ=1,a6=E;var $;E.ReadableState=d,x9().EventEmitter;var U=function(b,e){return b.listeners(e).length},Y=ZQ(),Z=o1().Buffer,J=(typeof c0<"u"?c0:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function G(v){return Z.from(v)}function X(v){return Z.isBuffer(v)||v instanceof J}var Q=IQ(),B;if(Q&&Q.debuglog)B=Q.debuglog("stream");else B=function(){};var F=eq(),z=wQ(),W=WQ(),k=W.getHighWaterMark,D=i2().codes,C=D.ERR_INVALID_ARG_TYPE,H=D.ERR_STREAM_PUSH_AFTER_EOF,O=D.ERR_METHOD_NOT_IMPLEMENTED,V=D.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,j,M,L;R2()(E,Y);var A=z.errorOrDestroy,y=["error","close","destroy","pause","resume"];function g(v,b,e){if(typeof v.prependListener==="function")return v.prependListener(b,e);if(!v._events||!v._events[b])v.on(b,e);else if(Array.isArray(v._events[b]))v._events[b].unshift(e);else v._events[b]=[e,v._events[b]]}function d(v,b,e){if($=$||l2(),v=v||{},typeof e!=="boolean")e=b instanceof $;if(this.objectMode=!!v.objectMode,e)this.objectMode=this.objectMode||!!v.readableObjectMode;if(this.highWaterMark=k(this,v,"readableHighWaterMark",e),this.buffer=new F,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=v.emitClose!==!1,this.autoDestroy=!!v.autoDestroy,this.destroyed=!1,this.defaultEncoding=v.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,v.encoding){if(!j)j=R9().StringDecoder;this.decoder=new j(v.encoding),this.encoding=v.encoding}}function E(v){if($=$||l2(),!(this instanceof E))return new E(v);var b=this instanceof $;if(this._readableState=new d(v,this,b),this.readable=!0,v){if(typeof v.read==="function")this._read=v.read;if(typeof v.destroy==="function")this._destroy=v.destroy}Y.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(b){if(!this._readableState)return;this._readableState.destroyed=b}}),E.prototype.destroy=z.destroy,E.prototype._undestroy=z.undestroy,E.prototype._destroy=function(v,b){b(v)},E.prototype.push=function(v,b){var e=this._readableState,I;if(!e.objectMode){if(typeof v==="string"){if(b=b||e.defaultEncoding,b!==e.encoding)v=Z.from(v,b),b="";I=!0}}else I=!0;return s(this,v,b,!1,I)},E.prototype.unshift=function(v){return s(this,v,null,!0,!1)};function s(v,b,e,I,t){B("readableAddChunk",b);var T=v._readableState;if(b===null)T.reading=!1,$0(v,T);else{var K;if(!t)K=S(T,b);if(K)A(v,K);else if(T.objectMode||b&&b.length>0){if(typeof b!=="string"&&!T.objectMode&&Object.getPrototypeOf(b)!==Z.prototype)b=G(b);if(I)if(T.endEmitted)A(v,new V);else V0(v,T,b,!0);else if(T.ended)A(v,new H);else if(T.destroyed)return!1;else if(T.reading=!1,T.decoder&&!e)if(b=T.decoder.write(b),T.objectMode||b.length!==0)V0(v,T,b,!1);else U0(v,T);else V0(v,T,b,!1)}else if(!I)T.reading=!1,U0(v,T)}return!T.ended&&(T.length<T.highWaterMark||T.length===0)}function V0(v,b,e,I){if(b.flowing&&b.length===0&&!b.sync)b.awaitDrain=0,v.emit("data",e);else{if(b.length+=b.objectMode?1:e.length,I)b.buffer.unshift(e);else b.buffer.push(e);if(b.needReadable)m(v)}U0(v,b)}function S(v,b){var e;if(!X(b)&&typeof b!=="string"&&b!==void 0&&!v.objectMode)e=new C("chunk",["string","Buffer","Uint8Array"],b);return e}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(v){if(!j)j=R9().StringDecoder;var b=new j(v);this._readableState.decoder=b,this._readableState.encoding=this._readableState.decoder.encoding;var e=this._readableState.buffer.head,I="";while(e!==null)I+=b.write(e.data),e=e.next;if(this._readableState.buffer.clear(),I!=="")this._readableState.buffer.push(I);return this._readableState.length=I.length,this};var h=1073741824;function N(v){if(v>=h)v=h;else v--,v|=v>>>1,v|=v>>>2,v|=v>>>4,v|=v>>>8,v|=v>>>16,v++;return v}function a(v,b){if(v<=0||b.length===0&&b.ended)return 0;if(b.objectMode)return 1;if(v!==v)if(b.flowing&&b.length)return b.buffer.head.data.length;else return b.length;if(v>b.highWaterMark)b.highWaterMark=N(v);if(v<=b.length)return v;if(!b.ended)return b.needReadable=!0,0;return b.length}E.prototype.read=function(v){B("read",v),v=parseInt(v,10);var b=this._readableState,e=v;if(v!==0)b.emittedReadable=!1;if(v===0&&b.needReadable&&((b.highWaterMark!==0?b.length>=b.highWaterMark:b.length>0)||b.ended)){if(B("read: emitReadable",b.length,b.ended),b.length===0&&b.ended)R(this);else m(this);return null}if(v=a(v,b),v===0&&b.ended){if(b.length===0)R(this);return null}var I=b.needReadable;if(B("need readable",I),b.length===0||b.length-v<b.highWaterMark)I=!0,B("length less than watermark",I);if(b.ended||b.reading)I=!1,B("reading or ended",I);else if(I){if(B("do read"),b.reading=!0,b.sync=!0,b.length===0)b.needReadable=!0;if(this._read(b.highWaterMark),b.sync=!1,!b.reading)v=a(e,b)}var t;if(v>0)t=P(v,b);else t=null;if(t===null)b.needReadable=b.length<=b.highWaterMark,v=0;else b.length-=v,b.awaitDrain=0;if(b.length===0){if(!b.ended)b.needReadable=!0;if(e!==v&&b.ended)R(this)}if(t!==null)this.emit("data",t);return t};function $0(v,b){if(B("onEofChunk"),b.ended)return;if(b.decoder){var e=b.decoder.end();if(e&&e.length)b.buffer.push(e),b.length+=b.objectMode?1:e.length}if(b.ended=!0,b.sync)m(v);else if(b.needReadable=!1,!b.emittedReadable)b.emittedReadable=!0,J0(v)}function m(v){var b=v._readableState;if(B("emitReadable",b.needReadable,b.emittedReadable),b.needReadable=!1,!b.emittedReadable)B("emitReadable",b.flowing),b.emittedReadable=!0,j0.nextTick(J0,v)}function J0(v){var b=v._readableState;if(B("emitReadable_",b.destroyed,b.length,b.ended),!b.destroyed&&(b.length||b.ended))v.emit("readable"),b.emittedReadable=!1;b.needReadable=!b.flowing&&!b.ended&&b.length<=b.highWaterMark,p(v)}function U0(v,b){if(!b.readingMore)b.readingMore=!0,j0.nextTick(L0,v,b)}function L0(v,b){while(!b.reading&&!b.ended&&(b.length<b.highWaterMark||b.flowing&&b.length===0)){var e=b.length;if(B("maybeReadMore read 0"),v.read(0),e===b.length)break}b.readingMore=!1}E.prototype._read=function(v){A(this,new O("_read()"))},E.prototype.pipe=function(v,b){var e=this,I=this._readableState;switch(I.pipesCount){case 0:I.pipes=v;break;case 1:I.pipes=[I.pipes,v];break;default:I.pipes.push(v);break}I.pipesCount+=1,B("pipe count=%d opts=%j",I.pipesCount,b);var t=(!b||b.end!==!1)&&v!==j0.stdout&&v!==j0.stderr,T=t?q:M0;if(I.endEmitted)j0.nextTick(T);else e.once("end",T);v.on("unpipe",K);function K(w0,H0){if(B("onunpipe"),w0===e){if(H0&&H0.hasUnpiped===!1)H0.hasUnpiped=!0,l()}}function q(){B("onend"),v.end()}var w=i(e);v.on("drain",w);var x=!1;function l(){if(B("cleanup"),v.removeListener("close",q0),v.removeListener("finish",K0),v.removeListener("drain",w),v.removeListener("error",Q0),v.removeListener("unpipe",K),e.removeListener("end",q),e.removeListener("end",M0),e.removeListener("data",u),x=!0,I.awaitDrain&&(!v._writableState||v._writableState.needDrain))w()}e.on("data",u);function u(w0){B("ondata");var H0=v.write(w0);if(B("dest.write",H0),H0===!1){if((I.pipesCount===1&&I.pipes===v||I.pipesCount>1&&f(I.pipes,v)!==-1)&&!x)B("false write response, pause",I.awaitDrain),I.awaitDrain++;e.pause()}}function Q0(w0){if(B("onerror",w0),M0(),v.removeListener("error",Q0),U(v,"error")===0)A(v,w0)}g(v,"error",Q0);function q0(){v.removeListener("finish",K0),M0()}v.once("close",q0);function K0(){B("onfinish"),v.removeListener("close",q0),M0()}v.once("finish",K0);function M0(){B("unpipe"),e.unpipe(v)}if(v.emit("pipe",e),!I.flowing)B("pipe resume"),e.resume();return v};function i(v){return function(){var e=v._readableState;if(B("pipeOnDrain",e.awaitDrain),e.awaitDrain)e.awaitDrain--;if(e.awaitDrain===0&&U(v,"data"))e.flowing=!0,p(v)}}E.prototype.unpipe=function(v){var b=this._readableState,e={hasUnpiped:!1};if(b.pipesCount===0)return this;if(b.pipesCount===1){if(v&&v!==b.pipes)return this;if(!v)v=b.pipes;if(b.pipes=null,b.pipesCount=0,b.flowing=!1,v)v.emit("unpipe",this,e);return this}if(!v){var{pipes:I,pipesCount:t}=b;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var T=0;T<t;T++)I[T].emit("unpipe",this,{hasUnpiped:!1});return this}var K=f(b.pipes,v);if(K===-1)return this;if(b.pipes.splice(K,1),b.pipesCount-=1,b.pipesCount===1)b.pipes=b.pipes[0];return v.emit("unpipe",this,e),this},E.prototype.on=function(v,b){var e=Y.prototype.on.call(this,v,b),I=this._readableState;if(v==="data"){if(I.readableListening=this.listenerCount("readable")>0,I.flowing!==!1)this.resume()}else if(v==="readable"){if(!I.endEmitted&&!I.readableListening){if(I.readableListening=I.needReadable=!0,I.flowing=!1,I.emittedReadable=!1,B("on readable",I.length,I.reading),I.length)m(this);else if(!I.reading)j0.nextTick(r,this)}}return e},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(v,b){var e=Y.prototype.removeListener.call(this,v,b);if(v==="readable")j0.nextTick(_,this);return e},E.prototype.removeAllListeners=function(v){var b=Y.prototype.removeAllListeners.apply(this,arguments);if(v==="readable"||v===void 0)j0.nextTick(_,this);return b};function _(v){var b=v._readableState;if(b.readableListening=v.listenerCount("readable")>0,b.resumeScheduled&&!b.paused)b.flowing=!0;else if(v.listenerCount("data")>0)v.resume()}function r(v){B("readable nexttick read 0"),v.read(0)}E.prototype.resume=function(){var v=this._readableState;if(!v.flowing)B("resume"),v.flowing=!v.readableListening,n(this,v);return v.paused=!1,this};function n(v,b){if(!b.resumeScheduled)b.resumeScheduled=!0,j0.nextTick(Z0,v,b)}function Z0(v,b){if(B("resume",b.reading),!b.reading)v.read(0);if(b.resumeScheduled=!1,v.emit("resume"),p(v),b.flowing&&!b.reading)v.read(0)}E.prototype.pause=function(){if(B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)B("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function p(v){var b=v._readableState;B("flow",b.flowing);while(b.flowing&&v.read()!==null);}if(E.prototype.wrap=function(v){var b=this,e=this._readableState,I=!1;v.on("end",function(){if(B("wrapped end"),e.decoder&&!e.ended){var K=e.decoder.end();if(K&&K.length)b.push(K)}b.push(null)}),v.on("data",function(K){if(B("wrapped data"),e.decoder)K=e.decoder.write(K);if(e.objectMode&&(K===null||K===void 0))return;else if(!e.objectMode&&(!K||!K.length))return;var q=b.push(K);if(!q)I=!0,v.pause()});for(var t in v)if(this[t]===void 0&&typeof v[t]==="function")this[t]=function(q){return function(){return v[q].apply(v,arguments)}}(t);for(var T=0;T<y.length;T++)v.on(y[T],this.emit.bind(this,y[T]));return this._read=function(K){if(B("wrapped _read",K),I)I=!1,v.resume()},this},typeof Symbol==="function")E.prototype[Symbol.asyncIterator]=function(){if(M===void 0)M=YX();return M(this)};Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(b){if(this._readableState)this._readableState.flowing=b}}),E._fromList=P,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function P(v,b){if(b.length===0)return null;var e;if(b.objectMode)e=b.buffer.shift();else if(!v||v>=b.length){if(b.decoder)e=b.buffer.join("");else if(b.buffer.length===1)e=b.buffer.first();else e=b.buffer.concat(b.length);b.buffer.clear()}else e=b.buffer.consume(v,b.decoder);return e}function R(v){var b=v._readableState;if(B("endReadable",b.endEmitted),!b.endEmitted)b.ended=!0,j0.nextTick(c,b,v)}function c(v,b){if(B("endReadableNT",v.endEmitted,v.length),!v.endEmitted&&v.length===0){if(v.endEmitted=!0,b.readable=!1,b.emit("end"),v.autoDestroy){var e=b._writableState;if(!e||e.autoDestroy&&e.finished)b.destroy()}}}if(typeof Symbol==="function")E.from=function(v,b){if(L===void 0)L=ZX();return L(E,v,b)};function f(v,b){for(var e=0,I=v.length;e<I;e++)if(v[e]===b)return e;return-1}return a6}var p6,BZ;function zQ(){if(BZ)return p6;BZ=1,p6=Q;var $=i2().codes,U=$.ERR_METHOD_NOT_IMPLEMENTED,Y=$.ERR_MULTIPLE_CALLBACK,Z=$.ERR_TRANSFORM_ALREADY_TRANSFORMING,J=$.ERR_TRANSFORM_WITH_LENGTH_0,G=l2();R2()(Q,G);function X(z,W){var k=this._transformState;k.transforming=!1;var D=k.writecb;if(D===null)return this.emit("error",new Y);if(k.writechunk=null,k.writecb=null,W!=null)this.push(W);D(z);var C=this._readableState;if(C.reading=!1,C.needReadable||C.length<C.highWaterMark)this._read(C.highWaterMark)}function Q(z){if(!(this instanceof Q))return new Q(z);if(G.call(this,z),this._transformState={afterTransform:X.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,z){if(typeof z.transform==="function")this._transform=z.transform;if(typeof z.flush==="function")this._flush=z.flush}this.on("prefinish",B)}function B(){var z=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(W,k){F(z,W,k)});else F(this,null,null)}Q.prototype.push=function(z,W){return this._transformState.needTransform=!1,G.prototype.push.call(this,z,W)},Q.prototype._transform=function(z,W,k){k(new U("_transform()"))},Q.prototype._write=function(z,W,k){var D=this._transformState;if(D.writecb=k,D.writechunk=z,D.writeencoding=W,!D.transforming){var C=this._readableState;if(D.needTransform||C.needReadable||C.length<C.highWaterMark)this._read(C.highWaterMark)}},Q.prototype._read=function(z){var W=this._transformState;if(W.writechunk!==null&&!W.transforming)W.transforming=!0,this._transform(W.writechunk,W.writeencoding,W.afterTransform);else W.needTransform=!0},Q.prototype._destroy=function(z,W){G.prototype._destroy.call(this,z,function(k){W(k)})};function F(z,W,k){if(W)return z.emit("error",W);if(k!=null)z.push(k);if(z._writableState.length)throw new J;if(z._transformState.transforming)throw new Z;return z.push(null)}return p6}var i6,LZ;function QX(){if(LZ)return i6;LZ=1,i6=U;var $=zQ();R2()(U,$);function U(Y){if(!(this instanceof U))return new U(Y);$.call(this,Y)}return U.prototype._transform=function(Y,Z,J){J(null,Y)},i6}var r6,MZ;function JX(){if(MZ)return r6;MZ=1;var $;function U(k){var D=!1;return function(){if(D)return;D=!0,k.apply(void 0,arguments)}}var Y=i2().codes,Z=Y.ERR_MISSING_ARGS,J=Y.ERR_STREAM_DESTROYED;function G(k){if(k)throw k}function X(k){return k.setHeader&&typeof k.abort==="function"}function Q(k,D,C,H){H=U(H);var O=!1;if(k.on("close",function(){O=!0}),$===void 0)$=c9();$(k,{readable:D,writable:C},function(j){if(j)return H(j);O=!0,H()});var V=!1;return function(j){if(O)return;if(V)return;if(V=!0,X(k))return k.abort();if(typeof k.destroy==="function")return k.destroy();H(j||new J("pipe"))}}function B(k){k()}function F(k,D){return k.pipe(D)}function z(k){if(!k.length)return G;if(typeof k[k.length-1]!=="function")return G;return k.pop()}function W(){for(var k=arguments.length,D=Array(k),C=0;C<k;C++)D[C]=arguments[C];var H=z(D);if(Array.isArray(D[0]))D=D[0];if(D.length<2)throw new Z("streams");var O,V=D.map(function(j,M){var L=M<D.length-1,A=M>0;return Q(j,L,A,function(y){if(!O)O=y;if(y)V.forEach(B);if(L)return;V.forEach(B),H(O)})});return D.reduce(F)}return r6=W,r6}var s6,IZ;function m9(){if(IZ)return s6;IZ=1,s6=Y;var $=x9().EventEmitter,U=R2();U(Y,$),Y.Readable=jQ(),Y.Writable=HQ(),Y.Duplex=l2(),Y.Transform=zQ(),Y.PassThrough=QX(),Y.finished=c9(),Y.pipeline=JX(),Y.Stream=Y;function Y(){$.call(this)}return Y.prototype.pipe=function(Z,J){var G=this;function X(D){if(Z.writable){if(Z.write(D)===!1&&G.pause)G.pause()}}G.on("data",X);function Q(){if(G.readable&&G.resume)G.resume()}if(Z.on("drain",Q),!Z._isStdio&&(!J||J.end!==!1))G.on("end",F),G.on("close",z);var B=!1;function F(){if(B)return;B=!0,Z.end()}function z(){if(B)return;if(B=!0,typeof Z.destroy==="function")Z.destroy()}function W(D){if(k(),$.listenerCount(this,"error")===0)throw D}G.on("error",W),Z.on("error",W);function k(){G.removeListener("data",X),Z.removeListener("drain",Q),G.removeListener("end",F),G.removeListener("close",z),G.removeListener("error",W),Z.removeListener("error",W),G.removeListener("end",k),G.removeListener("close",k),Z.removeListener("close",k)}return G.on("end",k),G.on("close",k),Z.on("close",k),Z.emit("pipe",G),Z},s6}var wZ;function GX(){if(wZ)return _8;return wZ=1,function($){(function(U){U.parser=function(P,R){return new Z(P,R)},U.SAXParser=Z,U.SAXStream=z,U.createStream=F,U.MAX_BUFFER_LENGTH=65536;var Y=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];U.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Z(P,R){if(!(this instanceof Z))return new Z(P,R);var c=this;if(G(c),c.q=c.c="",c.bufferCheckPosition=U.MAX_BUFFER_LENGTH,c.opt=R||{},c.opt.lowercase=c.opt.lowercase||c.opt.lowercasetags,c.looseCase=c.opt.lowercase?"toLowerCase":"toUpperCase",c.tags=[],c.closed=c.closedRoot=c.sawRoot=!1,c.tag=c.error=null,c.strict=!!P,c.noscript=!!(P||c.opt.noscript),c.state=E.BEGIN,c.strictEntities=c.opt.strictEntities,c.ENTITIES=c.strictEntities?Object.create(U.XML_ENTITIES):Object.create(U.ENTITIES),c.attribList=[],c.opt.xmlns)c.ns=Object.create(H);if(c.trackPosition=c.opt.position!==!1,c.trackPosition)c.position=c.line=c.column=0;V0(c,"onready")}if(!Object.create)Object.create=function(P){function R(){}R.prototype=P;var c=new R;return c};if(!Object.keys)Object.keys=function(P){var R=[];for(var c in P)if(P.hasOwnProperty(c))R.push(c);return R};function J(P){var R=Math.max(U.MAX_BUFFER_LENGTH,10),c=0;for(var f=0,v=Y.length;f<v;f++){var b=P[Y[f]].length;if(b>R)switch(Y[f]){case"textNode":h(P);break;case"cdata":S(P,"oncdata",P.cdata),P.cdata="";break;case"script":S(P,"onscript",P.script),P.script="";break;default:a(P,"Max buffer length exceeded: "+Y[f])}c=Math.max(c,b)}var e=U.MAX_BUFFER_LENGTH-c;P.bufferCheckPosition=e+P.position}function G(P){for(var R=0,c=Y.length;R<c;R++)P[Y[R]]=""}function X(P){if(h(P),P.cdata!=="")S(P,"oncdata",P.cdata),P.cdata="";if(P.script!=="")S(P,"onscript",P.script),P.script=""}Z.prototype={end:function(){$0(this)},write:p,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){X(this)}};var Q;try{Q=m9().Stream}catch(P){Q=function(){}}var B=U.EVENTS.filter(function(P){return P!=="error"&&P!=="end"});function F(P,R){return new z(P,R)}function z(P,R){if(!(this instanceof z))return new z(P,R);Q.apply(this),this._parser=new Z(P,R),this.writable=!0,this.readable=!0;var c=this;this._parser.onend=function(){c.emit("end")},this._parser.onerror=function(f){c.emit("error",f),c._parser.error=null},this._decoder=null,B.forEach(function(f){Object.defineProperty(c,"on"+f,{get:function(){return c._parser["on"+f]},set:function(v){if(!v)return c.removeAllListeners(f),c._parser["on"+f]=v,v;c.on(f,v)},enumerable:!0,configurable:!1})})}z.prototype=Object.create(Q.prototype,{constructor:{value:z}}),z.prototype.write=function(P){if(typeof Buffer==="function"&&typeof Buffer.isBuffer==="function"&&Buffer.isBuffer(P)){if(!this._decoder){var R=R9().StringDecoder;this._decoder=new R("utf8")}P=this._decoder.write(P)}return this._parser.write(P.toString()),this.emit("data",P),!0},z.prototype.end=function(P){if(P&&P.length)this.write(P);return this._parser.end(),!0},z.prototype.on=function(P,R){var c=this;if(!c._parser["on"+P]&&B.indexOf(P)!==-1)c._parser["on"+P]=function(){var f=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);f.splice(0,0,P),c.emit.apply(c,f)};return Q.prototype.on.call(c,P,R)};var W="[CDATA[",k="DOCTYPE",D="http://www.w3.org/XML/1998/namespace",C="http://www.w3.org/2000/xmlns/",H={xml:D,xmlns:C},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,V=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function L(P){return P===" "||P===`
14`||P==="\r"||P==="\t"}function A(P){return P==='"'||P==="'"}function y(P){return P===">"||L(P)}function g(P,R){return P.test(R)}function d(P,R){return!g(P,R)}var E=0;U.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},U.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},U.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(U.ENTITIES).forEach(function(P){var R=U.ENTITIES[P],c=typeof R==="number"?String.fromCharCode(R):R;U.ENTITIES[P]=c});for(var s in U.STATE)U.STATE[U.STATE[s]]=s;E=U.STATE;function V0(P,R,c){P[R]&&P[R](c)}function S(P,R,c){if(P.textNode)h(P);V0(P,R,c)}function h(P){if(P.textNode=N(P.opt,P.textNode),P.textNode)V0(P,"ontext",P.textNode);P.textNode=""}function N(P,R){if(P.trim)R=R.trim();if(P.normalize)R=R.replace(/\s+/g," ");return R}function a(P,R){if(h(P),P.trackPosition)R+=`
15Line: `+P.line+`
16Column: `+P.column+`

Callers 6

WQFunction · 0.70
HQFunction · 0.70
c9Function · 0.70
jQFunction · 0.70
zQFunction · 0.70
JXFunction · 0.70

Calls 7

concatMethod · 0.80
YFunction · 0.70
JFunction · 0.70
GFunction · 0.70
ZFunction · 0.70
XFunction · 0.70
replaceMethod · 0.65

Tested by

no test coverage detected