UNPKG

@imgly/idml-importer

Version:

Import IDML files into the Creative Editor Ecosystem

1 lines 151 kB
import{createRequire as Eq}from"node:module";var wq=Object.create;var{getPrototypeOf:Dq,defineProperty:l8,getOwnPropertyNames:Aq}=Object;var vq=Object.prototype.hasOwnProperty;var Tq=($,Q,J)=>{J=$!=null?wq(Dq($)):{};const V=Q||!$||!$.__esModule?l8(J,"default",{value:$,enumerable:!0}):J;for(let q of Aq($))if(!vq.call(V,q))l8(V,q,{get:()=>$[q],enumerable:!0});return V};var I=($,Q)=>()=>(Q||$((Q={exports:{}}).exports,Q),Q.exports);var q0=Eq(import.meta.url);var F1=I((m4,r6)=>{function _q($,Q,J,V){if(typeof $!=="function")throw new TypeError('"callback" argument must be a function');var q=arguments.length,X,Y;switch(q){case 0:case 1:return process.nextTick($);case 2:return process.nextTick(function K(){$.call(null,Q)});case 3:return process.nextTick(function K(){$.call(null,Q,J)});case 4:return process.nextTick(function K(){$.call(null,Q,J,V)});default:X=new Array(q-1),Y=0;while(Y<X.length)X[Y++]=arguments[Y];return process.nextTick(function K(){$.apply(null,X)})}}if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)r6.exports={nextTick:_q};else r6.exports=process});var o0=I((tq)=>{function bq($){if(Array.isArray)return Array.isArray($);return e1($)==="[object Array]"}function fq($){return typeof $==="boolean"}function pq($){return $===null}function mq($){return $==null}function cq($){return typeof $==="number"}function uq($){return typeof $==="string"}function dq($){return typeof $==="symbol"}function lq($){return $===void 0}function oq($){return e1($)==="[object RegExp]"}function iq($){return typeof $==="object"&&$!==null}function nq($){return e1($)==="[object Date]"}function rq($){return e1($)==="[object Error]"||$ instanceof Error}function aq($){return typeof $==="function"}function sq($){return $===null||typeof $==="boolean"||typeof $==="number"||typeof $==="string"||typeof $==="symbol"||typeof $==="undefined"}function e1($){return Object.prototype.toString.call($)}tq.isArray=bq;tq.isBoolean=fq;tq.isNull=pq;tq.isNullOrUndefined=mq;tq.isNumber=cq;tq.isString=uq;tq.isSymbol=dq;tq.isUndefined=lq;tq.isRegExp=oq;tq.isObject=iq;tq.isDate=nq;tq.isError=rq;tq.isFunction=aq;tq.isPrimitive=sq;tq.isBuffer=q0("buffer").Buffer.isBuffer});var t8=I((u4,a6)=>{if(typeof Object.create==="function")a6.exports=function $(Q,J){if(J)Q.super_=J,Q.prototype=Object.create(J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})};else a6.exports=function $(Q,J){if(J){Q.super_=J;var V=function(){};V.prototype=J.prototype,Q.prototype=new V,Q.prototype.constructor=Q}}});var i0=I((d4,t6)=>{try{if(s6=q0("util"),typeof s6.inherits!=="function")throw"";t6.exports=s6.inherits}catch($){t6.exports=t8()}var s6});var $5=I((l4,e8)=>{e8.exports=q0("util").deprecate});var N1=I((e6,J5)=>{function Q5($,Q){for(var J in $)Q[J]=$[J]}function n0($,Q,J){return P0($,Q,J)}var $6=q0("buffer"),P0=$6.Buffer;if(P0.from&&P0.alloc&&P0.allocUnsafe&&P0.allocUnsafeSlow)J5.exports=$6;else Q5($6,e6),e6.Buffer=n0;Q5(P0,n0);n0.from=function($,Q,J){if(typeof $==="number")throw new TypeError("Argument must not be a number");return P0($,Q,J)};n0.alloc=function($,Q,J){if(typeof $!=="number")throw new TypeError("Argument must be a number");var V=P0($);if(Q!==void 0)if(typeof J==="string")V.fill(Q,J);else V.fill(Q);else V.fill(0);return V};n0.allocUnsafe=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return P0($)};n0.allocUnsafeSlow=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return $6.SlowBuffer($)}});var $$=I((o4,V5)=>{function Z7($,Q){var J=this,V=this._readableState&&this._readableState.destroyed,q=this._writableState&&this._writableState.destroyed;if(V||q){if(Q)Q($);else if($){if(!this._writableState)Q6.nextTick(J6,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,Q6.nextTick(J6,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(X){if(!Q&&X){if(!J._writableState)Q6.nextTick(J6,J,X);else if(!J._writableState.errorEmitted)J._writableState.errorEmitted=!0,Q6.nextTick(J6,J,X)}else if(Q)Q(X)}),this}function z7(){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 J6($,Q){$.emit("error",Q)}var Q6=F1();V5.exports={destroy:Z7,undestroy:z7}});var J$=I((i4,P5)=>{function X5($){var Q=this;this.next=null,this.entry=null,this.finish=function(){y7(Q,$)}}function N7($){return q6.from($)}function M7($){return q6.isBuffer($)||$ instanceof F7}function I7(){}function I1($,Q){r0=r0||y0(),$=$||{};var J=Q instanceof r0;if(this.objectMode=!!$.objectMode,J)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:V,writableHighWaterMark:q}=$,X=this.objectMode?16:16384;if(V||V===0)this.highWaterMark=V;else if(J&&(q||q===0))this.highWaterMark=q;else this.highWaterMark=X;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=$.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K){v7(Q,K)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new X5(this)}function p($){if(r0=r0||y0(),!V6.call(p,this)&&!(this instanceof r0))return new p($);if(this._writableState=new I1($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}K5.call(this)}function B7($,Q){var J=new Error("write after end");$.emit("error",J),x0.nextTick(Q,J)}function C7($,Q,J,V){var q=!0,X=!1;if(J===null)X=new TypeError("May not write null values to stream");else if(typeof J!=="string"&&J!==void 0&&!Q.objectMode)X=new TypeError("Invalid non-string/buffer chunk");if(X)$.emit("error",X),x0.nextTick(V,X),q=!1;return q}function R7($,Q,J){if(!$.objectMode&&$.decodeStrings!==!1&&typeof Q==="string")Q=q6.from(Q,J);return Q}function w7($,Q,J,V,q,X){if(!J){var Y=R7(Q,V,q);if(V!==Y)J=!0,q="buffer",V=Y}var K=Q.objectMode?1:V.length;Q.length+=K;var W=Q.length<Q.highWaterMark;if(!W)Q.needDrain=!0;if(Q.writing||Q.corked){var G=Q.lastBufferedRequest;if(Q.lastBufferedRequest={chunk:V,encoding:q,isBuf:J,callback:X,next:null},G)G.next=Q.lastBufferedRequest;else Q.bufferedRequest=Q.lastBufferedRequest;Q.bufferedRequestCount+=1}else Q$($,Q,!1,K,V,q,X);return W}function Q$($,Q,J,V,q,X,Y){if(Q.writelen=V,Q.writecb=Y,Q.writing=!0,Q.sync=!0,J)$._writev(q,Q.onwrite);else $._write(q,X,Q.onwrite);Q.sync=!1}function D7($,Q,J,V,q){if(--Q.pendingcb,J)x0.nextTick(q,V),x0.nextTick(M1,$,Q),$._writableState.errorEmitted=!0,$.emit("error",V);else q(V),$._writableState.errorEmitted=!0,$.emit("error",V),M1($,Q)}function A7($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function v7($,Q){var J=$._writableState,V=J.sync,q=J.writecb;if(A7(J),Q)D7($,J,V,Q,q);else{var X=W5(J);if(!X&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest)U5($,J);if(V)L7(q5,$,J,X,q);else q5($,J,X,q)}}function q5($,Q,J,V){if(!J)T7($,Q);Q.pendingcb--,V(),M1($,Q)}function T7($,Q){if(Q.length===0&&Q.needDrain)Q.needDrain=!1,$.emit("drain")}function U5($,Q){Q.bufferProcessing=!0;var J=Q.bufferedRequest;if($._writev&&J&&J.next){var V=Q.bufferedRequestCount,q=new Array(V),X=Q.corkedRequestsFree;X.entry=J;var Y=0,K=!0;while(J){if(q[Y]=J,!J.isBuf)K=!1;J=J.next,Y+=1}if(q.allBuffers=K,Q$($,Q,!0,Q.length,q,"",X.finish),Q.pendingcb++,Q.lastBufferedRequest=null,X.next)Q.corkedRequestsFree=X.next,X.next=null;else Q.corkedRequestsFree=new X5(Q);Q.bufferedRequestCount=0}else{while(J){var{chunk:W,encoding:G,callback:U}=J,H=Q.objectMode?1:W.length;if(Q$($,Q,!1,H,W,G,U),J=J.next,Q.bufferedRequestCount--,Q.writing)break}if(J===null)Q.lastBufferedRequest=null}Q.bufferedRequest=J,Q.bufferProcessing=!1}function W5($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function E7($,Q){$._final(function(J){if(Q.pendingcb--,J)$.emit("error",J);Q.prefinished=!0,$.emit("prefinish"),M1($,Q)})}function S7($,Q){if(!Q.prefinished&&!Q.finalCalled)if(typeof $._final==="function")Q.pendingcb++,Q.finalCalled=!0,x0.nextTick(E7,$,Q);else Q.prefinished=!0,$.emit("prefinish")}function M1($,Q){var J=W5(Q);if(J){if(S7($,Q),Q.pendingcb===0)Q.finished=!0,$.emit("finish")}return J}function x7($,Q,J){if(Q.ending=!0,M1($,Q),J)if(Q.finished)x0.nextTick(J);else $.once("finish",J);Q.ended=!0,$.writable=!1}function y7($,Q,J){var V=$.entry;$.entry=null;while(V){var q=V.callback;Q.pendingcb--,q(J),V=V.next}Q.corkedRequestsFree.next=$}var x0=F1();P5.exports=p;var L7=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:x0.nextTick,r0;p.WritableState=I1;var Y5=Object.create(o0());Y5.inherits=i0();var O7={deprecate:$5()},K5=q0("stream"),q6=N1().Buffer,F7=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){},G5=$$();Y5.inherits(p,K5);I1.prototype.getBuffer=function $(){var Q=this.bufferedRequest,J=[];while(Q)J.push(Q),Q=Q.next;return J};(function(){try{Object.defineProperty(I1.prototype,"buffer",{get:O7.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var V6;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")V6=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function($){if(V6.call(this,$))return!0;if(this!==p)return!1;return $&&$._writableState instanceof I1}});else V6=function($){return $ instanceof this};p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};p.prototype.write=function($,Q,J){var V=this._writableState,q=!1,X=!V.objectMode&&M7($);if(X&&!q6.isBuffer($))$=N7($);if(typeof Q==="function")J=Q,Q=null;if(X)Q="buffer";else if(!Q)Q=V.defaultEncoding;if(typeof J!=="function")J=I7;if(V.ended)B7(this,J);else if(X||C7(this,V,$,J))V.pendingcb++,q=w7(this,V,X,$,Q,J);return q};p.prototype.cork=function(){var $=this._writableState;$.corked++};p.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)U5(this,$)}};p.prototype.setDefaultEncoding=function $(Q){if(typeof Q==="string")Q=Q.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Q);return this._writableState.defaultEncoding=Q,this};Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});p.prototype._write=function($,Q,J){J(new Error("_write() is not implemented"))};p.prototype._writev=null;p.prototype.end=function($,Q,J){var V=this._writableState;if(typeof $==="function")J=$,$=null,Q=null;else if(typeof Q==="function")J=Q,Q=null;if($!==null&&$!==void 0)this.write($,Q);if(V.corked)V.corked=1,this.uncork();if(!V.ending)x7(this,V,J)};Object.defineProperty(p.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function($){if(!this._writableState)return;this._writableState.destroyed=$}});p.prototype.destroy=G5.destroy;p.prototype._undestroy=G5.undestroy;p.prototype._destroy=function($,Q){this.end(),Q($)}});var y0=I((n4,z5)=>{function j0($){if(!(this instanceof j0))return new j0($);if(Z5.call(this,$),q$.call(this,$),$&&$.readable===!1)this.readable=!1;if($&&$.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,$&&$.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",g7)}function g7(){if(this.allowHalfOpen||this._writableState.ended)return;j5.nextTick(h7,this)}function h7($){$.end()}var j5=F1(),k7=Object.keys||function($){var Q=[];for(var J in $)Q.push(J);return Q};z5.exports=j0;var H5=Object.create(o0());H5.inherits=i0();var Z5=X$(),q$=J$();H5.inherits(j0,Z5);{V$=k7(q$.prototype);for(X6=0;X6<V$.length;X6++)if(Y6=V$[X6],!j0.prototype[Y6])j0.prototype[Y6]=q$.prototype[Y6]}var V$,Y6,X6;Object.defineProperty(j0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(j0.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function($){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=$,this._writableState.destroyed=$}});j0.prototype._destroy=function($,Q){this.push(null),this.end(),j5.nextTick(Q,$)}});var G$=I((a7)=>{function _7($){if(!$)return"utf8";var Q;while(!0)switch($){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 $;default:if(Q)return;$=(""+$).toLowerCase(),Q=!0}}function b7($){var Q=_7($);if(typeof Q!=="string"&&(K$.isEncoding===L5||!L5($)))throw new Error("Unknown encoding: "+$);return Q||$}function B1($){this.encoding=b7($);var Q;switch(this.encoding){case"utf16le":this.text=d7,this.end=l7,Q=4;break;case"utf8":this.fillLast=m7,Q=4;break;case"base64":this.text=o7,this.end=i7,Q=3;break;default:this.write=n7,this.end=r7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=K$.allocUnsafe(Q)}function Y$($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function f7($,Q,J){var V=Q.length-1;if(V<J)return 0;var q=Y$(Q[V]);if(q>=0){if(q>0)$.lastNeed=q-1;return q}if(--V<J||q===-2)return 0;if(q=Y$(Q[V]),q>=0){if(q>0)$.lastNeed=q-2;return q}if(--V<J||q===-2)return 0;if(q=Y$(Q[V]),q>=0){if(q>0)if(q===2)q=0;else $.lastNeed=q-3;return q}return 0}function p7($,Q,J){if((Q[0]&192)!==128)return $.lastNeed=0,"\uFFFD";if($.lastNeed>1&&Q.length>1){if((Q[1]&192)!==128)return $.lastNeed=1,"\uFFFD";if($.lastNeed>2&&Q.length>2){if((Q[2]&192)!==128)return $.lastNeed=2,"\uFFFD"}}}function m7($){var Q=this.lastTotal-this.lastNeed,J=p7(this,$,Q);if(J!==void 0)return J;if(this.lastNeed<=$.length)return $.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,Q,0,$.length),this.lastNeed-=$.length}function c7($,Q){var J=f7(this,$,Q);if(!this.lastNeed)return $.toString("utf8",Q);this.lastTotal=J;var V=$.length-(J-this.lastNeed);return $.copy(this.lastChar,0,V),$.toString("utf8",Q,V)}function u7($){var Q=$&&$.length?this.write($):"";if(this.lastNeed)return Q+"\uFFFD";return Q}function d7($,Q){if(($.length-Q)%2===0){var J=$.toString("utf16le",Q);if(J){var V=J.charCodeAt(J.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",Q,$.length-1)}function l7($){var Q=$&&$.length?this.write($):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return Q+this.lastChar.toString("utf16le",0,J)}return Q}function o7($,Q){var J=($.length-Q)%3;if(J===0)return $.toString("base64",Q);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",Q,$.length-J)}function i7($){var Q=$&&$.length?this.write($):"";if(this.lastNeed)return Q+this.lastChar.toString("base64",0,3-this.lastNeed);return Q}function n7($){return $.toString(this.encoding)}function r7($){return $&&$.length?this.write($):""}var K$=N1().Buffer,L5=K$.isEncoding||function($){switch($=""+$,$&&$.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}};a7.StringDecoder=B1;B1.prototype.write=function($){if($.length===0)return"";var Q,J;if(this.lastNeed){if(Q=this.fillLast($),Q===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<$.length)return Q?Q+this.text($,J):this.text($,J);return Q||""};B1.prototype.end=u7;B1.prototype.text=c7;B1.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length}});var F5=I((a4,O5)=>{var t7={}.toString;O5.exports=Array.isArray||function($){return t7.call($)=="[object Array]"}});var M5=I((s4,U$)=>{function e7($,Q){if(!($ instanceof Q))throw new TypeError("Cannot call a class as a function")}function $X($,Q,J){$.copy(Q,J)}var N5=N1().Buffer,C1=q0("util");U$.exports=function(){function $(){e7(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function Q(J){var V={data:J,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length},$.prototype.unshift=function Q(J){var V={data:J,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length},$.prototype.shift=function Q(){if(this.length===0)return;var J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J},$.prototype.clear=function Q(){this.head=this.tail=null,this.length=0},$.prototype.join=function Q(J){if(this.length===0)return"";var V=this.head,q=""+V.data;while(V=V.next)q+=J+V.data;return q},$.prototype.concat=function Q(J){if(this.length===0)return N5.alloc(0);var V=N5.allocUnsafe(J>>>0),q=this.head,X=0;while(q)$X(q.data,V,X),X+=q.data.length,q=q.next;return V},$}();if(C1&&C1.inspect&&C1.inspect.custom)U$.exports.prototype[C1.inspect.custom]=function(){var $=C1.inspect({length:this.length});return this.constructor.name+" "+$}});var X$=I((e4,x5)=>{function VX($){return w1.from($)}function qX($){return w1.isBuffer($)||$ instanceof JX}function YX($,Q,J){if(typeof $.prependListener==="function")return $.prependListener(Q,J);if(!$._events||!$._events[Q])$.on(Q,J);else if(QX($._events[Q]))$._events[Q].unshift(J);else $._events[Q]=[J,$._events[Q]]}function A5($,Q){R1=R1||y0(),$=$||{};var J=Q instanceof R1;if(this.objectMode=!!$.objectMode,J)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:V,readableHighWaterMark:q}=$,X=this.objectMode?16:16384;if(V||V===0)this.highWaterMark=V;else if(J&&(q||q===0))this.highWaterMark=q;else this.highWaterMark=X;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new XX,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.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!a0)a0=G$().StringDecoder;this.decoder=new a0($.encoding),this.encoding=$.encoding}}function k($){if(R1=R1||y0(),!(this instanceof k))return new k($);if(this._readableState=new A5($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}Z$.call(this)}function v5($,Q,J,V,q){var X=$._readableState;if(Q===null)X.reading=!1,WX($,X);else{var Y;if(!q)Y=KX(X,Q);if(Y)$.emit("error",Y);else if(X.objectMode||Q&&Q.length>0){if(typeof Q!=="string"&&!X.objectMode&&Object.getPrototypeOf(Q)!==w1.prototype)Q=VX(Q);if(V)if(X.endEmitted)$.emit("error",new Error("stream.unshift() after end event"));else j$($,X,Q,!0);else if(X.ended)$.emit("error",new Error("stream.push() after EOF"));else if(X.reading=!1,X.decoder&&!J)if(Q=X.decoder.write(Q),X.objectMode||Q.length!==0)j$($,X,Q,!1);else T5($,X);else j$($,X,Q,!1)}else if(!V)X.reading=!1}return GX(X)}function j$($,Q,J,V){if(Q.flowing&&Q.length===0&&!Q.sync)$.emit("data",J),$.read(0);else{if(Q.length+=Q.objectMode?1:J.length,V)Q.buffer.unshift(J);else Q.buffer.push(J);if(Q.needReadable)K6($)}T5($,Q)}function KX($,Q){var J;if(!qX(Q)&&typeof Q!=="string"&&Q!==void 0&&!$.objectMode)J=new TypeError("Invalid non-string/buffer chunk");return J}function GX($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}function UX($){if($>=I5)$=I5;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function B5($,Q){if($<=0||Q.length===0&&Q.ended)return 0;if(Q.objectMode)return 1;if($!==$)if(Q.flowing&&Q.length)return Q.buffer.head.data.length;else return Q.length;if($>Q.highWaterMark)Q.highWaterMark=UX($);if($<=Q.length)return $;if(!Q.ended)return Q.needReadable=!0,0;return Q.length}function WX($,Q){if(Q.ended)return;if(Q.decoder){var J=Q.decoder.end();if(J&&J.length)Q.buffer.push(J),Q.length+=Q.objectMode?1:J.length}Q.ended=!0,K6($)}function K6($){var Q=$._readableState;if(Q.needReadable=!1,!Q.emittedReadable)if(S("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync)s0.nextTick(C5,$);else C5($)}function C5($){S("emit readable"),$.emit("readable"),z$($)}function T5($,Q){if(!Q.readingMore)Q.readingMore=!0,s0.nextTick(PX,$,Q)}function PX($,Q){var J=Q.length;while(!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark)if(S("maybeReadMore read 0"),$.read(0),J===Q.length)break;else J=Q.length;Q.readingMore=!1}function jX($){return function(){var Q=$._readableState;if(S("pipeOnDrain",Q.awaitDrain),Q.awaitDrain)Q.awaitDrain--;if(Q.awaitDrain===0&&R5($,"data"))Q.flowing=!0,z$($)}}function HX($){S("readable nexttick read 0"),$.read(0)}function ZX($,Q){if(!Q.resumeScheduled)Q.resumeScheduled=!0,s0.nextTick(zX,$,Q)}function zX($,Q){if(!Q.reading)S("resume read 0"),$.read(0);if(Q.resumeScheduled=!1,Q.awaitDrain=0,$.emit("resume"),z$($),Q.flowing&&!Q.reading)$.read(0)}function z$($){var Q=$._readableState;S("flow",Q.flowing);while(Q.flowing&&$.read()!==null);}function E5($,Q){if(Q.length===0)return null;var J;if(Q.objectMode)J=Q.buffer.shift();else if(!$||$>=Q.length){if(Q.decoder)J=Q.buffer.join("");else if(Q.buffer.length===1)J=Q.buffer.head.data;else J=Q.buffer.concat(Q.length);Q.buffer.clear()}else J=LX($,Q.buffer,Q.decoder);return J}function LX($,Q,J){var V;if($<Q.head.data.length)V=Q.head.data.slice(0,$),Q.head.data=Q.head.data.slice($);else if($===Q.head.data.length)V=Q.shift();else V=J?OX($,Q):FX($,Q);return V}function OX($,Q){var J=Q.head,V=1,q=J.data;$-=q.length;while(J=J.next){var X=J.data,Y=$>X.length?X.length:$;if(Y===X.length)q+=X;else q+=X.slice(0,$);if($-=Y,$===0){if(Y===X.length)if(++V,J.next)Q.head=J.next;else Q.head=Q.tail=null;else Q.head=J,J.data=X.slice(Y);break}++V}return Q.length-=V,q}function FX($,Q){var J=w1.allocUnsafe($),V=Q.head,q=1;V.data.copy(J),$-=V.data.length;while(V=V.next){var X=V.data,Y=$>X.length?X.length:$;if(X.copy(J,J.length-$,0,Y),$-=Y,$===0){if(Y===X.length)if(++q,V.next)Q.head=V.next;else Q.head=Q.tail=null;else Q.head=V,V.data=X.slice(Y);break}++q}return Q.length-=q,J}function H$($){var Q=$._readableState;if(Q.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!Q.endEmitted)Q.ended=!0,s0.nextTick(NX,Q,$)}function NX($,Q){if(!$.endEmitted&&$.length===0)$.endEmitted=!0,Q.readable=!1,Q.emit("end")}function S5($,Q){for(var J=0,V=$.length;J<V;J++)if($[J]===Q)return J;return-1}var s0=F1();x5.exports=k;var QX=F5(),R1;k.ReadableState=A5;var t4=q0("events").EventEmitter,R5=function($,Q){return $.listeners(Q).length},Z$=q0("stream"),w1=N1().Buffer,JX=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){},w5=Object.create(o0());w5.inherits=i0();var W$=q0("util"),S=void 0;if(W$&&W$.debuglog)S=W$.debuglog("stream");else S=function(){};var XX=M5(),D5=$$(),a0;w5.inherits(k,Z$);var P$=["error","close","destroy","pause","resume"];Object.defineProperty(k.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});k.prototype.destroy=D5.destroy;k.prototype._undestroy=D5.undestroy;k.prototype._destroy=function($,Q){this.push(null),Q($)};k.prototype.push=function($,Q){var J=this._readableState,V;if(!J.objectMode){if(typeof $==="string"){if(Q=Q||J.defaultEncoding,Q!==J.encoding)$=w1.from($,Q),Q="";V=!0}}else V=!0;return v5(this,$,Q,!1,V)};k.prototype.unshift=function($){return v5(this,$,null,!0,!1)};k.prototype.isPaused=function(){return this._readableState.flowing===!1};k.prototype.setEncoding=function($){if(!a0)a0=G$().StringDecoder;return this._readableState.decoder=new a0($),this._readableState.encoding=$,this};var I5=8388608;k.prototype.read=function($){S("read",$),$=parseInt($,10);var Q=this._readableState,J=$;if($!==0)Q.emittedReadable=!1;if($===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended)){if(S("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended)H$(this);else K6(this);return null}if($=B5($,Q),$===0&&Q.ended){if(Q.length===0)H$(this);return null}var V=Q.needReadable;if(S("need readable",V),Q.length===0||Q.length-$<Q.highWaterMark)V=!0,S("length less than watermark",V);if(Q.ended||Q.reading)V=!1,S("reading or ended",V);else if(V){if(S("do read"),Q.reading=!0,Q.sync=!0,Q.length===0)Q.needReadable=!0;if(this._read(Q.highWaterMark),Q.sync=!1,!Q.reading)$=B5(J,Q)}var q;if($>0)q=E5($,Q);else q=null;if(q===null)Q.needReadable=!0,$=0;else Q.length-=$;if(Q.length===0){if(!Q.ended)Q.needReadable=!0;if(J!==$&&Q.ended)H$(this)}if(q!==null)this.emit("data",q);return q};k.prototype._read=function($){this.emit("error",new Error("_read() is not implemented"))};k.prototype.pipe=function($,Q){var J=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=$;break;case 1:V.pipes=[V.pipes,$];break;default:V.pipes.push($);break}V.pipesCount+=1,S("pipe count=%d opts=%j",V.pipesCount,Q);var q=(!Q||Q.end!==!1)&&$!==process.stdout&&$!==process.stderr,X=q?K:M;if(V.endEmitted)s0.nextTick(X);else J.once("end",X);$.on("unpipe",Y);function Y(Z,z){if(S("onunpipe"),Z===J){if(z&&z.hasUnpiped===!1)z.hasUnpiped=!0,U()}}function K(){S("onend"),$.end()}var W=jX(J);$.on("drain",W);var G=!1;function U(){if(S("cleanup"),$.removeListener("close",O),$.removeListener("finish",N),$.removeListener("drain",W),$.removeListener("error",j),$.removeListener("unpipe",Y),J.removeListener("end",K),J.removeListener("end",M),J.removeListener("data",P),G=!0,V.awaitDrain&&(!$._writableState||$._writableState.needDrain))W()}var H=!1;J.on("data",P);function P(Z){S("ondata"),H=!1;var z=$.write(Z);if(z===!1&&!H){if((V.pipesCount===1&&V.pipes===$||V.pipesCount>1&&S5(V.pipes,$)!==-1)&&!G)S("false write response, pause",V.awaitDrain),V.awaitDrain++,H=!0;J.pause()}}function j(Z){if(S("onerror",Z),M(),$.removeListener("error",j),R5($,"error")===0)$.emit("error",Z)}YX($,"error",j);function O(){$.removeListener("finish",N),M()}$.once("close",O);function N(){S("onfinish"),$.removeListener("close",O),M()}$.once("finish",N);function M(){S("unpipe"),J.unpipe($)}if($.emit("pipe",J),!V.flowing)S("pipe resume"),J.resume();return $};k.prototype.unpipe=function($){var Q=this._readableState,J={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1){if($&&$!==Q.pipes)return this;if(!$)$=Q.pipes;if(Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,$)$.emit("unpipe",this,J);return this}if(!$){var{pipes:V,pipesCount:q}=Q;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var X=0;X<q;X++)V[X].emit("unpipe",this,{hasUnpiped:!1});return this}var Y=S5(Q.pipes,$);if(Y===-1)return this;if(Q.pipes.splice(Y,1),Q.pipesCount-=1,Q.pipesCount===1)Q.pipes=Q.pipes[0];return $.emit("unpipe",this,J),this};k.prototype.on=function($,Q){var J=Z$.prototype.on.call(this,$,Q);if($==="data"){if(this._readableState.flowing!==!1)this.resume()}else if($==="readable"){var V=this._readableState;if(!V.endEmitted&&!V.readableListening){if(V.readableListening=V.needReadable=!0,V.emittedReadable=!1,!V.reading)s0.nextTick(HX,this);else if(V.length)K6(this)}}return J};k.prototype.addListener=k.prototype.on;k.prototype.resume=function(){var $=this._readableState;if(!$.flowing)S("resume"),$.flowing=!0,ZX(this,$);return this};k.prototype.pause=function(){if(S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)S("pause"),this._readableState.flowing=!1,this.emit("pause");return this};k.prototype.wrap=function($){var Q=this,J=this._readableState,V=!1;$.on("end",function(){if(S("wrapped end"),J.decoder&&!J.ended){var Y=J.decoder.end();if(Y&&Y.length)Q.push(Y)}Q.push(null)}),$.on("data",function(Y){if(S("wrapped data"),J.decoder)Y=J.decoder.write(Y);if(J.objectMode&&(Y===null||Y===void 0))return;else if(!J.objectMode&&(!Y||!Y.length))return;var K=Q.push(Y);if(!K)V=!0,$.pause()});for(var q in $)if(this[q]===void 0&&typeof $[q]==="function")this[q]=function(Y){return function(){return $[Y].apply($,arguments)}}(q);for(var X=0;X<P$.length;X++)$.on(P$[X],this.emit.bind(this,P$[X]));return this._read=function(Y){if(S("wrapped _read",Y),V)V=!1,$.resume()},this};Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});k._fromList=E5});var L$=I(($G,g5)=>{function MX($,Q){var J=this._transformState;J.transforming=!1;var V=J.writecb;if(!V)return this.emit("error",new Error("write callback called multiple times"));if(J.writechunk=null,J.writecb=null,Q!=null)this.push(Q);V($);var q=this._readableState;if(q.reading=!1,q.needReadable||q.length<q.highWaterMark)this._read(q.highWaterMark)}function H0($){if(!(this instanceof H0))return new H0($);if(G6.call(this,$),this._transformState={afterTransform:MX.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,$){if(typeof $.transform==="function")this._transform=$.transform;if(typeof $.flush==="function")this._flush=$.flush}this.on("prefinish",IX)}function IX(){var $=this;if(typeof this._flush==="function")this._flush(function(Q,J){y5($,Q,J)});else y5(this,null,null)}function y5($,Q,J){if(Q)return $.emit("error",Q);if(J!=null)$.push(J);if($._writableState.length)throw new Error("Calling transform done when ws.length != 0");if($._transformState.transforming)throw new Error("Calling transform done when still transforming");return $.push(null)}g5.exports=H0;var G6=y0(),k5=Object.create(o0());k5.inherits=i0();k5.inherits(H0,G6);H0.prototype.push=function($,Q){return this._transformState.needTransform=!1,G6.prototype.push.call(this,$,Q)};H0.prototype._transform=function($,Q,J){throw new Error("_transform() is not implemented")};H0.prototype._write=function($,Q,J){var V=this._transformState;if(V.writecb=J,V.writechunk=$,V.writeencoding=Q,!V.transforming){var q=this._readableState;if(V.needTransform||q.needReadable||q.length<q.highWaterMark)this._read(q.highWaterMark)}};H0.prototype._read=function($){var Q=this._transformState;if(Q.writechunk!==null&&Q.writecb&&!Q.transforming)Q.transforming=!0,this._transform(Q.writechunk,Q.writeencoding,Q.afterTransform);else Q.needTransform=!0};H0.prototype._destroy=function($,Q){var J=this;G6.prototype._destroy.call(this,$,function(V){Q(V),J.emit("close")})}});var f5=I((QG,b5)=>{function D1($){if(!(this instanceof D1))return new D1($);h5.call(this,$)}b5.exports=D1;var h5=L$(),_5=Object.create(o0());_5.inherits=i0();_5.inherits(D1,h5);D1.prototype._transform=function($,Q,J){J(null,$)}});var O$=I((c,U6)=>{var X0=q0("stream");if(process.env.READABLE_STREAM==="disable"&&X0)U6.exports=X0,c=U6.exports=X0.Readable,c.Readable=X0.Readable,c.Writable=X0.Writable,c.Duplex=X0.Duplex,c.Transform=X0.Transform,c.PassThrough=X0.PassThrough,c.Stream=X0;else c=U6.exports=X$(),c.Stream=X0||c,c.Readable=c,c.Writable=J$(),c.Duplex=y0(),c.Transform=L$(),c.PassThrough=f5()});var Z0=I((CX)=>{CX.base64=!0;CX.array=!0;CX.string=!0;CX.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";CX.nodebuffer=typeof Buffer!=="undefined";CX.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")CX.blob=!1;else{N$=new ArrayBuffer(0);try{CX.blob=new Blob([N$],{type:"application/zip"}).size===0}catch($){try{p5=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,M$=new p5,M$.append(N$),CX.blob=M$.getBlob("application/zip").size===0}catch(Q){CX.blob=!1}}}var N$,p5,M$;try{CX.nodestream=!!O$().Readable}catch($){CX.nodestream=!1}});var I$=I((xX)=>{var EX=h(),SX=Z0(),Y0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";xX.encode=function($){var Q=[],J,V,q,X,Y,K,W,G=0,U=$.length,H=U,P=EX.getTypeOf($)!=="string";while(G<$.length){if(H=U-G,!P)J=$.charCodeAt(G++),V=G<U?$.charCodeAt(G++):0,q=G<U?$.charCodeAt(G++):0;else J=$[G++],V=G<U?$[G++]:0,q=G<U?$[G++]:0;X=J>>2,Y=(J&3)<<4|V>>4,K=H>1?(V&15)<<2|q>>6:64,W=H>2?q&63:64,Q.push(Y0.charAt(X)+Y0.charAt(Y)+Y0.charAt(K)+Y0.charAt(W))}return Q.join("")};xX.decode=function($){var Q,J,V,q,X,Y,K,W=0,G=0,U="data:";if($.substr(0,U.length)===U)throw new Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var H=$.length*3/4;if($.charAt($.length-1)===Y0.charAt(64))H--;if($.charAt($.length-2)===Y0.charAt(64))H--;if(H%1!==0)throw new Error("Invalid base64 input, bad content length.");var P;if(SX.uint8array)P=new Uint8Array(H|0);else P=new Array(H|0);while(W<$.length){if(q=Y0.indexOf($.charAt(W++)),X=Y0.indexOf($.charAt(W++)),Y=Y0.indexOf($.charAt(W++)),K=Y0.indexOf($.charAt(W++)),Q=q<<2|X>>4,J=(X&15)<<4|Y>>2,V=(Y&3)<<6|K,P[G++]=Q,Y!==64)P[G++]=J;if(K!==64)P[G++]=V}return P}});var A1=I((qG,m5)=>{m5.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function($,Q){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,Q);else{if(typeof $==="number")throw new Error("The \"data\" argument must not be a number");return new Buffer($,Q)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var Q=new Buffer($);return Q.fill(0),Q}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var d5=I((WG,u5)=>{function gX(){B$=!0;var $,Q,J=v1.length;while(J){Q=v1,v1=[],$=-1;while(++$<J)Q[$]();J=v1.length}B$=!1}function hX($){if(v1.push($)===1&&!B$)c5()}var XG=global.MutationObserver||global.WebKitMutationObserver,c5;c5=function(){process.nextTick(gX)};var YG,KG,GG,UG,B$,v1=[];u5.exports=hX});var s5=I((PG,a5)=>{function t0(){}function I0($){if(typeof $!=="function")throw new TypeError("resolver must be a function");if(this.state=i5,this.queue=[],this.outcome=void 0,this.handled=T1,$!==t0)n5(this,$)}function E1($,Q,J){if(this.promise=$,typeof Q==="function")this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled;if(typeof J==="function")this.onRejected=J,this.callRejected=this.otherCallRejected}function R$($,Q,J){l5(function(){var V;try{V=Q(J)}catch(q){return l.reject($,q)}if(V===$)l.reject($,new TypeError("Cannot resolve promise with itself"));else l.resolve($,V)})}function _X($){var Q=$&&$.then;if($&&(typeof $==="object"||typeof $==="function")&&typeof Q==="function")return function J(){Q.apply($,arguments)}}function n5($,Q){var J=!1;function V(K){if(J)return;J=!0,l.reject($,K)}function q(K){if(J)return;J=!0,l.resolve($,K)}function X(){Q(q,V)}var Y=r5(X);if(Y.status==="error")V(Y.value)}function r5($,Q){var J={};try{J.value=$(Q),J.status="success"}catch(V){J.status="error",J.value=V}return J}function bX($){if($ instanceof this)return $;return l.resolve(new this(t0),$)}function fX($){var Q=new this(t0);return l.reject(Q,$)}function pX($){var Q=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=$.length,V=!1;if(!J)return this.resolve([]);var q=new Array(J),X=0,Y=-1,K=new this(t0);while(++Y<J)W($[Y],Y);return K;function W(G,U){Q.resolve(G).then(H,function(P){if(!V)V=!0,l.reject(K,P)});function H(P){if(q[U]=P,++X===J&&!V)V=!0,l.resolve(K,q)}}}function mX($){var Q=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=$.length,V=!1;if(!J)return this.resolve([]);var q=-1,X=new this(t0);while(++q<J)Y($[q]);return X;function Y(K){Q.resolve(K).then(function(W){if(!V)V=!0,l.resolve(X,W)},function(W){if(!V)V=!0,l.reject(X,W)})}}var l5=d5(),l={},o5=["REJECTED"],C$=["FULFILLED"],i5=["PENDING"];T1=["UNHANDLED"];var T1;a5.exports=I0;I0.prototype.finally=function($){if(typeof $!=="function")return this;var Q=this.constructor;return this.then(J,V);function J(q){function X(){return q}return Q.resolve($()).then(X)}function V(q){function X(){throw q}return Q.resolve($()).then(X)}};I0.prototype.catch=function($){return this.then(null,$)};I0.prototype.then=function($,Q){if(typeof $!=="function"&&this.state===C$||typeof Q!=="function"&&this.state===o5)return this;var J=new this.constructor(t0);if(this.handled===T1)this.handled=null;if(this.state!==i5){var V=this.state===C$?$:Q;R$(J,V,this.outcome)}else this.queue.push(new E1(J,$,Q));return J};E1.prototype.callFulfilled=function($){l.resolve(this.promise,$)};E1.prototype.otherCallFulfilled=function($){R$(this.promise,this.onFulfilled,$)};E1.prototype.callRejected=function($){l.reject(this.promise,$)};E1.prototype.otherCallRejected=function($){R$(this.promise,this.onRejected,$)};l.resolve=function($,Q){var J=r5(_X,Q);if(J.status==="error")return l.reject($,J.value);var V=J.value;if(V)n5($,V);else{$.state=C$,$.outcome=Q;var q=-1,X=$.queue.length;while(++q<X)$.queue[q].callFulfilled(Q)}return $};l.reject=function($,Q){if($.state=o5,$.outcome=Q,$.handled===T1)l5(function(){if($.handled===T1)process.emit("unhandledRejection",Q,$)});var J=-1,V=$.queue.length;while(++J<V)$.queue[J].callRejected(Q);return $};I0.resolve=bX;I0.reject=fX;I0.all=pX;I0.race=mX});var e0=I((jG,t5)=>{var w$=null;if(typeof Promise!=="undefined")w$=Promise;else w$=s5();t5.exports={Promise:w$}});var $Q=I((e5)=>{(function($,Q){if($.setImmediate)return;var J=1,V={},q=!1,X=$.document,Y;function K(z){if(typeof z!=="function")z=new Function(""+z);var B=new Array(arguments.length-1);for(var F=0;F<B.length;F++)B[F]=arguments[F+1];var L={callback:z,args:B};return V[J]=L,Y(J),J++}function W(z){delete V[z]}function G(z){var{callback:B,args:F}=z;switch(F.length){case 0:B();break;case 1:B(F[0]);break;case 2:B(F[0],F[1]);break;case 3:B(F[0],F[1],F[2]);break;default:B.apply(Q,F);break}}function U(z){if(q)setTimeout(U,0,z);else{var B=V[z];if(B){q=!0;try{G(B)}finally{W(z),q=!1}}}}function H(){Y=function(z){process.nextTick(function(){U(z)})}}function P(){if($.postMessage&&!$.importScripts){var z=!0,B=$.onmessage;return $.onmessage=function(){z=!1},$.postMessage("","*"),$.onmessage=B,z}}function j(){var z="setImmediate$"+Math.random()+"$",B=function(F){if(F.source===$&&typeof F.data==="string"&&F.data.indexOf(z)===0)U(+F.data.slice(z.length))};if($.addEventListener)$.addEventListener("message",B,!1);else $.attachEvent("onmessage",B);Y=function(F){$.postMessage(z+F,"*")}}function O(){var z=new MessageChannel;z.port1.onmessage=function(B){var F=B.data;U(F)},Y=function(B){z.port2.postMessage(B)}}function N(){var z=X.documentElement;Y=function(B){var F=X.createElement("script");F.onreadystatechange=function(){U(B),F.onreadystatechange=null,z.removeChild(F),F=null},z.appendChild(F)}}function M(){Y=function(z){setTimeout(U,0,z)}}var Z=Object.getPrototypeOf&&Object.getPrototypeOf($);if(Z=Z&&Z.setTimeout?Z:$,{}.toString.call($.process)==="[object process]")H();else if(P())j();else if($.MessageChannel)O();else if(X&&"onreadystatechange"in X.createElement("script"))N();else M();Z.setImmediate=K,Z.clearImmediate=W})(typeof self==="undefined"?typeof global==="undefined"?e5:global:self)});var h=I((dX)=>{function uX($){var Q=null;if(B0.uint8array)Q=new Uint8Array($.length);else Q=new Array($.length);return P6($,Q)}function S1($){return $}function P6($,Q){for(var J=0;J<$.length;++J)Q[J]=$.charCodeAt(J)&255;return Q}function x1($){var Q=65536,J=dX.getTypeOf($),V=!0;if(J==="uint8array")V=W6.applyCanBeUsed.uint8array;else if(J==="nodebuffer")V=W6.applyCanBeUsed.nodebuffer;if(V)while(Q>1)try{return W6.stringifyByChunk($,J,Q)}catch(q){Q=Math.floor(Q/2)}return W6.stringifyByChar($)}function j6($,Q){for(var J=0;J<$.length;J++)Q[J]=$[J];return Q}var B0=Z0(),cX=I$(),$1=A1(),D$=e0();$Q();dX.newBlob=function($,Q){dX.checkSupport("blob");try{return new Blob([$],{type:Q})}catch(q){try{var J=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,V=new J;return V.append($),V.getBlob(Q)}catch(X){throw new Error("Bug : can't construct the Blob.")}}};var W6={stringifyByChunk:function($,Q,J){var V=[],q=0,X=$.length;if(X<=J)return String.fromCharCode.apply(null,$);while(q<X){if(Q==="array"||Q==="nodebuffer")V.push(String.fromCharCode.apply(null,$.slice(q,Math.min(q+J,X))));else V.push(String.fromCharCode.apply(null,$.subarray(q,Math.min(q+J,X))));q+=J}return V.join("")},stringifyByChar:function($){var Q="";for(var J=0;J<$.length;J++)Q+=String.fromCharCode($[J]);return Q},applyCanBeUsed:{uint8array:function(){try{return B0.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch($){return!1}}(),nodebuffer:function(){try{return B0.nodebuffer&&String.fromCharCode.apply(null,$1.allocBuffer(1)).length===1}catch($){return!1}}()}};dX.applyFromCharCode=x1;var C0={};C0.string={string:S1,array:function($){return P6($,new Array($.length))},arraybuffer:function($){return C0.string.uint8array($).buffer},uint8array:function($){return P6($,new Uint8Array($.length))},nodebuffer:function($){return P6($,$1.allocBuffer($.length))}};C0.array={string:x1,array:S1,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return $1.newBufferFrom($)}};C0.arraybuffer={string:function($){return x1(new Uint8Array($))},array:function($){return j6(new Uint8Array($),new Array($.byteLength))},arraybuffer:S1,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return $1.newBufferFrom(new Uint8Array($))}};C0.uint8array={string:x1,array:function($){return j6($,new Array($.length))},arraybuffer:function($){return $.buffer},uint8array:S1,nodebuffer:function($){return $1.newBufferFrom($)}};C0.nodebuffer={string:x1,array:function($){return j6($,new Array($.length))},arraybuffer:function($){return C0.nodebuffer.uint8array($).buffer},uint8array:function($){return j6($,new Uint8Array($.length))},nodebuffer:S1};dX.transformTo=function($,Q){if(!Q)Q="";if(!$)return Q;dX.checkSupport($);var J=dX.getTypeOf(Q),V=C0[J][$](Q);return V};dX.resolve=function($){var Q=$.split("/"),J=[];for(var V=0;V<Q.length;V++){var q=Q[V];if(q==="."||q===""&&V!==0&&V!==Q.length-1)continue;else if(q==="..")J.pop();else J.push(q)}return J.join("/")};dX.getTypeOf=function($){if(typeof $==="string")return"string";if(Object.prototype.toString.call($)==="[object Array]")return"array";if(B0.nodebuffer&&$1.isBuffer($))return"nodebuffer";if(B0.uint8array&&$ instanceof Uint8Array)return"uint8array";if(B0.arraybuffer&&$ instanceof ArrayBuffer)return"arraybuffer"};dX.checkSupport=function($){var Q=B0[$.toLowerCase()];if(!Q)throw new Error($+" is not supported by this platform")};dX.MAX_VALUE_16BITS=65535;dX.MAX_VALUE_32BITS=-1;dX.pretty=function($){var Q="",J,V;for(V=0;V<($||"").length;V++)J=$.charCodeAt(V),Q+="\\x"+(J<16?"0":"")+J.toString(16).toUpperCase();return Q};dX.delay=function($,Q,J){setImmediate(function(){$.apply(J||null,Q||[])})};dX.inherits=function($,Q){var J=function(){};J.prototype=Q.prototype,$.prototype=new J};dX.extend=function(){var $={},Q,J;for(Q=0;Q<arguments.length;Q++)for(J in arguments[Q])if(Object.prototype.hasOwnProperty.call(arguments[Q],J)&&typeof $[J]==="undefined")$[J]=arguments[Q][J];return $};dX.prepareContent=function($,Q,J,V,q){var X=D$.Promise.resolve(Q).then(function(Y){var K=B0.blob&&(Y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Y))!==-1);if(K&&typeof FileReader!=="undefined")return new D$.Promise(function(W,G){var U=new FileReader;U.onload=function(H){W(H.target.result)},U.onerror=function(H){G(H.target.error)},U.readAsArrayBuffer(Y)});else return Y});return X.then(function(Y){var K=dX.getTypeOf(Y);if(!K)return D$.Promise.reject(new Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(K==="arraybuffer")Y=dX.transformTo("uint8array",Y);else if(K==="string"){if(q)Y=cX.decode(Y);else if(J){if(V!==!0)Y=uX(Y)}}return Y})}});var n=I((zG,qQ)=>{function VQ($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}VQ.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,Q){return this._listeners[$].push(Q),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,Q){if(this._listeners[$])for(var J=0;J<this._listeners[$].length;J++)this._listeners[$][J].call(this,Q)},pipe:function($){return $.registerPrevious(this)},registerPrevious:function($){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=$.streamInfo,this.mergeStreamInfo(),this.previous=$;var Q=this;return $.on("data",function(J){Q.processChunk(J)}),$.on("end",function(){Q.end()}),$.on("error",function(J){Q.error(J)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var $=!1;if(this.generatedError)this.error(this.generatedError),$=!0;if(this.previous)this.previous.resume();return!$},flush:function(){},processChunk:function($){this.push($)},withStreamInfo:function($,Q){return this.extraStreamInfo[$]=Q,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var $ in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,$))continue;this.streamInfo[$]=this.extraStreamInfo[$]}},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var $="Worker "+this.name;if(this.previous)return this.previous+" -> "+$;else return $}};qQ.exports=VQ});var J1=I((XY)=>{function Z6(){H6.call(this,"utf-8 decode"),this.leftOver=null}function v$(){H6.call(this,"utf-8 encode")}var Q1=h(),k0=Z0(),QY=A1(),H6=n(),y1=new Array(256);for(z0=0;z0<256;z0++)y1[z0]=z0>=252?6:z0>=248?5:z0>=240?4:z0>=224?3:z0>=192?2:1;var z0;y1[254]=y1[254]=1;var JY=function($){var Q,J,V,q,X,Y=$.length,K=0;for(q=0;q<Y;q++){if(J=$.charCodeAt(q),(J&64512)===55296&&q+1<Y){if(V=$.charCodeAt(q+1),(V&64512)===56320)J=65536+(J-55296<<10)+(V-56320),q++}K+=J<128?1:J<2048?2:J<65536?3:4}if(k0.uint8array)Q=new Uint8Array(K);else Q=new Array(K);for(X=0,q=0;X<K;q++){if(J=$.charCodeAt(q),(J&64512)===55296&&q+1<Y){if(V=$.charCodeAt(q+1),(V&64512)===56320)J=65536+(J-55296<<10)+(V-56320),q++}if(J<128)Q[X++]=J;else if(J<2048)Q[X++]=192|J>>>6,Q[X++]=128|J&63;else if(J<65536)Q[X++]=224|J>>>12,Q[X++]=128|J>>>6&63,Q[X++]=128|J&63;else Q[X++]=240|J>>>18,Q[X++]=128|J>>>12&63,Q[X++]=128|J>>>6&63,Q[X++]=128|J&63}return Q},VY=function($,Q){var J;if(Q=Q||$.length,Q>$.length)Q=$.length;J=Q-1;while(J>=0&&($[J]&192)===128)J--;if(J<0)return Q;if(J===0)return Q;return J+y1[$[J]]>Q?J:Q},qY=function($){var Q,J,V,q,X=$.length,Y=new Array(X*2);for(J=0,Q=0;Q<X;){if(V=$[Q++],V<128){Y[J++]=V;continue}if(q=y1[V],q>4){Y[J++]=65533,Q+=q-1;continue}V&=q===2?31:q===3?15:7;while(q>1&&Q<X)V=V<<6|$[Q++]&63,q--;if(q>1){Y[J++]=65533;continue}if(V<65536)Y[J++]=V;else V-=65536,Y[J++]=55296|V>>10&1023,Y[J++]=56320|V&1023}if(Y.length!==J)if(Y.subarray)Y=Y.subarray(0,J);else Y.length=J;return Q1.applyFromCharCode(Y)};XY.utf8encode=function $(Q){if(k0.nodebuffer)return QY.newBufferFrom(Q,"utf-8");return JY(Q)};XY.utf8decode=function $(Q){if(k0.nodebuffer)return Q1.transformTo("nodebuffer",Q).toString("utf-8");return Q=Q1.transformTo(k0.uint8array?"uint8array":"array",Q),qY(Q)};Q1.inherits(Z6,H6);Z6.prototype.processChunk=function($){var Q=Q1.transformTo(k0.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(k0.uint8array){var J=Q;Q=new Uint8Array(J.length+this.leftOver.length),Q.set(this.leftOver,0),Q.set(J,this.leftOver.length)}else Q=this.leftOver.concat(Q);this.leftOver=null}var V=VY(Q),q=Q;if(V!==Q.length)if(k0.uint8array)q=Q.subarray(0,V),this.leftOver=Q.subarray(V,Q.length);else q=Q.slice(0,V),this.leftOver=Q.slice(V,Q.length);this.push({data:XY.utf8decode(q),meta:$.meta})};Z6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:XY.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};XY.Utf8DecodeWorker=Z6;Q1.inherits(v$,H6);v$.prototype.processChunk=func